Skip to content

Commit

Permalink
Update API CreateApplication: add param ResourceType.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Jan 13, 2025
1 parent 2eaa485 commit f13e024
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
2025-01-13 Version: v1.25.6
- Update API CreateApplication: add param ResourceType.
- Update API CreateIngress: add param AddressType.
- Update API CreateIngress: add param LoadBalancerEdition.
- Update API CreateIngress: add param ZoneMappings.
- Update API CreateIngress: update param SlbId.
- Update API DescribeApplicationConfig: update response param.
- Update API DescribeIngress: update response param.


2025-01-10 Version: v1.25.5
- Update API CreateIngress: add param AddressType.
- Update API CreateIngress: add param LoadBalancerEdition.
Expand Down
22 changes: 22 additions & 0 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -9964,6 +9964,7 @@ type CreateApplicationRequest struct {
//
// 1
Replicas *int32 `json:"Replicas,omitempty" xml:"Replicas,omitempty"`
ResourceType *string `json:"ResourceType,omitempty" xml:"ResourceType,omitempty"`
SaeVersion *string `json:"SaeVersion,omitempty" xml:"SaeVersion,omitempty"`
SecretMountDesc *string `json:"SecretMountDesc,omitempty" xml:"SecretMountDesc,omitempty"`
// sg-wz969ngg2e49q5i4\\*\\*\\*\\*
Expand Down Expand Up @@ -10312,6 +10313,11 @@ func (s *CreateApplicationRequest) SetReplicas(v int32) *CreateApplicationReques
return s
}

func (s *CreateApplicationRequest) SetResourceType(v string) *CreateApplicationRequest {
s.ResourceType = &v
return s
}

func (s *CreateApplicationRequest) SetSaeVersion(v string) *CreateApplicationRequest {
s.SaeVersion = &v
return s
Expand Down Expand Up @@ -10652,6 +10658,7 @@ type CreateApplicationShrinkRequest struct {
//
// 1
Replicas *int32 `json:"Replicas,omitempty" xml:"Replicas,omitempty"`
ResourceType *string `json:"ResourceType,omitempty" xml:"ResourceType,omitempty"`
SaeVersion *string `json:"SaeVersion,omitempty" xml:"SaeVersion,omitempty"`
SecretMountDesc *string `json:"SecretMountDesc,omitempty" xml:"SecretMountDesc,omitempty"`
// sg-wz969ngg2e49q5i4\\*\\*\\*\\*
Expand Down Expand Up @@ -11000,6 +11007,11 @@ func (s *CreateApplicationShrinkRequest) SetReplicas(v int32) *CreateApplication
return s
}

func (s *CreateApplicationShrinkRequest) SetResourceType(v string) *CreateApplicationShrinkRequest {
s.ResourceType = &v
return s
}

func (s *CreateApplicationShrinkRequest) SetSaeVersion(v string) *CreateApplicationShrinkRequest {
s.SaeVersion = &v
return s
Expand Down Expand Up @@ -18828,6 +18840,7 @@ type DescribeApplicationConfigResponseBodyData struct {
//
// 2
Replicas *int32 `json:"Replicas,omitempty" xml:"Replicas,omitempty"`
ResourceType *string `json:"ResourceType,omitempty" xml:"ResourceType,omitempty"`
SecretMountDesc []*DescribeApplicationConfigResponseBodyDataSecretMountDesc `json:"SecretMountDesc,omitempty" xml:"SecretMountDesc,omitempty" type:"Repeated"`
// The ID of the security group.
//
Expand Down Expand Up @@ -19267,6 +19280,11 @@ func (s *DescribeApplicationConfigResponseBodyData) SetReplicas(v int32) *Descri
return s
}

func (s *DescribeApplicationConfigResponseBodyData) SetResourceType(v string) *DescribeApplicationConfigResponseBodyData {
s.ResourceType = &v
return s
}

func (s *DescribeApplicationConfigResponseBodyData) SetSecretMountDesc(v []*DescribeApplicationConfigResponseBodyDataSecretMountDesc) *DescribeApplicationConfigResponseBodyData {
s.SecretMountDesc = v
return s
Expand Down Expand Up @@ -46838,6 +46856,10 @@ func (client *Client) CreateApplicationWithOptions(tmpReq *CreateApplicationRequ
query["Replicas"] = request.Replicas
}

if !tea.BoolValue(util.IsUnset(request.ResourceType)) {
query["ResourceType"] = request.ResourceType
}

if !tea.BoolValue(util.IsUnset(request.SaeVersion)) {
query["SaeVersion"] = request.SaeVersion
}
Expand Down

0 comments on commit f13e024

Please sign in to comment.