client

package
v1.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2025 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Overview

This file is auto-generated, don't edit it. Thanks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangeResourceGroupRequest

type ChangeResourceGroupRequest struct {
	// The ID of the new resource group.
	//
	// This parameter is required.
	//
	// example:
	//
	// rg-aek3bgek3kxhyky
	NewResourceGroupId *string `json:"NewResourceGroupId,omitempty" xml:"NewResourceGroupId,omitempty"`
	// The resource ID, which is the instance name.
	//
	// This parameter is required.
	//
	// example:
	//
	// first-ins
	ResourceId *string `json:"ResourceId,omitempty" xml:"ResourceId,omitempty"`
}

func (ChangeResourceGroupRequest) GoString

func (s ChangeResourceGroupRequest) GoString() string

func (*ChangeResourceGroupRequest) SetNewResourceGroupId

func (s *ChangeResourceGroupRequest) SetNewResourceGroupId(v string) *ChangeResourceGroupRequest

func (*ChangeResourceGroupRequest) SetResourceId

func (ChangeResourceGroupRequest) String

type ChangeResourceGroupResponse

type ChangeResourceGroupResponse struct {
	Headers    map[string]*string               `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                           `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *ChangeResourceGroupResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (ChangeResourceGroupResponse) GoString

func (s ChangeResourceGroupResponse) GoString() string

func (*ChangeResourceGroupResponse) SetBody

func (*ChangeResourceGroupResponse) SetHeaders

func (*ChangeResourceGroupResponse) SetStatusCode

func (ChangeResourceGroupResponse) String

type ChangeResourceGroupResponseBody

type ChangeResourceGroupResponseBody struct {
	// The request ID, which can be used to troubleshoot issues.
	//
	// example:
	//
	// 39871ED2-62C0-578F-A32E-B88072D5582F
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (ChangeResourceGroupResponseBody) GoString

func (*ChangeResourceGroupResponseBody) SetRequestId

func (ChangeResourceGroupResponseBody) String

type CheckInstancePolicyRequest added in v1.1.0

type CheckInstancePolicyRequest struct {
	// The name of the instance.
	//
	// This parameter is required.
	//
	// example:
	//
	// workshop-bj-ots1
	InstanceName *string `json:"InstanceName,omitempty" xml:"InstanceName,omitempty"`
	// The instance policy in the JSON format.
	//
	// This parameter is required.
	//
	// example:
	//
	// {
	//
	//     "Version": "1",
	//
	//     "Statement": [
	//
	//         {
	//
	//             "Action": [
	//
	//                 "ots:*"
	//
	//             ],
	//
	//             "Resource": [
	//
	//                 "acs:ots:*:13791xxxxxxxxxxx:instance/myinstance*"
	//
	//             ],
	//
	//             "Principal": [
	//
	//                 "*"
	//
	//             ],
	//
	//             "Effect": "Allow",
	//
	//             "Condition": {
	//
	//                 "StringEquals": {
	//
	//                     "ots:TLSVersion": [
	//
	//                         "1.2"
	//
	//                     ]
	//
	//                 },
	//
	//                 "IpAddress": {
	//
	//                     "acs:SourceIp": [
	//
	//                         "192.168.0.1",
	//
	//                         "172.16.0.1"
	//
	//                     ]
	//
	//                 }
	//
	//             }
	//
	//         }
	//
	//     ]
	//
	// }
	Policy *string `json:"Policy,omitempty" xml:"Policy,omitempty"`
}

func (CheckInstancePolicyRequest) GoString added in v1.1.0

func (s CheckInstancePolicyRequest) GoString() string

func (*CheckInstancePolicyRequest) SetInstanceName added in v1.1.0

func (*CheckInstancePolicyRequest) SetPolicy added in v1.1.0

func (CheckInstancePolicyRequest) String added in v1.1.0

type CheckInstancePolicyResponse added in v1.1.0

type CheckInstancePolicyResponse struct {
	Headers    map[string]*string               `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                           `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *CheckInstancePolicyResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (CheckInstancePolicyResponse) GoString added in v1.1.0

func (s CheckInstancePolicyResponse) GoString() string

func (*CheckInstancePolicyResponse) SetBody added in v1.1.0

func (*CheckInstancePolicyResponse) SetHeaders added in v1.1.0

func (*CheckInstancePolicyResponse) SetStatusCode added in v1.1.0

func (CheckInstancePolicyResponse) String added in v1.1.0

type CheckInstancePolicyResponseBody added in v1.1.0

type CheckInstancePolicyResponseBody struct {
	// The HTTP status code.
	//
	// example:
	//
	// OK
	Code *string `json:"Code,omitempty" xml:"Code,omitempty"`
	// The response message.
	//
	// example:
	//
	// Verification passed.
	Message *string `json:"Message,omitempty" xml:"Message,omitempty"`
	// The request ID, which can be used to troubleshoot issues.
	//
	// example:
	//
	// 757E172A-F94B-5E78-8A23-D9068E42F2E9
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (CheckInstancePolicyResponseBody) GoString added in v1.1.0

func (*CheckInstancePolicyResponseBody) SetCode added in v1.1.0

func (*CheckInstancePolicyResponseBody) SetMessage added in v1.1.0

func (*CheckInstancePolicyResponseBody) SetRequestId added in v1.1.0

func (CheckInstancePolicyResponseBody) String added in v1.1.0

type Client

type Client struct {
	openapi.Client
}

func NewClient

func NewClient(config *openapi.Config) (*Client, error)

func (*Client) ChangeResourceGroup

func (client *Client) ChangeResourceGroup(request *ChangeResourceGroupRequest) (_result *ChangeResourceGroupResponse, _err error)

Summary:

Changes the resource group to which an instance belongs.

@param request - ChangeResourceGroupRequest

@return ChangeResourceGroupResponse

func (*Client) ChangeResourceGroupWithOptions

func (client *Client) ChangeResourceGroupWithOptions(request *ChangeResourceGroupRequest, headers map[string]*string, runtime *util.RuntimeOptions) (_result *ChangeResourceGroupResponse, _err error)

Summary:

Changes the resource group to which an instance belongs.

@param request - ChangeResourceGroupRequest

@param headers - map

@param runtime - runtime options for this request RuntimeOptions

@return ChangeResourceGroupResponse

func (*Client) CheckInstancePolicy added in v1.1.0

func (client *Client) CheckInstancePolicy(request *CheckInstancePolicyRequest) (_result *CheckInstancePolicyResponse, _err error)

Summary:

Checks the validity of a Resource Access Management (RAM) policy for an instance.

@param request - CheckInstancePolicyRequest

@return CheckInstancePolicyResponse

func (*Client) CheckInstancePolicyWithOptions added in v1.1.0

func (client *Client) CheckInstancePolicyWithOptions(request *CheckInstancePolicyRequest, headers map[string]*string, runtime *util.RuntimeOptions) (_result *CheckInstancePolicyResponse, _err error)

Summary:

Checks the validity of a Resource Access Management (RAM) policy for an instance.

@param request - CheckInstancePolicyRequest

@param headers - map

@param runtime - runtime options for this request RuntimeOptions

@return CheckInstancePolicyResponse

func (*Client) CreateInstance

func (client *Client) CreateInstance(request *CreateInstanceRequest) (_result *CreateInstanceResponse, _err error)

Summary:

Creates an instance.

Description:

  **Before you call this operation, you must understand the billing and pricing of Tablestore. For more information, see [Billing overview](https://help.aliyun.com/document_detail/27291.html).**

	- Each Alibaba Cloud account can create up to 10 instances. The name of an instance must be unique within the region in which the instance resides.

	- After you create an instance, you cannot change the type of the instance. Proceed with caution.

@param request - CreateInstanceRequest

@return CreateInstanceResponse

func (*Client) CreateInstanceWithOptions

func (client *Client) CreateInstanceWithOptions(request *CreateInstanceRequest, headers map[string]*string, runtime *util.RuntimeOptions) (_result *CreateInstanceResponse, _err error)

Summary:

Creates an instance.

Description:

  **Before you call this operation, you must understand the billing and pricing of Tablestore. For more information, see [Billing overview](https://help.aliyun.com/document_detail/27291.html).**

	- Each Alibaba Cloud account can create up to 10 instances. The name of an instance must be unique within the region in which the instance resides.

	- After you create an instance, you cannot change the type of the instance. Proceed with caution.

@param request - CreateInstanceRequest

@param headers - map

@param runtime - runtime options for this request RuntimeOptions

@return CreateInstanceResponse

func (*Client) DeleteInstance

func (client *Client) DeleteInstance(request *DeleteInstanceRequest) (_result *DeleteInstanceResponse, _err error)

Summary:

Deletes an instance.

Description:

  Before you delete an instance, make sure that all data tables and time series tables in the instance are deleted and virtual private clouds (VPCs) are unbound from the instance.

	- To prevent conflicts, do not create an instance that has the same name as the instance that is being deleted.

	- After an instance is deleted, the instance becomes unavailable and the tables, table data, and related indexes in the instance cannot be recovered. Proceed with caution.

@param request - DeleteInstanceRequest

@return DeleteInstanceResponse

func (*Client) DeleteInstancePolicy added in v1.1.0

func (client *Client) DeleteInstancePolicy(request *DeleteInstancePolicyRequest) (_result *DeleteInstancePolicyResponse, _err error)

Summary:

Deletes a Resource Access Management (RAM) policy of an instance.

Description:

  You cannot recover a deleted instance policy. Proceed with caution.

	- After you delete an instance policy, the access control that is specified by the instance policy becomes invalid. Make sure that your instance is in a secure environment.

@param request - DeleteInstancePolicyRequest

@return DeleteInstancePolicyResponse

func (*Client) DeleteInstancePolicyWithOptions added in v1.1.0

func (client *Client) DeleteInstancePolicyWithOptions(request *DeleteInstancePolicyRequest, headers map[string]*string, runtime *util.RuntimeOptions) (_result *DeleteInstancePolicyResponse, _err error)

Summary:

Deletes a Resource Access Management (RAM) policy of an instance.

Description:

  You cannot recover a deleted instance policy. Proceed with caution.

	- After you delete an instance policy, the access control that is specified by the instance policy becomes invalid. Make sure that your instance is in a secure environment.

@param request - DeleteInstancePolicyRequest

@param headers - map

@param runtime - runtime options for this request RuntimeOptions

@return DeleteInstancePolicyResponse

func (*Client) DeleteInstanceWithOptions

func (client *Client) DeleteInstanceWithOptions(request *DeleteInstanceRequest, headers map[string]*string, runtime *util.RuntimeOptions) (_result *DeleteInstanceResponse, _err error)

Summary:

Deletes an instance.

Description:

  Before you delete an instance, make sure that all data tables and time series tables in the instance are deleted and virtual private clouds (VPCs) are unbound from the instance.

	- To prevent conflicts, do not create an instance that has the same name as the instance that is being deleted.

	- After an instance is deleted, the instance becomes unavailable and the tables, table data, and related indexes in the instance cannot be recovered. Proceed with caution.

@param request - DeleteInstanceRequest

@param headers - map

@param runtime - runtime options for this request RuntimeOptions

@return DeleteInstanceResponse

func (*Client) DescribeRegions

func (client *Client) DescribeRegions(request *DescribeRegionsRequest) (_result *DescribeRegionsResponse, _err error)

Summary:

Queries supported regions.

@param request - DescribeRegionsRequest

@return DescribeRegionsResponse

func (*Client) DescribeRegionsWithOptions

func (client *Client) DescribeRegionsWithOptions(request *DescribeRegionsRequest, headers map[string]*string, runtime *util.RuntimeOptions) (_result *DescribeRegionsResponse, _err error)

Summary:

Queries supported regions.

@param request - DescribeRegionsRequest

@param headers - map

@param runtime - runtime options for this request RuntimeOptions

@return DescribeRegionsResponse

func (*Client) GetEndpoint

func (client *Client) GetEndpoint(productId *string, regionId *string, endpointRule *string, network *string, suffix *string, endpointMap map[string]*string, endpoint *string) (_result *string, _err error)

func (*Client) GetInstance

func (client *Client) GetInstance(request *GetInstanceRequest) (_result *GetInstanceResponse, _err error)

Summary:

Queries instance information.

@param request - GetInstanceRequest

@return GetInstanceResponse

func (*Client) GetInstanceWithOptions

func (client *Client) GetInstanceWithOptions(request *GetInstanceRequest, headers map[string]*string, runtime *util.RuntimeOptions) (_result *GetInstanceResponse, _err error)

Summary:

Queries instance information.

@param request - GetInstanceRequest

@param headers - map

@param runtime - runtime options for this request RuntimeOptions

@return GetInstanceResponse

func (*Client) Init

func (client *Client) Init(config *openapi.Config) (_err error)

func (*Client) ListInstances

func (client *Client) ListInstances(request *ListInstancesRequest) (_result *ListInstancesResponse, _err error)

Summary:

Queries instances.

@param request - ListInstancesRequest

@return ListInstancesResponse

func (*Client) ListInstancesWithOptions

func (client *Client) ListInstancesWithOptions(tmpReq *ListInstancesRequest, headers map[string]*string, runtime *util.RuntimeOptions) (_result *ListInstancesResponse, _err error)

Summary:

Queries instances.

@param tmpReq - ListInstancesRequest

@param headers - map

@param runtime - runtime options for this request RuntimeOptions

@return ListInstancesResponse

func (*Client) ListTagResources

func (client *Client) ListTagResources(request *ListTagResourcesRequest) (_result *ListTagResourcesResponse, _err error)

Summary:

Queries tagged resources.

@param request - ListTagResourcesRequest

@return ListTagResourcesResponse

func (*Client) ListTagResourcesWithOptions

func (client *Client) ListTagResourcesWithOptions(tmpReq *ListTagResourcesRequest, headers map[string]*string, runtime *util.RuntimeOptions) (_result *ListTagResourcesResponse, _err error)

Summary:

Queries tagged resources.

@param tmpReq - ListTagResourcesRequest

@param headers - map

@param runtime - runtime options for this request RuntimeOptions

@return ListTagResourcesResponse

func (*Client) TagResources

func (client *Client) TagResources(request *TagResourcesRequest) (_result *TagResourcesResponse, _err error)

Summary:

Adds tags to instances.

@param request - TagResourcesRequest

@return TagResourcesResponse

func (*Client) TagResourcesWithOptions

func (client *Client) TagResourcesWithOptions(request *TagResourcesRequest, headers map[string]*string, runtime *util.RuntimeOptions) (_result *TagResourcesResponse, _err error)

Summary:

Adds tags to instances.

@param request - TagResourcesRequest

@param headers - map

@param runtime - runtime options for this request RuntimeOptions

@return TagResourcesResponse

func (*Client) UntagResources

func (client *Client) UntagResources(request *UntagResourcesRequest) (_result *UntagResourcesResponse, _err error)

Summary:

Removes tags from resources.

Description:

Removing tags from resources helps simplify resource management, optimize system performance, and mitigate potential security vulnerabilities. After a tag is removed from a resource, the system automatically deletes the tag if the tag is not added to other resources.

@param request - UntagResourcesRequest

@return UntagResourcesResponse

func (*Client) UntagResourcesWithOptions

func (client *Client) UntagResourcesWithOptions(request *UntagResourcesRequest, headers map[string]*string, runtime *util.RuntimeOptions) (_result *UntagResourcesResponse, _err error)

Summary:

Removes tags from resources.

Description:

Removing tags from resources helps simplify resource management, optimize system performance, and mitigate potential security vulnerabilities. After a tag is removed from a resource, the system automatically deletes the tag if the tag is not added to other resources.

@param request - UntagResourcesRequest

@param headers - map

@param runtime - runtime options for this request RuntimeOptions

@return UntagResourcesResponse

func (*Client) UpdateInstance

func (client *Client) UpdateInstance(request *UpdateInstanceRequest) (_result *UpdateInstanceResponse, _err error)

Summary:

Updates instance information.

@param request - UpdateInstanceRequest

@return UpdateInstanceResponse

func (*Client) UpdateInstanceElasticVCUUpperLimit added in v1.1.0

func (client *Client) UpdateInstanceElasticVCUUpperLimit(request *UpdateInstanceElasticVCUUpperLimitRequest) (_result *UpdateInstanceElasticVCUUpperLimitResponse, _err error)

Summary:

Modifies the upper limit for the VCUs of an instance in VCU mode (formerly reserved mode).

Description:

  **Before you call this operation, you must understand the billing and pricing of Tablestore. For more information, see [Billing overview](https://help.aliyun.com/document_detail/27291.html).**

	- After you enable scalability for an instance, the default upper limit for the VCUs of the instance is the sum of the scalability and the reserved VCUs.

	- To use more computing resources when your business grows, you can modify the upper limit for the VCUs of your instance. The new upper limit for the VCUs of your instance immediately takes effect.

@param request - UpdateInstanceElasticVCUUpperLimitRequest

@return UpdateInstanceElasticVCUUpperLimitResponse

func (*Client) UpdateInstanceElasticVCUUpperLimitWithOptions added in v1.1.0

func (client *Client) UpdateInstanceElasticVCUUpperLimitWithOptions(request *UpdateInstanceElasticVCUUpperLimitRequest, headers map[string]*string, runtime *util.RuntimeOptions) (_result *UpdateInstanceElasticVCUUpperLimitResponse, _err error)

Summary:

Modifies the upper limit for the VCUs of an instance in VCU mode (formerly reserved mode).

Description:

  **Before you call this operation, you must understand the billing and pricing of Tablestore. For more information, see [Billing overview](https://help.aliyun.com/document_detail/27291.html).**

	- After you enable scalability for an instance, the default upper limit for the VCUs of the instance is the sum of the scalability and the reserved VCUs.

	- To use more computing resources when your business grows, you can modify the upper limit for the VCUs of your instance. The new upper limit for the VCUs of your instance immediately takes effect.

@param request - UpdateInstanceElasticVCUUpperLimitRequest

@param headers - map

@param runtime - runtime options for this request RuntimeOptions

@return UpdateInstanceElasticVCUUpperLimitResponse

func (*Client) UpdateInstancePolicy added in v1.1.0

func (client *Client) UpdateInstancePolicy(request *UpdateInstancePolicyRequest) (_result *UpdateInstancePolicyResponse, _err error)

Summary:

Modifies a Resource Access Management (RAM) policy for an instance.

@param request - UpdateInstancePolicyRequest

@return UpdateInstancePolicyResponse

func (*Client) UpdateInstancePolicyWithOptions added in v1.1.0

func (client *Client) UpdateInstancePolicyWithOptions(request *UpdateInstancePolicyRequest, headers map[string]*string, runtime *util.RuntimeOptions) (_result *UpdateInstancePolicyResponse, _err error)

Summary:

Modifies a Resource Access Management (RAM) policy for an instance.

@param request - UpdateInstancePolicyRequest

@param headers - map

@param runtime - runtime options for this request RuntimeOptions

@return UpdateInstancePolicyResponse

func (*Client) UpdateInstanceWithOptions

func (client *Client) UpdateInstanceWithOptions(request *UpdateInstanceRequest, headers map[string]*string, runtime *util.RuntimeOptions) (_result *UpdateInstanceResponse, _err error)

Summary:

Updates instance information.

@param request - UpdateInstanceRequest

@param headers - map

@param runtime - runtime options for this request RuntimeOptions

@return UpdateInstanceResponse

type CreateInstanceRequest

type CreateInstanceRequest struct {
	// The type of the instance.
	//
	// This parameter is required.
	//
	// example:
	//
	// SSD
	ClusterType *string `json:"ClusterType,omitempty" xml:"ClusterType,omitempty"`
	// (Deprecated) Specifies whether to enable disaster recovery for the instance.
	//
	// Valid values:
	//
	// 	- false
	//
	// 	- true
	//
	// example:
	//
	// false
	DisableReplication *bool `json:"DisableReplication,omitempty" xml:"DisableReplication,omitempty"`
	// The description of the instance. The instance description must be 3 to 256 characters in length.
	//
	// example:
	//
	// the test instance
	InstanceDescription *string `json:"InstanceDescription,omitempty" xml:"InstanceDescription,omitempty"`
	// The name of the instance. Instance naming conventions:
	//
	// 	- The name can contain only letters, digits, and hyphens (-).
	//
	// 	- The name must start with a letter.
	//
	// 	- The name cannot end with a hyphen (-).
	//
	// 	- The name is case-insensitive.
	//
	// 	- The name must be 3 to 16 characters in length.
	//
	// 	- The name cannot contain the following words: ali, ay, ots, taobao, and admin.
	//
	// This parameter is required.
	//
	// example:
	//
	// instance-test
	InstanceName *string `json:"InstanceName,omitempty" xml:"InstanceName,omitempty"`
	// (Deprecated) The network type of the instance. Valid values: NORMAL and VPC_CONSOLE. Default value: NORMAL.
	//
	// example:
	//
	// NORMAL
	Network *string `json:"Network,omitempty" xml:"Network,omitempty"`
	// The types of the source from which access is allowed. By default, the following source type is allowed:
	//
	// TRUST_PROXY: console
	NetworkSourceACL []*string `json:"NetworkSourceACL,omitempty" xml:"NetworkSourceACL,omitempty" type:"Repeated"`
	// The types of the network from which access is allowed. By default, the following network types are allowed:
	//
	// 	- INTERNET: Internet
	//
	// 	- VPC: virtual private cloud (VPC)
	//
	// 	- CLASSIC: classic network
	NetworkTypeACL []*string `json:"NetworkTypeACL,omitempty" xml:"NetworkTypeACL,omitempty" type:"Repeated"`
	// The instance policy in the JSON format.
	//
	// example:
	//
	// {
	//
	//     "Version": "1",
	//
	//     "Statement": [
	//
	//         {
	//
	//             "Action": [
	//
	//                 "ots:*"
	//
	//             ],
	//
	//             "Resource": [
	//
	//                 "acs:ots:*:13791xxxxxxxxxxx:instance/myinstance*"
	//
	//             ],
	//
	//             "Principal": [
	//
	//                 "*"
	//
	//             ],
	//
	//             "Effect": "Allow",
	//
	//             "Condition": {
	//
	//                 "StringEquals": {
	//
	//                     "ots:TLSVersion": [
	//
	//                         "1.2"
	//
	//                     ]
	//
	//                 },
	//
	//                 "IpAddress": {
	//
	//                     "acs:SourceIp": [
	//
	//                         "192.168.0.1",
	//
	//                         "198.51.100.1"
	//
	//                     ]
	//
	//                 }
	//
	//             }
	//
	//         }
	//
	//     ]
	//
	// }
	Policy *string `json:"Policy,omitempty" xml:"Policy,omitempty"`
	// The ID of the resource group to which the instance belongs.
	//
	// example:
	//
	// rg-acfmxh4em5jnbcd
	ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"`
	// The tags.
	Tags []*CreateInstanceRequestTags `json:"Tags,omitempty" xml:"Tags,omitempty" type:"Repeated"`
}

func (CreateInstanceRequest) GoString

func (s CreateInstanceRequest) GoString() string

func (*CreateInstanceRequest) SetClusterType

func (s *CreateInstanceRequest) SetClusterType(v string) *CreateInstanceRequest

func (*CreateInstanceRequest) SetDisableReplication added in v1.0.1

func (s *CreateInstanceRequest) SetDisableReplication(v bool) *CreateInstanceRequest

func (*CreateInstanceRequest) SetInstanceDescription

func (s *CreateInstanceRequest) SetInstanceDescription(v string) *CreateInstanceRequest

func (*CreateInstanceRequest) SetInstanceName

func (s *CreateInstanceRequest) SetInstanceName(v string) *CreateInstanceRequest

func (*CreateInstanceRequest) SetNetwork

func (*CreateInstanceRequest) SetNetworkSourceACL

func (s *CreateInstanceRequest) SetNetworkSourceACL(v []*string) *CreateInstanceRequest

func (*CreateInstanceRequest) SetNetworkTypeACL

func (s *CreateInstanceRequest) SetNetworkTypeACL(v []*string) *CreateInstanceRequest

func (*CreateInstanceRequest) SetPolicy

func (*CreateInstanceRequest) SetResourceGroupId

func (s *CreateInstanceRequest) SetResourceGroupId(v string) *CreateInstanceRequest

func (*CreateInstanceRequest) SetTags

func (CreateInstanceRequest) String

func (s CreateInstanceRequest) String() string

type CreateInstanceRequestTags

type CreateInstanceRequestTags struct {
	// The tag key. The tag key can be up to 64 characters in length.
	//
	// This parameter is required.
	//
	// example:
	//
	// p_instance
	Key *string `json:"Key,omitempty" xml:"Key,omitempty"`
	// The tag value. The tag value can be up to 64 characters in length.
	//
	// This parameter is required.
	//
	// example:
	//
	// 0woauavextilfqr61
	Value *string `json:"Value,omitempty" xml:"Value,omitempty"`
}

func (CreateInstanceRequestTags) GoString

func (s CreateInstanceRequestTags) GoString() string

func (*CreateInstanceRequestTags) SetKey

func (*CreateInstanceRequestTags) SetValue

func (CreateInstanceRequestTags) String

func (s CreateInstanceRequestTags) String() string

type CreateInstanceResponse

type CreateInstanceResponse struct {
	Headers    map[string]*string          `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                      `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *CreateInstanceResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (CreateInstanceResponse) GoString

func (s CreateInstanceResponse) GoString() string

func (*CreateInstanceResponse) SetBody

func (*CreateInstanceResponse) SetHeaders

func (*CreateInstanceResponse) SetStatusCode

func (CreateInstanceResponse) String

func (s CreateInstanceResponse) String() string

type CreateInstanceResponseBody

type CreateInstanceResponseBody struct {
	// The HTTP status code.
	//
	// example:
	//
	// 200
	Code *string `json:"Code,omitempty" xml:"Code,omitempty"`
	// The response message.
	//
	// example:
	//
	// success
	Message *string `json:"Message,omitempty" xml:"Message,omitempty"`
	// The request ID, which can be used to troubleshoot issues.
	//
	// example:
	//
	// 39871ED2-62C0-578F-A32E-B88072D5582F
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (CreateInstanceResponseBody) GoString

func (s CreateInstanceResponseBody) GoString() string

func (*CreateInstanceResponseBody) SetCode

func (*CreateInstanceResponseBody) SetMessage

func (*CreateInstanceResponseBody) SetRequestId

func (CreateInstanceResponseBody) String

type DeleteInstancePolicyRequest added in v1.1.0

type DeleteInstancePolicyRequest struct {
	// The name of the instance.
	//
	// This parameter is required.
	//
	// example:
	//
	// my-test-12345
	InstanceName *string `json:"InstanceName,omitempty" xml:"InstanceName,omitempty"`
	// The version of the instance policy.
	//
	// This parameter is required.
	//
	// example:
	//
	// 2
	PolicyVersion *int64 `json:"PolicyVersion,omitempty" xml:"PolicyVersion,omitempty"`
}

func (DeleteInstancePolicyRequest) GoString added in v1.1.0

func (s DeleteInstancePolicyRequest) GoString() string

func (*DeleteInstancePolicyRequest) SetInstanceName added in v1.1.0

func (*DeleteInstancePolicyRequest) SetPolicyVersion added in v1.1.0

func (DeleteInstancePolicyRequest) String added in v1.1.0

type DeleteInstancePolicyResponse added in v1.1.0

type DeleteInstancePolicyResponse struct {
	Headers    map[string]*string                `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                            `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *DeleteInstancePolicyResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (DeleteInstancePolicyResponse) GoString added in v1.1.0

func (s DeleteInstancePolicyResponse) GoString() string

func (*DeleteInstancePolicyResponse) SetBody added in v1.1.0

func (*DeleteInstancePolicyResponse) SetHeaders added in v1.1.0

func (*DeleteInstancePolicyResponse) SetStatusCode added in v1.1.0

func (DeleteInstancePolicyResponse) String added in v1.1.0

type DeleteInstancePolicyResponseBody added in v1.1.0

type DeleteInstancePolicyResponseBody struct {
	// The HTTP status code.
	//
	// example:
	//
	// 200
	Code *string `json:"Code,omitempty" xml:"Code,omitempty"`
	// The response message.
	//
	// example:
	//
	// success
	Message *string `json:"Message,omitempty" xml:"Message,omitempty"`
	// The request ID, which can be used to troubleshoot issues.
	//
	// example:
	//
	// 3104C83E-6E82-57FB-BB88-8C64CCFDEF89
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (DeleteInstancePolicyResponseBody) GoString added in v1.1.0

func (*DeleteInstancePolicyResponseBody) SetCode added in v1.1.0

func (*DeleteInstancePolicyResponseBody) SetMessage added in v1.1.0

func (*DeleteInstancePolicyResponseBody) SetRequestId added in v1.1.0

func (DeleteInstancePolicyResponseBody) String added in v1.1.0

type DeleteInstanceRequest

type DeleteInstanceRequest struct {
	// The name of the instance.
	//
	// This parameter is required.
	//
	// example:
	//
	// instance-test
	InstanceName *string `json:"InstanceName,omitempty" xml:"InstanceName,omitempty"`
}

func (DeleteInstanceRequest) GoString

func (s DeleteInstanceRequest) GoString() string

func (*DeleteInstanceRequest) SetInstanceName

func (s *DeleteInstanceRequest) SetInstanceName(v string) *DeleteInstanceRequest

func (DeleteInstanceRequest) String

func (s DeleteInstanceRequest) String() string

type DeleteInstanceResponse

type DeleteInstanceResponse struct {
	Headers    map[string]*string          `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                      `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *DeleteInstanceResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (DeleteInstanceResponse) GoString

func (s DeleteInstanceResponse) GoString() string

func (*DeleteInstanceResponse) SetBody

func (*DeleteInstanceResponse) SetHeaders

func (*DeleteInstanceResponse) SetStatusCode

func (DeleteInstanceResponse) String

func (s DeleteInstanceResponse) String() string

type DeleteInstanceResponseBody

type DeleteInstanceResponseBody struct {
	// The request ID, which can be used to troubleshoot issues.
	//
	// example:
	//
	// 17827FB1-CC71-559D-BBDF-9D41534322E7
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (DeleteInstanceResponseBody) GoString

func (s DeleteInstanceResponseBody) GoString() string

func (*DeleteInstanceResponseBody) SetRequestId

func (DeleteInstanceResponseBody) String

type DescribeRegionsRequest

type DescribeRegionsRequest struct {
	// The client token that is used to ensure the idempotence of the request.
	//
	// >  #### You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length.
	//
	// example:
	//
	// ETnLKlblzczshOTUbOCzxxxxxxxxxx
	ClientToken *string `json:"ClientToken,omitempty" xml:"ClientToken,omitempty"`
}

func (DescribeRegionsRequest) GoString

func (s DescribeRegionsRequest) GoString() string

func (*DescribeRegionsRequest) SetClientToken

func (DescribeRegionsRequest) String

func (s DescribeRegionsRequest) String() string

type DescribeRegionsResponse

type DescribeRegionsResponse struct {
	Headers    map[string]*string           `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                       `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *DescribeRegionsResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (DescribeRegionsResponse) GoString

func (s DescribeRegionsResponse) GoString() string

func (*DescribeRegionsResponse) SetBody

func (*DescribeRegionsResponse) SetHeaders

func (*DescribeRegionsResponse) SetStatusCode

func (DescribeRegionsResponse) String

func (s DescribeRegionsResponse) String() string

type DescribeRegionsResponseBody

type DescribeRegionsResponseBody struct {
	// The regions.
	Regions []*DescribeRegionsResponseBodyRegions `json:"Regions,omitempty" xml:"Regions,omitempty" type:"Repeated"`
	// The request ID, which can be used to troubleshoot issues.
	//
	// example:
	//
	// B37BBA04-D827-55C8-B901-5264B904E8C6
	RequestId *string `json:"requestId,omitempty" xml:"requestId,omitempty"`
}

func (DescribeRegionsResponseBody) GoString

func (s DescribeRegionsResponseBody) GoString() string

func (*DescribeRegionsResponseBody) SetRegions

func (*DescribeRegionsResponseBody) SetRequestId

func (DescribeRegionsResponseBody) String

type DescribeRegionsResponseBodyRegions

type DescribeRegionsResponseBodyRegions struct {
	// The key of the region.
	//
	// example:
	//
	// yunjiankong.cloud.region.cn-hangzhou
	I18nKey *string `json:"I18nKey,omitempty" xml:"I18nKey,omitempty"`
	// The ID of the region.
	//
	// example:
	//
	// cn-hangzhou
	RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"`
}

func (DescribeRegionsResponseBodyRegions) GoString

func (*DescribeRegionsResponseBodyRegions) SetI18nKey

func (*DescribeRegionsResponseBodyRegions) SetRegionId

func (DescribeRegionsResponseBodyRegions) String

type GetInstanceRequest

type GetInstanceRequest struct {
	// The name of the instance.
	//
	// This parameter is required.
	//
	// example:
	//
	// instance-test
	InstanceName *string `json:"InstanceName,omitempty" xml:"InstanceName,omitempty"`
}

func (GetInstanceRequest) GoString

func (s GetInstanceRequest) GoString() string

func (*GetInstanceRequest) SetInstanceName

func (s *GetInstanceRequest) SetInstanceName(v string) *GetInstanceRequest

func (GetInstanceRequest) String

func (s GetInstanceRequest) String() string

type GetInstanceResponse

type GetInstanceResponse struct {
	Headers    map[string]*string       `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                   `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *GetInstanceResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (GetInstanceResponse) GoString

func (s GetInstanceResponse) GoString() string

func (*GetInstanceResponse) SetBody

func (*GetInstanceResponse) SetHeaders

func (s *GetInstanceResponse) SetHeaders(v map[string]*string) *GetInstanceResponse

func (*GetInstanceResponse) SetStatusCode

func (s *GetInstanceResponse) SetStatusCode(v int32) *GetInstanceResponse

func (GetInstanceResponse) String

func (s GetInstanceResponse) String() string

type GetInstanceResponseBody

type GetInstanceResponseBody struct {
	// The instance alias.
	//
	// example:
	//
	// instance-test
	AliasName *string `json:"AliasName,omitempty" xml:"AliasName,omitempty"`
	// The time when the instance was created.
	//
	// example:
	//
	// 2019-12-23T07:24:33Z
	CreateTime *string `json:"CreateTime,omitempty" xml:"CreateTime,omitempty"`
	// The upper limit for the VCUs of the instance.
	//
	// example:
	//
	// 6
	ElasticVCUUpperLimit *float32 `json:"ElasticVCUUpperLimit,omitempty" xml:"ElasticVCUUpperLimit,omitempty"`
	// The description of the instance.
	//
	// example:
	//
	// Description of the test instance.
	InstanceDescription *string `json:"InstanceDescription,omitempty" xml:"InstanceDescription,omitempty"`
	// The name of the instance.
	//
	// example:
	//
	// instance-test
	InstanceName *string `json:"InstanceName,omitempty" xml:"InstanceName,omitempty"`
	// The type of the instance.
	//
	// 	- SSD: high-performance instance
	//
	// 	- HYBRID: capacity instance
	//
	// example:
	//
	// SSD
	InstanceSpecification *string `json:"InstanceSpecification,omitempty" xml:"InstanceSpecification,omitempty"`
	// The status of the instance.
	//
	// 	- normal: The instance works as expected.
	//
	// 	- forbidden: The instance is disabled.
	//
	// 	- Deleting: The instance is being deleted.
	//
	// example:
	//
	// normal
	InstanceStatus *string `json:"InstanceStatus,omitempty" xml:"InstanceStatus,omitempty"`
	// Indicates whether zone-redundant storage (ZRS) is enabled for the instance.
	//
	// 	- true: ZRS is enabled for the instance.
	//
	// 	- false: Locally redundant storage (LRS) is enabled for the instance.
	//
	// example:
	//
	// true
	IsMultiAZ *bool `json:"IsMultiAZ,omitempty" xml:"IsMultiAZ,omitempty"`
	// The network type of the instance. Valid values:
	//
	// 	- VPC: The instance can be accessed only over the bound virtual private clouds (VPCs).
	//
	// 	- VPC_CONSOLE: The instance can be accessed from the Tablestore console or over the bound VPCs.
	//
	// 	- NORMAL: The instance can be accessed from networks of the custom types.
	//
	// example:
	//
	// VPC
	Network *string `json:"Network,omitempty" xml:"Network,omitempty"`
	// The sources of the network from which access is allowed. Valid value:
	//
	// TRUST_PROXY: console
	NetworkSourceACL []*string `json:"NetworkSourceACL,omitempty" xml:"NetworkSourceACL,omitempty" type:"Repeated"`
	// The types of the network from which access is allowed. Valid values:
	//
	// 	- CLASSIC: the classic network
	//
	// 	- INTERNET: the Internet
	//
	// 	- VPC: VPCs
	NetworkTypeACL []*string `json:"NetworkTypeACL,omitempty" xml:"NetworkTypeACL,omitempty" type:"Repeated"`
	// The billing method. Valid values:
	//
	// 	- Subscription: subscription
	//
	// 	- PayAsYouGo: pay-as-you-go
	//
	// example:
	//
	// Subscription
	PaymentType *string `json:"PaymentType,omitempty" xml:"PaymentType,omitempty"`
	// The instance policy.
	//
	// example:
	//
	// {
	//
	//     "Version": "1",
	//
	//     "Statement": [
	//
	//         {
	//
	//             "Action": [
	//
	//                 "ots:*"
	//
	//             ],
	//
	//             "Resource": [
	//
	//                 "acs:ots:*:13791xxxxxxxxxxx:instance/myinstance*"
	//
	//             ],
	//
	//             "Principal": [
	//
	//                 "*"
	//
	//             ],
	//
	//             "Effect": "Allow",
	//
	//             "Condition": {
	//
	//                 "StringEquals": {
	//
	//                     "ots:TLSVersion": [
	//
	//                         "1.2"
	//
	//                     ]
	//
	//                 },
	//
	//                 "IpAddress": {
	//
	//                     "acs:SourceIp": [
	//
	//                         "192.168.0.1",
	//
	//                         "198.51.100.1"
	//
	//                     ]
	//
	//                 }
	//
	//             }
	//
	//         }
	//
	//     ]
	//
	// }
	Policy *string `json:"Policy,omitempty" xml:"Policy,omitempty"`
	// The version of the instance policy.
	//
	// example:
	//
	// 1
	PolicyVersion *int64 `json:"PolicyVersion,omitempty" xml:"PolicyVersion,omitempty"`
	// The region ID of the instance.
	//
	// example:
	//
	// cn-chengdu
	RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"`
	// The request ID, which can be used to troubleshoot issues.
	//
	// example:
	//
	// 757E172A-F94B-5E78-8A23-D9068E42F2E9
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
	// The ID of the resource group to which the instance belongs.
	//
	// example:
	//
	// rg-acfmxh4em5jncda
	ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"`
	// The ID of the instance.
	//
	// example:
	//
	// ots_standard_public_cn-9lb34u7u5001
	SPInstanceId *string `json:"SPInstanceId,omitempty" xml:"SPInstanceId,omitempty"`
	// The storage type.
	//
	// 	- SSD: high-performance
	//
	// 	- HYBRID: capacity
	//
	// example:
	//
	// HYBRID
	StorageType *string `json:"StorageType,omitempty" xml:"StorageType,omitempty"`
	// The total number of tables in the instance.
	//
	// example:
	//
	// 100
	TableQuota *int32 `json:"TableQuota,omitempty" xml:"TableQuota,omitempty"`
	// The tags of the instance.
	Tags []*GetInstanceResponseBodyTags `json:"Tags,omitempty" xml:"Tags,omitempty" type:"Repeated"`
	// The user ID.
	//
	// example:
	//
	// 16542312566
	UserId *string `json:"UserId,omitempty" xml:"UserId,omitempty"`
	// The VCU quota.
	//
	// example:
	//
	// 20
	VCUQuota *int32 `json:"VCUQuota,omitempty" xml:"VCUQuota,omitempty"`
}

func (GetInstanceResponseBody) GoString

func (s GetInstanceResponseBody) GoString() string

func (*GetInstanceResponseBody) SetAliasName

func (*GetInstanceResponseBody) SetCreateTime

func (*GetInstanceResponseBody) SetElasticVCUUpperLimit added in v1.1.1

func (s *GetInstanceResponseBody) SetElasticVCUUpperLimit(v float32) *GetInstanceResponseBody

func (*GetInstanceResponseBody) SetInstanceDescription

func (s *GetInstanceResponseBody) SetInstanceDescription(v string) *GetInstanceResponseBody

func (*GetInstanceResponseBody) SetInstanceName

func (*GetInstanceResponseBody) SetInstanceSpecification

func (s *GetInstanceResponseBody) SetInstanceSpecification(v string) *GetInstanceResponseBody

func (*GetInstanceResponseBody) SetInstanceStatus

func (s *GetInstanceResponseBody) SetInstanceStatus(v string) *GetInstanceResponseBody

func (*GetInstanceResponseBody) SetIsMultiAZ added in v1.1.0

func (*GetInstanceResponseBody) SetNetwork

func (*GetInstanceResponseBody) SetNetworkSourceACL

func (s *GetInstanceResponseBody) SetNetworkSourceACL(v []*string) *GetInstanceResponseBody

func (*GetInstanceResponseBody) SetNetworkTypeACL

func (s *GetInstanceResponseBody) SetNetworkTypeACL(v []*string) *GetInstanceResponseBody

func (*GetInstanceResponseBody) SetPaymentType

func (*GetInstanceResponseBody) SetPolicy

func (*GetInstanceResponseBody) SetPolicyVersion

func (s *GetInstanceResponseBody) SetPolicyVersion(v int64) *GetInstanceResponseBody

func (*GetInstanceResponseBody) SetRegionId

func (*GetInstanceResponseBody) SetRequestId

func (*GetInstanceResponseBody) SetResourceGroupId

func (s *GetInstanceResponseBody) SetResourceGroupId(v string) *GetInstanceResponseBody

func (*GetInstanceResponseBody) SetSPInstanceId

func (*GetInstanceResponseBody) SetStorageType

func (*GetInstanceResponseBody) SetTableQuota

func (*GetInstanceResponseBody) SetTags

func (*GetInstanceResponseBody) SetUserId

func (*GetInstanceResponseBody) SetVCUQuota

func (GetInstanceResponseBody) String

func (s GetInstanceResponseBody) String() string

type GetInstanceResponseBodyTags

type GetInstanceResponseBodyTags struct {
	// The tag key.
	//
	// example:
	//
	// tag
	Key *string `json:"Key,omitempty" xml:"Key,omitempty"`
	// (Deprecated) The tag key.
	//
	// example:
	//
	// keyTestA
	TagKey *string `json:"TagKey,omitempty" xml:"TagKey,omitempty"`
	// (Deprecated) The tag value.
	//
	// example:
	//
	// 00004a20240452b0
	TagValue *string `json:"TagValue,omitempty" xml:"TagValue,omitempty"`
	// The tag value.
	//
	// example:
	//
	// 333
	Value *string `json:"Value,omitempty" xml:"Value,omitempty"`
}

func (GetInstanceResponseBodyTags) GoString

func (s GetInstanceResponseBodyTags) GoString() string

func (*GetInstanceResponseBodyTags) SetKey added in v1.0.1

func (*GetInstanceResponseBodyTags) SetTagKey

func (*GetInstanceResponseBodyTags) SetTagValue

func (*GetInstanceResponseBodyTags) SetValue added in v1.0.1

func (GetInstanceResponseBodyTags) String

type ListInstancesRequest

type ListInstancesRequest struct {
	// The name of the instance. Fuzzy search is supported.
	//
	// example:
	//
	// instance
	InstanceName *string `json:"InstanceName,omitempty" xml:"InstanceName,omitempty"`
	// The names of the instances. This parameter is used to specify multiple instances that you want to query at the same time.
	InstanceNameList []*string `json:"InstanceNameList,omitempty" xml:"InstanceNameList,omitempty" type:"Repeated"`
	// The maximum number of instances that you want to return. Valid values: 0 to 200. If you do not configure this parameter or set this parameter to 0, the default value of 100 is used.
	//
	// example:
	//
	// 100
	MaxResults *int32 `json:"MaxResults,omitempty" xml:"MaxResults,omitempty"`
	// The token that determines the start position of the query. Set this parameter to the value of the NextToken parameter that is returned from the last call. Instances are returned in lexicographical order starting from the position that is specified by this parameter. The first time you call the operation, leave this parameter empty.
	//
	// example:
	//
	// CAESCG15aC1xxxxx
	NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"`
	// The resource group ID. You can query the ID on the Resource Group page in the Resource Management console.
	//
	// example:
	//
	// rg-aek24upgom6p5ri
	ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"`
	// The instance status.
	//
	// example:
	//
	// normal
	Status *string                    `json:"Status,omitempty" xml:"Status,omitempty"`
	Tag    []*ListInstancesRequestTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"`
}

func (ListInstancesRequest) GoString

func (s ListInstancesRequest) GoString() string

func (*ListInstancesRequest) SetInstanceName

func (s *ListInstancesRequest) SetInstanceName(v string) *ListInstancesRequest

func (*ListInstancesRequest) SetInstanceNameList added in v1.1.0

func (s *ListInstancesRequest) SetInstanceNameList(v []*string) *ListInstancesRequest

func (*ListInstancesRequest) SetMaxResults

func (s *ListInstancesRequest) SetMaxResults(v int32) *ListInstancesRequest

func (*ListInstancesRequest) SetNextToken

func (s *ListInstancesRequest) SetNextToken(v string) *ListInstancesRequest

func (*ListInstancesRequest) SetResourceGroupId

func (s *ListInstancesRequest) SetResourceGroupId(v string) *ListInstancesRequest

func (*ListInstancesRequest) SetStatus

func (*ListInstancesRequest) SetTag added in v1.1.2

func (ListInstancesRequest) String

func (s ListInstancesRequest) String() string

type ListInstancesRequestTag added in v1.1.2

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

func (ListInstancesRequestTag) GoString added in v1.1.2

func (s ListInstancesRequestTag) GoString() string

func (*ListInstancesRequestTag) SetKey added in v1.1.2

func (*ListInstancesRequestTag) SetValue added in v1.1.2

func (ListInstancesRequestTag) String added in v1.1.2

func (s ListInstancesRequestTag) String() string

type ListInstancesResponse

type ListInstancesResponse struct {
	Headers    map[string]*string         `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                     `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *ListInstancesResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (ListInstancesResponse) GoString

func (s ListInstancesResponse) GoString() string

func (*ListInstancesResponse) SetBody

func (*ListInstancesResponse) SetHeaders

func (*ListInstancesResponse) SetStatusCode

func (s *ListInstancesResponse) SetStatusCode(v int32) *ListInstancesResponse

func (ListInstancesResponse) String

func (s ListInstancesResponse) String() string

type ListInstancesResponseBody

type ListInstancesResponseBody struct {
	// The details about the instances.
	Instances []*ListInstancesResponseBodyInstances `json:"Instances,omitempty" xml:"Instances,omitempty" type:"Repeated"`
	// The token that determines the start position of the next query. If this parameter is empty, all instances that you want to query are returned.
	//
	// example:
	//
	// CAESCG15aC1xxxxx
	NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"`
	// The request ID, which can be used to troubleshoot issues.
	//
	// example:
	//
	// E734979F-5A44-5993-9CE5-C23103576923
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
	// The total number of instances returned.
	//
	// example:
	//
	// 2
	TotalCount *int64 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"`
}

func (ListInstancesResponseBody) GoString

func (s ListInstancesResponseBody) GoString() string

func (*ListInstancesResponseBody) SetInstances

func (*ListInstancesResponseBody) SetNextToken

func (*ListInstancesResponseBody) SetRequestId

func (*ListInstancesResponseBody) SetTotalCount

func (ListInstancesResponseBody) String

func (s ListInstancesResponseBody) String() string

type ListInstancesResponseBodyInstances

type ListInstancesResponseBodyInstances struct {
	// The instance alias.
	//
	// example:
	//
	// instance-test
	AliasName *string `json:"AliasName,omitempty" xml:"AliasName,omitempty"`
	// The time when the instance was created.
	//
	// example:
	//
	// 2019-04-07T09:19:21Z
	CreateTime *string `json:"CreateTime,omitempty" xml:"CreateTime,omitempty"`
	// The instance description.
	//
	// example:
	//
	// Description of the test instance.
	InstanceDescription *string `json:"InstanceDescription,omitempty" xml:"InstanceDescription,omitempty"`
	// The name of the instance, which is used to uniquely identify the instance.
	//
	// example:
	//
	// instance-test
	InstanceName *string `json:"InstanceName,omitempty" xml:"InstanceName,omitempty"`
	// The type of the instance.
	//
	// 	- SSD: high-performance instance
	//
	// 	- HYBRID: capacity instance
	//
	// example:
	//
	// HYBRID
	InstanceSpecification *string `json:"InstanceSpecification,omitempty" xml:"InstanceSpecification,omitempty"`
	// The instance status.
	//
	// 	- normal: The instance works as expected.
	//
	// 	- forbidden: The instance is disabled.
	//
	// 	- deleting: The instance is being deleted.
	//
	// example:
	//
	// normal
	InstanceStatus *string `json:"InstanceStatus,omitempty" xml:"InstanceStatus,omitempty"`
	// Indicates whether zone-redundant storage (ZRS) is enabled for the instance.
	//
	// 	- true: ZRS is enabled for the instance.
	//
	// 	- false: Locally redundant storage (LRS) is enabled for the instance.
	//
	// example:
	//
	// true
	IsMultiAZ *bool `json:"IsMultiAZ,omitempty" xml:"IsMultiAZ,omitempty"`
	// The billing method.
	//
	// 	- Subscription: subscription
	//
	// 	- PayAsYouGo: pay as you go
	//
	// example:
	//
	// Subscription
	PaymentType *string `json:"PaymentType,omitempty" xml:"PaymentType,omitempty"`
	// The region ID.
	//
	// example:
	//
	// cn-huhehaote
	RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"`
	// The ID of the resource group.
	//
	// example:
	//
	// rg-acfmxh4em5jnbcd
	ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"`
	// The instance ID.
	//
	// example:
	//
	// ots_standard_public_cn-g4t3igqjj002
	SPInstanceId *string `json:"SPInstanceId,omitempty" xml:"SPInstanceId,omitempty"`
	// The storage type.
	//
	// 	- SSD: high-performance
	//
	// 	- HYBRID: capacity
	//
	// example:
	//
	// HYBRID
	StorageType *string `json:"StorageType,omitempty" xml:"StorageType,omitempty"`
	// The user ID.
	//
	// example:
	//
	// 13542356466
	UserId *string `json:"UserId,omitempty" xml:"UserId,omitempty"`
	// The VCU quota.
	//
	// example:
	//
	// 3
	VCUQuota *int32 `json:"VCUQuota,omitempty" xml:"VCUQuota,omitempty"`
}

func (ListInstancesResponseBodyInstances) GoString

func (*ListInstancesResponseBodyInstances) SetAliasName

func (*ListInstancesResponseBodyInstances) SetCreateTime

func (*ListInstancesResponseBodyInstances) SetInstanceDescription

func (*ListInstancesResponseBodyInstances) SetInstanceName

func (*ListInstancesResponseBodyInstances) SetInstanceSpecification

func (*ListInstancesResponseBodyInstances) SetInstanceStatus

func (*ListInstancesResponseBodyInstances) SetIsMultiAZ added in v1.1.0

func (*ListInstancesResponseBodyInstances) SetPaymentType

func (*ListInstancesResponseBodyInstances) SetRegionId

func (*ListInstancesResponseBodyInstances) SetResourceGroupId

func (*ListInstancesResponseBodyInstances) SetSPInstanceId

func (*ListInstancesResponseBodyInstances) SetStorageType

func (*ListInstancesResponseBodyInstances) SetUserId

func (*ListInstancesResponseBodyInstances) SetVCUQuota

func (ListInstancesResponseBodyInstances) String

type ListInstancesShrinkRequest added in v1.1.0

type ListInstancesShrinkRequest struct {
	// The name of the instance. Fuzzy search is supported.
	//
	// example:
	//
	// instance
	InstanceName *string `json:"InstanceName,omitempty" xml:"InstanceName,omitempty"`
	// The names of the instances. This parameter is used to specify multiple instances that you want to query at the same time.
	InstanceNameListShrink *string `json:"InstanceNameList,omitempty" xml:"InstanceNameList,omitempty"`
	// The maximum number of instances that you want to return. Valid values: 0 to 200. If you do not configure this parameter or set this parameter to 0, the default value of 100 is used.
	//
	// example:
	//
	// 100
	MaxResults *int32 `json:"MaxResults,omitempty" xml:"MaxResults,omitempty"`
	// The token that determines the start position of the query. Set this parameter to the value of the NextToken parameter that is returned from the last call. Instances are returned in lexicographical order starting from the position that is specified by this parameter. The first time you call the operation, leave this parameter empty.
	//
	// example:
	//
	// CAESCG15aC1xxxxx
	NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"`
	// The resource group ID. You can query the ID on the Resource Group page in the Resource Management console.
	//
	// example:
	//
	// rg-aek24upgom6p5ri
	ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"`
	// The instance status.
	//
	// example:
	//
	// normal
	Status    *string `json:"Status,omitempty" xml:"Status,omitempty"`
	TagShrink *string `json:"Tag,omitempty" xml:"Tag,omitempty"`
}

func (ListInstancesShrinkRequest) GoString added in v1.1.0

func (s ListInstancesShrinkRequest) GoString() string

func (*ListInstancesShrinkRequest) SetInstanceName added in v1.1.0

func (*ListInstancesShrinkRequest) SetInstanceNameListShrink added in v1.1.0

func (s *ListInstancesShrinkRequest) SetInstanceNameListShrink(v string) *ListInstancesShrinkRequest

func (*ListInstancesShrinkRequest) SetMaxResults added in v1.1.0

func (*ListInstancesShrinkRequest) SetNextToken added in v1.1.0

func (*ListInstancesShrinkRequest) SetResourceGroupId added in v1.1.0

func (*ListInstancesShrinkRequest) SetStatus added in v1.1.0

func (*ListInstancesShrinkRequest) SetTagShrink added in v1.1.2

func (ListInstancesShrinkRequest) String added in v1.1.0

type ListTagResourcesRequest

type ListTagResourcesRequest struct {
	// The maximum number of tagged resources that you want to return. Valid values: 0 to 200. If you do not specify this parameter or set the parameter to 0, the default value of 100 is used.
	//
	// example:
	//
	// 20
	MaxResults *int32 `json:"MaxResults,omitempty" xml:"MaxResults,omitempty"`
	// The pagination token that is used in the next request to retrieve a new page of results. You do not need to specify this parameter for the first request. You must specify the token that is obtained from the previous query as the value of NextToken. Tagged resources are returned in lexicographical order starting from the position that is specified by this parameter.
	//
	// example:
	//
	// CAESCG15aC1xxxxx
	NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"`
	// The resource IDs, which are instance names.
	ResourceIds []*string `json:"ResourceIds,omitempty" xml:"ResourceIds,omitempty" type:"Repeated"`
	// The type of the resource. valid value:
	//
	// instance: instance
	//
	// example:
	//
	// instance
	ResourceType *string `json:"ResourceType,omitempty" xml:"ResourceType,omitempty"`
	// The tags.
	Tags []*ListTagResourcesRequestTags `json:"Tags,omitempty" xml:"Tags,omitempty" type:"Repeated"`
}

func (ListTagResourcesRequest) GoString

func (s ListTagResourcesRequest) GoString() string

func (*ListTagResourcesRequest) SetMaxResults

func (*ListTagResourcesRequest) SetNextToken

func (*ListTagResourcesRequest) SetResourceIds

func (s *ListTagResourcesRequest) SetResourceIds(v []*string) *ListTagResourcesRequest

func (*ListTagResourcesRequest) SetResourceType

func (*ListTagResourcesRequest) SetTags

func (ListTagResourcesRequest) String

func (s ListTagResourcesRequest) String() string

type ListTagResourcesRequestTags

type ListTagResourcesRequestTags struct {
	// The tag key.
	//
	// example:
	//
	// Owner
	Key *string `json:"Key,omitempty" xml:"Key,omitempty"`
	// The tag value.
	//
	// example:
	//
	// Tester
	Value *string `json:"Value,omitempty" xml:"Value,omitempty"`
}

func (ListTagResourcesRequestTags) GoString

func (s ListTagResourcesRequestTags) GoString() string

func (*ListTagResourcesRequestTags) SetKey

func (*ListTagResourcesRequestTags) SetValue

func (ListTagResourcesRequestTags) String

type ListTagResourcesResponse

type ListTagResourcesResponse struct {
	Headers    map[string]*string            `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                        `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *ListTagResourcesResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (ListTagResourcesResponse) GoString

func (s ListTagResourcesResponse) GoString() string

func (*ListTagResourcesResponse) SetBody

func (*ListTagResourcesResponse) SetHeaders

func (*ListTagResourcesResponse) SetStatusCode

func (ListTagResourcesResponse) String

func (s ListTagResourcesResponse) String() string

type ListTagResourcesResponseBody

type ListTagResourcesResponseBody struct {
	// The maximum number of tagged resources that are returned for the query.
	//
	// example:
	//
	// 20
	MaxResults *int32 `json:"MaxResults,omitempty" xml:"MaxResults,omitempty"`
	// A pagination token. It can be used in the next request to retrieve a new page of results. If NextToken is empty, no next page exists.
	//
	// example:
	//
	// CAESCG15aC1xxxxx
	NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"`
	// The tags.
	TagResources []*ListTagResourcesResponseBodyTagResources `json:"TagResources,omitempty" xml:"TagResources,omitempty" type:"Repeated"`
	// The request ID, which can be used to troubleshoot issues.
	//
	// example:
	//
	// 31D8120C-AC52-5CA9-BE4A-E4C6316E19AD
	RequestId *string `json:"requestId,omitempty" xml:"requestId,omitempty"`
}

func (ListTagResourcesResponseBody) GoString

func (s ListTagResourcesResponseBody) GoString() string

func (*ListTagResourcesResponseBody) SetMaxResults

func (*ListTagResourcesResponseBody) SetNextToken

func (*ListTagResourcesResponseBody) SetRequestId

func (*ListTagResourcesResponseBody) SetTagResources

func (ListTagResourcesResponseBody) String

type ListTagResourcesResponseBodyTagResources

type ListTagResourcesResponseBodyTagResources struct {
	// The resource ID, which is the instance name.
	//
	// example:
	//
	// instance-test
	ResourceId *string `json:"ResourceId,omitempty" xml:"ResourceId,omitempty"`
	// The type of the resource.
	//
	// example:
	//
	// ALIYUN::OTS::INSTANCE
	ResourceType *string `json:"ResourceType,omitempty" xml:"ResourceType,omitempty"`
	// The tag key.
	//
	// example:
	//
	// Owner
	TagKey *string `json:"TagKey,omitempty" xml:"TagKey,omitempty"`
	// The tag value.
	//
	// example:
	//
	// Tester
	TagValue *string `json:"TagValue,omitempty" xml:"TagValue,omitempty"`
}

func (ListTagResourcesResponseBodyTagResources) GoString

func (*ListTagResourcesResponseBodyTagResources) SetResourceId

func (*ListTagResourcesResponseBodyTagResources) SetResourceType

func (*ListTagResourcesResponseBodyTagResources) SetTagKey

func (*ListTagResourcesResponseBodyTagResources) SetTagValue

func (ListTagResourcesResponseBodyTagResources) String

type ListTagResourcesShrinkRequest

type ListTagResourcesShrinkRequest struct {
	// The maximum number of tagged resources that you want to return. Valid values: 0 to 200. If you do not specify this parameter or set the parameter to 0, the default value of 100 is used.
	//
	// example:
	//
	// 20
	MaxResults *int32 `json:"MaxResults,omitempty" xml:"MaxResults,omitempty"`
	// The pagination token that is used in the next request to retrieve a new page of results. You do not need to specify this parameter for the first request. You must specify the token that is obtained from the previous query as the value of NextToken. Tagged resources are returned in lexicographical order starting from the position that is specified by this parameter.
	//
	// example:
	//
	// CAESCG15aC1xxxxx
	NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"`
	// The resource IDs, which are instance names.
	ResourceIdsShrink *string `json:"ResourceIds,omitempty" xml:"ResourceIds,omitempty"`
	// The type of the resource. valid value:
	//
	// instance: instance
	//
	// example:
	//
	// instance
	ResourceType *string `json:"ResourceType,omitempty" xml:"ResourceType,omitempty"`
	// The tags.
	TagsShrink *string `json:"Tags,omitempty" xml:"Tags,omitempty"`
}

func (ListTagResourcesShrinkRequest) GoString

func (*ListTagResourcesShrinkRequest) SetMaxResults

func (*ListTagResourcesShrinkRequest) SetNextToken

func (*ListTagResourcesShrinkRequest) SetResourceIdsShrink

func (*ListTagResourcesShrinkRequest) SetResourceType

func (*ListTagResourcesShrinkRequest) SetTagsShrink

func (ListTagResourcesShrinkRequest) String

type TagResourcesRequest

type TagResourcesRequest struct {
	// The resource IDs, which are instance names.
	//
	// This parameter is required.
	ResourceIds []*string `json:"ResourceIds,omitempty" xml:"ResourceIds,omitempty" type:"Repeated"`
	// The type of the resource. valid value:
	//
	// instance: instance
	//
	// This parameter is required.
	//
	// example:
	//
	// instance
	ResourceType *string `json:"ResourceType,omitempty" xml:"ResourceType,omitempty"`
	// The tags.
	//
	// This parameter is required.
	Tags []*TagResourcesRequestTags `json:"Tags,omitempty" xml:"Tags,omitempty" type:"Repeated"`
}

func (TagResourcesRequest) GoString

func (s TagResourcesRequest) GoString() string

func (*TagResourcesRequest) SetResourceIds

func (s *TagResourcesRequest) SetResourceIds(v []*string) *TagResourcesRequest

func (*TagResourcesRequest) SetResourceType

func (s *TagResourcesRequest) SetResourceType(v string) *TagResourcesRequest

func (*TagResourcesRequest) SetTags

func (TagResourcesRequest) String

func (s TagResourcesRequest) String() string

type TagResourcesRequestTags

type TagResourcesRequestTags struct {
	// The tag key.
	//
	// This parameter is required.
	//
	// example:
	//
	// created
	Key *string `json:"Key,omitempty" xml:"Key,omitempty"`
	// The tag value.
	//
	// This parameter is required.
	//
	// example:
	//
	// job-0007z8j1omiabo5i872l
	Value *string `json:"Value,omitempty" xml:"Value,omitempty"`
}

func (TagResourcesRequestTags) GoString

func (s TagResourcesRequestTags) GoString() string

func (*TagResourcesRequestTags) SetKey

func (*TagResourcesRequestTags) SetValue

func (TagResourcesRequestTags) String

func (s TagResourcesRequestTags) String() string

type TagResourcesResponse

type TagResourcesResponse struct {
	Headers    map[string]*string        `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                    `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *TagResourcesResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (TagResourcesResponse) GoString

func (s TagResourcesResponse) GoString() string

func (*TagResourcesResponse) SetBody

func (*TagResourcesResponse) SetHeaders

func (s *TagResourcesResponse) SetHeaders(v map[string]*string) *TagResourcesResponse

func (*TagResourcesResponse) SetStatusCode

func (s *TagResourcesResponse) SetStatusCode(v int32) *TagResourcesResponse

func (TagResourcesResponse) String

func (s TagResourcesResponse) String() string

type TagResourcesResponseBody

type TagResourcesResponseBody struct {
	// The request ID, which can be used to troubleshoot issues.
	//
	// example:
	//
	// 44FDC379-4443-560E-B652-9F7476D8854F
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (TagResourcesResponseBody) GoString

func (s TagResourcesResponseBody) GoString() string

func (*TagResourcesResponseBody) SetRequestId

func (TagResourcesResponseBody) String

func (s TagResourcesResponseBody) String() string

type UntagResourcesRequest

type UntagResourcesRequest struct {
	// Specifies whether to remove all tags from the resources. Default value: false.
	//
	// example:
	//
	// false
	All *bool `json:"All,omitempty" xml:"All,omitempty"`
	// The resource IDs, which are instance names.
	ResourceIds []*string `json:"ResourceIds,omitempty" xml:"ResourceIds,omitempty" type:"Repeated"`
	// The type of the resource. valid value:
	//
	// instance: instance
	//
	// example:
	//
	// instance
	ResourceType *string `json:"ResourceType,omitempty" xml:"ResourceType,omitempty"`
	// The tag keys.
	TagKeys []*string `json:"TagKeys,omitempty" xml:"TagKeys,omitempty" type:"Repeated"`
}

func (UntagResourcesRequest) GoString

func (s UntagResourcesRequest) GoString() string

func (*UntagResourcesRequest) SetAll

func (*UntagResourcesRequest) SetResourceIds

func (s *UntagResourcesRequest) SetResourceIds(v []*string) *UntagResourcesRequest

func (*UntagResourcesRequest) SetResourceType

func (s *UntagResourcesRequest) SetResourceType(v string) *UntagResourcesRequest

func (*UntagResourcesRequest) SetTagKeys

func (s *UntagResourcesRequest) SetTagKeys(v []*string) *UntagResourcesRequest

func (UntagResourcesRequest) String

func (s UntagResourcesRequest) String() string

type UntagResourcesResponse

type UntagResourcesResponse struct {
	Headers    map[string]*string          `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                      `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *UntagResourcesResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (UntagResourcesResponse) GoString

func (s UntagResourcesResponse) GoString() string

func (*UntagResourcesResponse) SetBody

func (*UntagResourcesResponse) SetHeaders

func (*UntagResourcesResponse) SetStatusCode

func (UntagResourcesResponse) String

func (s UntagResourcesResponse) String() string

type UntagResourcesResponseBody

type UntagResourcesResponseBody struct {
	// The request ID, which can be used to troubleshoot issues.
	//
	// example:
	//
	// 26B43C99-F5C9-5341-B462-37427C5BF201
	RequestId *string `json:"requestId,omitempty" xml:"requestId,omitempty"`
}

func (UntagResourcesResponseBody) GoString

func (s UntagResourcesResponseBody) GoString() string

func (*UntagResourcesResponseBody) SetRequestId

func (UntagResourcesResponseBody) String

type UpdateInstanceElasticVCUUpperLimitRequest added in v1.1.0

type UpdateInstanceElasticVCUUpperLimitRequest struct {
	// The upper limit for the VCUs of the instance.
	//
	// >  Valid values of the upper limit for the VCUs of an instance: **Number of reserved VCUs+0.1 to 2000**. You can upgrade or downgrade configurations to modify the number of reserved VCUs by increments or decrements of 1. You can dynamically modify the upper limit for the VCUs of an instance by increments or decrements of 0.1
	//
	// This parameter is required.
	//
	// example:
	//
	// 6
	ElasticVCUUpperLimit *float32 `json:"ElasticVCUUpperLimit,omitempty" xml:"ElasticVCUUpperLimit,omitempty"`
	// The name of the instance.
	//
	// This parameter is required.
	//
	// example:
	//
	// workshop-bj-ots1
	InstanceName *string `json:"InstanceName,omitempty" xml:"InstanceName,omitempty"`
}

func (UpdateInstanceElasticVCUUpperLimitRequest) GoString added in v1.1.0

func (*UpdateInstanceElasticVCUUpperLimitRequest) SetElasticVCUUpperLimit added in v1.1.0

func (*UpdateInstanceElasticVCUUpperLimitRequest) SetInstanceName added in v1.1.0

func (UpdateInstanceElasticVCUUpperLimitRequest) String added in v1.1.0

type UpdateInstanceElasticVCUUpperLimitResponse added in v1.1.0

type UpdateInstanceElasticVCUUpperLimitResponse struct {
	Headers    map[string]*string                              `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                                          `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *UpdateInstanceElasticVCUUpperLimitResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (UpdateInstanceElasticVCUUpperLimitResponse) GoString added in v1.1.0

func (*UpdateInstanceElasticVCUUpperLimitResponse) SetBody added in v1.1.0

func (*UpdateInstanceElasticVCUUpperLimitResponse) SetHeaders added in v1.1.0

func (*UpdateInstanceElasticVCUUpperLimitResponse) SetStatusCode added in v1.1.0

func (UpdateInstanceElasticVCUUpperLimitResponse) String added in v1.1.0

type UpdateInstanceElasticVCUUpperLimitResponseBody added in v1.1.0

type UpdateInstanceElasticVCUUpperLimitResponseBody struct {
	// The request ID, which can be used to troubleshoot issues.
	//
	// example:
	//
	// B37BBA04-D827-55C8-B901-5264B904E8C6
	RequestId *string `json:"requestId,omitempty" xml:"requestId,omitempty"`
}

func (UpdateInstanceElasticVCUUpperLimitResponseBody) GoString added in v1.1.0

func (*UpdateInstanceElasticVCUUpperLimitResponseBody) SetRequestId added in v1.1.0

func (UpdateInstanceElasticVCUUpperLimitResponseBody) String added in v1.1.0

type UpdateInstancePolicyRequest added in v1.1.0

type UpdateInstancePolicyRequest struct {
	// The name of the instance.
	//
	// This parameter is required.
	//
	// example:
	//
	// my-test-12345
	InstanceName *string `json:"InstanceName,omitempty" xml:"InstanceName,omitempty"`
	// The instance policy in the JSON format.
	//
	// This parameter is required.
	//
	// example:
	//
	// {
	//
	//     "Version": "1",
	//
	//     "Statement": [
	//
	//         {
	//
	//             "Action": [
	//
	//                 "ots:*"
	//
	//             ],
	//
	//             "Resource": [
	//
	//                 "acs:ots:*:13791xxxxxxxxxxx:instance/myinstance*"
	//
	//             ],
	//
	//             "Principal": [
	//
	//                 "*"
	//
	//             ],
	//
	//             "Effect": "Allow",
	//
	//             "Condition": {
	//
	//                 "StringEquals": {
	//
	//                     "ots:TLSVersion": [
	//
	//                         "1.2"
	//
	//                     ]
	//
	//                 },
	//
	//                 "IpAddress": {
	//
	//                     "acs:SourceIp": [
	//
	//                         "192.168.0.1",
	//
	//                         "172.16.0.1"
	//
	//                     ]
	//
	//                 }
	//
	//             }
	//
	//         }
	//
	//     ]
	//
	// }
	Policy *string `json:"Policy,omitempty" xml:"Policy,omitempty"`
	// The version of the instance policy.
	//
	// This parameter is required.
	//
	// example:
	//
	// 2
	PolicyVersion *int64 `json:"PolicyVersion,omitempty" xml:"PolicyVersion,omitempty"`
}

func (UpdateInstancePolicyRequest) GoString added in v1.1.0

func (s UpdateInstancePolicyRequest) GoString() string

func (*UpdateInstancePolicyRequest) SetInstanceName added in v1.1.0

func (*UpdateInstancePolicyRequest) SetPolicy added in v1.1.0

func (*UpdateInstancePolicyRequest) SetPolicyVersion added in v1.1.0

func (UpdateInstancePolicyRequest) String added in v1.1.0

type UpdateInstancePolicyResponse added in v1.1.0

type UpdateInstancePolicyResponse struct {
	Headers    map[string]*string                `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                            `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *UpdateInstancePolicyResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (UpdateInstancePolicyResponse) GoString added in v1.1.0

func (s UpdateInstancePolicyResponse) GoString() string

func (*UpdateInstancePolicyResponse) SetBody added in v1.1.0

func (*UpdateInstancePolicyResponse) SetHeaders added in v1.1.0

func (*UpdateInstancePolicyResponse) SetStatusCode added in v1.1.0

func (UpdateInstancePolicyResponse) String added in v1.1.0

type UpdateInstancePolicyResponseBody added in v1.1.0

type UpdateInstancePolicyResponseBody struct {
	// The HTTP status code.
	//
	// example:
	//
	// 200
	Code *string `json:"Code,omitempty" xml:"Code,omitempty"`
	// The response message.
	//
	// example:
	//
	// success
	Message *string `json:"Message,omitempty" xml:"Message,omitempty"`
	// The request ID, which can be used to troubleshoot issues.
	//
	// example:
	//
	// 31D8120C-AC52-5CA9-BE4A-E4C6316E19AD
	RequestId *string `json:"requestId,omitempty" xml:"requestId,omitempty"`
}

func (UpdateInstancePolicyResponseBody) GoString added in v1.1.0

func (*UpdateInstancePolicyResponseBody) SetCode added in v1.1.0

func (*UpdateInstancePolicyResponseBody) SetMessage added in v1.1.0

func (*UpdateInstancePolicyResponseBody) SetRequestId added in v1.1.0

func (UpdateInstancePolicyResponseBody) String added in v1.1.0

type UpdateInstanceRequest

type UpdateInstanceRequest struct {
	// The alias of the instance.
	//
	// example:
	//
	// instance-test
	AliasName *string `json:"AliasName,omitempty" xml:"AliasName,omitempty"`
	// The description of the instance.
	//
	// example:
	//
	// the test instance
	InstanceDescription *string `json:"InstanceDescription,omitempty" xml:"InstanceDescription,omitempty"`
	// The name of the instance whose information you want to update.
	//
	// This parameter is required.
	//
	// example:
	//
	// instance-test
	InstanceName *string `json:"InstanceName,omitempty" xml:"InstanceName,omitempty"`
	// (Deprecated) The network type of the instance. Valid values: NORMAL and VPC_CONSOLE. Default value: NORMAL.
	//
	// example:
	//
	// VPC
	Network *string `json:"Network,omitempty" xml:"Network,omitempty"`
	// The new sources of the network from which access is allowed. By default, all sources of networks are allowed. Valid value:
	//
	// TRUST_PROXY: the console
	NetworkSourceACL []*string `json:"NetworkSourceACL,omitempty" xml:"NetworkSourceACL,omitempty" type:"Repeated"`
	// The new types of the network from which access is allowed. By default, all types of networks are allowed. Valid values:
	//
	// 	- INTERNET: the Internet
	//
	// 	- VPC: VPCs
	//
	// 	- CLASSIC: the classic network
	NetworkTypeACL []*string `json:"NetworkTypeACL,omitempty" xml:"NetworkTypeACL,omitempty" type:"Repeated"`
}

func (UpdateInstanceRequest) GoString

func (s UpdateInstanceRequest) GoString() string

func (*UpdateInstanceRequest) SetAliasName

func (*UpdateInstanceRequest) SetInstanceDescription

func (s *UpdateInstanceRequest) SetInstanceDescription(v string) *UpdateInstanceRequest

func (*UpdateInstanceRequest) SetInstanceName

func (s *UpdateInstanceRequest) SetInstanceName(v string) *UpdateInstanceRequest

func (*UpdateInstanceRequest) SetNetwork

func (*UpdateInstanceRequest) SetNetworkSourceACL

func (s *UpdateInstanceRequest) SetNetworkSourceACL(v []*string) *UpdateInstanceRequest

func (*UpdateInstanceRequest) SetNetworkTypeACL

func (s *UpdateInstanceRequest) SetNetworkTypeACL(v []*string) *UpdateInstanceRequest

func (UpdateInstanceRequest) String

func (s UpdateInstanceRequest) String() string

type UpdateInstanceResponse

type UpdateInstanceResponse struct {
	Headers    map[string]*string          `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                      `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *UpdateInstanceResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (UpdateInstanceResponse) GoString

func (s UpdateInstanceResponse) GoString() string

func (*UpdateInstanceResponse) SetBody

func (*UpdateInstanceResponse) SetHeaders

func (*UpdateInstanceResponse) SetStatusCode

func (UpdateInstanceResponse) String

func (s UpdateInstanceResponse) String() string

type UpdateInstanceResponseBody

type UpdateInstanceResponseBody struct {
	// The request ID, which can be used to troubleshoot issues.
	//
	// example:
	//
	// 3104C83E-6E82-57FB-BB88-8C64CCFDEF89
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (UpdateInstanceResponseBody) GoString

func (s UpdateInstanceResponseBody) GoString() string

func (*UpdateInstanceResponseBody) SetRequestId

func (UpdateInstanceResponseBody) String

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL