Skip to content

Commit 721ba0d

Browse files
committed
Generated golang 2024-09-10 for ESA.
1 parent eddb541 commit 721ba0d

File tree

2 files changed

+3
-243
lines changed

2 files changed

+3
-243
lines changed

ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2024-12-20 Version: v2.7.4
2+
- Generated golang 2024-09-10 for ESA.
3+
14
2024-12-19 Version: v2.7.3
25
- Update API GetSiteWafSettings: add param Path.
36

client/client.go

Lines changed: 0 additions & 243 deletions
Original file line numberDiff line numberDiff line change
@@ -36404,171 +36404,6 @@ func (s *UpdateKvNamespaceResponse) SetBody(v *UpdateKvNamespaceResponseBody) *U
3640436404
return s
3640536405
}
3640636406

36407-
type UpdateListRequest struct {
36408-
// The new description of the list.
36409-
//
36410-
// example:
36411-
//
36412-
// a custom list
36413-
Description *string `json:"Description,omitempty" xml:"Description,omitempty"`
36414-
// The ID of the custom list, which can be obtained by calling the [ListLists](https://help.aliyun.com/document_detail/2850217.html) operation.
36415-
//
36416-
// This parameter is required.
36417-
//
36418-
// example:
36419-
//
36420-
// 40000001
36421-
Id *int64 `json:"Id,omitempty" xml:"Id,omitempty"`
36422-
// The items in the updated list. The value is a JSON array.
36423-
//
36424-
// example:
36425-
//
36426-
// a custom list
36427-
Items []*string `json:"Items,omitempty" xml:"Items,omitempty" type:"Repeated"`
36428-
// The new name of the list.
36429-
//
36430-
// example:
36431-
//
36432-
// example
36433-
Name *string `json:"Name,omitempty" xml:"Name,omitempty"`
36434-
}
36435-
36436-
func (s UpdateListRequest) String() string {
36437-
return tea.Prettify(s)
36438-
}
36439-
36440-
func (s UpdateListRequest) GoString() string {
36441-
return s.String()
36442-
}
36443-
36444-
func (s *UpdateListRequest) SetDescription(v string) *UpdateListRequest {
36445-
s.Description = &v
36446-
return s
36447-
}
36448-
36449-
func (s *UpdateListRequest) SetId(v int64) *UpdateListRequest {
36450-
s.Id = &v
36451-
return s
36452-
}
36453-
36454-
func (s *UpdateListRequest) SetItems(v []*string) *UpdateListRequest {
36455-
s.Items = v
36456-
return s
36457-
}
36458-
36459-
func (s *UpdateListRequest) SetName(v string) *UpdateListRequest {
36460-
s.Name = &v
36461-
return s
36462-
}
36463-
36464-
type UpdateListShrinkRequest struct {
36465-
// The new description of the list.
36466-
//
36467-
// example:
36468-
//
36469-
// a custom list
36470-
Description *string `json:"Description,omitempty" xml:"Description,omitempty"`
36471-
// The ID of the custom list, which can be obtained by calling the [ListLists](https://help.aliyun.com/document_detail/2850217.html) operation.
36472-
//
36473-
// This parameter is required.
36474-
//
36475-
// example:
36476-
//
36477-
// 40000001
36478-
Id *int64 `json:"Id,omitempty" xml:"Id,omitempty"`
36479-
// The items in the updated list. The value is a JSON array.
36480-
//
36481-
// example:
36482-
//
36483-
// a custom list
36484-
ItemsShrink *string `json:"Items,omitempty" xml:"Items,omitempty"`
36485-
// The new name of the list.
36486-
//
36487-
// example:
36488-
//
36489-
// example
36490-
Name *string `json:"Name,omitempty" xml:"Name,omitempty"`
36491-
}
36492-
36493-
func (s UpdateListShrinkRequest) String() string {
36494-
return tea.Prettify(s)
36495-
}
36496-
36497-
func (s UpdateListShrinkRequest) GoString() string {
36498-
return s.String()
36499-
}
36500-
36501-
func (s *UpdateListShrinkRequest) SetDescription(v string) *UpdateListShrinkRequest {
36502-
s.Description = &v
36503-
return s
36504-
}
36505-
36506-
func (s *UpdateListShrinkRequest) SetId(v int64) *UpdateListShrinkRequest {
36507-
s.Id = &v
36508-
return s
36509-
}
36510-
36511-
func (s *UpdateListShrinkRequest) SetItemsShrink(v string) *UpdateListShrinkRequest {
36512-
s.ItemsShrink = &v
36513-
return s
36514-
}
36515-
36516-
func (s *UpdateListShrinkRequest) SetName(v string) *UpdateListShrinkRequest {
36517-
s.Name = &v
36518-
return s
36519-
}
36520-
36521-
type UpdateListResponseBody struct {
36522-
// The request ID.
36523-
//
36524-
// example:
36525-
//
36526-
// 36af3fcc-43d0-441c-86b1-428951dc8225
36527-
RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
36528-
}
36529-
36530-
func (s UpdateListResponseBody) String() string {
36531-
return tea.Prettify(s)
36532-
}
36533-
36534-
func (s UpdateListResponseBody) GoString() string {
36535-
return s.String()
36536-
}
36537-
36538-
func (s *UpdateListResponseBody) SetRequestId(v string) *UpdateListResponseBody {
36539-
s.RequestId = &v
36540-
return s
36541-
}
36542-
36543-
type UpdateListResponse struct {
36544-
Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"`
36545-
StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
36546-
Body *UpdateListResponseBody `json:"body,omitempty" xml:"body,omitempty"`
36547-
}
36548-
36549-
func (s UpdateListResponse) String() string {
36550-
return tea.Prettify(s)
36551-
}
36552-
36553-
func (s UpdateListResponse) GoString() string {
36554-
return s.String()
36555-
}
36556-
36557-
func (s *UpdateListResponse) SetHeaders(v map[string]*string) *UpdateListResponse {
36558-
s.Headers = v
36559-
return s
36560-
}
36561-
36562-
func (s *UpdateListResponse) SetStatusCode(v int32) *UpdateListResponse {
36563-
s.StatusCode = &v
36564-
return s
36565-
}
36566-
36567-
func (s *UpdateListResponse) SetBody(v *UpdateListResponseBody) *UpdateListResponse {
36568-
s.Body = v
36569-
return s
36570-
}
36571-
3657236407
type UpdateOriginProtectionRequest struct {
3657336408
// The IP convergence status.
3657436409
//
@@ -51853,84 +51688,6 @@ func (client *Client) UpdateKvNamespace(request *UpdateKvNamespaceRequest) (_res
5185351688
return _result, _err
5185451689
}
5185551690

51856-
// Summary:
51857-
//
51858-
// Updates a custom list.
51859-
//
51860-
// @param tmpReq - UpdateListRequest
51861-
//
51862-
// @param runtime - runtime options for this request RuntimeOptions
51863-
//
51864-
// @return UpdateListResponse
51865-
func (client *Client) UpdateListWithOptions(tmpReq *UpdateListRequest, runtime *util.RuntimeOptions) (_result *UpdateListResponse, _err error) {
51866-
_err = util.ValidateModel(tmpReq)
51867-
if _err != nil {
51868-
return _result, _err
51869-
}
51870-
request := &UpdateListShrinkRequest{}
51871-
openapiutil.Convert(tmpReq, request)
51872-
if !tea.BoolValue(util.IsUnset(tmpReq.Items)) {
51873-
request.ItemsShrink = openapiutil.ArrayToStringWithSpecifiedStyle(tmpReq.Items, tea.String("Items"), tea.String("json"))
51874-
}
51875-
51876-
body := map[string]interface{}{}
51877-
if !tea.BoolValue(util.IsUnset(request.Description)) {
51878-
body["Description"] = request.Description
51879-
}
51880-
51881-
if !tea.BoolValue(util.IsUnset(request.Id)) {
51882-
body["Id"] = request.Id
51883-
}
51884-
51885-
if !tea.BoolValue(util.IsUnset(request.ItemsShrink)) {
51886-
body["Items"] = request.ItemsShrink
51887-
}
51888-
51889-
if !tea.BoolValue(util.IsUnset(request.Name)) {
51890-
body["Name"] = request.Name
51891-
}
51892-
51893-
req := &openapi.OpenApiRequest{
51894-
Body: openapiutil.ParseToMap(body),
51895-
}
51896-
params := &openapi.Params{
51897-
Action: tea.String("UpdateList"),
51898-
Version: tea.String("2024-09-10"),
51899-
Protocol: tea.String("HTTPS"),
51900-
Pathname: tea.String("/"),
51901-
Method: tea.String("POST"),
51902-
AuthType: tea.String("AK"),
51903-
Style: tea.String("RPC"),
51904-
ReqBodyType: tea.String("formData"),
51905-
BodyType: tea.String("json"),
51906-
}
51907-
_result = &UpdateListResponse{}
51908-
_body, _err := client.CallApi(params, req, runtime)
51909-
if _err != nil {
51910-
return _result, _err
51911-
}
51912-
_err = tea.Convert(_body, &_result)
51913-
return _result, _err
51914-
}
51915-
51916-
// Summary:
51917-
//
51918-
// Updates a custom list.
51919-
//
51920-
// @param request - UpdateListRequest
51921-
//
51922-
// @return UpdateListResponse
51923-
func (client *Client) UpdateList(request *UpdateListRequest) (_result *UpdateListResponse, _err error) {
51924-
runtime := &util.RuntimeOptions{}
51925-
_result = &UpdateListResponse{}
51926-
_body, _err := client.UpdateListWithOptions(request, runtime)
51927-
if _err != nil {
51928-
return _result, _err
51929-
}
51930-
_result = _body
51931-
return _result, _err
51932-
}
51933-
5193451691
// Summary:
5193551692
//
5193651693
// Enables or disables IP convergence.

0 commit comments

Comments
 (0)