Skip to content

Commit

Permalink
Update API GetConnectionTicket: add param Tag.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Nov 24, 2024
1 parent 5645afe commit 2def5cb
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2024-11-24 Version: v1.1.6
- Update API GetConnectionTicket: add param Tag.


2024-11-09 Version: v1.1.5
- Update API DescribeGlobalDesktops: add param Language.
- Update API DescribeGlobalDesktops: update response param.
Expand Down
35 changes: 34 additions & 1 deletion client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -2558,7 +2558,8 @@ type GetConnectionTicketRequest struct {
// example:
//
// cd45e873-650d-4d70-acb9-f996187a****
SessionId *string `json:"SessionId,omitempty" xml:"SessionId,omitempty"`
SessionId *string `json:"SessionId,omitempty" xml:"SessionId,omitempty"`
Tag []*GetConnectionTicketRequestTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"`
// example:
//
// 2afbad19-778a-4fc5-9674-1f19c638****
Expand Down Expand Up @@ -2634,6 +2635,11 @@ func (s *GetConnectionTicketRequest) SetSessionId(v string) *GetConnectionTicket
return s
}

func (s *GetConnectionTicketRequest) SetTag(v []*GetConnectionTicketRequestTag) *GetConnectionTicketRequest {
s.Tag = v
return s
}

func (s *GetConnectionTicketRequest) SetTaskId(v string) *GetConnectionTicketRequest {
s.TaskId = &v
return s
Expand All @@ -2644,6 +2650,29 @@ func (s *GetConnectionTicketRequest) SetUuid(v string) *GetConnectionTicketReque
return s
}

type GetConnectionTicketRequestTag struct {
Key *string `json:"Key,omitempty" xml:"Key,omitempty"`
Value *string `json:"Value,omitempty" xml:"Value,omitempty"`
}

func (s GetConnectionTicketRequestTag) String() string {
return tea.Prettify(s)
}

func (s GetConnectionTicketRequestTag) GoString() string {
return s.String()
}

func (s *GetConnectionTicketRequestTag) SetKey(v string) *GetConnectionTicketRequestTag {
s.Key = &v
return s
}

func (s *GetConnectionTicketRequestTag) SetValue(v string) *GetConnectionTicketRequestTag {
s.Value = &v
return s
}

type GetConnectionTicketResponseBody struct {
// example:
//
Expand Down Expand Up @@ -6513,6 +6542,10 @@ func (client *Client) GetConnectionTicketWithOptions(request *GetConnectionTicke
query["SessionId"] = request.SessionId
}

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

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

0 comments on commit 2def5cb

Please sign in to comment.