| // This file is auto-generated, don't edit it. Thanks. |
| package client |
| |
| import ( |
| util "github.com/alibabacloud-go/tea-utils/v2/service" |
| openapi "github.com/alibabacloud-go/darabonba-openapi/v2/client" |
| "github.com/alibabacloud-go/tea/tea" |
| ) |
| |
| // Description: |
| // |
| // EventBus Controller apis: |
| // |
| // createEventBus * |
| // |
| // getEventBus * |
| // |
| // deleteEventBus * |
| // |
| // listEventBuses * |
| type CreateEventBusRequest struct { |
| // The description of the event bus. |
| // |
| // example: |
| // |
| // demo |
| Description *string `json:"description,omitempty" xml:"description,omitempty"` |
| // The name of the event bus. This parameter is required. |
| // |
| // example: |
| // |
| // MyEventBus |
| EventBusName *string `json:"eventBusName,omitempty" xml:"eventBusName,omitempty"` |
| } |
| |
| func (s CreateEventBusRequest) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s CreateEventBusRequest) GoString() string { |
| return s.String() |
| } |
| |
| func (s *CreateEventBusRequest) SetDescription(v string) *CreateEventBusRequest { |
| s.Description = &v |
| return s |
| } |
| |
| func (s *CreateEventBusRequest) SetEventBusName(v string) *CreateEventBusRequest { |
| s.EventBusName = &v |
| return s |
| } |
| |
| type CreateEventBusResponseBody struct { |
| // The returned response code. The value Success indicates that the request is successful. Other values indicate that the request failed. For more information about error codes, see Error codes. |
| // |
| // example: |
| // |
| // Success |
| Code *string `json:"code,omitempty" xml:"code,omitempty"` |
| // The name of the event bus. This parameter is required. |
| // |
| // example: |
| // |
| // MyEventBus |
| EventBusName *string `json:"eventBusName,omitempty" xml:"eventBusName,omitempty"` |
| // The returned error message. |
| // |
| // example: |
| // |
| // The event bus [xxxx] not existed! |
| Message *string `json:"message,omitempty" xml:"message,omitempty"` |
| // The request ID. |
| // |
| // example: |
| // |
| // A995F07C-E503-5881-9962-9CECA8566876 |
| RequestId *string `json:"requestId,omitempty" xml:"requestId,omitempty"` |
| // Indicates whether the request is successful. The value true indicates that the request is successful. |
| // |
| // example: |
| // |
| // true |
| Success *bool `json:"success,omitempty" xml:"success,omitempty"` |
| } |
| |
| func (s CreateEventBusResponseBody) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s CreateEventBusResponseBody) GoString() string { |
| return s.String() |
| } |
| |
| func (s *CreateEventBusResponseBody) SetCode(v string) *CreateEventBusResponseBody { |
| s.Code = &v |
| return s |
| } |
| |
| func (s *CreateEventBusResponseBody) SetEventBusName(v string) *CreateEventBusResponseBody { |
| s.EventBusName = &v |
| return s |
| } |
| |
| func (s *CreateEventBusResponseBody) SetMessage(v string) *CreateEventBusResponseBody { |
| s.Message = &v |
| return s |
| } |
| |
| func (s *CreateEventBusResponseBody) SetRequestId(v string) *CreateEventBusResponseBody { |
| s.RequestId = &v |
| return s |
| } |
| |
| func (s *CreateEventBusResponseBody) SetSuccess(v bool) *CreateEventBusResponseBody { |
| s.Success = &v |
| return s |
| } |
| |
| type CreateEventBusResponse struct { |
| Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` |
| StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` |
| Body *CreateEventBusResponseBody `json:"body,omitempty" xml:"body,omitempty"` |
| } |
| |
| func (s CreateEventBusResponse) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s CreateEventBusResponse) GoString() string { |
| return s.String() |
| } |
| |
| func (s *CreateEventBusResponse) SetHeaders(v map[string]*string) *CreateEventBusResponse { |
| s.Headers = v |
| return s |
| } |
| |
| func (s *CreateEventBusResponse) SetStatusCode(v int32) *CreateEventBusResponse { |
| s.StatusCode = &v |
| return s |
| } |
| |
| func (s *CreateEventBusResponse) SetBody(v *CreateEventBusResponseBody) *CreateEventBusResponse { |
| s.Body = v |
| return s |
| } |
| |
| type GetEventBusRequest struct { |
| // The name of the event bus. This parameter is required. |
| // |
| // example: |
| // |
| // MyEventBus |
| EventBusName *string `json:"eventBusName,omitempty" xml:"eventBusName,omitempty"` |
| } |
| |
| func (s GetEventBusRequest) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s GetEventBusRequest) GoString() string { |
| return s.String() |
| } |
| |
| func (s *GetEventBusRequest) SetEventBusName(v string) *GetEventBusRequest { |
| s.EventBusName = &v |
| return s |
| } |
| |
| type GetEventBusResponseBody struct { |
| // The response code. The value Success indicates that the request is successful. |
| // |
| // example: |
| // |
| // Success |
| Code *string `json:"code,omitempty" xml:"code,omitempty"` |
| // The timestamp that indicates when the event bus was created. |
| // |
| // example: |
| // |
| // 1641781825000 |
| CreateTimestamp *int64 `json:"createTimestamp,omitempty" xml:"createTimestamp,omitempty"` |
| // The description of the event bus. |
| // |
| // example: |
| // |
| // demo |
| Description *string `json:"description,omitempty" xml:"description,omitempty"` |
| // The name of the event bus. |
| // |
| // example: |
| // |
| // MyEventBus |
| EventBusName *string `json:"eventBusName,omitempty" xml:"eventBusName,omitempty"` |
| // The error message that is returned if the request failed. |
| // |
| // example: |
| // |
| // EventBusNotExist |
| Message *string `json:"message,omitempty" xml:"message,omitempty"` |
| // The request ID. |
| // |
| // example: |
| // |
| // d5bfc188-4452-4ba7-b73a-a9005e522439 |
| RequestId *string `json:"requestId,omitempty" xml:"requestId,omitempty"` |
| } |
| |
| func (s GetEventBusResponseBody) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s GetEventBusResponseBody) GoString() string { |
| return s.String() |
| } |
| |
| func (s *GetEventBusResponseBody) SetCode(v string) *GetEventBusResponseBody { |
| s.Code = &v |
| return s |
| } |
| |
| func (s *GetEventBusResponseBody) SetCreateTimestamp(v int64) *GetEventBusResponseBody { |
| s.CreateTimestamp = &v |
| return s |
| } |
| |
| func (s *GetEventBusResponseBody) SetDescription(v string) *GetEventBusResponseBody { |
| s.Description = &v |
| return s |
| } |
| |
| func (s *GetEventBusResponseBody) SetEventBusName(v string) *GetEventBusResponseBody { |
| s.EventBusName = &v |
| return s |
| } |
| |
| func (s *GetEventBusResponseBody) SetMessage(v string) *GetEventBusResponseBody { |
| s.Message = &v |
| return s |
| } |
| |
| func (s *GetEventBusResponseBody) SetRequestId(v string) *GetEventBusResponseBody { |
| s.RequestId = &v |
| return s |
| } |
| |
| type GetEventBusResponse struct { |
| Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` |
| StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` |
| Body *GetEventBusResponseBody `json:"body,omitempty" xml:"body,omitempty"` |
| } |
| |
| func (s GetEventBusResponse) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s GetEventBusResponse) GoString() string { |
| return s.String() |
| } |
| |
| func (s *GetEventBusResponse) SetHeaders(v map[string]*string) *GetEventBusResponse { |
| s.Headers = v |
| return s |
| } |
| |
| func (s *GetEventBusResponse) SetStatusCode(v int32) *GetEventBusResponse { |
| s.StatusCode = &v |
| return s |
| } |
| |
| func (s *GetEventBusResponse) SetBody(v *GetEventBusResponseBody) *GetEventBusResponse { |
| s.Body = v |
| return s |
| } |
| |
| type ListEventBusesRequest struct { |
| // The maximum number of entries to be returned in a call. You can use this parameter and NextToken to implement paging. Note: Up to 100 entries can be returned in a call. |
| // |
| // example: |
| // |
| // 10 |
| MaxResults *int32 `json:"maxResults,omitempty" xml:"maxResults,omitempty"` |
| // If you set Limit and excess return values exist, this parameter is returned. |
| // |
| // example: |
| // |
| // 10 |
| NextToken *string `json:"nextToken,omitempty" xml:"nextToken,omitempty"` |
| } |
| |
| func (s ListEventBusesRequest) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s ListEventBusesRequest) GoString() string { |
| return s.String() |
| } |
| |
| func (s *ListEventBusesRequest) SetMaxResults(v int32) *ListEventBusesRequest { |
| s.MaxResults = &v |
| return s |
| } |
| |
| func (s *ListEventBusesRequest) SetNextToken(v string) *ListEventBusesRequest { |
| s.NextToken = &v |
| return s |
| } |
| |
| type ListEventBusesResponseBody struct { |
| // The returned HTTP status code. The HTTP status code 200 indicates that the request is successful. |
| // |
| // example: |
| // |
| // 200 |
| Code *string `json:"code,omitempty" xml:"code,omitempty"` |
| // The timestamp that indicates when the event bus was created. |
| EventBuses []*ListEventBusesResponseBodyEventBuses `json:"eventBuses,omitempty" xml:"eventBuses,omitempty" type:"Repeated"` |
| // The returned error message. |
| // |
| // example: |
| // |
| // InvalidArgument |
| Message *string `json:"message,omitempty" xml:"message,omitempty"` |
| // The request ID. |
| // |
| // example: |
| // |
| // D1DCF64A-3F2C-5323-ADCB-3F4DF30FAD2D |
| RequestId *string `json:"requestId,omitempty" xml:"requestId,omitempty"` |
| // If excess return values exist, this parameter is returned. |
| // |
| // example: |
| // |
| // 10 |
| NextToken *string `json:"nextToken,omitempty" xml:"nextToken,omitempty"` |
| // The total number of entries. |
| // |
| // example: |
| // |
| // 2 |
| Total *int `json:"total,omitempty" xml:"total,omitempty"` |
| // If you set Limit and excess return values exist, this parameter is returned. |
| // |
| // example: |
| // |
| // 10 |
| MaxResults *int32 `json:"maxResults,omitempty" xml:"maxResults,omitempty"` |
| } |
| |
| func (s ListEventBusesResponseBody) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s ListEventBusesResponseBody) GoString() string { |
| return s.String() |
| } |
| |
| func (s *ListEventBusesResponseBody) SetCode(v string) *ListEventBusesResponseBody { |
| s.Code = &v |
| return s |
| } |
| |
| func (s *ListEventBusesResponseBody) SetEventBuses(v []*ListEventBusesResponseBodyEventBuses) *ListEventBusesResponseBody { |
| s.EventBuses = v |
| return s |
| } |
| |
| func (s *ListEventBusesResponseBody) SetMessage(v string) *ListEventBusesResponseBody { |
| s.Message = &v |
| return s |
| } |
| |
| func (s *ListEventBusesResponseBody) SetRequestId(v string) *ListEventBusesResponseBody { |
| s.RequestId = &v |
| return s |
| } |
| |
| func (s *ListEventBusesResponseBody) SetNextToken(v string) *ListEventBusesResponseBody { |
| s.NextToken = &v |
| return s |
| } |
| |
| func (s *ListEventBusesResponseBody) SetTotal(v int) *ListEventBusesResponseBody { |
| s.Total = &v |
| return s |
| } |
| |
| func (s *ListEventBusesResponseBody) SetMaxResults(v int32) *ListEventBusesResponseBody { |
| s.MaxResults = &v |
| return s |
| } |
| |
| type ListEventBusesResponseBodyEventBuses struct { |
| // The description of the queried event bus. |
| // |
| // example: |
| // |
| // bus_description |
| Description *string `json:"description,omitempty" xml:"description,omitempty"` |
| // The name of the queried event bus. |
| // |
| // example: |
| // |
| // default |
| EventBusName *string `json:"eventBusName,omitempty" xml:"eventBusName,omitempty"` |
| } |
| |
| func (s ListEventBusesResponseBodyEventBuses) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s ListEventBusesResponseBodyEventBuses) GoString() string { |
| return s.String() |
| } |
| |
| func (s *ListEventBusesResponseBodyEventBuses) SetDescription(v string) *ListEventBusesResponseBodyEventBuses { |
| s.Description = &v |
| return s |
| } |
| |
| func (s *ListEventBusesResponseBodyEventBuses) SetEventBusName(v string) *ListEventBusesResponseBodyEventBuses { |
| s.EventBusName = &v |
| return s |
| } |
| |
| type ListEventBusesResponse struct { |
| Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` |
| StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` |
| Body *ListEventBusesResponseBody `json:"body,omitempty" xml:"body,omitempty"` |
| } |
| |
| func (s ListEventBusesResponse) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s ListEventBusesResponse) GoString() string { |
| return s.String() |
| } |
| |
| func (s *ListEventBusesResponse) SetHeaders(v map[string]*string) *ListEventBusesResponse { |
| s.Headers = v |
| return s |
| } |
| |
| func (s *ListEventBusesResponse) SetStatusCode(v int32) *ListEventBusesResponse { |
| s.StatusCode = &v |
| return s |
| } |
| |
| func (s *ListEventBusesResponse) SetBody(v *ListEventBusesResponseBody) *ListEventBusesResponse { |
| s.Body = v |
| return s |
| } |
| |
| type DeleteEventBusRequest struct { |
| // The name of the event bus. This parameter is required. |
| // |
| // example: |
| // |
| // MyEventBus |
| EventBusName *string `json:"eventBusName,omitempty" xml:"eventBusName,omitempty"` |
| } |
| |
| func (s DeleteEventBusRequest) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s DeleteEventBusRequest) GoString() string { |
| return s.String() |
| } |
| |
| func (s *DeleteEventBusRequest) SetEventBusName(v string) *DeleteEventBusRequest { |
| s.EventBusName = &v |
| return s |
| } |
| |
| type DeleteEventBusResponseBody struct { |
| // The returned HTTP status code. The HTTP status code 200 indicates that the request is successful. |
| // |
| // example: |
| // |
| // 200 |
| Code *string `json:"code,omitempty" xml:"code,omitempty"` |
| // The returned error message. |
| // |
| // example: |
| // |
| // EventBusNotExist |
| Message *string `json:"message,omitempty" xml:"message,omitempty"` |
| // The request ID. |
| // |
| // example: |
| // |
| // C229E140-1A5C-5D55-8904-CFC5BA4CAA98 |
| RequestId *string `json:"requestId,omitempty" xml:"requestId,omitempty"` |
| } |
| |
| func (s DeleteEventBusResponseBody) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s DeleteEventBusResponseBody) GoString() string { |
| return s.String() |
| } |
| |
| func (s *DeleteEventBusResponseBody) SetCode(v string) *DeleteEventBusResponseBody { |
| s.Code = &v |
| return s |
| } |
| |
| func (s *DeleteEventBusResponseBody) SetMessage(v string) *DeleteEventBusResponseBody { |
| s.Message = &v |
| return s |
| } |
| |
| func (s *DeleteEventBusResponseBody) SetRequestId(v string) *DeleteEventBusResponseBody { |
| s.RequestId = &v |
| return s |
| } |
| |
| type DeleteEventBusResponse struct { |
| Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` |
| StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` |
| Body *DeleteEventBusResponseBody `json:"body,omitempty" xml:"body,omitempty"` |
| } |
| |
| func (s DeleteEventBusResponse) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s DeleteEventBusResponse) GoString() string { |
| return s.String() |
| } |
| |
| func (s *DeleteEventBusResponse) SetHeaders(v map[string]*string) *DeleteEventBusResponse { |
| s.Headers = v |
| return s |
| } |
| |
| func (s *DeleteEventBusResponse) SetStatusCode(v int32) *DeleteEventBusResponse { |
| s.StatusCode = &v |
| return s |
| } |
| |
| func (s *DeleteEventBusResponse) SetBody(v *DeleteEventBusResponseBody) *DeleteEventBusResponse { |
| s.Body = v |
| return s |
| } |
| |
| // Description: |
| // |
| // ApiDestination Controller apis: |
| // |
| // createApiDestination * |
| // |
| // updateApiDestination * |
| // |
| // getApiDestination * |
| // |
| // deleteApiDestination * |
| // |
| // listApiDestinations * |
| type CreateApiDestinationRequest struct { |
| // The name of the API destination. The name must be 2 to 127 characters in length. This parameter is required. |
| // |
| // example: |
| // |
| // api-destination-name |
| ApiDestinationName *string `json:"apiDestinationName,omitempty" xml:"apiDestinationName,omitempty"` |
| // The name of the connection. The name must be 2 to 127 characters in length. Before you configure this parameter, you must call the CreateConnection operation to create a connection. Then, set this parameter to the name of the connection that you created. This parameter is required. |
| // |
| // example: |
| // |
| // connection-name |
| ConnectionName *string `json:"connectionName,omitempty" xml:"connectionName,omitempty"` |
| // The description of the API destination. The description can be up to 255 characters in length. |
| Description *string `json:"description,omitempty" xml:"description,omitempty"` |
| // The parameters that are configured for the API destination. This parameter is required. |
| HttpApiParameters *CreateApiDestinationRequestHttpApiParameters `json:"httpApiParameters,omitempty" xml:"httpApiParameters,omitempty" type:"Struct"` |
| // TODO |
| InvocationRateLimitPerSecond *int `json:"invocationRateLimitPerSecond,omitempty" xml:"invocationRateLimitPerSecond,omitempty"` |
| } |
| |
| func (s CreateApiDestinationRequest) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s CreateApiDestinationRequest) GoString() string { |
| return s.String() |
| } |
| |
| func (s *CreateApiDestinationRequest) SetApiDestinationName(v string) *CreateApiDestinationRequest { |
| s.ApiDestinationName = &v |
| return s |
| } |
| |
| func (s *CreateApiDestinationRequest) SetConnectionName(v string) *CreateApiDestinationRequest { |
| s.ConnectionName = &v |
| return s |
| } |
| |
| func (s *CreateApiDestinationRequest) SetDescription(v string) *CreateApiDestinationRequest { |
| s.Description = &v |
| return s |
| } |
| |
| func (s *CreateApiDestinationRequest) SetHttpApiParameters(v *CreateApiDestinationRequestHttpApiParameters) *CreateApiDestinationRequest { |
| s.HttpApiParameters = v |
| return s |
| } |
| |
| func (s *CreateApiDestinationRequest) SetInvocationRateLimitPerSecond(v int) *CreateApiDestinationRequest { |
| s.InvocationRateLimitPerSecond = &v |
| return s |
| } |
| |
| type CreateApiDestinationRequestHttpApiParameters struct { |
| // The endpoint of the API destination. The endpoint can be up to 127 characters in length. This parameter is required. |
| // |
| // example: |
| // |
| // http://127.0.0.1:8001/api |
| Endpoint *string `json:"endpoint,omitempty" xml:"endpoint,omitempty"` |
| // The HTTP request method. Valid values: |
| // |
| // |
| // - GET |
| // |
| // - POST |
| // |
| // - HEAD |
| // |
| // - DELETE |
| // |
| // - PUT |
| // |
| // - PATCH |
| // |
| // |
| // This parameter is required. |
| // |
| // example: |
| // |
| // POST |
| Method *string `json:"method,omitempty" xml:"method,omitempty"` |
| // TODO |
| ApiParameters []*CreateApiDestinationRequestHttpApiParametersApiParameters `json:"apiParameters,omitempty" xml:"apiParameters,omitempty" type:"Repeated"` |
| } |
| |
| func (s CreateApiDestinationRequestHttpApiParameters) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s CreateApiDestinationRequestHttpApiParameters) GoString() string { |
| return s.String() |
| } |
| |
| func (s *CreateApiDestinationRequestHttpApiParameters) SetEndpoint(v string) *CreateApiDestinationRequestHttpApiParameters { |
| s.Endpoint = &v |
| return s |
| } |
| |
| func (s *CreateApiDestinationRequestHttpApiParameters) SetMethod(v string) *CreateApiDestinationRequestHttpApiParameters { |
| s.Method = &v |
| return s |
| } |
| |
| func (s *CreateApiDestinationRequestHttpApiParameters) SetApiParameters(v []*CreateApiDestinationRequestHttpApiParametersApiParameters) *CreateApiDestinationRequestHttpApiParameters { |
| s.ApiParameters = v |
| return s |
| } |
| |
| type CreateApiDestinationRequestHttpApiParametersApiParameters struct { |
| Name *string `json:"name,omitempty" xml:"name,omitempty"` |
| // The description of the API destination. The description can be up to 255 characters in length. |
| Description *string `json:"description,omitempty" xml:"description,omitempty"` |
| Type *string `json:"type,omitempty" xml:"type,omitempty"` |
| DefaultValue *string `json:"defaultValue,omitempty" xml:"defaultValue,omitempty"` |
| In *string `json:"in,omitempty" xml:"in,omitempty"` |
| } |
| |
| func (s CreateApiDestinationRequestHttpApiParametersApiParameters) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s CreateApiDestinationRequestHttpApiParametersApiParameters) GoString() string { |
| return s.String() |
| } |
| |
| func (s *CreateApiDestinationRequestHttpApiParametersApiParameters) SetName(v string) *CreateApiDestinationRequestHttpApiParametersApiParameters { |
| s.Name = &v |
| return s |
| } |
| |
| func (s *CreateApiDestinationRequestHttpApiParametersApiParameters) SetDescription(v string) *CreateApiDestinationRequestHttpApiParametersApiParameters { |
| s.Description = &v |
| return s |
| } |
| |
| func (s *CreateApiDestinationRequestHttpApiParametersApiParameters) SetType(v string) *CreateApiDestinationRequestHttpApiParametersApiParameters { |
| s.Type = &v |
| return s |
| } |
| |
| func (s *CreateApiDestinationRequestHttpApiParametersApiParameters) SetDefaultValue(v string) *CreateApiDestinationRequestHttpApiParametersApiParameters { |
| s.DefaultValue = &v |
| return s |
| } |
| |
| func (s *CreateApiDestinationRequestHttpApiParametersApiParameters) SetIn(v string) *CreateApiDestinationRequestHttpApiParametersApiParameters { |
| s.In = &v |
| return s |
| } |
| |
| type CreateApiDestinationResponseBody struct { |
| // The returned response code. The value Success indicates that the request is successful. |
| // |
| // example: |
| // |
| // Success |
| Code *string `json:"code,omitempty" xml:"code,omitempty"` |
| // The name of the API destination. |
| // |
| // example: |
| // |
| // ApiDestinationName |
| ApiDestinationName *string `json:"apiDestinationName,omitempty" xml:"apiDestinationName,omitempty"` |
| // The returned message. |
| // |
| // example: |
| // |
| // success |
| Message *string `json:"message,omitempty" xml:"message,omitempty"` |
| // The request ID. |
| // |
| // example: |
| // |
| // 5DAF96FB-A4B6-548C-B999-0BFDCB2261B9 |
| RequestId *string `json:"requestId,omitempty" xml:"requestId,omitempty"` |
| } |
| |
| func (s CreateApiDestinationResponseBody) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s CreateApiDestinationResponseBody) GoString() string { |
| return s.String() |
| } |
| |
| func (s *CreateApiDestinationResponseBody) SetCode(v string) *CreateApiDestinationResponseBody { |
| s.Code = &v |
| return s |
| } |
| |
| func (s *CreateApiDestinationResponseBody) SetApiDestinationName(v string) *CreateApiDestinationResponseBody { |
| s.ApiDestinationName = &v |
| return s |
| } |
| |
| func (s *CreateApiDestinationResponseBody) SetMessage(v string) *CreateApiDestinationResponseBody { |
| s.Message = &v |
| return s |
| } |
| |
| func (s *CreateApiDestinationResponseBody) SetRequestId(v string) *CreateApiDestinationResponseBody { |
| s.RequestId = &v |
| return s |
| } |
| |
| type CreateApiDestinationResponse struct { |
| Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` |
| StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` |
| Body *CreateApiDestinationResponseBody `json:"body,omitempty" xml:"body,omitempty"` |
| } |
| |
| func (s CreateApiDestinationResponse) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s CreateApiDestinationResponse) GoString() string { |
| return s.String() |
| } |
| |
| func (s *CreateApiDestinationResponse) SetHeaders(v map[string]*string) *CreateApiDestinationResponse { |
| s.Headers = v |
| return s |
| } |
| |
| func (s *CreateApiDestinationResponse) SetStatusCode(v int32) *CreateApiDestinationResponse { |
| s.StatusCode = &v |
| return s |
| } |
| |
| func (s *CreateApiDestinationResponse) SetBody(v *CreateApiDestinationResponseBody) *CreateApiDestinationResponse { |
| s.Body = v |
| return s |
| } |
| |
| type UpdateApiDestinationRequest struct { |
| // The name of the API destination. The name must be 2 to 127 characters in length. This parameter is required. |
| // |
| // example: |
| // |
| // api-destination-name |
| ApiDestinationName *string `json:"apiDestinationName,omitempty" xml:"apiDestinationName,omitempty"` |
| // The name of the connection. The name must be 2 to 127 characters in length. Before you configure this parameter, you must call the CreateConnection operation to create a connection. Then, set this parameter to the name of the connection that you created. This parameter is required. |
| // |
| // example: |
| // |
| // connection-name |
| ConnectionName *string `json:"connectionName,omitempty" xml:"connectionName,omitempty"` |
| // The description of the API destination. The description can be up to 255 characters in length. |
| Description *string `json:"description,omitempty" xml:"description,omitempty"` |
| // The parameters that are configured for the API destination. This parameter is required. |
| HttpApiParameters *UpdateApiDestinationRequestHttpApiParameters `json:"httpApiParameters,omitempty" xml:"httpApiParameters,omitempty" type:"Struct"` |
| // TODO |
| InvocationRateLimitPerSecond *int `json:"invocationRateLimitPerSecond,omitempty" xml:"invocationRateLimitPerSecond,omitempty"` |
| } |
| |
| func (s UpdateApiDestinationRequest) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s UpdateApiDestinationRequest) GoString() string { |
| return s.String() |
| } |
| |
| func (s *UpdateApiDestinationRequest) SetApiDestinationName(v string) *UpdateApiDestinationRequest { |
| s.ApiDestinationName = &v |
| return s |
| } |
| |
| func (s *UpdateApiDestinationRequest) SetConnectionName(v string) *UpdateApiDestinationRequest { |
| s.ConnectionName = &v |
| return s |
| } |
| |
| func (s *UpdateApiDestinationRequest) SetDescription(v string) *UpdateApiDestinationRequest { |
| s.Description = &v |
| return s |
| } |
| |
| func (s *UpdateApiDestinationRequest) SetHttpApiParameters(v *UpdateApiDestinationRequestHttpApiParameters) *UpdateApiDestinationRequest { |
| s.HttpApiParameters = v |
| return s |
| } |
| |
| func (s *UpdateApiDestinationRequest) SetInvocationRateLimitPerSecond(v int) *UpdateApiDestinationRequest { |
| s.InvocationRateLimitPerSecond = &v |
| return s |
| } |
| |
| type UpdateApiDestinationRequestHttpApiParameters struct { |
| // The endpoint of the API destination. The endpoint can be up to 127 characters in length. This parameter is required. |
| // |
| // example: |
| // |
| // http://127.0.0.1:8001/api |
| Endpoint *string `json:"endpoint,omitempty" xml:"endpoint,omitempty"` |
| // The HTTP request method. Valid values: |
| // |
| // |
| // - GET |
| // |
| // - POST |
| // |
| // - HEAD |
| // |
| // - DELETE |
| // |
| // - PUT |
| // |
| // - PATCH |
| // |
| // |
| // This parameter is required. |
| // |
| // example: |
| // |
| // POST |
| Method *string `json:"method,omitempty" xml:"method,omitempty"` |
| // TODO |
| ApiParameters []*UpdateApiDestinationRequestHttpApiParametersApiParameters `json:"apiParameters,omitempty" xml:"apiParameters,omitempty" type:"Repeated"` |
| } |
| |
| func (s UpdateApiDestinationRequestHttpApiParameters) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s UpdateApiDestinationRequestHttpApiParameters) GoString() string { |
| return s.String() |
| } |
| |
| func (s *UpdateApiDestinationRequestHttpApiParameters) SetEndpoint(v string) *UpdateApiDestinationRequestHttpApiParameters { |
| s.Endpoint = &v |
| return s |
| } |
| |
| func (s *UpdateApiDestinationRequestHttpApiParameters) SetMethod(v string) *UpdateApiDestinationRequestHttpApiParameters { |
| s.Method = &v |
| return s |
| } |
| |
| func (s *UpdateApiDestinationRequestHttpApiParameters) SetApiParameters(v []*UpdateApiDestinationRequestHttpApiParametersApiParameters) *UpdateApiDestinationRequestHttpApiParameters { |
| s.ApiParameters = v |
| return s |
| } |
| |
| type UpdateApiDestinationRequestHttpApiParametersApiParameters struct { |
| Name *string `json:"name,omitempty" xml:"name,omitempty"` |
| // The description of the API destination. The description can be up to 255 characters in length. |
| Description *string `json:"description,omitempty" xml:"description,omitempty"` |
| Type *string `json:"type,omitempty" xml:"type,omitempty"` |
| DefaultValue *string `json:"defaultValue,omitempty" xml:"defaultValue,omitempty"` |
| In *string `json:"in,omitempty" xml:"in,omitempty"` |
| } |
| |
| func (s UpdateApiDestinationRequestHttpApiParametersApiParameters) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s UpdateApiDestinationRequestHttpApiParametersApiParameters) GoString() string { |
| return s.String() |
| } |
| |
| func (s *UpdateApiDestinationRequestHttpApiParametersApiParameters) SetName(v string) *UpdateApiDestinationRequestHttpApiParametersApiParameters { |
| s.Name = &v |
| return s |
| } |
| |
| func (s *UpdateApiDestinationRequestHttpApiParametersApiParameters) SetDescription(v string) *UpdateApiDestinationRequestHttpApiParametersApiParameters { |
| s.Description = &v |
| return s |
| } |
| |
| func (s *UpdateApiDestinationRequestHttpApiParametersApiParameters) SetType(v string) *UpdateApiDestinationRequestHttpApiParametersApiParameters { |
| s.Type = &v |
| return s |
| } |
| |
| func (s *UpdateApiDestinationRequestHttpApiParametersApiParameters) SetDefaultValue(v string) *UpdateApiDestinationRequestHttpApiParametersApiParameters { |
| s.DefaultValue = &v |
| return s |
| } |
| |
| func (s *UpdateApiDestinationRequestHttpApiParametersApiParameters) SetIn(v string) *UpdateApiDestinationRequestHttpApiParametersApiParameters { |
| s.In = &v |
| return s |
| } |
| |
| type UpdateApiDestinationResponseBody struct { |
| // The returned response code. The value Success indicates that the request is successful. |
| // |
| // example: |
| // |
| // Success |
| Code *string `json:"code,omitempty" xml:"code,omitempty"` |
| // The returned message. |
| // |
| // example: |
| // |
| // success |
| Message *string `json:"message,omitempty" xml:"message,omitempty"` |
| // The request ID. |
| // |
| // example: |
| // |
| // 5DAF96FB-A4B6-548C-B999-0BFDCB2261B9 |
| RequestId *string `json:"requestId,omitempty" xml:"requestId,omitempty"` |
| } |
| |
| func (s UpdateApiDestinationResponseBody) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s UpdateApiDestinationResponseBody) GoString() string { |
| return s.String() |
| } |
| |
| func (s *UpdateApiDestinationResponseBody) SetCode(v string) *UpdateApiDestinationResponseBody { |
| s.Code = &v |
| return s |
| } |
| |
| func (s *UpdateApiDestinationResponseBody) SetMessage(v string) *UpdateApiDestinationResponseBody { |
| s.Message = &v |
| return s |
| } |
| |
| func (s *UpdateApiDestinationResponseBody) SetRequestId(v string) *UpdateApiDestinationResponseBody { |
| s.RequestId = &v |
| return s |
| } |
| |
| type UpdateApiDestinationResponse struct { |
| Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` |
| StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` |
| Body *UpdateApiDestinationResponseBody `json:"body,omitempty" xml:"body,omitempty"` |
| } |
| |
| func (s UpdateApiDestinationResponse) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s UpdateApiDestinationResponse) GoString() string { |
| return s.String() |
| } |
| |
| func (s *UpdateApiDestinationResponse) SetHeaders(v map[string]*string) *UpdateApiDestinationResponse { |
| s.Headers = v |
| return s |
| } |
| |
| func (s *UpdateApiDestinationResponse) SetStatusCode(v int32) *UpdateApiDestinationResponse { |
| s.StatusCode = &v |
| return s |
| } |
| |
| func (s *UpdateApiDestinationResponse) SetBody(v *UpdateApiDestinationResponseBody) *UpdateApiDestinationResponse { |
| s.Body = v |
| return s |
| } |
| |
| type GetApiDestinationRequest struct { |
| // The name of the API destination. This parameter is required. |
| // |
| // example: |
| // |
| // api-destination-name |
| ApiDestinationName *string `json:"apiDestinationName,omitempty" xml:"apiDestinationName,omitempty"` |
| } |
| |
| func (s GetApiDestinationRequest) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s GetApiDestinationRequest) GoString() string { |
| return s.String() |
| } |
| |
| func (s *GetApiDestinationRequest) SetApiDestinationName(v string) *GetApiDestinationRequest { |
| s.ApiDestinationName = &v |
| return s |
| } |
| |
| type GetApiDestinationResponseBody struct { |
| // The returned response code. The value Success indicates that the request is successful. |
| // |
| // example: |
| // |
| // Success |
| Code *string `json:"code,omitempty" xml:"code,omitempty"` |
| // The name of the API destination. |
| // |
| // example: |
| // |
| // api-destination-2 |
| ApiDestinationName *string `json:"apiDestinationName,omitempty" xml:"apiDestinationName,omitempty"` |
| // The connection name. |
| // |
| // example: |
| // |
| // connection-name |
| ConnectionName *string `json:"connectionName,omitempty" xml:"connectionName,omitempty"` |
| // The description of the connection. |
| // |
| // example: |
| // |
| // demo |
| Description *string `json:"description,omitempty" xml:"description,omitempty"` |
| // The time when the API destination was created. |
| // |
| // example: |
| // |
| // 1665223213000 |
| GmtCreate *int64 `json:"gmtCreate,omitempty" xml:"gmtCreate,omitempty"` |
| // The request parameters that are configured for the API destination. |
| HttpApiParameters *GetApiDestinationResponseBodyHttpApiParameters `json:"httpApiParameters,omitempty" xml:"httpApiParameters,omitempty" type:"Struct"` |
| // TODO |
| InvocationRateLimitPerSecond *int `json:"invocationRateLimitPerSecond,omitempty" xml:"invocationRateLimitPerSecond,omitempty"` |
| // The returned message. If the request is successful, success is returned. If the request failed, an error code is returned. |
| // |
| // example: |
| // |
| // success |
| Message *string `json:"message,omitempty" xml:"message,omitempty"` |
| // The request ID. |
| // |
| // example: |
| // |
| // B896B484-F16D-59DE-9E23-DD0E5C361108 |
| RequestId *string `json:"requestId,omitempty" xml:"requestId,omitempty"` |
| } |
| |
| func (s GetApiDestinationResponseBody) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s GetApiDestinationResponseBody) GoString() string { |
| return s.String() |
| } |
| |
| func (s *GetApiDestinationResponseBody) SetCode(v string) *GetApiDestinationResponseBody { |
| s.Code = &v |
| return s |
| } |
| |
| func (s *GetApiDestinationResponseBody) SetApiDestinationName(v string) *GetApiDestinationResponseBody { |
| s.ApiDestinationName = &v |
| return s |
| } |
| |
| func (s *GetApiDestinationResponseBody) SetConnectionName(v string) *GetApiDestinationResponseBody { |
| s.ConnectionName = &v |
| return s |
| } |
| |
| func (s *GetApiDestinationResponseBody) SetDescription(v string) *GetApiDestinationResponseBody { |
| s.Description = &v |
| return s |
| } |
| |
| func (s *GetApiDestinationResponseBody) SetGmtCreate(v int64) *GetApiDestinationResponseBody { |
| s.GmtCreate = &v |
| return s |
| } |
| |
| func (s *GetApiDestinationResponseBody) SetHttpApiParameters(v *GetApiDestinationResponseBodyHttpApiParameters) *GetApiDestinationResponseBody { |
| s.HttpApiParameters = v |
| return s |
| } |
| |
| func (s *GetApiDestinationResponseBody) SetInvocationRateLimitPerSecond(v int) *GetApiDestinationResponseBody { |
| s.InvocationRateLimitPerSecond = &v |
| return s |
| } |
| |
| func (s *GetApiDestinationResponseBody) SetMessage(v string) *GetApiDestinationResponseBody { |
| s.Message = &v |
| return s |
| } |
| |
| func (s *GetApiDestinationResponseBody) SetRequestId(v string) *GetApiDestinationResponseBody { |
| s.RequestId = &v |
| return s |
| } |
| |
| type GetApiDestinationResponseBodyHttpApiParameters struct { |
| // The endpoint of the API destination. |
| // |
| // example: |
| // |
| // http://127.0.0.1:8001/api |
| Endpoint *string `json:"endpoint,omitempty" xml:"endpoint,omitempty"` |
| // The HTTP request method. Valid values: |
| // |
| // - POST |
| // |
| // - GET |
| // |
| // - DELETE |
| // |
| // - PUT |
| // |
| // - HEAD |
| // |
| // - TRACE |
| // |
| // - PATCH |
| // |
| // example: |
| // |
| // POST |
| Method *string `json:"method,omitempty" xml:"method,omitempty"` |
| // TODO |
| ApiParameters []*GetApiDestinationResponseBodyHttpApiParametersApiParameters `json:"apiParameters,omitempty" xml:"apiParameters,omitempty" type:"Repeated"` |
| } |
| |
| func (s GetApiDestinationResponseBodyHttpApiParameters) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s GetApiDestinationResponseBodyHttpApiParameters) GoString() string { |
| return s.String() |
| } |
| |
| func (s *GetApiDestinationResponseBodyHttpApiParameters) SetEndpoint(v string) *GetApiDestinationResponseBodyHttpApiParameters { |
| s.Endpoint = &v |
| return s |
| } |
| |
| func (s *GetApiDestinationResponseBodyHttpApiParameters) SetMethod(v string) *GetApiDestinationResponseBodyHttpApiParameters { |
| s.Method = &v |
| return s |
| } |
| |
| func (s *GetApiDestinationResponseBodyHttpApiParameters) SetApiParameters(v []*GetApiDestinationResponseBodyHttpApiParametersApiParameters) *GetApiDestinationResponseBodyHttpApiParameters { |
| s.ApiParameters = v |
| return s |
| } |
| |
| type GetApiDestinationResponseBodyHttpApiParametersApiParameters struct { |
| Name *string `json:"name,omitempty" xml:"name,omitempty"` |
| // The description of the API destination. The description can be up to 255 characters in length. |
| Description *string `json:"description,omitempty" xml:"description,omitempty"` |
| Type *string `json:"type,omitempty" xml:"type,omitempty"` |
| DefaultValue *string `json:"defaultValue,omitempty" xml:"defaultValue,omitempty"` |
| In *string `json:"in,omitempty" xml:"in,omitempty"` |
| } |
| |
| func (s GetApiDestinationResponseBodyHttpApiParametersApiParameters) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s GetApiDestinationResponseBodyHttpApiParametersApiParameters) GoString() string { |
| return s.String() |
| } |
| |
| func (s *GetApiDestinationResponseBodyHttpApiParametersApiParameters) SetName(v string) *GetApiDestinationResponseBodyHttpApiParametersApiParameters { |
| s.Name = &v |
| return s |
| } |
| |
| func (s *GetApiDestinationResponseBodyHttpApiParametersApiParameters) SetDescription(v string) *GetApiDestinationResponseBodyHttpApiParametersApiParameters { |
| s.Description = &v |
| return s |
| } |
| |
| func (s *GetApiDestinationResponseBodyHttpApiParametersApiParameters) SetType(v string) *GetApiDestinationResponseBodyHttpApiParametersApiParameters { |
| s.Type = &v |
| return s |
| } |
| |
| func (s *GetApiDestinationResponseBodyHttpApiParametersApiParameters) SetDefaultValue(v string) *GetApiDestinationResponseBodyHttpApiParametersApiParameters { |
| s.DefaultValue = &v |
| return s |
| } |
| |
| func (s *GetApiDestinationResponseBodyHttpApiParametersApiParameters) SetIn(v string) *GetApiDestinationResponseBodyHttpApiParametersApiParameters { |
| s.In = &v |
| return s |
| } |
| |
| type GetApiDestinationResponse struct { |
| Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` |
| StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` |
| Body *GetApiDestinationResponseBody `json:"body,omitempty" xml:"body,omitempty"` |
| } |
| |
| func (s GetApiDestinationResponse) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s GetApiDestinationResponse) GoString() string { |
| return s.String() |
| } |
| |
| func (s *GetApiDestinationResponse) SetHeaders(v map[string]*string) *GetApiDestinationResponse { |
| s.Headers = v |
| return s |
| } |
| |
| func (s *GetApiDestinationResponse) SetStatusCode(v int32) *GetApiDestinationResponse { |
| s.StatusCode = &v |
| return s |
| } |
| |
| func (s *GetApiDestinationResponse) SetBody(v *GetApiDestinationResponseBody) *GetApiDestinationResponse { |
| s.Body = v |
| return s |
| } |
| |
| type DeleteApiDestinationRequest struct { |
| // The name of the API destination. This parameter is required. |
| // |
| // example: |
| // |
| // ApiDestinationName |
| ApiDestinationName *string `json:"apiDestinationName,omitempty" xml:"apiDestinationName,omitempty"` |
| } |
| |
| func (s DeleteApiDestinationRequest) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s DeleteApiDestinationRequest) GoString() string { |
| return s.String() |
| } |
| |
| func (s *DeleteApiDestinationRequest) SetApiDestinationName(v string) *DeleteApiDestinationRequest { |
| s.ApiDestinationName = &v |
| return s |
| } |
| |
| type DeleteApiDestinationResponseBody struct { |
| // The returned response code. The value Success indicates that the request is successful. |
| // |
| // example: |
| // |
| // Success |
| Code *string `json:"code,omitempty" xml:"code,omitempty"` |
| // The returned message. If the request is successful, success is returned. If the request failed, an error code is returned. |
| // |
| // example: |
| // |
| // success |
| Message *string `json:"message,omitempty" xml:"message,omitempty"` |
| // The request ID. |
| // |
| // example: |
| // |
| // 382E6272-8E9C-5681-AC96-A8AF0BFAC1A5 |
| RequestId *string `json:"requestId,omitempty" xml:"requestId,omitempty"` |
| } |
| |
| func (s DeleteApiDestinationResponseBody) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s DeleteApiDestinationResponseBody) GoString() string { |
| return s.String() |
| } |
| |
| func (s *DeleteApiDestinationResponseBody) SetCode(v string) *DeleteApiDestinationResponseBody { |
| s.Code = &v |
| return s |
| } |
| |
| func (s *DeleteApiDestinationResponseBody) SetMessage(v string) *DeleteApiDestinationResponseBody { |
| s.Message = &v |
| return s |
| } |
| |
| func (s *DeleteApiDestinationResponseBody) SetRequestId(v string) *DeleteApiDestinationResponseBody { |
| s.RequestId = &v |
| return s |
| } |
| |
| type DeleteApiDestinationResponse struct { |
| Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` |
| StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` |
| Body *DeleteApiDestinationResponseBody `json:"body,omitempty" xml:"body,omitempty"` |
| } |
| |
| func (s DeleteApiDestinationResponse) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s DeleteApiDestinationResponse) GoString() string { |
| return s.String() |
| } |
| |
| func (s *DeleteApiDestinationResponse) SetHeaders(v map[string]*string) *DeleteApiDestinationResponse { |
| s.Headers = v |
| return s |
| } |
| |
| func (s *DeleteApiDestinationResponse) SetStatusCode(v int32) *DeleteApiDestinationResponse { |
| s.StatusCode = &v |
| return s |
| } |
| |
| func (s *DeleteApiDestinationResponse) SetBody(v *DeleteApiDestinationResponseBody) *DeleteApiDestinationResponse { |
| s.Body = v |
| return s |
| } |
| |
| type ListApiDestinationsRequest struct { |
| // The prefix of the API destination name. |
| // |
| // example: |
| // |
| // api-demo |
| ApiDestinationNamePrefix *string `json:"apiDestinationNamePrefix,omitempty" xml:"apiDestinationNamePrefix,omitempty"` |
| // The connection name. |
| // |
| // example: |
| // |
| // connection-name |
| ConnectionName *string `json:"connectionName,omitempty" xml:"connectionName,omitempty"` |
| // The maximum number of entries to be returned in a call. You can use this parameter and NextToken to implement paging. |
| // |
| // - Default value: 10. |
| // |
| // example: |
| // |
| // 10 |
| MaxResults *int32 `json:"maxResults,omitempty" xml:"maxResults,omitempty"` |
| // If you set Limit and excess return values exist, this parameter is returned. |
| // |
| // - Default value: 0. |
| // |
| // example: |
| // |
| // 0 |
| NextToken *string `json:"nextToken,omitempty" xml:"nextToken,omitempty"` |
| } |
| |
| func (s ListApiDestinationsRequest) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s ListApiDestinationsRequest) GoString() string { |
| return s.String() |
| } |
| |
| func (s *ListApiDestinationsRequest) SetApiDestinationNamePrefix(v string) *ListApiDestinationsRequest { |
| s.ApiDestinationNamePrefix = &v |
| return s |
| } |
| |
| func (s *ListApiDestinationsRequest) SetConnectionName(v string) *ListApiDestinationsRequest { |
| s.ConnectionName = &v |
| return s |
| } |
| |
| func (s *ListApiDestinationsRequest) SetMaxResults(v int32) *ListApiDestinationsRequest { |
| s.MaxResults = &v |
| return s |
| } |
| |
| func (s *ListApiDestinationsRequest) SetNextToken(v string) *ListApiDestinationsRequest { |
| s.NextToken = &v |
| return s |
| } |
| |
| type ListApiDestinationsResponseBody struct { |
| // The returned response code. The value Success indicates that the request is successful. |
| // |
| // example: |
| // |
| // Success |
| Code *string `json:"code,omitempty" xml:"code,omitempty"` |
| // The API destinations. |
| ApiDestinations []*ListApiDestinationsResponseBodyApiDestinations `json:"apiDestinations,omitempty" xml:"apiDestinations,omitempty" type:"Repeated"` |
| // The maximum number of entries returned per page. |
| // |
| // example: |
| // |
| // 10 |
| MaxResults *int32 `json:"maxResults,omitempty" xml:"maxResults,omitempty"` |
| // If excess return values exist, this parameter is returned. |
| // |
| // example: |
| // |
| // 1 |
| NextToken *string `json:"nextToken,omitempty" xml:"nextToken,omitempty"` |
| // The total number of entries returned. |
| // |
| // example: |
| // |
| // 2 |
| Total *int `json:"total,omitempty" xml:"total,omitempty"` |
| // The returned message. If the request is successful, success is returned. If the request failed, an error code is returned. |
| // |
| // example: |
| // |
| // success |
| Message *string `json:"message,omitempty" xml:"message,omitempty"` |
| // The request ID. |
| // |
| // example: |
| // |
| // 96D7C0AB-DCE5-5E82-96B8-4725E1706BB1 |
| RequestId *string `json:"requestId,omitempty" xml:"requestId,omitempty"` |
| } |
| |
| func (s ListApiDestinationsResponseBody) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s ListApiDestinationsResponseBody) GoString() string { |
| return s.String() |
| } |
| |
| func (s *ListApiDestinationsResponseBody) SetCode(v string) *ListApiDestinationsResponseBody { |
| s.Code = &v |
| return s |
| } |
| |
| func (s *ListApiDestinationsResponseBody) SetApiDestinations(v []*ListApiDestinationsResponseBodyApiDestinations) *ListApiDestinationsResponseBody { |
| s.ApiDestinations = v |
| return s |
| } |
| |
| func (s *ListApiDestinationsResponseBody) SetMaxResults(v int32) *ListApiDestinationsResponseBody { |
| s.MaxResults = &v |
| return s |
| } |
| |
| func (s *ListApiDestinationsResponseBody) SetNextToken(v string) *ListApiDestinationsResponseBody { |
| s.NextToken = &v |
| return s |
| } |
| |
| func (s *ListApiDestinationsResponseBody) SetTotal(v int) *ListApiDestinationsResponseBody { |
| s.Total = &v |
| return s |
| } |
| |
| func (s *ListApiDestinationsResponseBody) SetMessage(v string) *ListApiDestinationsResponseBody { |
| s.Message = &v |
| return s |
| } |
| |
| func (s *ListApiDestinationsResponseBody) SetRequestId(v string) *ListApiDestinationsResponseBody { |
| s.RequestId = &v |
| return s |
| } |
| |
| type ListApiDestinationsResponseBodyApiDestinations struct { |
| // The name of the API destination. |
| // |
| // example: |
| // |
| // api-destination-2 |
| ApiDestinationName *string `json:"apiDestinationName,omitempty" xml:"apiDestinationName,omitempty"` |
| // The connection name. |
| // |
| // example: |
| // |
| // connection-name |
| ConnectionName *string `json:"connectionName,omitempty" xml:"connectionName,omitempty"` |
| // The description of the connection. |
| // |
| // example: |
| // |
| // demo |
| Description *string `json:"description,omitempty" xml:"description,omitempty"` |
| // The time when the API destination was created. |
| // |
| // example: |
| // |
| // 1665223213000 |
| GmtCreate *int64 `json:"gmtCreate,omitempty" xml:"gmtCreate,omitempty"` |
| // The request parameters that are configured for the API destination. |
| HttpApiParameters *ListApiDestinationsResponseBodyApiDestinationsHttpApiParameters `json:"httpApiParameters,omitempty" xml:"httpApiParameters,omitempty" type:"Struct"` |
| // TODO |
| InvocationRateLimitPerSecond *int `json:"invocationRateLimitPerSecond,omitempty" xml:"invocationRateLimitPerSecond,omitempty"` |
| } |
| |
| func (s ListApiDestinationsResponseBodyApiDestinations) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s ListApiDestinationsResponseBodyApiDestinations) GoString() string { |
| return s.String() |
| } |
| |
| func (s *ListApiDestinationsResponseBodyApiDestinations) SetApiDestinationName(v string) *ListApiDestinationsResponseBodyApiDestinations { |
| s.ApiDestinationName = &v |
| return s |
| } |
| |
| func (s *ListApiDestinationsResponseBodyApiDestinations) SetConnectionName(v string) *ListApiDestinationsResponseBodyApiDestinations { |
| s.ConnectionName = &v |
| return s |
| } |
| |
| func (s *ListApiDestinationsResponseBodyApiDestinations) SetDescription(v string) *ListApiDestinationsResponseBodyApiDestinations { |
| s.Description = &v |
| return s |
| } |
| |
| func (s *ListApiDestinationsResponseBodyApiDestinations) SetGmtCreate(v int64) *ListApiDestinationsResponseBodyApiDestinations { |
| s.GmtCreate = &v |
| return s |
| } |
| |
| func (s *ListApiDestinationsResponseBodyApiDestinations) SetHttpApiParameters(v *ListApiDestinationsResponseBodyApiDestinationsHttpApiParameters) *ListApiDestinationsResponseBodyApiDestinations { |
| s.HttpApiParameters = v |
| return s |
| } |
| |
| func (s *ListApiDestinationsResponseBodyApiDestinations) SetInvocationRateLimitPerSecond(v int) *ListApiDestinationsResponseBodyApiDestinations { |
| s.InvocationRateLimitPerSecond = &v |
| return s |
| } |
| |
| type ListApiDestinationsResponseBodyApiDestinationsHttpApiParameters struct { |
| // The endpoint of the API destination. |
| // |
| // example: |
| // |
| // http://127.0.0.1:8001/api |
| Endpoint *string `json:"endpoint,omitempty" xml:"endpoint,omitempty"` |
| // The HTTP request method. Valid values: |
| // |
| // - POST |
| // |
| // - GET |
| // |
| // - DELETE |
| // |
| // - PUT |
| // |
| // - HEAD |
| // |
| // - TRACE |
| // |
| // - PATCH |
| // |
| // example: |
| // |
| // POST |
| Method *string `json:"method,omitempty" xml:"method,omitempty"` |
| // TODO |
| ApiParameters []*ListApiDestinationsResponseBodyApiDestinationsHttpApiParametersApiParameters `json:"apiParameters,omitempty" xml:"apiParameters,omitempty" type:"Repeated"` |
| } |
| |
| func (s ListApiDestinationsResponseBodyApiDestinationsHttpApiParameters) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s ListApiDestinationsResponseBodyApiDestinationsHttpApiParameters) GoString() string { |
| return s.String() |
| } |
| |
| func (s *ListApiDestinationsResponseBodyApiDestinationsHttpApiParameters) SetEndpoint(v string) *ListApiDestinationsResponseBodyApiDestinationsHttpApiParameters { |
| s.Endpoint = &v |
| return s |
| } |
| |
| func (s *ListApiDestinationsResponseBodyApiDestinationsHttpApiParameters) SetMethod(v string) *ListApiDestinationsResponseBodyApiDestinationsHttpApiParameters { |
| s.Method = &v |
| return s |
| } |
| |
| func (s *ListApiDestinationsResponseBodyApiDestinationsHttpApiParameters) SetApiParameters(v []*ListApiDestinationsResponseBodyApiDestinationsHttpApiParametersApiParameters) *ListApiDestinationsResponseBodyApiDestinationsHttpApiParameters { |
| s.ApiParameters = v |
| return s |
| } |
| |
| type ListApiDestinationsResponseBodyApiDestinationsHttpApiParametersApiParameters struct { |
| Name *string `json:"name,omitempty" xml:"name,omitempty"` |
| // The description of the API destination. The description can be up to 255 characters in length. |
| Description *string `json:"description,omitempty" xml:"description,omitempty"` |
| Type *string `json:"type,omitempty" xml:"type,omitempty"` |
| DefaultValue *string `json:"defaultValue,omitempty" xml:"defaultValue,omitempty"` |
| In *string `json:"in,omitempty" xml:"in,omitempty"` |
| } |
| |
| func (s ListApiDestinationsResponseBodyApiDestinationsHttpApiParametersApiParameters) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s ListApiDestinationsResponseBodyApiDestinationsHttpApiParametersApiParameters) GoString() string { |
| return s.String() |
| } |
| |
| func (s *ListApiDestinationsResponseBodyApiDestinationsHttpApiParametersApiParameters) SetName(v string) *ListApiDestinationsResponseBodyApiDestinationsHttpApiParametersApiParameters { |
| s.Name = &v |
| return s |
| } |
| |
| func (s *ListApiDestinationsResponseBodyApiDestinationsHttpApiParametersApiParameters) SetDescription(v string) *ListApiDestinationsResponseBodyApiDestinationsHttpApiParametersApiParameters { |
| s.Description = &v |
| return s |
| } |
| |
| func (s *ListApiDestinationsResponseBodyApiDestinationsHttpApiParametersApiParameters) SetType(v string) *ListApiDestinationsResponseBodyApiDestinationsHttpApiParametersApiParameters { |
| s.Type = &v |
| return s |
| } |
| |
| func (s *ListApiDestinationsResponseBodyApiDestinationsHttpApiParametersApiParameters) SetDefaultValue(v string) *ListApiDestinationsResponseBodyApiDestinationsHttpApiParametersApiParameters { |
| s.DefaultValue = &v |
| return s |
| } |
| |
| func (s *ListApiDestinationsResponseBodyApiDestinationsHttpApiParametersApiParameters) SetIn(v string) *ListApiDestinationsResponseBodyApiDestinationsHttpApiParametersApiParameters { |
| s.In = &v |
| return s |
| } |
| |
| type ListApiDestinationsResponse struct { |
| Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` |
| StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` |
| Body *ListApiDestinationsResponseBody `json:"body,omitempty" xml:"body,omitempty"` |
| } |
| |
| func (s ListApiDestinationsResponse) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s ListApiDestinationsResponse) GoString() string { |
| return s.String() |
| } |
| |
| func (s *ListApiDestinationsResponse) SetHeaders(v map[string]*string) *ListApiDestinationsResponse { |
| s.Headers = v |
| return s |
| } |
| |
| func (s *ListApiDestinationsResponse) SetStatusCode(v int32) *ListApiDestinationsResponse { |
| s.StatusCode = &v |
| return s |
| } |
| |
| func (s *ListApiDestinationsResponse) SetBody(v *ListApiDestinationsResponseBody) *ListApiDestinationsResponse { |
| s.Body = v |
| return s |
| } |
| |
| // Description: |
| // |
| // Connection Controller apis: |
| // |
| // createConnection * |
| // |
| // deleteConnection * |
| // |
| // updateConnection * |
| // |
| // getConnection * |
| // |
| // selectOneConnection * |
| // |
| // listConnections * |
| // |
| // listEnumsResponse * |
| type CreateConnectionRequest struct { |
| // The parameters that are configured for authentication. |
| AuthParameters *CreateConnectionRequestAuthParameters `json:"authParameters,omitempty" xml:"authParameters,omitempty" type:"Struct"` |
| // The name of the connection. The name must be 2 to 127 characters in length. |
| // |
| // This parameter is required. |
| // |
| // example: |
| // |
| // connection-name |
| ConnectionName *string `json:"connectionName,omitempty" xml:"connectionName,omitempty"` |
| // The description of the connection. The description can be up to 255 characters in length. |
| // |
| // example: |
| // |
| // demo |
| Description *string `json:"description,omitempty" xml:"description,omitempty"` |
| // The parameters that are configured for the network. This parameter is required. |
| NetworkParameters *CreateConnectionRequestNetworkParameters `json:"networkParameters,omitempty" xml:"networkParameters,omitempty" type:"Struct"` |
| } |
| |
| func (s CreateConnectionRequest) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s CreateConnectionRequest) GoString() string { |
| return s.String() |
| } |
| |
| func (s *CreateConnectionRequest) SetAuthParameters(v *CreateConnectionRequestAuthParameters) *CreateConnectionRequest { |
| s.AuthParameters = v |
| return s |
| } |
| |
| func (s *CreateConnectionRequest) SetConnectionName(v string) *CreateConnectionRequest { |
| s.ConnectionName = &v |
| return s |
| } |
| |
| func (s *CreateConnectionRequest) SetDescription(v string) *CreateConnectionRequest { |
| s.Description = &v |
| return s |
| } |
| |
| func (s *CreateConnectionRequest) SetNetworkParameters(v *CreateConnectionRequestNetworkParameters) *CreateConnectionRequest { |
| s.NetworkParameters = v |
| return s |
| } |
| |
| type CreateConnectionRequestAuthParameters struct { |
| // The parameters that are configured for API key authentication. |
| ApiKeyAuthParameters *CreateConnectionRequestAuthParametersApiKeyAuthParameters `json:"apiKeyAuthParameters,omitempty" xml:"apiKeyAuthParameters,omitempty" type:"Struct"` |
| // The authentication type. Valid values: |
| // |
| // BASIC_AUTH: basic authentication. |
| // |
| // Introduction: Basic authentication is a simple authentication scheme built into the HTTP protocol. When you use the HTTP protocol for communications, the authentication method that the HTTP server uses to authenticate user identities on the client is defined in the protocol. The request header is in the Authorization: Basic Base64-encoded string (Username:Password) format. |
| // |
| // 1. Username and Password are required |
| // |
| // API_KEY_AUTH: API key authentication. |
| // |
| // Introduction: The request header is in the Token: Token value format. |
| // |
| // - ApiKeyName and ApiKeyValue are required. |
| // |
| // OAUTH_AUTH: OAuth authentication. |
| // |
| // Introduction: OAuth2.0 is an authentication mechanism. In normal cases, a system that does not use OAuth2.0 can access the resources of the server from the client. To ensure access security, access tokens are used to authenticate users in OAuth 2.0. The client must use an access token to access protected resources. This way, OAuth 2.0 protects resources from being accessed from malicious clients and improves system security. |
| // |
| // - AuthorizationEndpoint, OAuthHttpParameters, and HttpMethod are required. |
| // |
| // example: |
| // |
| // BASIC_AUTH |
| AuthorizationType *string `json:"authorizationType,omitempty" xml:"authorizationType,omitempty"` |
| // The parameters that are configured for basic authentication. |
| BasicAuthParameters *CreateConnectionRequestAuthParametersBasicAuthParameters `json:"basicAuthParameters,omitempty" xml:"basicAuthParameters,omitempty" type:"Struct"` |
| // The parameters that are configured for OAuth authentication. |
| OauthParameters *CreateConnectionRequestAuthParametersOauthParameters `json:"oauthParameters,omitempty" xml:"oauthParameters,omitempty" type:"Struct"` |
| } |
| |
| func (s CreateConnectionRequestAuthParameters) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s CreateConnectionRequestAuthParameters) GoString() string { |
| return s.String() |
| } |
| |
| func (s *CreateConnectionRequestAuthParameters) SetApiKeyAuthParameters(v *CreateConnectionRequestAuthParametersApiKeyAuthParameters) *CreateConnectionRequestAuthParameters { |
| s.ApiKeyAuthParameters = v |
| return s |
| } |
| |
| func (s *CreateConnectionRequestAuthParameters) SetAuthorizationType(v string) *CreateConnectionRequestAuthParameters { |
| s.AuthorizationType = &v |
| return s |
| } |
| |
| func (s *CreateConnectionRequestAuthParameters) SetBasicAuthParameters(v *CreateConnectionRequestAuthParametersBasicAuthParameters) *CreateConnectionRequestAuthParameters { |
| s.BasicAuthParameters = v |
| return s |
| } |
| |
| func (s *CreateConnectionRequestAuthParameters) SetOauthParameters(v *CreateConnectionRequestAuthParametersOauthParameters) *CreateConnectionRequestAuthParameters { |
| s.OauthParameters = v |
| return s |
| } |
| |
| type CreateConnectionRequestAuthParametersApiKeyAuthParameters struct { |
| // The key of the API key. |
| // |
| // example: |
| // |
| // Token |
| ApiKeyName *string `json:"apiKeyName,omitempty" xml:"apiKeyName,omitempty"` |
| // The value of the API key. |
| // |
| // example: |
| // |
| // adkjnakddh**** |
| ApiKeyValue *string `json:"apiKeyValue,omitempty" xml:"apiKeyValue,omitempty"` |
| } |
| |
| func (s CreateConnectionRequestAuthParametersApiKeyAuthParameters) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s CreateConnectionRequestAuthParametersApiKeyAuthParameters) GoString() string { |
| return s.String() |
| } |
| |
| func (s *CreateConnectionRequestAuthParametersApiKeyAuthParameters) SetApiKeyName(v string) *CreateConnectionRequestAuthParametersApiKeyAuthParameters { |
| s.ApiKeyName = &v |
| return s |
| } |
| |
| func (s *CreateConnectionRequestAuthParametersApiKeyAuthParameters) SetApiKeyValue(v string) *CreateConnectionRequestAuthParametersApiKeyAuthParameters { |
| s.ApiKeyValue = &v |
| return s |
| } |
| |
| type CreateConnectionRequestAuthParametersBasicAuthParameters struct { |
| // The password for basic authentication. |
| // |
| // example: |
| // |
| // ******* |
| Password *string `json:"password,omitempty" xml:"password,omitempty"` |
| // The username for basic authentication. |
| // |
| // example: |
| // |
| // admin |
| Username *string `json:"username,omitempty" xml:"username,omitempty"` |
| } |
| |
| func (s CreateConnectionRequestAuthParametersBasicAuthParameters) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s CreateConnectionRequestAuthParametersBasicAuthParameters) GoString() string { |
| return s.String() |
| } |
| |
| func (s *CreateConnectionRequestAuthParametersBasicAuthParameters) SetPassword(v string) *CreateConnectionRequestAuthParametersBasicAuthParameters { |
| s.Password = &v |
| return s |
| } |
| |
| func (s *CreateConnectionRequestAuthParametersBasicAuthParameters) SetUsername(v string) *CreateConnectionRequestAuthParametersBasicAuthParameters { |
| s.Username = &v |
| return s |
| } |
| |
| type CreateConnectionRequestAuthParametersOauthParameters struct { |
| // The endpoint that is used to obtain the OAuth token. |
| // |
| // example: |
| // |
| // http://localhost:8080/oauth/token |
| AuthorizationEndpoint *string `json:"authorizationEndpoint,omitempty" xml:"authorizationEndpoint,omitempty"` |
| // The parameters that are configured for the client. |
| ClientParameters *CreateConnectionRequestAuthParametersOauthParametersClientParameters `json:"clientParameters,omitempty" xml:"clientParameters,omitempty" type:"Struct"` |
| // The HTTP request method. Valid values: |
| // |
| // - GET |
| // |
| // - POST |
| // |
| // - HEAD |
| // |
| // example: |
| // |
| // POST |
| HttpMethod *string `json:"httpMethod,omitempty" xml:"httpMethod,omitempty"` |
| // The request parameters for OAuth authentication. |
| OauthHttpParameters *CreateConnectionRequestAuthParametersOauthParametersOauthHttpParameters `json:"oauthHttpParameters,omitempty" xml:"oauthHttpParameters,omitempty" type:"Struct"` |
| } |
| |
| func (s CreateConnectionRequestAuthParametersOauthParameters) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s CreateConnectionRequestAuthParametersOauthParameters) GoString() string { |
| return s.String() |
| } |
| |
| func (s *CreateConnectionRequestAuthParametersOauthParameters) SetAuthorizationEndpoint(v string) *CreateConnectionRequestAuthParametersOauthParameters { |
| s.AuthorizationEndpoint = &v |
| return s |
| } |
| |
| func (s *CreateConnectionRequestAuthParametersOauthParameters) SetClientParameters(v *CreateConnectionRequestAuthParametersOauthParametersClientParameters) *CreateConnectionRequestAuthParametersOauthParameters { |
| s.ClientParameters = v |
| return s |
| } |
| |
| func (s *CreateConnectionRequestAuthParametersOauthParameters) SetHttpMethod(v string) *CreateConnectionRequestAuthParametersOauthParameters { |
| s.HttpMethod = &v |
| return s |
| } |
| |
| func (s *CreateConnectionRequestAuthParametersOauthParameters) SetOauthHttpParameters(v *CreateConnectionRequestAuthParametersOauthParametersOauthHttpParameters) *CreateConnectionRequestAuthParametersOauthParameters { |
| s.OauthHttpParameters = v |
| return s |
| } |
| |
| type CreateConnectionRequestAuthParametersOauthParametersClientParameters struct { |
| // The client ID. |
| // |
| // example: |
| // |
| // ClientID |
| ClientID *string `json:"clientID,omitempty" xml:"clientID,omitempty"` |
| // The client key secret of the application. |
| // |
| // example: |
| // |
| // ClientSecret |
| ClientSecret *string `json:"clientSecret,omitempty" xml:"clientSecret,omitempty"` |
| } |
| |
| func (s CreateConnectionRequestAuthParametersOauthParametersClientParameters) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s CreateConnectionRequestAuthParametersOauthParametersClientParameters) GoString() string { |
| return s.String() |
| } |
| |
| func (s *CreateConnectionRequestAuthParametersOauthParametersClientParameters) SetClientID(v string) *CreateConnectionRequestAuthParametersOauthParametersClientParameters { |
| s.ClientID = &v |
| return s |
| } |
| |
| func (s *CreateConnectionRequestAuthParametersOauthParametersClientParameters) SetClientSecret(v string) *CreateConnectionRequestAuthParametersOauthParametersClientParameters { |
| s.ClientSecret = &v |
| return s |
| } |
| |
| type CreateConnectionRequestAuthParametersOauthParametersOauthHttpParameters struct { |
| // The parameters that are configured for the request. |
| BodyParameters []*CreateConnectionRequestAuthParametersOauthParametersOauthHttpParametersBodyParameters `json:"bodyParameters,omitempty" xml:"bodyParameters,omitempty" type:"Repeated"` |
| // The parameters that are configured for the request header. |
| HeaderParameters []*CreateConnectionRequestAuthParametersOauthParametersOauthHttpParametersHeaderParameters `json:"headerParameters,omitempty" xml:"headerParameters,omitempty" type:"Repeated"` |
| // The parameters that are configured for the request path. |
| QueryStringParameters []*CreateConnectionRequestAuthParametersOauthParametersOauthHttpParametersQueryStringParameters `json:"queryStringParameters,omitempty" xml:"queryStringParameters,omitempty" type:"Repeated"` |
| } |
| |
| func (s CreateConnectionRequestAuthParametersOauthParametersOauthHttpParameters) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s CreateConnectionRequestAuthParametersOauthParametersOauthHttpParameters) GoString() string { |
| return s.String() |
| } |
| |
| func (s *CreateConnectionRequestAuthParametersOauthParametersOauthHttpParameters) SetBodyParameters(v []*CreateConnectionRequestAuthParametersOauthParametersOauthHttpParametersBodyParameters) *CreateConnectionRequestAuthParametersOauthParametersOauthHttpParameters { |
| s.BodyParameters = v |
| return s |
| } |
| |
| func (s *CreateConnectionRequestAuthParametersOauthParametersOauthHttpParameters) SetHeaderParameters(v []*CreateConnectionRequestAuthParametersOauthParametersOauthHttpParametersHeaderParameters) *CreateConnectionRequestAuthParametersOauthParametersOauthHttpParameters { |
| s.HeaderParameters = v |
| return s |
| } |
| |
| func (s *CreateConnectionRequestAuthParametersOauthParametersOauthHttpParameters) SetQueryStringParameters(v []*CreateConnectionRequestAuthParametersOauthParametersOauthHttpParametersQueryStringParameters) *CreateConnectionRequestAuthParametersOauthParametersOauthHttpParameters { |
| s.QueryStringParameters = v |
| return s |
| } |
| |
| type CreateConnectionRequestAuthParametersOauthParametersOauthHttpParametersBodyParameters struct { |
| // Indicates whether authentication is enabled. |
| // |
| // example: |
| // |
| // false |
| IsValueSecret *string `json:"isValueSecret,omitempty" xml:"isValueSecret,omitempty"` |
| // The key in the request body. |
| // |
| // example: |
| // |
| // name |
| Key *string `json:"key,omitempty" xml:"key,omitempty"` |
| // The value of the key in the request body. |
| // |
| // example: |
| // |
| // demo |
| Value *string `json:"value,omitempty" xml:"value,omitempty"` |
| } |
| |
| func (s CreateConnectionRequestAuthParametersOauthParametersOauthHttpParametersBodyParameters) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s CreateConnectionRequestAuthParametersOauthParametersOauthHttpParametersBodyParameters) GoString() string { |
| return s.String() |
| } |
| |
| func (s *CreateConnectionRequestAuthParametersOauthParametersOauthHttpParametersBodyParameters) SetIsValueSecret(v string) *CreateConnectionRequestAuthParametersOauthParametersOauthHttpParametersBodyParameters { |
| s.IsValueSecret = &v |
| return s |
| } |
| |
| func (s *CreateConnectionRequestAuthParametersOauthParametersOauthHttpParametersBodyParameters) SetKey(v string) *CreateConnectionRequestAuthParametersOauthParametersOauthHttpParametersBodyParameters { |
| s.Key = &v |
| return s |
| } |
| |
| func (s *CreateConnectionRequestAuthParametersOauthParametersOauthHttpParametersBodyParameters) SetValue(v string) *CreateConnectionRequestAuthParametersOauthParametersOauthHttpParametersBodyParameters { |
| s.Value = &v |
| return s |
| } |
| |
| type CreateConnectionRequestAuthParametersOauthParametersOauthHttpParametersHeaderParameters struct { |
| // Indicates whether authentication is enabled. |
| // |
| // example: |
| // |
| // false |
| IsValueSecret *string `json:"isValueSecret,omitempty" xml:"isValueSecret,omitempty"` |
| // The key in the request header. |
| // |
| // example: |
| // |
| // name |
| Key *string `json:"key,omitempty" xml:"key,omitempty"` |
| // The value of the key in the request header. |
| // |
| // example: |
| // |
| // demo |
| Value *string `json:"value,omitempty" xml:"value,omitempty"` |
| } |
| |
| func (s CreateConnectionRequestAuthParametersOauthParametersOauthHttpParametersHeaderParameters) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s CreateConnectionRequestAuthParametersOauthParametersOauthHttpParametersHeaderParameters) GoString() string { |
| return s.String() |
| } |
| |
| func (s *CreateConnectionRequestAuthParametersOauthParametersOauthHttpParametersHeaderParameters) SetIsValueSecret(v string) *CreateConnectionRequestAuthParametersOauthParametersOauthHttpParametersHeaderParameters { |
| s.IsValueSecret = &v |
| return s |
| } |
| |
| func (s *CreateConnectionRequestAuthParametersOauthParametersOauthHttpParametersHeaderParameters) SetKey(v string) *CreateConnectionRequestAuthParametersOauthParametersOauthHttpParametersHeaderParameters { |
| s.Key = &v |
| return s |
| } |
| |
| func (s *CreateConnectionRequestAuthParametersOauthParametersOauthHttpParametersHeaderParameters) SetValue(v string) *CreateConnectionRequestAuthParametersOauthParametersOauthHttpParametersHeaderParameters { |
| s.Value = &v |
| return s |
| } |
| |
| type CreateConnectionRequestAuthParametersOauthParametersOauthHttpParametersQueryStringParameters struct { |
| // Indicates whether authentication is enabled. |
| // |
| // example: |
| // |
| // false |
| IsValueSecret *string `json:"isValueSecret,omitempty" xml:"isValueSecret,omitempty"` |
| // The key in the request path. |
| // |
| // example: |
| // |
| // name |
| Key *string `json:"key,omitempty" xml:"key,omitempty"` |
| // The value of the key in the request path. |
| // |
| // example: |
| // |
| // demo |
| Value *string `json:"value,omitempty" xml:"value,omitempty"` |
| } |
| |
| func (s CreateConnectionRequestAuthParametersOauthParametersOauthHttpParametersQueryStringParameters) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s CreateConnectionRequestAuthParametersOauthParametersOauthHttpParametersQueryStringParameters) GoString() string { |
| return s.String() |
| } |
| |
| func (s *CreateConnectionRequestAuthParametersOauthParametersOauthHttpParametersQueryStringParameters) SetIsValueSecret(v string) *CreateConnectionRequestAuthParametersOauthParametersOauthHttpParametersQueryStringParameters { |
| s.IsValueSecret = &v |
| return s |
| } |
| |
| func (s *CreateConnectionRequestAuthParametersOauthParametersOauthHttpParametersQueryStringParameters) SetKey(v string) *CreateConnectionRequestAuthParametersOauthParametersOauthHttpParametersQueryStringParameters { |
| s.Key = &v |
| return s |
| } |
| |
| func (s *CreateConnectionRequestAuthParametersOauthParametersOauthHttpParametersQueryStringParameters) SetValue(v string) *CreateConnectionRequestAuthParametersOauthParametersOauthHttpParametersQueryStringParameters { |
| s.Value = &v |
| return s |
| } |
| |
| type CreateConnectionRequestNetworkParameters struct { |
| // The network type. Valid values: |
| // |
| // PublicNetwork and PrivateNetwork. |
| // |
| // - Note: If you set this parameter to PrivateNetwork, you must configure VpcId, VswitcheId, and SecurityGroupId. |
| // |
| // This parameter is required. |
| // |
| // example: |
| // |
| // PublicNetwork |
| NetworkType *string `json:"networkType,omitempty" xml:"networkType,omitempty"` |
| // The ID of the security group. |
| // |
| // example: |
| // |
| // eb-167adad548759-security_grop/sg-bp1addad26peuh9qh9**** |
| SecurityGroupId *string `json:"securityGroupId,omitempty" xml:"securityGroupId,omitempty"` |
| // The VPC. ID |
| // |
| // example: |
| // |
| // eb-test/vpc-bp1symadadwnwg**** |
| VpcId *string `json:"vpcId,omitempty" xml:"vpcId,omitempty"` |
| // The vSwitch ID. |
| // |
| // example: |
| // |
| // vsw-bp1iu4x7aeradadown1og8,vsw-bp193sqmadadlaszpeq**** |
| VswitcheId *string `json:"vswitcheId,omitempty" xml:"vswitcheId,omitempty"` |
| } |
| |
| func (s CreateConnectionRequestNetworkParameters) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s CreateConnectionRequestNetworkParameters) GoString() string { |
| return s.String() |
| } |
| |
| func (s *CreateConnectionRequestNetworkParameters) SetNetworkType(v string) *CreateConnectionRequestNetworkParameters { |
| s.NetworkType = &v |
| return s |
| } |
| |
| func (s *CreateConnectionRequestNetworkParameters) SetSecurityGroupId(v string) *CreateConnectionRequestNetworkParameters { |
| s.SecurityGroupId = &v |
| return s |
| } |
| |
| func (s *CreateConnectionRequestNetworkParameters) SetVpcId(v string) *CreateConnectionRequestNetworkParameters { |
| s.VpcId = &v |
| return s |
| } |
| |
| func (s *CreateConnectionRequestNetworkParameters) SetVswitcheId(v string) *CreateConnectionRequestNetworkParameters { |
| s.VswitcheId = &v |
| return s |
| } |
| |
| type CreateConnectionResponseBody struct { |
| // The returned response code. The value Success indicates that the request is successful. |
| // |
| // example: |
| // |
| // Success |
| Code *string `json:"code,omitempty" xml:"code,omitempty"` |
| // The connection name. |
| // |
| // example: |
| // |
| // connection-demo |
| ConnectionName *string `json:"connectionName,omitempty" xml:"connectionName,omitempty"` |
| // The returned message. If the request is successful, success is returned. If the request failed, an error code is returned. |
| // |
| // example: |
| // |
| // success |
| Message *string `json:"message,omitempty" xml:"message,omitempty"` |
| // The request ID. |
| // |
| // example: |
| // |
| // 7DA60DED-CD36-5837-B848-C01A23D2**** |
| RequestId *string `json:"requestId,omitempty" xml:"requestId,omitempty"` |
| } |
| |
| func (s CreateConnectionResponseBody) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s CreateConnectionResponseBody) GoString() string { |
| return s.String() |
| } |
| |
| func (s *CreateConnectionResponseBody) SetCode(v string) *CreateConnectionResponseBody { |
| s.Code = &v |
| return s |
| } |
| |
| func (s *CreateConnectionResponseBody) SetConnectionName(v string) *CreateConnectionResponseBody { |
| s.ConnectionName = &v |
| return s |
| } |
| |
| func (s *CreateConnectionResponseBody) SetMessage(v string) *CreateConnectionResponseBody { |
| s.Message = &v |
| return s |
| } |
| |
| func (s *CreateConnectionResponseBody) SetRequestId(v string) *CreateConnectionResponseBody { |
| s.RequestId = &v |
| return s |
| } |
| |
| type CreateConnectionResponse struct { |
| Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` |
| StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` |
| Body *CreateConnectionResponseBody `json:"body,omitempty" xml:"body,omitempty"` |
| } |
| |
| func (s CreateConnectionResponse) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s CreateConnectionResponse) GoString() string { |
| return s.String() |
| } |
| |
| func (s *CreateConnectionResponse) SetHeaders(v map[string]*string) *CreateConnectionResponse { |
| s.Headers = v |
| return s |
| } |
| |
| func (s *CreateConnectionResponse) SetStatusCode(v int32) *CreateConnectionResponse { |
| s.StatusCode = &v |
| return s |
| } |
| |
| func (s *CreateConnectionResponse) SetBody(v *CreateConnectionResponseBody) *CreateConnectionResponse { |
| s.Body = v |
| return s |
| } |
| |
| type DeleteConnectionRequest struct { |
| // The name of the connection that you want to delete. This parameter is required. |
| // |
| // example: |
| // |
| // connection-name |
| ConnectionName *string `json:"connectionName,omitempty" xml:"connectionName,omitempty"` |
| } |
| |
| func (s DeleteConnectionRequest) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s DeleteConnectionRequest) GoString() string { |
| return s.String() |
| } |
| |
| func (s *DeleteConnectionRequest) SetConnectionName(v string) *DeleteConnectionRequest { |
| s.ConnectionName = &v |
| return s |
| } |
| |
| type DeleteConnectionResponseBody struct { |
| // The returned response code. The value Success indicates that the request is successful. |
| // |
| // example: |
| // |
| // Success |
| Code *string `json:"code,omitempty" xml:"code,omitempty"` |
| // The returned message. If the request is successful, success is returned. If the request failed, an error code is returned. |
| // |
| // example: |
| // |
| // success |
| Message *string `json:"message,omitempty" xml:"message,omitempty"` |
| // The request ID. |
| // |
| // example: |
| // |
| // 8EF25E37-1750-5D7A-BA56-F8AE081A69C8 |
| RequestId *string `json:"requestId,omitempty" xml:"requestId,omitempty"` |
| } |
| |
| func (s DeleteConnectionResponseBody) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s DeleteConnectionResponseBody) GoString() string { |
| return s.String() |
| } |
| |
| func (s *DeleteConnectionResponseBody) SetCode(v string) *DeleteConnectionResponseBody { |
| s.Code = &v |
| return s |
| } |
| |
| func (s *DeleteConnectionResponseBody) SetMessage(v string) *DeleteConnectionResponseBody { |
| s.Message = &v |
| return s |
| } |
| |
| func (s *DeleteConnectionResponseBody) SetRequestId(v string) *DeleteConnectionResponseBody { |
| s.RequestId = &v |
| return s |
| } |
| |
| type DeleteConnectionResponse struct { |
| Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` |
| StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` |
| Body *DeleteConnectionResponseBody `json:"body,omitempty" xml:"body,omitempty"` |
| } |
| |
| func (s DeleteConnectionResponse) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s DeleteConnectionResponse) GoString() string { |
| return s.String() |
| } |
| |
| func (s *DeleteConnectionResponse) SetHeaders(v map[string]*string) *DeleteConnectionResponse { |
| s.Headers = v |
| return s |
| } |
| |
| func (s *DeleteConnectionResponse) SetStatusCode(v int32) *DeleteConnectionResponse { |
| s.StatusCode = &v |
| return s |
| } |
| |
| func (s *DeleteConnectionResponse) SetBody(v *DeleteConnectionResponseBody) *DeleteConnectionResponse { |
| s.Body = v |
| return s |
| } |
| |
| type UpdateConnectionRequest struct { |
| // The parameters that are configured for authentication. |
| AuthParameters *UpdateConnectionRequestAuthParameters `json:"authParameters,omitempty" xml:"authParameters,omitempty" type:"Struct"` |
| // The name of the connection. The name must be 2 to 127 characters in length. |
| // |
| // This parameter is required. |
| // |
| // example: |
| // |
| // connection-name |
| ConnectionName *string `json:"connectionName,omitempty" xml:"connectionName,omitempty"` |
| // The description of the connection. The description can be up to 255 characters in length. |
| // |
| // example: |
| // |
| // demo |
| Description *string `json:"description,omitempty" xml:"description,omitempty"` |
| // The parameters that are configured for the network. This parameter is required. |
| NetworkParameters *UpdateConnectionRequestNetworkParameters `json:"networkParameters,omitempty" xml:"networkParameters,omitempty" type:"Struct"` |
| } |
| |
| func (s UpdateConnectionRequest) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s UpdateConnectionRequest) GoString() string { |
| return s.String() |
| } |
| |
| func (s *UpdateConnectionRequest) SetAuthParameters(v *UpdateConnectionRequestAuthParameters) *UpdateConnectionRequest { |
| s.AuthParameters = v |
| return s |
| } |
| |
| func (s *UpdateConnectionRequest) SetConnectionName(v string) *UpdateConnectionRequest { |
| s.ConnectionName = &v |
| return s |
| } |
| |
| func (s *UpdateConnectionRequest) SetDescription(v string) *UpdateConnectionRequest { |
| s.Description = &v |
| return s |
| } |
| |
| func (s *UpdateConnectionRequest) SetNetworkParameters(v *UpdateConnectionRequestNetworkParameters) *UpdateConnectionRequest { |
| s.NetworkParameters = v |
| return s |
| } |
| |
| type UpdateConnectionRequestAuthParameters struct { |
| // The parameters that are configured for API key authentication. |
| ApiKeyAuthParameters *UpdateConnectionRequestAuthParametersApiKeyAuthParameters `json:"apiKeyAuthParameters,omitempty" xml:"apiKeyAuthParameters,omitempty" type:"Struct"` |
| // The authentication type. Valid values: |
| // |
| // BASIC_AUTH: basic authentication. |
| // |
| // Introduction: Basic authentication is a simple authentication scheme built into the HTTP protocol. When you use the HTTP protocol for communications, the authentication method that the HTTP server uses to authenticate user identities on the client is defined in the protocol. The request header is in the Authorization: Basic Base64-encoded string (Username:Password) format. |
| // |
| // 1. Username and Password are required |
| // |
| // API_KEY_AUTH: API key authentication. |
| // |
| // Introduction: The request header is in the Token: Token value format. |
| // |
| // - ApiKeyName and ApiKeyValue are required. |
| // |
| // OAUTH_AUTH: OAuth authentication. |
| // |
| // Introduction: OAuth2.0 is an authentication mechanism. In normal cases, a system that does not use OAuth2.0 can access the resources of the server from the client. To ensure access security, access tokens are used to authenticate users in OAuth 2.0. The client must use an access token to access protected resources. This way, OAuth 2.0 protects resources from being accessed from malicious clients and improves system security. |
| // |
| // - AuthorizationEndpoint, OAuthHttpParameters, and HttpMethod are required. |
| // |
| // example: |
| // |
| // BASIC_AUTH |
| AuthorizationType *string `json:"authorizationType,omitempty" xml:"authorizationType,omitempty"` |
| // The parameters that are configured for basic authentication. |
| BasicAuthParameters *UpdateConnectionRequestAuthParametersBasicAuthParameters `json:"basicAuthParameters,omitempty" xml:"basicAuthParameters,omitempty" type:"Struct"` |
| // The parameters that are configured for OAuth authentication. |
| OauthParameters *UpdateConnectionRequestAuthParametersOauthParameters `json:"oauthParameters,omitempty" xml:"oauthParameters,omitempty" type:"Struct"` |
| } |
| |
| func (s UpdateConnectionRequestAuthParameters) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s UpdateConnectionRequestAuthParameters) GoString() string { |
| return s.String() |
| } |
| |
| func (s *UpdateConnectionRequestAuthParameters) SetApiKeyAuthParameters(v *UpdateConnectionRequestAuthParametersApiKeyAuthParameters) *UpdateConnectionRequestAuthParameters { |
| s.ApiKeyAuthParameters = v |
| return s |
| } |
| |
| func (s *UpdateConnectionRequestAuthParameters) SetAuthorizationType(v string) *UpdateConnectionRequestAuthParameters { |
| s.AuthorizationType = &v |
| return s |
| } |
| |
| func (s *UpdateConnectionRequestAuthParameters) SetBasicAuthParameters(v *UpdateConnectionRequestAuthParametersBasicAuthParameters) *UpdateConnectionRequestAuthParameters { |
| s.BasicAuthParameters = v |
| return s |
| } |
| |
| func (s *UpdateConnectionRequestAuthParameters) SetOauthParameters(v *UpdateConnectionRequestAuthParametersOauthParameters) *UpdateConnectionRequestAuthParameters { |
| s.OauthParameters = v |
| return s |
| } |
| |
| type UpdateConnectionRequestAuthParametersApiKeyAuthParameters struct { |
| // The key of the API key. |
| // |
| // example: |
| // |
| // Token |
| ApiKeyName *string `json:"apiKeyName,omitempty" xml:"apiKeyName,omitempty"` |
| // The value of the API key. |
| // |
| // example: |
| // |
| // adkjnakddh**** |
| ApiKeyValue *string `json:"apiKeyValue,omitempty" xml:"apiKeyValue,omitempty"` |
| } |
| |
| func (s UpdateConnectionRequestAuthParametersApiKeyAuthParameters) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s UpdateConnectionRequestAuthParametersApiKeyAuthParameters) GoString() string { |
| return s.String() |
| } |
| |
| func (s *UpdateConnectionRequestAuthParametersApiKeyAuthParameters) SetApiKeyName(v string) *UpdateConnectionRequestAuthParametersApiKeyAuthParameters { |
| s.ApiKeyName = &v |
| return s |
| } |
| |
| func (s *UpdateConnectionRequestAuthParametersApiKeyAuthParameters) SetApiKeyValue(v string) *UpdateConnectionRequestAuthParametersApiKeyAuthParameters { |
| s.ApiKeyValue = &v |
| return s |
| } |
| |
| type UpdateConnectionRequestAuthParametersBasicAuthParameters struct { |
| // The password for basic authentication. |
| // |
| // example: |
| // |
| // ******* |
| Password *string `json:"password,omitempty" xml:"password,omitempty"` |
| // The username for basic authentication. |
| // |
| // example: |
| // |
| // admin |
| Username *string `json:"username,omitempty" xml:"username,omitempty"` |
| } |
| |
| func (s UpdateConnectionRequestAuthParametersBasicAuthParameters) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s UpdateConnectionRequestAuthParametersBasicAuthParameters) GoString() string { |
| return s.String() |
| } |
| |
| func (s *UpdateConnectionRequestAuthParametersBasicAuthParameters) SetPassword(v string) *UpdateConnectionRequestAuthParametersBasicAuthParameters { |
| s.Password = &v |
| return s |
| } |
| |
| func (s *UpdateConnectionRequestAuthParametersBasicAuthParameters) SetUsername(v string) *UpdateConnectionRequestAuthParametersBasicAuthParameters { |
| s.Username = &v |
| return s |
| } |
| |
| type UpdateConnectionRequestAuthParametersOauthParameters struct { |
| // The endpoint that is used to obtain the OAuth token. |
| // |
| // example: |
| // |
| // http://localhost:8080/oauth/token |
| AuthorizationEndpoint *string `json:"authorizationEndpoint,omitempty" xml:"authorizationEndpoint,omitempty"` |
| // The parameters that are configured for the client. |
| ClientParameters *UpdateConnectionRequestAuthParametersOauthParametersClientParameters `json:"clientParameters,omitempty" xml:"clientParameters,omitempty" type:"Struct"` |
| // The HTTP request method. Valid values: |
| // |
| // - GET |
| // |
| // - POST |
| // |
| // - HEAD |
| // |
| // example: |
| // |
| // POST |
| HttpMethod *string `json:"httpMethod,omitempty" xml:"httpMethod,omitempty"` |
| // The request parameters for OAuth authentication. |
| OauthHttpParameters *UpdateConnectionRequestAuthParametersOauthParametersOauthHttpParameters `json:"oauthHttpParameters,omitempty" xml:"oauthHttpParameters,omitempty" type:"Struct"` |
| } |
| |
| func (s UpdateConnectionRequestAuthParametersOauthParameters) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s UpdateConnectionRequestAuthParametersOauthParameters) GoString() string { |
| return s.String() |
| } |
| |
| func (s *UpdateConnectionRequestAuthParametersOauthParameters) SetAuthorizationEndpoint(v string) *UpdateConnectionRequestAuthParametersOauthParameters { |
| s.AuthorizationEndpoint = &v |
| return s |
| } |
| |
| func (s *UpdateConnectionRequestAuthParametersOauthParameters) SetClientParameters(v *UpdateConnectionRequestAuthParametersOauthParametersClientParameters) *UpdateConnectionRequestAuthParametersOauthParameters { |
| s.ClientParameters = v |
| return s |
| } |
| |
| func (s *UpdateConnectionRequestAuthParametersOauthParameters) SetHttpMethod(v string) *UpdateConnectionRequestAuthParametersOauthParameters { |
| s.HttpMethod = &v |
| return s |
| } |
| |
| func (s *UpdateConnectionRequestAuthParametersOauthParameters) SetOauthHttpParameters(v *UpdateConnectionRequestAuthParametersOauthParametersOauthHttpParameters) *UpdateConnectionRequestAuthParametersOauthParameters { |
| s.OauthHttpParameters = v |
| return s |
| } |
| |
| type UpdateConnectionRequestAuthParametersOauthParametersClientParameters struct { |
| // The client ID. |
| // |
| // example: |
| // |
| // ClientID |
| ClientID *string `json:"clientID,omitempty" xml:"clientID,omitempty"` |
| // The client key secret of the application. |
| // |
| // example: |
| // |
| // ClientSecret |
| ClientSecret *string `json:"clientSecret,omitempty" xml:"clientSecret,omitempty"` |
| } |
| |
| func (s UpdateConnectionRequestAuthParametersOauthParametersClientParameters) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s UpdateConnectionRequestAuthParametersOauthParametersClientParameters) GoString() string { |
| return s.String() |
| } |
| |
| func (s *UpdateConnectionRequestAuthParametersOauthParametersClientParameters) SetClientID(v string) *UpdateConnectionRequestAuthParametersOauthParametersClientParameters { |
| s.ClientID = &v |
| return s |
| } |
| |
| func (s *UpdateConnectionRequestAuthParametersOauthParametersClientParameters) SetClientSecret(v string) *UpdateConnectionRequestAuthParametersOauthParametersClientParameters { |
| s.ClientSecret = &v |
| return s |
| } |
| |
| type UpdateConnectionRequestAuthParametersOauthParametersOauthHttpParameters struct { |
| // The parameters that are configured for the request. |
| BodyParameters []*UpdateConnectionRequestAuthParametersOauthParametersOauthHttpParametersBodyParameters `json:"bodyParameters,omitempty" xml:"bodyParameters,omitempty" type:"Repeated"` |
| // The parameters that are configured for the request header. |
| HeaderParameters []*UpdateConnectionRequestAuthParametersOauthParametersOauthHttpParametersHeaderParameters `json:"headerParameters,omitempty" xml:"headerParameters,omitempty" type:"Repeated"` |
| // The parameters that are configured for the request path. |
| QueryStringParameters []*UpdateConnectionRequestAuthParametersOauthParametersOauthHttpParametersQueryStringParameters `json:"queryStringParameters,omitempty" xml:"queryStringParameters,omitempty" type:"Repeated"` |
| } |
| |
| func (s UpdateConnectionRequestAuthParametersOauthParametersOauthHttpParameters) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s UpdateConnectionRequestAuthParametersOauthParametersOauthHttpParameters) GoString() string { |
| return s.String() |
| } |
| |
| func (s *UpdateConnectionRequestAuthParametersOauthParametersOauthHttpParameters) SetBodyParameters(v []*UpdateConnectionRequestAuthParametersOauthParametersOauthHttpParametersBodyParameters) *UpdateConnectionRequestAuthParametersOauthParametersOauthHttpParameters { |
| s.BodyParameters = v |
| return s |
| } |
| |
| func (s *UpdateConnectionRequestAuthParametersOauthParametersOauthHttpParameters) SetHeaderParameters(v []*UpdateConnectionRequestAuthParametersOauthParametersOauthHttpParametersHeaderParameters) *UpdateConnectionRequestAuthParametersOauthParametersOauthHttpParameters { |
| s.HeaderParameters = v |
| return s |
| } |
| |
| func (s *UpdateConnectionRequestAuthParametersOauthParametersOauthHttpParameters) SetQueryStringParameters(v []*UpdateConnectionRequestAuthParametersOauthParametersOauthHttpParametersQueryStringParameters) *UpdateConnectionRequestAuthParametersOauthParametersOauthHttpParameters { |
| s.QueryStringParameters = v |
| return s |
| } |
| |
| type UpdateConnectionRequestAuthParametersOauthParametersOauthHttpParametersBodyParameters struct { |
| // Indicates whether authentication is enabled. |
| // |
| // example: |
| // |
| // false |
| IsValueSecret *string `json:"isValueSecret,omitempty" xml:"isValueSecret,omitempty"` |
| // The key in the request body. |
| // |
| // example: |
| // |
| // name |
| Key *string `json:"key,omitempty" xml:"key,omitempty"` |
| // The value of the key in the request body. |
| // |
| // example: |
| // |
| // demo |
| Value *string `json:"value,omitempty" xml:"value,omitempty"` |
| } |
| |
| func (s UpdateConnectionRequestAuthParametersOauthParametersOauthHttpParametersBodyParameters) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s UpdateConnectionRequestAuthParametersOauthParametersOauthHttpParametersBodyParameters) GoString() string { |
| return s.String() |
| } |
| |
| func (s *UpdateConnectionRequestAuthParametersOauthParametersOauthHttpParametersBodyParameters) SetIsValueSecret(v string) *UpdateConnectionRequestAuthParametersOauthParametersOauthHttpParametersBodyParameters { |
| s.IsValueSecret = &v |
| return s |
| } |
| |
| func (s *UpdateConnectionRequestAuthParametersOauthParametersOauthHttpParametersBodyParameters) SetKey(v string) *UpdateConnectionRequestAuthParametersOauthParametersOauthHttpParametersBodyParameters { |
| s.Key = &v |
| return s |
| } |
| |
| func (s *UpdateConnectionRequestAuthParametersOauthParametersOauthHttpParametersBodyParameters) SetValue(v string) *UpdateConnectionRequestAuthParametersOauthParametersOauthHttpParametersBodyParameters { |
| s.Value = &v |
| return s |
| } |
| |
| type UpdateConnectionRequestAuthParametersOauthParametersOauthHttpParametersHeaderParameters struct { |
| // Indicates whether authentication is enabled. |
| // |
| // example: |
| // |
| // false |
| IsValueSecret *string `json:"isValueSecret,omitempty" xml:"isValueSecret,omitempty"` |
| // The key in the request header. |
| // |
| // example: |
| // |
| // name |
| Key *string `json:"key,omitempty" xml:"key,omitempty"` |
| // The value of the key in the request header. |
| // |
| // example: |
| // |
| // demo |
| Value *string `json:"value,omitempty" xml:"value,omitempty"` |
| } |
| |
| func (s UpdateConnectionRequestAuthParametersOauthParametersOauthHttpParametersHeaderParameters) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s UpdateConnectionRequestAuthParametersOauthParametersOauthHttpParametersHeaderParameters) GoString() string { |
| return s.String() |
| } |
| |
| func (s *UpdateConnectionRequestAuthParametersOauthParametersOauthHttpParametersHeaderParameters) SetIsValueSecret(v string) *UpdateConnectionRequestAuthParametersOauthParametersOauthHttpParametersHeaderParameters { |
| s.IsValueSecret = &v |
| return s |
| } |
| |
| func (s *UpdateConnectionRequestAuthParametersOauthParametersOauthHttpParametersHeaderParameters) SetKey(v string) *UpdateConnectionRequestAuthParametersOauthParametersOauthHttpParametersHeaderParameters { |
| s.Key = &v |
| return s |
| } |
| |
| func (s *UpdateConnectionRequestAuthParametersOauthParametersOauthHttpParametersHeaderParameters) SetValue(v string) *UpdateConnectionRequestAuthParametersOauthParametersOauthHttpParametersHeaderParameters { |
| s.Value = &v |
| return s |
| } |
| |
| type UpdateConnectionRequestAuthParametersOauthParametersOauthHttpParametersQueryStringParameters struct { |
| // Indicates whether authentication is enabled. |
| // |
| // example: |
| // |
| // false |
| IsValueSecret *string `json:"isValueSecret,omitempty" xml:"isValueSecret,omitempty"` |
| // The key in the request path. |
| // |
| // example: |
| // |
| // name |
| Key *string `json:"key,omitempty" xml:"key,omitempty"` |
| // The value of the key in the request path. |
| // |
| // example: |
| // |
| // demo |
| Value *string `json:"value,omitempty" xml:"value,omitempty"` |
| } |
| |
| func (s UpdateConnectionRequestAuthParametersOauthParametersOauthHttpParametersQueryStringParameters) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s UpdateConnectionRequestAuthParametersOauthParametersOauthHttpParametersQueryStringParameters) GoString() string { |
| return s.String() |
| } |
| |
| func (s *UpdateConnectionRequestAuthParametersOauthParametersOauthHttpParametersQueryStringParameters) SetIsValueSecret(v string) *UpdateConnectionRequestAuthParametersOauthParametersOauthHttpParametersQueryStringParameters { |
| s.IsValueSecret = &v |
| return s |
| } |
| |
| func (s *UpdateConnectionRequestAuthParametersOauthParametersOauthHttpParametersQueryStringParameters) SetKey(v string) *UpdateConnectionRequestAuthParametersOauthParametersOauthHttpParametersQueryStringParameters { |
| s.Key = &v |
| return s |
| } |
| |
| func (s *UpdateConnectionRequestAuthParametersOauthParametersOauthHttpParametersQueryStringParameters) SetValue(v string) *UpdateConnectionRequestAuthParametersOauthParametersOauthHttpParametersQueryStringParameters { |
| s.Value = &v |
| return s |
| } |
| |
| type UpdateConnectionRequestNetworkParameters struct { |
| // The network type. Valid values: |
| // |
| // PublicNetwork and PrivateNetwork. |
| // |
| // - Note: If you set this parameter to PrivateNetwork, you must configure VpcId, VswitcheId, and SecurityGroupId. |
| // |
| // This parameter is required. |
| // |
| // example: |
| // |
| // PublicNetwork |
| NetworkType *string `json:"networkType,omitempty" xml:"networkType,omitempty"` |
| // The ID of the security group. |
| // |
| // example: |
| // |
| // eb-167adad548759-security_grop/sg-bp1addad26peuh9qh9**** |
| SecurityGroupId *string `json:"securityGroupId,omitempty" xml:"securityGroupId,omitempty"` |
| // The VPC. ID |
| // |
| // example: |
| // |
| // eb-test/vpc-bp1symadadwnwg**** |
| VpcId *string `json:"vpcId,omitempty" xml:"vpcId,omitempty"` |
| // The vSwitch ID. |
| // |
| // example: |
| // |
| // vsw-bp1iu4x7aeradadown1og8,vsw-bp193sqmadadlaszpeq**** |
| VswitcheId *string `json:"vswitcheId,omitempty" xml:"vswitcheId,omitempty"` |
| } |
| |
| func (s UpdateConnectionRequestNetworkParameters) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s UpdateConnectionRequestNetworkParameters) GoString() string { |
| return s.String() |
| } |
| |
| func (s *UpdateConnectionRequestNetworkParameters) SetNetworkType(v string) *UpdateConnectionRequestNetworkParameters { |
| s.NetworkType = &v |
| return s |
| } |
| |
| func (s *UpdateConnectionRequestNetworkParameters) SetSecurityGroupId(v string) *UpdateConnectionRequestNetworkParameters { |
| s.SecurityGroupId = &v |
| return s |
| } |
| |
| func (s *UpdateConnectionRequestNetworkParameters) SetVpcId(v string) *UpdateConnectionRequestNetworkParameters { |
| s.VpcId = &v |
| return s |
| } |
| |
| func (s *UpdateConnectionRequestNetworkParameters) SetVswitcheId(v string) *UpdateConnectionRequestNetworkParameters { |
| s.VswitcheId = &v |
| return s |
| } |
| |
| type UpdateConnectionResponseBody struct { |
| // The returned response code. |
| // |
| // example: |
| // |
| // Success |
| Code *string `json:"code,omitempty" xml:"code,omitempty"` |
| // The returned message. |
| // |
| // example: |
| // |
| // success |
| Message *string `json:"message,omitempty" xml:"message,omitempty"` |
| // The request ID. |
| // |
| // example: |
| // |
| // 8346BE8F-40F3-533D-A0B8-1359C31BD5BA |
| RequestId *string `json:"requestId,omitempty" xml:"requestId,omitempty"` |
| } |
| |
| func (s UpdateConnectionResponseBody) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s UpdateConnectionResponseBody) GoString() string { |
| return s.String() |
| } |
| |
| func (s *UpdateConnectionResponseBody) SetCode(v string) *UpdateConnectionResponseBody { |
| s.Code = &v |
| return s |
| } |
| |
| func (s *UpdateConnectionResponseBody) SetMessage(v string) *UpdateConnectionResponseBody { |
| s.Message = &v |
| return s |
| } |
| |
| func (s *UpdateConnectionResponseBody) SetRequestId(v string) *UpdateConnectionResponseBody { |
| s.RequestId = &v |
| return s |
| } |
| |
| type UpdateConnectionResponse struct { |
| Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` |
| StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` |
| Body *UpdateConnectionResponseBody `json:"body,omitempty" xml:"body,omitempty"` |
| } |
| |
| func (s UpdateConnectionResponse) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s UpdateConnectionResponse) GoString() string { |
| return s.String() |
| } |
| |
| func (s *UpdateConnectionResponse) SetHeaders(v map[string]*string) *UpdateConnectionResponse { |
| s.Headers = v |
| return s |
| } |
| |
| func (s *UpdateConnectionResponse) SetStatusCode(v int32) *UpdateConnectionResponse { |
| s.StatusCode = &v |
| return s |
| } |
| |
| func (s *UpdateConnectionResponse) SetBody(v *UpdateConnectionResponseBody) *UpdateConnectionResponse { |
| s.Body = v |
| return s |
| } |
| |
| type GetConnectionRequest struct { |
| // The connection name. This parameter is required. |
| // |
| // example: |
| // |
| // connection-name |
| ConnectionName *string `json:"connectionName,omitempty" xml:"connectionName,omitempty"` |
| } |
| |
| func (s GetConnectionRequest) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s GetConnectionRequest) GoString() string { |
| return s.String() |
| } |
| |
| func (s *GetConnectionRequest) SetConnectionName(v string) *GetConnectionRequest { |
| s.ConnectionName = &v |
| return s |
| } |
| |
| type GetConnectionResponseBody struct { |
| // The returned response code. The value Success indicates that the request is successful. |
| // |
| // example: |
| // |
| // Success |
| Code *string `json:"code,omitempty" xml:"code,omitempty"` |
| // The value of the key in the request path. |
| Connections []*GetConnectionResponseBodyConnections `json:"connections,omitempty" xml:"connections,omitempty" type:"Repeated"` |
| // The returned message. |
| // |
| // example: |
| // |
| // success |
| Message *string `json:"message,omitempty" xml:"message,omitempty"` |
| // The returned request ID. |
| // |
| // example: |
| // |
| // 34AD682D-5B91-5773-8132-AA38C130**** |
| RequestId *string `json:"requestId,omitempty" xml:"requestId,omitempty"` |
| } |
| |
| func (s GetConnectionResponseBody) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s GetConnectionResponseBody) GoString() string { |
| return s.String() |
| } |
| |
| func (s *GetConnectionResponseBody) SetCode(v string) *GetConnectionResponseBody { |
| s.Code = &v |
| return s |
| } |
| |
| func (s *GetConnectionResponseBody) SetConnections(v []*GetConnectionResponseBodyConnections) *GetConnectionResponseBody { |
| s.Connections = v |
| return s |
| } |
| |
| func (s *GetConnectionResponseBody) SetMessage(v string) *GetConnectionResponseBody { |
| s.Message = &v |
| return s |
| } |
| |
| func (s *GetConnectionResponseBody) SetRequestId(v string) *GetConnectionResponseBody { |
| s.RequestId = &v |
| return s |
| } |
| |
| type GetConnectionResponseBodyConnections struct { |
| // The parameters that are configured for authentication. |
| AuthParameters *GetConnectionResponseBodyConnectionsAuthParameters `json:"authParameters,omitempty" xml:"authParameters,omitempty" type:"Struct"` |
| // The connection name. |
| // |
| // example: |
| // |
| // connection-name |
| ConnectionName *string `json:"connectionName,omitempty" xml:"connectionName,omitempty"` |
| // The connection description. |
| // |
| // example: |
| // |
| // The description of the connection. |
| Description *string `json:"description,omitempty" xml:"description,omitempty"` |
| // The time when the connection was created. |
| // |
| // example: |
| // |
| // 1592838994234 |
| GmtCreate *int64 `json:"gmtCreate,omitempty" xml:"gmtCreate,omitempty"` |
| // The connection ID. |
| // |
| // example: |
| // |
| // 1141093 |
| Id *int `json:"id,omitempty" xml:"id,omitempty"` |
| NetworkParameters *GetConnectionResponseBodyConnectionsNetworkParameters `json:"networkParameters,omitempty" xml:"networkParameters,omitempty" type:"Struct"` |
| } |
| |
| func (s GetConnectionResponseBodyConnections) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s GetConnectionResponseBodyConnections) GoString() string { |
| return s.String() |
| } |
| |
| func (s *GetConnectionResponseBodyConnections) SetAuthParameters(v *GetConnectionResponseBodyConnectionsAuthParameters) *GetConnectionResponseBodyConnections { |
| s.AuthParameters = v |
| return s |
| } |
| |
| func (s *GetConnectionResponseBodyConnections) SetConnectionName(v string) *GetConnectionResponseBodyConnections { |
| s.ConnectionName = &v |
| return s |
| } |
| |
| func (s *GetConnectionResponseBodyConnections) SetDescription(v string) *GetConnectionResponseBodyConnections { |
| s.Description = &v |
| return s |
| } |
| |
| func (s *GetConnectionResponseBodyConnections) SetGmtCreate(v int64) *GetConnectionResponseBodyConnections { |
| s.GmtCreate = &v |
| return s |
| } |
| |
| func (s *GetConnectionResponseBodyConnections) SetId(v int) *GetConnectionResponseBodyConnections { |
| s.Id = &v |
| return s |
| } |
| |
| func (s *GetConnectionResponseBodyConnections) SetNetworkParameters(v *GetConnectionResponseBodyConnectionsNetworkParameters) *GetConnectionResponseBodyConnections { |
| s.NetworkParameters = v |
| return s |
| } |
| |
| type GetConnectionResponseBodyConnectionsAuthParameters struct { |
| // The parameters that are configured for API key authentication. |
| ApiKeyAuthParameters *GetConnectionResponseBodyConnectionsAuthParametersApiKeyAuthParameters `json:"apiKeyAuthParameters,omitempty" xml:"apiKeyAuthParameters,omitempty" type:"Struct"` |
| // The authentication type. Valid values: |
| // |
| // |
| // - BASIC_AUTH: basic authentication. |
| // |
| // |
| // - API_KEY_AUTH: API key authentication. |
| // |
| // |
| // - OAUTH_AUTH: OAuth authentication. |
| // |
| // example: |
| // |
| // BASIC_AUTH |
| AuthorizationType *string `json:"authorizationType,omitempty" xml:"authorizationType,omitempty"` |
| // The parameters that are configured for basic authentication. |
| BasicAuthParameters *GetConnectionResponseBodyConnectionsAuthParametersBasicAuthParameters `json:"basicAuthParameters,omitempty" xml:"basicAuthParameters,omitempty" type:"Struct"` |
| // The parameters that are configured for OAuth authentication. |
| OauthParameters *GetConnectionResponseBodyConnectionsAuthParametersOauthParameters `json:"oauthParameters,omitempty" xml:"oauthParameters,omitempty" type:"Struct"` |
| } |
| |
| func (s GetConnectionResponseBodyConnectionsAuthParameters) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s GetConnectionResponseBodyConnectionsAuthParameters) GoString() string { |
| return s.String() |
| } |
| |
| func (s *GetConnectionResponseBodyConnectionsAuthParameters) SetApiKeyAuthParameters(v *GetConnectionResponseBodyConnectionsAuthParametersApiKeyAuthParameters) *GetConnectionResponseBodyConnectionsAuthParameters { |
| s.ApiKeyAuthParameters = v |
| return s |
| } |
| |
| func (s *GetConnectionResponseBodyConnectionsAuthParameters) SetAuthorizationType(v string) *GetConnectionResponseBodyConnectionsAuthParameters { |
| s.AuthorizationType = &v |
| return s |
| } |
| |
| func (s *GetConnectionResponseBodyConnectionsAuthParameters) SetBasicAuthParameters(v *GetConnectionResponseBodyConnectionsAuthParametersBasicAuthParameters) *GetConnectionResponseBodyConnectionsAuthParameters { |
| s.BasicAuthParameters = v |
| return s |
| } |
| |
| func (s *GetConnectionResponseBodyConnectionsAuthParameters) SetOauthParameters(v *GetConnectionResponseBodyConnectionsAuthParametersOauthParameters) *GetConnectionResponseBodyConnectionsAuthParameters { |
| s.OauthParameters = v |
| return s |
| } |
| |
| type GetConnectionResponseBodyConnectionsAuthParametersApiKeyAuthParameters struct { |
| // The API key. |
| // |
| // example: |
| // |
| // Token |
| ApiKeyName *string `json:"apiKeyName,omitempty" xml:"apiKeyName,omitempty"` |
| // The value of the API key. |
| // |
| // example: |
| // |
| // asdkjnqkwejooa |
| ApiKeyValue *string `json:"apiKeyValue,omitempty" xml:"apiKeyValue,omitempty"` |
| } |
| |
| func (s GetConnectionResponseBodyConnectionsAuthParametersApiKeyAuthParameters) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s GetConnectionResponseBodyConnectionsAuthParametersApiKeyAuthParameters) GoString() string { |
| return s.String() |
| } |
| |
| func (s *GetConnectionResponseBodyConnectionsAuthParametersApiKeyAuthParameters) SetApiKeyName(v string) *GetConnectionResponseBodyConnectionsAuthParametersApiKeyAuthParameters { |
| s.ApiKeyName = &v |
| return s |
| } |
| |
| func (s *GetConnectionResponseBodyConnectionsAuthParametersApiKeyAuthParameters) SetApiKeyValue(v string) *GetConnectionResponseBodyConnectionsAuthParametersApiKeyAuthParameters { |
| s.ApiKeyValue = &v |
| return s |
| } |
| |
| type GetConnectionResponseBodyConnectionsAuthParametersBasicAuthParameters struct { |
| // The password for basic authentication. |
| // |
| // example: |
| // |
| // admin |
| Password *string `json:"password,omitempty" xml:"password,omitempty"` |
| // The username for basic authentication. |
| // |
| // example: |
| // |
| // admin |
| Username *string `json:"username,omitempty" xml:"username,omitempty"` |
| } |
| |
| func (s GetConnectionResponseBodyConnectionsAuthParametersBasicAuthParameters) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s GetConnectionResponseBodyConnectionsAuthParametersBasicAuthParameters) GoString() string { |
| return s.String() |
| } |
| |
| func (s *GetConnectionResponseBodyConnectionsAuthParametersBasicAuthParameters) SetPassword(v string) *GetConnectionResponseBodyConnectionsAuthParametersBasicAuthParameters { |
| s.Password = &v |
| return s |
| } |
| |
| func (s *GetConnectionResponseBodyConnectionsAuthParametersBasicAuthParameters) SetUsername(v string) *GetConnectionResponseBodyConnectionsAuthParametersBasicAuthParameters { |
| s.Username = &v |
| return s |
| } |
| |
| type GetConnectionResponseBodyConnectionsAuthParametersOauthParameters struct { |
| // The endpoint that is used to obtain the OAuth token. |
| // |
| // example: |
| // |
| // http://localhost:8080/oauth/token |
| AuthorizationEndpoint *string `json:"authorizationEndpoint,omitempty" xml:"authorizationEndpoint,omitempty"` |
| // The parameters that are configured for the client. |
| ClientParameters *GetConnectionResponseBodyConnectionsAuthParametersOauthParametersClientParameters `json:"clientParameters,omitempty" xml:"clientParameters,omitempty" type:"Struct"` |
| // The HTTP request method. Valid values: |
| // |
| // - GET |
| // |
| // - POST |
| // |
| // - HEAD |
| // |
| // example: |
| // |
| // POST |
| HttpMethod *string `json:"httpMethod,omitempty" xml:"httpMethod,omitempty"` |
| // The request parameters for OAuth authentication. |
| OauthHttpParameters *GetConnectionResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParameters `json:"oauthHttpParameters,omitempty" xml:"oauthHttpParameters,omitempty" type:"Struct"` |
| } |
| |
| func (s GetConnectionResponseBodyConnectionsAuthParametersOauthParameters) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s GetConnectionResponseBodyConnectionsAuthParametersOauthParameters) GoString() string { |
| return s.String() |
| } |
| |
| func (s *GetConnectionResponseBodyConnectionsAuthParametersOauthParameters) SetAuthorizationEndpoint(v string) *GetConnectionResponseBodyConnectionsAuthParametersOauthParameters { |
| s.AuthorizationEndpoint = &v |
| return s |
| } |
| |
| func (s *GetConnectionResponseBodyConnectionsAuthParametersOauthParameters) SetClientParameters(v *GetConnectionResponseBodyConnectionsAuthParametersOauthParametersClientParameters) *GetConnectionResponseBodyConnectionsAuthParametersOauthParameters { |
| s.ClientParameters = v |
| return s |
| } |
| |
| func (s *GetConnectionResponseBodyConnectionsAuthParametersOauthParameters) SetHttpMethod(v string) *GetConnectionResponseBodyConnectionsAuthParametersOauthParameters { |
| s.HttpMethod = &v |
| return s |
| } |
| |
| func (s *GetConnectionResponseBodyConnectionsAuthParametersOauthParameters) SetOauthHttpParameters(v *GetConnectionResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParameters) *GetConnectionResponseBodyConnectionsAuthParametersOauthParameters { |
| s.OauthHttpParameters = v |
| return s |
| } |
| |
| type GetConnectionResponseBodyConnectionsAuthParametersOauthParametersClientParameters struct { |
| // The client ID. |
| // |
| // example: |
| // |
| // ClientID |
| ClientID *string `json:"clientID,omitempty" xml:"clientID,omitempty"` |
| // The client key secret of the application. |
| // |
| // example: |
| // |
| // ClientSecret |
| ClientSecret *string `json:"clientSecret,omitempty" xml:"clientSecret,omitempty"` |
| } |
| |
| func (s GetConnectionResponseBodyConnectionsAuthParametersOauthParametersClientParameters) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s GetConnectionResponseBodyConnectionsAuthParametersOauthParametersClientParameters) GoString() string { |
| return s.String() |
| } |
| |
| func (s *GetConnectionResponseBodyConnectionsAuthParametersOauthParametersClientParameters) SetClientID(v string) *GetConnectionResponseBodyConnectionsAuthParametersOauthParametersClientParameters { |
| s.ClientID = &v |
| return s |
| } |
| |
| func (s *GetConnectionResponseBodyConnectionsAuthParametersOauthParametersClientParameters) SetClientSecret(v string) *GetConnectionResponseBodyConnectionsAuthParametersOauthParametersClientParameters { |
| s.ClientSecret = &v |
| return s |
| } |
| |
| type GetConnectionResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParameters struct { |
| // The parameters that are configured for the request. |
| BodyParameters []*GetConnectionResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParametersBodyParameters `json:"bodyParameters,omitempty" xml:"bodyParameters,omitempty" type:"Repeated"` |
| // The parameters that are configured for the request header. |
| HeaderParameters []*GetConnectionResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParametersHeaderParameters `json:"headerParameters,omitempty" xml:"headerParameters,omitempty" type:"Repeated"` |
| // The parameters that are configured for the request path. |
| QueryStringParameters []*GetConnectionResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParametersQueryStringParameters `json:"queryStringParameters,omitempty" xml:"queryStringParameters,omitempty" type:"Repeated"` |
| } |
| |
| func (s GetConnectionResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParameters) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s GetConnectionResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParameters) GoString() string { |
| return s.String() |
| } |
| |
| func (s *GetConnectionResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParameters) SetBodyParameters(v []*GetConnectionResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParametersBodyParameters) *GetConnectionResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParameters { |
| s.BodyParameters = v |
| return s |
| } |
| |
| func (s *GetConnectionResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParameters) SetHeaderParameters(v []*GetConnectionResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParametersHeaderParameters) *GetConnectionResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParameters { |
| s.HeaderParameters = v |
| return s |
| } |
| |
| func (s *GetConnectionResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParameters) SetQueryStringParameters(v []*GetConnectionResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParametersQueryStringParameters) *GetConnectionResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParameters { |
| s.QueryStringParameters = v |
| return s |
| } |
| |
| type GetConnectionResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParametersBodyParameters struct { |
| // Indicates whether authentication is enabled. |
| // |
| // example: |
| // |
| // false |
| IsValueSecret *string `json:"isValueSecret,omitempty" xml:"isValueSecret,omitempty"` |
| // The key in the request body. |
| // |
| // example: |
| // |
| // name |
| Key *string `json:"key,omitempty" xml:"key,omitempty"` |
| // The value of the key in the request body. |
| // |
| // example: |
| // |
| // demo |
| Value *string `json:"value,omitempty" xml:"value,omitempty"` |
| } |
| |
| func (s GetConnectionResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParametersBodyParameters) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s GetConnectionResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParametersBodyParameters) GoString() string { |
| return s.String() |
| } |
| |
| func (s *GetConnectionResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParametersBodyParameters) SetIsValueSecret(v string) *GetConnectionResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParametersBodyParameters { |
| s.IsValueSecret = &v |
| return s |
| } |
| |
| func (s *GetConnectionResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParametersBodyParameters) SetKey(v string) *GetConnectionResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParametersBodyParameters { |
| s.Key = &v |
| return s |
| } |
| |
| func (s *GetConnectionResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParametersBodyParameters) SetValue(v string) *GetConnectionResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParametersBodyParameters { |
| s.Value = &v |
| return s |
| } |
| |
| type GetConnectionResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParametersHeaderParameters struct { |
| // Indicates whether authentication is enabled. |
| // |
| // example: |
| // |
| // false |
| IsValueSecret *string `json:"isValueSecret,omitempty" xml:"isValueSecret,omitempty"` |
| // The key in the request header. |
| // |
| // example: |
| // |
| // name |
| Key *string `json:"key,omitempty" xml:"key,omitempty"` |
| // The value of the key in the request header. |
| // |
| // example: |
| // |
| // demo |
| Value *string `json:"value,omitempty" xml:"value,omitempty"` |
| } |
| |
| func (s GetConnectionResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParametersHeaderParameters) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s GetConnectionResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParametersHeaderParameters) GoString() string { |
| return s.String() |
| } |
| |
| func (s *GetConnectionResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParametersHeaderParameters) SetIsValueSecret(v string) *GetConnectionResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParametersHeaderParameters { |
| s.IsValueSecret = &v |
| return s |
| } |
| |
| func (s *GetConnectionResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParametersHeaderParameters) SetKey(v string) *GetConnectionResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParametersHeaderParameters { |
| s.Key = &v |
| return s |
| } |
| |
| func (s *GetConnectionResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParametersHeaderParameters) SetValue(v string) *GetConnectionResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParametersHeaderParameters { |
| s.Value = &v |
| return s |
| } |
| |
| type GetConnectionResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParametersQueryStringParameters struct { |
| // Indicates whether authentication is enabled. |
| // |
| // example: |
| // |
| // false |
| IsValueSecret *string `json:"isValueSecret,omitempty" xml:"isValueSecret,omitempty"` |
| // The key in the request path. |
| // |
| // example: |
| // |
| // name |
| Key *string `json:"key,omitempty" xml:"key,omitempty"` |
| // The value of the key in the request path. |
| // |
| // example: |
| // |
| // demo |
| Value *string `json:"value,omitempty" xml:"value,omitempty"` |
| } |
| |
| func (s GetConnectionResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParametersQueryStringParameters) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s GetConnectionResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParametersQueryStringParameters) GoString() string { |
| return s.String() |
| } |
| |
| func (s *GetConnectionResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParametersQueryStringParameters) SetIsValueSecret(v string) *GetConnectionResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParametersQueryStringParameters { |
| s.IsValueSecret = &v |
| return s |
| } |
| |
| func (s *GetConnectionResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParametersQueryStringParameters) SetKey(v string) *GetConnectionResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParametersQueryStringParameters { |
| s.Key = &v |
| return s |
| } |
| |
| func (s *GetConnectionResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParametersQueryStringParameters) SetValue(v string) *GetConnectionResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParametersQueryStringParameters { |
| s.Value = &v |
| return s |
| } |
| |
| type GetConnectionResponseBodyConnectionsNetworkParameters struct { |
| // The network type. Valid values:PublicNetwork and PrivateNetwork. |
| // |
| // example: |
| // |
| // PublicNetwork |
| NetworkType *string `json:"networkType,omitempty" xml:"networkType,omitempty"` |
| // The security group ID. |
| // |
| // example: |
| // |
| // eb-167adad548759-security_grop/sg-bp1addad26peuh9qh9rtyb |
| SecurityGroupId *string `json:"securityGroupId,omitempty" xml:"securityGroupId,omitempty"` |
| // The virtual private cloud (VPC) ID. |
| // |
| // example: |
| // |
| // eb-test/vpc-bp1symadadwnwgmqud |
| VpcId *string `json:"vpcId,omitempty" xml:"vpcId,omitempty"` |
| // The vSwitch ID. |
| // |
| // example: |
| // |
| // vsw-bp1iu4x7aeradadown1og8,vsw-bp193sqmadadlaszpeqbt2c |
| VswitcheId *string `json:"vswitcheId,omitempty" xml:"vswitcheId,omitempty"` |
| } |
| |
| func (s GetConnectionResponseBodyConnectionsNetworkParameters) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s GetConnectionResponseBodyConnectionsNetworkParameters) GoString() string { |
| return s.String() |
| } |
| |
| func (s *GetConnectionResponseBodyConnectionsNetworkParameters) SetNetworkType(v string) *GetConnectionResponseBodyConnectionsNetworkParameters { |
| s.NetworkType = &v |
| return s |
| } |
| |
| func (s *GetConnectionResponseBodyConnectionsNetworkParameters) SetSecurityGroupId(v string) *GetConnectionResponseBodyConnectionsNetworkParameters { |
| s.SecurityGroupId = &v |
| return s |
| } |
| |
| func (s *GetConnectionResponseBodyConnectionsNetworkParameters) SetVpcId(v string) *GetConnectionResponseBodyConnectionsNetworkParameters { |
| s.VpcId = &v |
| return s |
| } |
| |
| func (s *GetConnectionResponseBodyConnectionsNetworkParameters) SetVswitcheId(v string) *GetConnectionResponseBodyConnectionsNetworkParameters { |
| s.VswitcheId = &v |
| return s |
| } |
| |
| type GetConnectionResponse struct { |
| Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` |
| StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` |
| Body *GetConnectionResponseBody `json:"body,omitempty" xml:"body,omitempty"` |
| } |
| |
| func (s GetConnectionResponse) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s GetConnectionResponse) GoString() string { |
| return s.String() |
| } |
| |
| func (s *GetConnectionResponse) SetHeaders(v map[string]*string) *GetConnectionResponse { |
| s.Headers = v |
| return s |
| } |
| |
| func (s *GetConnectionResponse) SetStatusCode(v int32) *GetConnectionResponse { |
| s.StatusCode = &v |
| return s |
| } |
| |
| func (s *GetConnectionResponse) SetBody(v *GetConnectionResponseBody) *GetConnectionResponse { |
| s.Body = v |
| return s |
| } |
| |
| type ListConnectionsRequest struct { |
| // The key word that you specify to query connections. Connections can be queried by prefixes. |
| // |
| // example: |
| // |
| // connection-name |
| ConnectionNamePrefix *string `json:"connectionNamePrefix,omitempty" xml:"connectionNamePrefix,omitempty"` |
| // The maximum number of entries to be returned in a single call. You can use this parameter and the NextToken parameter to implement paging. |
| // |
| // - Default value: 10. |
| // |
| // example: |
| // |
| // 10 |
| MaxResults *int32 `json:"maxResults,omitempty" xml:"maxResults,omitempty"` |
| // If you set the Limit parameter and excess return values exist, this parameter is returned. |
| // |
| // - Default value: 0. |
| // |
| // example: |
| // |
| // 0 |
| NextToken *string `json:"nextToken,omitempty" xml:"nextToken,omitempty"` |
| } |
| |
| func (s ListConnectionsRequest) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s ListConnectionsRequest) GoString() string { |
| return s.String() |
| } |
| |
| func (s *ListConnectionsRequest) SetConnectionNamePrefix(v string) *ListConnectionsRequest { |
| s.ConnectionNamePrefix = &v |
| return s |
| } |
| |
| func (s *ListConnectionsRequest) SetMaxResults(v int32) *ListConnectionsRequest { |
| s.MaxResults = &v |
| return s |
| } |
| |
| func (s *ListConnectionsRequest) SetNextToken(v string) *ListConnectionsRequest { |
| s.NextToken = &v |
| return s |
| } |
| |
| type ListConnectionsResponseBody struct { |
| // The HTTP status code. The value Success indicates that the request is successful. |
| // |
| // example: |
| // |
| // Success |
| Code *string `json:"code,omitempty" xml:"code,omitempty"` |
| // The value of the key in the request path. |
| Connections []*ListConnectionsResponseBodyConnections `json:"connections,omitempty" xml:"connections,omitempty" type:"Repeated"` |
| // The number of entries returned per page. |
| // |
| // example: |
| // |
| // 10 |
| MaxResults *int32 `json:"maxResults,omitempty" xml:"maxResults,omitempty"` |
| // If excess return values exist, this parameter is returned. |
| // |
| // example: |
| // |
| // 0 |
| NextToken *string `json:"nextToken,omitempty" xml:"nextToken,omitempty"` |
| // The total number of entries returned. |
| // |
| // example: |
| // |
| // 1 |
| Total *int `json:"total,omitempty" xml:"total,omitempty"` |
| // The message returned. |
| // |
| // example: |
| // |
| // success |
| Message *string `json:"message,omitempty" xml:"message,omitempty"` |
| // The ID of the request. This parameter is a common parameter. Each request has a unique ID. You can use the ID to troubleshoot issues. |
| // |
| // example: |
| // |
| // E3619976-8714-5D88-BBA2-6983D798A8BB |
| RequestId *string `json:"requestId,omitempty" xml:"requestId,omitempty"` |
| } |
| |
| func (s ListConnectionsResponseBody) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s ListConnectionsResponseBody) GoString() string { |
| return s.String() |
| } |
| |
| func (s *ListConnectionsResponseBody) SetCode(v string) *ListConnectionsResponseBody { |
| s.Code = &v |
| return s |
| } |
| |
| func (s *ListConnectionsResponseBody) SetConnections(v []*ListConnectionsResponseBodyConnections) *ListConnectionsResponseBody { |
| s.Connections = v |
| return s |
| } |
| |
| func (s *ListConnectionsResponseBody) SetMaxResults(v int32) *ListConnectionsResponseBody { |
| s.MaxResults = &v |
| return s |
| } |
| |
| func (s *ListConnectionsResponseBody) SetNextToken(v string) *ListConnectionsResponseBody { |
| s.NextToken = &v |
| return s |
| } |
| |
| func (s *ListConnectionsResponseBody) SetTotal(v int) *ListConnectionsResponseBody { |
| s.Total = &v |
| return s |
| } |
| |
| func (s *ListConnectionsResponseBody) SetMessage(v string) *ListConnectionsResponseBody { |
| s.Message = &v |
| return s |
| } |
| |
| func (s *ListConnectionsResponseBody) SetRequestId(v string) *ListConnectionsResponseBody { |
| s.RequestId = &v |
| return s |
| } |
| |
| type ListConnectionsResponseBodyConnections struct { |
| // The parameters that are configured for authentication. |
| AuthParameters *ListConnectionsResponseBodyConnectionsAuthParameters `json:"authParameters,omitempty" xml:"authParameters,omitempty" type:"Struct"` |
| // The connection name. |
| // |
| // example: |
| // |
| // connection-name |
| ConnectionName *string `json:"connectionName,omitempty" xml:"connectionName,omitempty"` |
| // The connection description. |
| // |
| // example: |
| // |
| // The description of the connection. |
| Description *string `json:"description,omitempty" xml:"description,omitempty"` |
| // The time when the connection was created. |
| // |
| // example: |
| // |
| // 1592838994234 |
| GmtCreate *int64 `json:"gmtCreate,omitempty" xml:"gmtCreate,omitempty"` |
| // The connection ID. |
| // |
| // example: |
| // |
| // 1141093 |
| Id *int `json:"id,omitempty" xml:"id,omitempty"` |
| NetworkParameters *ListConnectionsResponseBodyConnectionsNetworkParameters `json:"networkParameters,omitempty" xml:"networkParameters,omitempty" type:"Struct"` |
| } |
| |
| func (s ListConnectionsResponseBodyConnections) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s ListConnectionsResponseBodyConnections) GoString() string { |
| return s.String() |
| } |
| |
| func (s *ListConnectionsResponseBodyConnections) SetAuthParameters(v *ListConnectionsResponseBodyConnectionsAuthParameters) *ListConnectionsResponseBodyConnections { |
| s.AuthParameters = v |
| return s |
| } |
| |
| func (s *ListConnectionsResponseBodyConnections) SetConnectionName(v string) *ListConnectionsResponseBodyConnections { |
| s.ConnectionName = &v |
| return s |
| } |
| |
| func (s *ListConnectionsResponseBodyConnections) SetDescription(v string) *ListConnectionsResponseBodyConnections { |
| s.Description = &v |
| return s |
| } |
| |
| func (s *ListConnectionsResponseBodyConnections) SetGmtCreate(v int64) *ListConnectionsResponseBodyConnections { |
| s.GmtCreate = &v |
| return s |
| } |
| |
| func (s *ListConnectionsResponseBodyConnections) SetId(v int) *ListConnectionsResponseBodyConnections { |
| s.Id = &v |
| return s |
| } |
| |
| func (s *ListConnectionsResponseBodyConnections) SetNetworkParameters(v *ListConnectionsResponseBodyConnectionsNetworkParameters) *ListConnectionsResponseBodyConnections { |
| s.NetworkParameters = v |
| return s |
| } |
| |
| type ListConnectionsResponseBodyConnectionsAuthParameters struct { |
| // The parameters that are configured for API key authentication. |
| ApiKeyAuthParameters *ListConnectionsResponseBodyConnectionsAuthParametersApiKeyAuthParameters `json:"apiKeyAuthParameters,omitempty" xml:"apiKeyAuthParameters,omitempty" type:"Struct"` |
| // The authentication type. Valid values: |
| // |
| // |
| // - BASIC_AUTH: basic authentication. |
| // |
| // |
| // - API_KEY_AUTH: API key authentication. |
| // |
| // |
| // - OAUTH_AUTH: OAuth authentication. |
| // |
| // example: |
| // |
| // BASIC_AUTH |
| AuthorizationType *string `json:"authorizationType,omitempty" xml:"authorizationType,omitempty"` |
| // The parameters that are configured for basic authentication. |
| BasicAuthParameters *ListConnectionsResponseBodyConnectionsAuthParametersBasicAuthParameters `json:"basicAuthParameters,omitempty" xml:"basicAuthParameters,omitempty" type:"Struct"` |
| // The parameters that are configured for OAuth authentication. |
| OauthParameters *ListConnectionsResponseBodyConnectionsAuthParametersOauthParameters `json:"oauthParameters,omitempty" xml:"oauthParameters,omitempty" type:"Struct"` |
| } |
| |
| func (s ListConnectionsResponseBodyConnectionsAuthParameters) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s ListConnectionsResponseBodyConnectionsAuthParameters) GoString() string { |
| return s.String() |
| } |
| |
| func (s *ListConnectionsResponseBodyConnectionsAuthParameters) SetApiKeyAuthParameters(v *ListConnectionsResponseBodyConnectionsAuthParametersApiKeyAuthParameters) *ListConnectionsResponseBodyConnectionsAuthParameters { |
| s.ApiKeyAuthParameters = v |
| return s |
| } |
| |
| func (s *ListConnectionsResponseBodyConnectionsAuthParameters) SetAuthorizationType(v string) *ListConnectionsResponseBodyConnectionsAuthParameters { |
| s.AuthorizationType = &v |
| return s |
| } |
| |
| func (s *ListConnectionsResponseBodyConnectionsAuthParameters) SetBasicAuthParameters(v *ListConnectionsResponseBodyConnectionsAuthParametersBasicAuthParameters) *ListConnectionsResponseBodyConnectionsAuthParameters { |
| s.BasicAuthParameters = v |
| return s |
| } |
| |
| func (s *ListConnectionsResponseBodyConnectionsAuthParameters) SetOauthParameters(v *ListConnectionsResponseBodyConnectionsAuthParametersOauthParameters) *ListConnectionsResponseBodyConnectionsAuthParameters { |
| s.OauthParameters = v |
| return s |
| } |
| |
| type ListConnectionsResponseBodyConnectionsAuthParametersApiKeyAuthParameters struct { |
| // The API key. |
| // |
| // example: |
| // |
| // Token |
| ApiKeyName *string `json:"apiKeyName,omitempty" xml:"apiKeyName,omitempty"` |
| // The value of the API key. |
| // |
| // example: |
| // |
| // asdkjnqkwejooa |
| ApiKeyValue *string `json:"apiKeyValue,omitempty" xml:"apiKeyValue,omitempty"` |
| } |
| |
| func (s ListConnectionsResponseBodyConnectionsAuthParametersApiKeyAuthParameters) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s ListConnectionsResponseBodyConnectionsAuthParametersApiKeyAuthParameters) GoString() string { |
| return s.String() |
| } |
| |
| func (s *ListConnectionsResponseBodyConnectionsAuthParametersApiKeyAuthParameters) SetApiKeyName(v string) *ListConnectionsResponseBodyConnectionsAuthParametersApiKeyAuthParameters { |
| s.ApiKeyName = &v |
| return s |
| } |
| |
| func (s *ListConnectionsResponseBodyConnectionsAuthParametersApiKeyAuthParameters) SetApiKeyValue(v string) *ListConnectionsResponseBodyConnectionsAuthParametersApiKeyAuthParameters { |
| s.ApiKeyValue = &v |
| return s |
| } |
| |
| type ListConnectionsResponseBodyConnectionsAuthParametersBasicAuthParameters struct { |
| // The password for basic authentication. |
| // |
| // example: |
| // |
| // admin |
| Password *string `json:"password,omitempty" xml:"password,omitempty"` |
| // The username for basic authentication. |
| // |
| // example: |
| // |
| // admin |
| Username *string `json:"username,omitempty" xml:"username,omitempty"` |
| } |
| |
| func (s ListConnectionsResponseBodyConnectionsAuthParametersBasicAuthParameters) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s ListConnectionsResponseBodyConnectionsAuthParametersBasicAuthParameters) GoString() string { |
| return s.String() |
| } |
| |
| func (s *ListConnectionsResponseBodyConnectionsAuthParametersBasicAuthParameters) SetPassword(v string) *ListConnectionsResponseBodyConnectionsAuthParametersBasicAuthParameters { |
| s.Password = &v |
| return s |
| } |
| |
| func (s *ListConnectionsResponseBodyConnectionsAuthParametersBasicAuthParameters) SetUsername(v string) *ListConnectionsResponseBodyConnectionsAuthParametersBasicAuthParameters { |
| s.Username = &v |
| return s |
| } |
| |
| type ListConnectionsResponseBodyConnectionsAuthParametersOauthParameters struct { |
| // The endpoint that is used to obtain the OAuth token. |
| // |
| // example: |
| // |
| // http://localhost:8080/oauth/token |
| AuthorizationEndpoint *string `json:"authorizationEndpoint,omitempty" xml:"authorizationEndpoint,omitempty"` |
| // The parameters that are configured for the client. |
| ClientParameters *ListConnectionsResponseBodyConnectionsAuthParametersOauthParametersClientParameters `json:"clientParameters,omitempty" xml:"clientParameters,omitempty" type:"Struct"` |
| // The HTTP request method. Valid values: |
| // |
| // - GET |
| // |
| // - POST |
| // |
| // - HEAD |
| // |
| // example: |
| // |
| // POST |
| HttpMethod *string `json:"httpMethod,omitempty" xml:"httpMethod,omitempty"` |
| // The request parameters for OAuth authentication. |
| OauthHttpParameters *ListConnectionsResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParameters `json:"oauthHttpParameters,omitempty" xml:"oauthHttpParameters,omitempty" type:"Struct"` |
| } |
| |
| func (s ListConnectionsResponseBodyConnectionsAuthParametersOauthParameters) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s ListConnectionsResponseBodyConnectionsAuthParametersOauthParameters) GoString() string { |
| return s.String() |
| } |
| |
| func (s *ListConnectionsResponseBodyConnectionsAuthParametersOauthParameters) SetAuthorizationEndpoint(v string) *ListConnectionsResponseBodyConnectionsAuthParametersOauthParameters { |
| s.AuthorizationEndpoint = &v |
| return s |
| } |
| |
| func (s *ListConnectionsResponseBodyConnectionsAuthParametersOauthParameters) SetClientParameters(v *ListConnectionsResponseBodyConnectionsAuthParametersOauthParametersClientParameters) *ListConnectionsResponseBodyConnectionsAuthParametersOauthParameters { |
| s.ClientParameters = v |
| return s |
| } |
| |
| func (s *ListConnectionsResponseBodyConnectionsAuthParametersOauthParameters) SetHttpMethod(v string) *ListConnectionsResponseBodyConnectionsAuthParametersOauthParameters { |
| s.HttpMethod = &v |
| return s |
| } |
| |
| func (s *ListConnectionsResponseBodyConnectionsAuthParametersOauthParameters) SetOauthHttpParameters(v *ListConnectionsResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParameters) *ListConnectionsResponseBodyConnectionsAuthParametersOauthParameters { |
| s.OauthHttpParameters = v |
| return s |
| } |
| |
| type ListConnectionsResponseBodyConnectionsAuthParametersOauthParametersClientParameters struct { |
| // The client ID. |
| // |
| // example: |
| // |
| // ClientID |
| ClientID *string `json:"clientID,omitempty" xml:"clientID,omitempty"` |
| // The client key secret of the application. |
| // |
| // example: |
| // |
| // ClientSecret |
| ClientSecret *string `json:"clientSecret,omitempty" xml:"clientSecret,omitempty"` |
| } |
| |
| func (s ListConnectionsResponseBodyConnectionsAuthParametersOauthParametersClientParameters) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s ListConnectionsResponseBodyConnectionsAuthParametersOauthParametersClientParameters) GoString() string { |
| return s.String() |
| } |
| |
| func (s *ListConnectionsResponseBodyConnectionsAuthParametersOauthParametersClientParameters) SetClientID(v string) *ListConnectionsResponseBodyConnectionsAuthParametersOauthParametersClientParameters { |
| s.ClientID = &v |
| return s |
| } |
| |
| func (s *ListConnectionsResponseBodyConnectionsAuthParametersOauthParametersClientParameters) SetClientSecret(v string) *ListConnectionsResponseBodyConnectionsAuthParametersOauthParametersClientParameters { |
| s.ClientSecret = &v |
| return s |
| } |
| |
| type ListConnectionsResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParameters struct { |
| // The parameters that are configured for the request. |
| BodyParameters []*ListConnectionsResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParametersBodyParameters `json:"bodyParameters,omitempty" xml:"bodyParameters,omitempty" type:"Repeated"` |
| // The parameters that are configured for the request header. |
| HeaderParameters []*ListConnectionsResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParametersHeaderParameters `json:"headerParameters,omitempty" xml:"headerParameters,omitempty" type:"Repeated"` |
| // The parameters that are configured for the request path. |
| QueryStringParameters []*ListConnectionsResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParametersQueryStringParameters `json:"queryStringParameters,omitempty" xml:"queryStringParameters,omitempty" type:"Repeated"` |
| } |
| |
| func (s ListConnectionsResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParameters) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s ListConnectionsResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParameters) GoString() string { |
| return s.String() |
| } |
| |
| func (s *ListConnectionsResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParameters) SetBodyParameters(v []*ListConnectionsResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParametersBodyParameters) *ListConnectionsResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParameters { |
| s.BodyParameters = v |
| return s |
| } |
| |
| func (s *ListConnectionsResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParameters) SetHeaderParameters(v []*ListConnectionsResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParametersHeaderParameters) *ListConnectionsResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParameters { |
| s.HeaderParameters = v |
| return s |
| } |
| |
| func (s *ListConnectionsResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParameters) SetQueryStringParameters(v []*ListConnectionsResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParametersQueryStringParameters) *ListConnectionsResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParameters { |
| s.QueryStringParameters = v |
| return s |
| } |
| |
| type ListConnectionsResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParametersBodyParameters struct { |
| // Indicates whether authentication is enabled. |
| // |
| // example: |
| // |
| // false |
| IsValueSecret *string `json:"isValueSecret,omitempty" xml:"isValueSecret,omitempty"` |
| // The key in the request body. |
| // |
| // example: |
| // |
| // name |
| Key *string `json:"key,omitempty" xml:"key,omitempty"` |
| // The value of the key in the request body. |
| // |
| // example: |
| // |
| // demo |
| Value *string `json:"value,omitempty" xml:"value,omitempty"` |
| } |
| |
| func (s ListConnectionsResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParametersBodyParameters) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s ListConnectionsResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParametersBodyParameters) GoString() string { |
| return s.String() |
| } |
| |
| func (s *ListConnectionsResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParametersBodyParameters) SetIsValueSecret(v string) *ListConnectionsResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParametersBodyParameters { |
| s.IsValueSecret = &v |
| return s |
| } |
| |
| func (s *ListConnectionsResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParametersBodyParameters) SetKey(v string) *ListConnectionsResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParametersBodyParameters { |
| s.Key = &v |
| return s |
| } |
| |
| func (s *ListConnectionsResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParametersBodyParameters) SetValue(v string) *ListConnectionsResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParametersBodyParameters { |
| s.Value = &v |
| return s |
| } |
| |
| type ListConnectionsResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParametersHeaderParameters struct { |
| // Indicates whether authentication is enabled. |
| // |
| // example: |
| // |
| // false |
| IsValueSecret *string `json:"isValueSecret,omitempty" xml:"isValueSecret,omitempty"` |
| // The key in the request header. |
| // |
| // example: |
| // |
| // name |
| Key *string `json:"key,omitempty" xml:"key,omitempty"` |
| // The value of the key in the request header. |
| // |
| // example: |
| // |
| // demo |
| Value *string `json:"value,omitempty" xml:"value,omitempty"` |
| } |
| |
| func (s ListConnectionsResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParametersHeaderParameters) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s ListConnectionsResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParametersHeaderParameters) GoString() string { |
| return s.String() |
| } |
| |
| func (s *ListConnectionsResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParametersHeaderParameters) SetIsValueSecret(v string) *ListConnectionsResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParametersHeaderParameters { |
| s.IsValueSecret = &v |
| return s |
| } |
| |
| func (s *ListConnectionsResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParametersHeaderParameters) SetKey(v string) *ListConnectionsResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParametersHeaderParameters { |
| s.Key = &v |
| return s |
| } |
| |
| func (s *ListConnectionsResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParametersHeaderParameters) SetValue(v string) *ListConnectionsResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParametersHeaderParameters { |
| s.Value = &v |
| return s |
| } |
| |
| type ListConnectionsResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParametersQueryStringParameters struct { |
| // Indicates whether authentication is enabled. |
| // |
| // example: |
| // |
| // false |
| IsValueSecret *string `json:"isValueSecret,omitempty" xml:"isValueSecret,omitempty"` |
| // The key in the request path. |
| // |
| // example: |
| // |
| // name |
| Key *string `json:"key,omitempty" xml:"key,omitempty"` |
| // The value of the key in the request path. |
| // |
| // example: |
| // |
| // demo |
| Value *string `json:"value,omitempty" xml:"value,omitempty"` |
| } |
| |
| func (s ListConnectionsResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParametersQueryStringParameters) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s ListConnectionsResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParametersQueryStringParameters) GoString() string { |
| return s.String() |
| } |
| |
| func (s *ListConnectionsResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParametersQueryStringParameters) SetIsValueSecret(v string) *ListConnectionsResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParametersQueryStringParameters { |
| s.IsValueSecret = &v |
| return s |
| } |
| |
| func (s *ListConnectionsResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParametersQueryStringParameters) SetKey(v string) *ListConnectionsResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParametersQueryStringParameters { |
| s.Key = &v |
| return s |
| } |
| |
| func (s *ListConnectionsResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParametersQueryStringParameters) SetValue(v string) *ListConnectionsResponseBodyConnectionsAuthParametersOauthParametersOauthHttpParametersQueryStringParameters { |
| s.Value = &v |
| return s |
| } |
| |
| type ListConnectionsResponseBodyConnectionsNetworkParameters struct { |
| // The network type. Valid values:PublicNetwork and PrivateNetwork. |
| // |
| // example: |
| // |
| // PublicNetwork |
| NetworkType *string `json:"networkType,omitempty" xml:"networkType,omitempty"` |
| // The security group ID. |
| // |
| // example: |
| // |
| // eb-167adad548759-security_grop/sg-bp1addad26peuh9qh9rtyb |
| SecurityGroupId *string `json:"securityGroupId,omitempty" xml:"securityGroupId,omitempty"` |
| // The virtual private cloud (VPC) ID. |
| // |
| // example: |
| // |
| // eb-test/vpc-bp1symadadwnwgmqud |
| VpcId *string `json:"vpcId,omitempty" xml:"vpcId,omitempty"` |
| // The vSwitch ID. |
| // |
| // example: |
| // |
| // vsw-bp1iu4x7aeradadown1og8,vsw-bp193sqmadadlaszpeqbt2c |
| VswitcheId *string `json:"vswitcheId,omitempty" xml:"vswitcheId,omitempty"` |
| } |
| |
| func (s ListConnectionsResponseBodyConnectionsNetworkParameters) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s ListConnectionsResponseBodyConnectionsNetworkParameters) GoString() string { |
| return s.String() |
| } |
| |
| func (s *ListConnectionsResponseBodyConnectionsNetworkParameters) SetNetworkType(v string) *ListConnectionsResponseBodyConnectionsNetworkParameters { |
| s.NetworkType = &v |
| return s |
| } |
| |
| func (s *ListConnectionsResponseBodyConnectionsNetworkParameters) SetSecurityGroupId(v string) *ListConnectionsResponseBodyConnectionsNetworkParameters { |
| s.SecurityGroupId = &v |
| return s |
| } |
| |
| func (s *ListConnectionsResponseBodyConnectionsNetworkParameters) SetVpcId(v string) *ListConnectionsResponseBodyConnectionsNetworkParameters { |
| s.VpcId = &v |
| return s |
| } |
| |
| func (s *ListConnectionsResponseBodyConnectionsNetworkParameters) SetVswitcheId(v string) *ListConnectionsResponseBodyConnectionsNetworkParameters { |
| s.VswitcheId = &v |
| return s |
| } |
| |
| type ListConnectionsResponse struct { |
| Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` |
| StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` |
| Body *ListConnectionsResponseBody `json:"body,omitempty" xml:"body,omitempty"` |
| } |
| |
| func (s ListConnectionsResponse) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s ListConnectionsResponse) GoString() string { |
| return s.String() |
| } |
| |
| func (s *ListConnectionsResponse) SetHeaders(v map[string]*string) *ListConnectionsResponse { |
| s.Headers = v |
| return s |
| } |
| |
| func (s *ListConnectionsResponse) SetStatusCode(v int32) *ListConnectionsResponse { |
| s.StatusCode = &v |
| return s |
| } |
| |
| func (s *ListConnectionsResponse) SetBody(v *ListConnectionsResponseBody) *ListConnectionsResponse { |
| s.Body = v |
| return s |
| } |
| |
| // enum AuthorizationTypeEnums : string { |
| // API_KEY_AUTH(name="API_KEY_AUTH", value="API_KEY_AUTH"), |
| // BASIC_AUTH(name="BASIC_AUTH", value="BASIC_AUTH"), |
| // OAUTH_AUTH(name="OAUTH_AUTH", value="OAUTH_AUTH"), |
| // } |
| // enum NetworkTypeEnum : string { |
| // PUBLIC_NETWORK(name="PUBLIC_NETWORK", value="PublicNetwork"), |
| // PRIVATE_NETWORK(name="PRIVATE_NETWORK", value="PrivateNetwork") |
| // } |
| type ListEnumsResponseResponseBody struct { |
| AuthorizationTypeEnums *string `json:"authorizationTypeEnums,omitempty" xml:"authorizationTypeEnums,omitempty"` |
| NetworkTypeEnums *string `json:"networkTypeEnums,omitempty" xml:"networkTypeEnums,omitempty"` |
| // The returned response code. |
| // |
| // example: |
| // |
| // Success |
| Code *string `json:"code,omitempty" xml:"code,omitempty"` |
| // The returned message. |
| // |
| // example: |
| // |
| // success |
| Message *string `json:"message,omitempty" xml:"message,omitempty"` |
| // The request ID. |
| // |
| // example: |
| // |
| // 8346BE8F-40F3-533D-A0B8-1359C31BD5BA |
| RequestId *string `json:"requestId,omitempty" xml:"requestId,omitempty"` |
| } |
| |
| func (s ListEnumsResponseResponseBody) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s ListEnumsResponseResponseBody) GoString() string { |
| return s.String() |
| } |
| |
| func (s *ListEnumsResponseResponseBody) SetAuthorizationTypeEnums(v string) *ListEnumsResponseResponseBody { |
| s.AuthorizationTypeEnums = &v |
| return s |
| } |
| |
| func (s *ListEnumsResponseResponseBody) SetNetworkTypeEnums(v string) *ListEnumsResponseResponseBody { |
| s.NetworkTypeEnums = &v |
| return s |
| } |
| |
| func (s *ListEnumsResponseResponseBody) SetCode(v string) *ListEnumsResponseResponseBody { |
| s.Code = &v |
| return s |
| } |
| |
| func (s *ListEnumsResponseResponseBody) SetMessage(v string) *ListEnumsResponseResponseBody { |
| s.Message = &v |
| return s |
| } |
| |
| func (s *ListEnumsResponseResponseBody) SetRequestId(v string) *ListEnumsResponseResponseBody { |
| s.RequestId = &v |
| return s |
| } |
| |
| type ListEnumsResponseResponse struct { |
| Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` |
| StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"` |
| Body *UpdateConnectionResponseBody `json:"body,omitempty" xml:"body,omitempty"` |
| } |
| |
| func (s ListEnumsResponseResponse) String() string { |
| return tea.Prettify(s) |
| } |
| |
| func (s ListEnumsResponseResponse) GoString() string { |
| return s.String() |
| } |
| |
| func (s *ListEnumsResponseResponse) SetHeaders(v map[string]*string) *ListEnumsResponseResponse { |
| s.Headers = v |
| return s |
| } |
| |
| func (s *ListEnumsResponseResponse) SetStatusCode(v int32) *ListEnumsResponseResponse { |
| s.StatusCode = &v |
| return s |
| } |
| |
| func (s *ListEnumsResponseResponse) SetBody(v *UpdateConnectionResponseBody) *ListEnumsResponseResponse { |
| s.Body = v |
| |