From 9ad4684cee392d67c2f85f84277d08dd32137d5f Mon Sep 17 00:00:00 2001 From: FingerLeader <43462394+FingerLeader@users.noreply.github.com> Date: Thu, 23 Jan 2025 17:55:11 +0800 Subject: [PATCH] update dedicated client (#260) Signed-off-by: FingerLeader --- pkg/tidbcloud/v1beta1/dedicated.swagger.json | 29 ++-- .../v1beta1/dedicated/api/openapi.yaml | 125 ++++++++++-------- .../api_network_container_service.go | 4 +- ...api_private_endpoint_connection_service.go | 2 +- ...uster_storage_node_setting_storage_type.go | 22 +-- .../model_dedicatedv1beta1_node_spec.go | 37 ++++++ ...ate_private_endpoint_connection_request.go | 36 ++--- ...del_v1beta1_private_endpoint_connection.go | 36 ++--- .../model_v1beta1_region_cloud_provider.go | 2 +- 9 files changed, 174 insertions(+), 119 deletions(-) diff --git a/pkg/tidbcloud/v1beta1/dedicated.swagger.json b/pkg/tidbcloud/v1beta1/dedicated.swagger.json index a8181cc7..87531600 100644 --- a/pkg/tidbcloud/v1beta1/dedicated.swagger.json +++ b/pkg/tidbcloud/v1beta1/dedicated.swagger.json @@ -2092,7 +2092,7 @@ } ] }, - "massage": { + "message": { "type": "string", "readOnly": true }, @@ -2237,7 +2237,7 @@ }, { "name": "cloudProvider", - "description": "If specified, only private link connections of the specified cloud provider will be returned.\n\n - aws: Amazon Web Services.\nbuf:lint:ignore ENUM_VALUE_UPPER_SNAKE_CASE\n - gcp: Google Cloud Platform.\nbuf:lint:ignore ENUM_VALUE_UPPER_SNAKE_CASE\n - azure: Microsoft Azure.\nbuf:lint:ignore ENUM_VALUE_UPPER_SNAKE_CASE", + "description": "If specified, only private link connections of the specified cloud provider will be returned.\n\n - aws: Amazon Web Services.\n - gcp: Google Cloud Platform.\n - azure: Microsoft Azure.", "in": "query", "required": false, "type": "string", @@ -2479,7 +2479,7 @@ }, { "name": "cloudProvider", - "description": " - aws: Amazon Web Services.\nbuf:lint:ignore ENUM_VALUE_UPPER_SNAKE_CASE\n - gcp: Google Cloud Platform.\nbuf:lint:ignore ENUM_VALUE_UPPER_SNAKE_CASE\n - azure: Microsoft Azure.\nbuf:lint:ignore ENUM_VALUE_UPPER_SNAKE_CASE", + "description": " - aws: Amazon Web Services.\n - gcp: Google Cloud Platform.\n - azure: Microsoft Azure.", "in": "query", "required": false, "type": "string", @@ -2767,7 +2767,7 @@ }, { "name": "cloudProvider", - "description": "If specified, only VPC peerings of the specified cloud provider will be returned.\n\n - aws: Amazon Web Services.\nbuf:lint:ignore ENUM_VALUE_UPPER_SNAKE_CASE\n - gcp: Google Cloud Platform.\nbuf:lint:ignore ENUM_VALUE_UPPER_SNAKE_CASE\n - azure: Microsoft Azure.\nbuf:lint:ignore ENUM_VALUE_UPPER_SNAKE_CASE", + "description": "If specified, only VPC peerings of the specified cloud provider will be returned.\n\n - aws: Amazon Web Services.\n - gcp: Google Cloud Platform.\n - azure: Microsoft Azure.", "in": "query", "required": false, "type": "string", @@ -4103,12 +4103,14 @@ "ClusterStorageNodeSettingStorageType": { "type": "string", "enum": [ - "BASIC", - "BASICV2", - "OPTIMIZED", - "PLUS" + "Standard", + "Standard_Optimized", + "Performance_Optimized", + "Performance", + "Standard_Premium", + "Performance_Premium" ], - "title": "- BASIC: default\n - BASICV2: separate raft-log and data storage, only for tikv\n - OPTIMIZED: separate raft-log and data storage, and use high performance storage volume for raft-log, only for tikv\n - PLUS: use high performance storage volume" + "description": "Spec https://pingcap.feishu.cn/wiki/R6dcwK0Q3i9XSgkgG1Scoc82nbf.\n\n - Standard: A cost-effective storage type suitable for most workloads, offering balanced performance and affordability.\n - Single gp3 disk for TiKV storage\nIdeal for general-purpose clusters where affordability and reliability are priorities.\n - Standard_Optimized: An enhanced version of Standard storage that delivers approximately 10% better overall cluster performance, balancing cost and performance.\n - Separate gp3 disk for TiKV raft-log storage\n - gp3 disk for TiKV data storage\nRecommended as the default choice for most clusters, offering an improved balance of cost and performance.\n - Performance_Optimized: High-performance storage designed for workloads requiring low latency and greater stability. Provides superior performance for performance-sensitive clusters.\n - Separate io2 disk for TiKV raft-log storage\n - gp3 disk for TiKV data storage\nSuitable for clusters where consistent I/O performance and reduced latency are critical.\n - Performance: Premium storage option offering the highest levels of performance and stability. Uses a single high-performance disk to minimize jitter and maximize IOPS.\n - Single io2 disk for storage\nDesigned for I/O jitter-sensitive clusters with extreme performance demands. Available via allowlist only for select customers.\n - Standard_Premium: Reserved.\n - Performance_Premium: Reserved." }, "EndpointConnectionType": { "type": "string", @@ -4462,6 +4464,9 @@ "$ref": "#/definitions/ClusterStorageNodeSettingStorageType" }, "readOnly": true + }, + "default": { + "type": "boolean" } } }, @@ -5430,7 +5435,7 @@ } ] }, - "massage": { + "message": { "type": "string", "readOnly": true }, @@ -5531,7 +5536,7 @@ "gcp", "azure" ], - "description": "Enum of cloud provider names.\n\n - aws: Amazon Web Services.\nbuf:lint:ignore ENUM_VALUE_UPPER_SNAKE_CASE\n - gcp: Google Cloud Platform.\nbuf:lint:ignore ENUM_VALUE_UPPER_SNAKE_CASE\n - azure: Microsoft Azure.\nbuf:lint:ignore ENUM_VALUE_UPPER_SNAKE_CASE" + "description": "Enum of cloud provider names.\n\n - aws: Amazon Web Services.\n - gcp: Google Cloud Platform.\n - azure: Microsoft Azure." }, "v1beta1ResetRootPasswordResponse": { "type": "object" @@ -5723,4 +5728,4 @@ "description": "More about TiDB Cloud API", "url": "https://docs.pingcap.com/tidbcloud/api-overview" } -} +} \ No newline at end of file diff --git a/pkg/tidbcloud/v1beta1/dedicated/api/openapi.yaml b/pkg/tidbcloud/v1beta1/dedicated/api/openapi.yaml index 06c31a33..851ddc3c 100644 --- a/pkg/tidbcloud/v1beta1/dedicated/api/openapi.yaml +++ b/pkg/tidbcloud/v1beta1/dedicated/api/openapi.yaml @@ -1791,11 +1791,8 @@ paths: If specified, only private link connections of the specified cloud provider will be returned. - aws: Amazon Web Services. - buf:lint:ignore ENUM_VALUE_UPPER_SNAKE_CASE - gcp: Google Cloud Platform. - buf:lint:ignore ENUM_VALUE_UPPER_SNAKE_CASE - azure: Microsoft Azure. - buf:lint:ignore ENUM_VALUE_UPPER_SNAKE_CASE in: query name: cloudProvider schema: @@ -2011,11 +2008,8 @@ paths: type: string - description: |2- - aws: Amazon Web Services. - buf:lint:ignore ENUM_VALUE_UPPER_SNAKE_CASE - gcp: Google Cloud Platform. - buf:lint:ignore ENUM_VALUE_UPPER_SNAKE_CASE - azure: Microsoft Azure. - buf:lint:ignore ENUM_VALUE_UPPER_SNAKE_CASE in: query name: cloudProvider schema: @@ -2276,11 +2270,8 @@ paths: If specified, only VPC peerings of the specified cloud provider will be returned. - aws: Amazon Web Services. - buf:lint:ignore ENUM_VALUE_UPPER_SNAKE_CASE - gcp: Google Cloud Platform. - buf:lint:ignore ENUM_VALUE_UPPER_SNAKE_CASE - azure: Microsoft Azure. - buf:lint:ignore ENUM_VALUE_UPPER_SNAKE_CASE in: query name: cloudProvider schema: @@ -3441,16 +3432,32 @@ components: - rootPassword type: object ClusterStorageNodeSettingStorageType: + description: |- + Spec https://pingcap.feishu.cn/wiki/R6dcwK0Q3i9XSgkgG1Scoc82nbf. + + - Standard: A cost-effective storage type suitable for most workloads, offering balanced performance and affordability. + - Single gp3 disk for TiKV storage + Ideal for general-purpose clusters where affordability and reliability are priorities. + - Standard_Optimized: An enhanced version of Standard storage that delivers approximately 10% better overall cluster performance, balancing cost and performance. + - Separate gp3 disk for TiKV raft-log storage + - gp3 disk for TiKV data storage + Recommended as the default choice for most clusters, offering an improved balance of cost and performance. + - Performance_Optimized: High-performance storage designed for workloads requiring low latency and greater stability. Provides superior performance for performance-sensitive clusters. + - Separate io2 disk for TiKV raft-log storage + - gp3 disk for TiKV data storage + Suitable for clusters where consistent I/O performance and reduced latency are critical. + - Performance: Premium storage option offering the highest levels of performance and stability. Uses a single high-performance disk to minimize jitter and maximize IOPS. + - Single io2 disk for storage + Designed for I/O jitter-sensitive clusters with extreme performance demands. Available via allowlist only for select customers. + - Standard_Premium: Reserved. + - Performance_Premium: Reserved. enum: - - BASIC - - BASICV2 - - OPTIMIZED - - PLUS - title: |- - - BASIC: default - - BASICV2: separate raft-log and data storage, only for tikv - - OPTIMIZED: separate raft-log and data storage, and use high performance storage volume for raft-log, only for tikv - - PLUS: use high performance storage volume + - Standard + - Standard_Optimized + - Performance_Optimized + - Performance + - Standard_Premium + - Performance_Premium type: string EndpointConnectionType: description: |2- @@ -3822,19 +3829,20 @@ components: dedicatedv1beta1NodeSpec: example: componentType: "{}" - minStorageSizeGi: 5 - nodeSpecKey: nodeSpecKey defaultStorageSizeGi: 1 vCpu: 0 - regionId: regionId displayName: displayName - maxStorageSizeGi: 5 defaultNodeCount: 2 + memorySizeGi: 6 + minStorageSizeGi: 5 + nodeSpecKey: nodeSpecKey + default: true + regionId: regionId + maxStorageSizeGi: 5 name: name storageTypes: - - BASIC - - BASIC - memorySizeGi: 6 + - Standard + - Standard properties: name: readOnly: true @@ -3883,6 +3891,8 @@ components: $ref: '#/components/schemas/ClusterStorageNodeSettingStorageType' readOnly: true type: array + default: + type: boolean type: object dedicatedv1beta1PauseClusterResponse: example: @@ -3892,7 +3902,7 @@ components: nodeSpecDisplayName: nodeSpecDisplayName nodeChangingProgress: "{}" storageSizeGi: 5 - storageType: BASIC + storageType: Standard nodeCount: 1 displayName: foo-bar annotations: @@ -3909,7 +3919,7 @@ components: nodeSpecDisplayName: nodeSpecDisplayName nodeChangingProgress: "{}" storageSizeGi: 5 - storageType: BASIC + storageType: Standard nodeCount: 1 regionId: regionId port: 5 @@ -4031,7 +4041,7 @@ components: nodeSpecDisplayName: nodeSpecDisplayName nodeChangingProgress: "{}" storageSizeGi: 5 - storageType: BASIC + storageType: Standard nodeCount: 1 displayName: foo-bar annotations: @@ -4048,7 +4058,7 @@ components: nodeSpecDisplayName: nodeSpecDisplayName nodeChangingProgress: "{}" storageSizeGi: 5 - storageType: BASIC + storageType: Standard nodeCount: 1 regionId: regionId port: 5 @@ -4463,7 +4473,7 @@ components: nodeSpecDisplayName: nodeSpecDisplayName nodeChangingProgress: "{}" storageSizeGi: 5 - storageType: BASIC + storageType: Standard nodeCount: 1 displayName: foo-bar annotations: @@ -4480,7 +4490,7 @@ components: nodeSpecDisplayName: nodeSpecDisplayName nodeChangingProgress: "{}" storageSizeGi: 5 - storageType: BASIC + storageType: Standard nodeCount: 1 regionId: regionId port: 5 @@ -4636,7 +4646,7 @@ components: nodeSpecDisplayName: nodeSpecDisplayName nodeChangingProgress: "{}" storageSizeGi: 5 - storageType: BASIC + storageType: Standard nodeCount: 1 displayName: foo-bar annotations: @@ -4653,7 +4663,7 @@ components: nodeSpecDisplayName: nodeSpecDisplayName nodeChangingProgress: "{}" storageSizeGi: 5 - storageType: BASIC + storageType: Standard nodeCount: 1 regionId: regionId port: 5 @@ -4706,7 +4716,7 @@ components: nodeSpecDisplayName: nodeSpecDisplayName nodeChangingProgress: "{}" storageSizeGi: 5 - storageType: BASIC + storageType: Standard nodeCount: 1 displayName: foo-bar annotations: @@ -4723,7 +4733,7 @@ components: nodeSpecDisplayName: nodeSpecDisplayName nodeChangingProgress: "{}" storageSizeGi: 5 - storageType: BASIC + storageType: Standard nodeCount: 1 regionId: regionId port: 5 @@ -4856,7 +4866,7 @@ components: nodeSpecDisplayName: nodeSpecDisplayName nodeChangingProgress: "{}" storageSizeGi: 5 - storageType: BASIC + storageType: Standard nodeCount: 1 properties: nodeCount: @@ -5169,33 +5179,35 @@ components: nextPageToken: nextPageToken nodeSpecs: - componentType: "{}" - minStorageSizeGi: 5 - nodeSpecKey: nodeSpecKey defaultStorageSizeGi: 1 vCpu: 0 - regionId: regionId displayName: displayName - maxStorageSizeGi: 5 defaultNodeCount: 2 - name: name - storageTypes: - - BASIC - - BASIC memorySizeGi: 6 - - componentType: "{}" minStorageSizeGi: 5 nodeSpecKey: nodeSpecKey + default: true + regionId: regionId + maxStorageSizeGi: 5 + name: name + storageTypes: + - Standard + - Standard + - componentType: "{}" defaultStorageSizeGi: 1 vCpu: 0 - regionId: regionId displayName: displayName - maxStorageSizeGi: 5 defaultNodeCount: 2 + memorySizeGi: 6 + minStorageSizeGi: 5 + nodeSpecKey: nodeSpecKey + default: true + regionId: regionId + maxStorageSizeGi: 5 name: name storageTypes: - - BASIC - - BASIC - memorySizeGi: 6 + - Standard + - Standard properties: nodeSpecs: items: @@ -5220,6 +5232,7 @@ components: tidbNodeGroupId: tidbNodeGroupId privateEndpointConnectionId: privateEndpointConnectionId clusterId: clusterId + message: message privateIpAddress: privateIpAddress labels: key: labels @@ -5233,13 +5246,13 @@ components: cloudProvider: "{}" name: name host: host - massage: massage - privateLinkServiceState: "{}" clusterDisplayName: clusterDisplayName endpointId: endpointId tidbNodeGroupId: tidbNodeGroupId privateEndpointConnectionId: privateEndpointConnectionId clusterId: clusterId + message: message privateIpAddress: privateIpAddress labels: key: labels @@ -5253,7 +5266,6 @@ components: cloudProvider: "{}" name: name host: host - massage: massage totalSize: 0 nextPageToken: nextPageToken properties: @@ -5467,6 +5479,7 @@ components: tidbNodeGroupId: tidbNodeGroupId privateEndpointConnectionId: privateEndpointConnectionId clusterId: clusterId + message: message privateIpAddress: privateIpAddress labels: key: labels @@ -5480,7 +5493,6 @@ components: cloudProvider: "{}" name: name host: host - massage: massage properties: name: readOnly: true @@ -5522,7 +5534,7 @@ components: allOf: - $ref: '#/components/schemas/PrivateEndpointConnectionEndpointState' type: object - massage: + message: readOnly: true type: string regionId: @@ -5602,11 +5614,8 @@ components: Enum of cloud provider names. - aws: Amazon Web Services. - buf:lint:ignore ENUM_VALUE_UPPER_SNAKE_CASE - gcp: Google Cloud Platform. - buf:lint:ignore ENUM_VALUE_UPPER_SNAKE_CASE - azure: Microsoft Azure. - buf:lint:ignore ENUM_VALUE_UPPER_SNAKE_CASE enum: - aws - gcp @@ -5890,7 +5899,7 @@ components: allOf: - $ref: '#/components/schemas/PrivateEndpointConnectionEndpointState' type: object - massage: + message: readOnly: true type: string regionId: diff --git a/pkg/tidbcloud/v1beta1/dedicated/api_network_container_service.go b/pkg/tidbcloud/v1beta1/dedicated/api_network_container_service.go index e48fefb9..c6f58e60 100644 --- a/pkg/tidbcloud/v1beta1/dedicated/api_network_container_service.go +++ b/pkg/tidbcloud/v1beta1/dedicated/api_network_container_service.go @@ -1135,7 +1135,7 @@ func (r ApiNetworkContainerServiceListNetworkContainersRequest) ProjectId(projec return r } -// - aws: Amazon Web Services. buf:lint:ignore ENUM_VALUE_UPPER_SNAKE_CASE - gcp: Google Cloud Platform. buf:lint:ignore ENUM_VALUE_UPPER_SNAKE_CASE - azure: Microsoft Azure. buf:lint:ignore ENUM_VALUE_UPPER_SNAKE_CASE +// - aws: Amazon Web Services. - gcp: Google Cloud Platform. - azure: Microsoft Azure. func (r ApiNetworkContainerServiceListNetworkContainersRequest) CloudProvider(cloudProvider PrivateEndpointConnectionServiceListPrivateEndpointConnectionsCloudProviderParameter) ApiNetworkContainerServiceListNetworkContainersRequest { r.cloudProvider = &cloudProvider return r @@ -1359,7 +1359,7 @@ func (r ApiNetworkContainerServiceListVpcPeeringsRequest) ProjectId(projectId st return r } -// If specified, only VPC peerings of the specified cloud provider will be returned. - aws: Amazon Web Services. buf:lint:ignore ENUM_VALUE_UPPER_SNAKE_CASE - gcp: Google Cloud Platform. buf:lint:ignore ENUM_VALUE_UPPER_SNAKE_CASE - azure: Microsoft Azure. buf:lint:ignore ENUM_VALUE_UPPER_SNAKE_CASE +// If specified, only VPC peerings of the specified cloud provider will be returned. - aws: Amazon Web Services. - gcp: Google Cloud Platform. - azure: Microsoft Azure. func (r ApiNetworkContainerServiceListVpcPeeringsRequest) CloudProvider(cloudProvider PrivateEndpointConnectionServiceListPrivateEndpointConnectionsCloudProviderParameter) ApiNetworkContainerServiceListVpcPeeringsRequest { r.cloudProvider = &cloudProvider return r diff --git a/pkg/tidbcloud/v1beta1/dedicated/api_private_endpoint_connection_service.go b/pkg/tidbcloud/v1beta1/dedicated/api_private_endpoint_connection_service.go index cb6cf4b4..1b57edc7 100644 --- a/pkg/tidbcloud/v1beta1/dedicated/api_private_endpoint_connection_service.go +++ b/pkg/tidbcloud/v1beta1/dedicated/api_private_endpoint_connection_service.go @@ -801,7 +801,7 @@ func (r ApiPrivateEndpointConnectionServiceListPrivateEndpointConnectionsRequest return r } -// If specified, only private link connections of the specified cloud provider will be returned. - aws: Amazon Web Services. buf:lint:ignore ENUM_VALUE_UPPER_SNAKE_CASE - gcp: Google Cloud Platform. buf:lint:ignore ENUM_VALUE_UPPER_SNAKE_CASE - azure: Microsoft Azure. buf:lint:ignore ENUM_VALUE_UPPER_SNAKE_CASE +// If specified, only private link connections of the specified cloud provider will be returned. - aws: Amazon Web Services. - gcp: Google Cloud Platform. - azure: Microsoft Azure. func (r ApiPrivateEndpointConnectionServiceListPrivateEndpointConnectionsRequest) CloudProvider(cloudProvider PrivateEndpointConnectionServiceListPrivateEndpointConnectionsCloudProviderParameter) ApiPrivateEndpointConnectionServiceListPrivateEndpointConnectionsRequest { r.cloudProvider = &cloudProvider return r diff --git a/pkg/tidbcloud/v1beta1/dedicated/model_cluster_storage_node_setting_storage_type.go b/pkg/tidbcloud/v1beta1/dedicated/model_cluster_storage_node_setting_storage_type.go index 52b818c2..2154390c 100644 --- a/pkg/tidbcloud/v1beta1/dedicated/model_cluster_storage_node_setting_storage_type.go +++ b/pkg/tidbcloud/v1beta1/dedicated/model_cluster_storage_node_setting_storage_type.go @@ -15,23 +15,27 @@ import ( "fmt" ) -// ClusterStorageNodeSettingStorageType the model 'ClusterStorageNodeSettingStorageType' +// ClusterStorageNodeSettingStorageType Spec https://pingcap.feishu.cn/wiki/R6dcwK0Q3i9XSgkgG1Scoc82nbf. - Standard: A cost-effective storage type suitable for most workloads, offering balanced performance and affordability. - Single gp3 disk for TiKV storage Ideal for general-purpose clusters where affordability and reliability are priorities. - Standard_Optimized: An enhanced version of Standard storage that delivers approximately 10% better overall cluster performance, balancing cost and performance. - Separate gp3 disk for TiKV raft-log storage - gp3 disk for TiKV data storage Recommended as the default choice for most clusters, offering an improved balance of cost and performance. - Performance_Optimized: High-performance storage designed for workloads requiring low latency and greater stability. Provides superior performance for performance-sensitive clusters. - Separate io2 disk for TiKV raft-log storage - gp3 disk for TiKV data storage Suitable for clusters where consistent I/O performance and reduced latency are critical. - Performance: Premium storage option offering the highest levels of performance and stability. Uses a single high-performance disk to minimize jitter and maximize IOPS. - Single io2 disk for storage Designed for I/O jitter-sensitive clusters with extreme performance demands. Available via allowlist only for select customers. - Standard_Premium: Reserved. - Performance_Premium: Reserved. type ClusterStorageNodeSettingStorageType string // List of ClusterStorageNodeSettingStorageType const ( - CLUSTERSTORAGENODESETTINGSTORAGETYPE_BASIC ClusterStorageNodeSettingStorageType = "BASIC" - CLUSTERSTORAGENODESETTINGSTORAGETYPE_BASICV2 ClusterStorageNodeSettingStorageType = "BASICV2" - CLUSTERSTORAGENODESETTINGSTORAGETYPE_OPTIMIZED ClusterStorageNodeSettingStorageType = "OPTIMIZED" - CLUSTERSTORAGENODESETTINGSTORAGETYPE_PLUS ClusterStorageNodeSettingStorageType = "PLUS" + CLUSTERSTORAGENODESETTINGSTORAGETYPE_STANDARD ClusterStorageNodeSettingStorageType = "Standard" + CLUSTERSTORAGENODESETTINGSTORAGETYPE_STANDARD_OPTIMIZED ClusterStorageNodeSettingStorageType = "Standard_Optimized" + CLUSTERSTORAGENODESETTINGSTORAGETYPE_PERFORMANCE_OPTIMIZED ClusterStorageNodeSettingStorageType = "Performance_Optimized" + CLUSTERSTORAGENODESETTINGSTORAGETYPE_PERFORMANCE ClusterStorageNodeSettingStorageType = "Performance" + CLUSTERSTORAGENODESETTINGSTORAGETYPE_STANDARD_PREMIUM ClusterStorageNodeSettingStorageType = "Standard_Premium" + CLUSTERSTORAGENODESETTINGSTORAGETYPE_PERFORMANCE_PREMIUM ClusterStorageNodeSettingStorageType = "Performance_Premium" ) // All allowed values of ClusterStorageNodeSettingStorageType enum var AllowedClusterStorageNodeSettingStorageTypeEnumValues = []ClusterStorageNodeSettingStorageType{ - "BASIC", - "BASICV2", - "OPTIMIZED", - "PLUS", + "Standard", + "Standard_Optimized", + "Performance_Optimized", + "Performance", + "Standard_Premium", + "Performance_Premium", } func (v *ClusterStorageNodeSettingStorageType) UnmarshalJSON(src []byte) error { diff --git a/pkg/tidbcloud/v1beta1/dedicated/model_dedicatedv1beta1_node_spec.go b/pkg/tidbcloud/v1beta1/dedicated/model_dedicatedv1beta1_node_spec.go index 747f9499..305f38c6 100644 --- a/pkg/tidbcloud/v1beta1/dedicated/model_dedicatedv1beta1_node_spec.go +++ b/pkg/tidbcloud/v1beta1/dedicated/model_dedicatedv1beta1_node_spec.go @@ -31,6 +31,7 @@ type Dedicatedv1beta1NodeSpec struct { MinStorageSizeGi *int32 `json:"minStorageSizeGi,omitempty"` DefaultNodeCount *int32 `json:"defaultNodeCount,omitempty"` StorageTypes []ClusterStorageNodeSettingStorageType `json:"storageTypes,omitempty"` + Default *bool `json:"default,omitempty"` AdditionalProperties map[string]interface{} } @@ -437,6 +438,38 @@ func (o *Dedicatedv1beta1NodeSpec) SetStorageTypes(v []ClusterStorageNodeSetting o.StorageTypes = v } +// GetDefault returns the Default field value if set, zero value otherwise. +func (o *Dedicatedv1beta1NodeSpec) GetDefault() bool { + if o == nil || IsNil(o.Default) { + var ret bool + return ret + } + return *o.Default +} + +// GetDefaultOk returns a tuple with the Default field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Dedicatedv1beta1NodeSpec) GetDefaultOk() (*bool, bool) { + if o == nil || IsNil(o.Default) { + return nil, false + } + return o.Default, true +} + +// HasDefault returns a boolean if a field has been set. +func (o *Dedicatedv1beta1NodeSpec) HasDefault() bool { + if o != nil && !IsNil(o.Default) { + return true + } + + return false +} + +// SetDefault gets a reference to the given bool and assigns it to the Default field. +func (o *Dedicatedv1beta1NodeSpec) SetDefault(v bool) { + o.Default = &v +} + func (o Dedicatedv1beta1NodeSpec) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -483,6 +516,9 @@ func (o Dedicatedv1beta1NodeSpec) ToMap() (map[string]interface{}, error) { if !IsNil(o.StorageTypes) { toSerialize["storageTypes"] = o.StorageTypes } + if !IsNil(o.Default) { + toSerialize["default"] = o.Default + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -517,6 +553,7 @@ func (o *Dedicatedv1beta1NodeSpec) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "minStorageSizeGi") delete(additionalProperties, "defaultNodeCount") delete(additionalProperties, "storageTypes") + delete(additionalProperties, "default") o.AdditionalProperties = additionalProperties } diff --git a/pkg/tidbcloud/v1beta1/dedicated/model_private_endpoint_connection_service_create_private_endpoint_connection_request.go b/pkg/tidbcloud/v1beta1/dedicated/model_private_endpoint_connection_service_create_private_endpoint_connection_request.go index 24d6b5d7..7dcb644d 100644 --- a/pkg/tidbcloud/v1beta1/dedicated/model_private_endpoint_connection_service_create_private_endpoint_connection_request.go +++ b/pkg/tidbcloud/v1beta1/dedicated/model_private_endpoint_connection_service_create_private_endpoint_connection_request.go @@ -31,7 +31,7 @@ type PrivateEndpointConnectionServiceCreatePrivateEndpointConnectionRequest stru // The private IP address of the private endpoint in the user's vNet. TiDB Cloud will setup a public DNS record for this private IP address. So the user can use DNS address to connect to the cluster. Only available for Azure clusters. PrivateIpAddress NullableString `json:"privateIpAddress,omitempty"` EndpointState *PrivateEndpointConnectionEndpointState `json:"endpointState,omitempty"` - Massage *string `json:"massage,omitempty"` + Message *string `json:"message,omitempty"` RegionId *string `json:"regionId,omitempty"` RegionDisplayName *string `json:"regionDisplayName,omitempty"` CloudProvider *V1beta1RegionCloudProvider `json:"cloudProvider,omitempty"` @@ -324,36 +324,36 @@ func (o *PrivateEndpointConnectionServiceCreatePrivateEndpointConnectionRequest) o.EndpointState = &v } -// GetMassage returns the Massage field value if set, zero value otherwise. -func (o *PrivateEndpointConnectionServiceCreatePrivateEndpointConnectionRequest) GetMassage() string { - if o == nil || IsNil(o.Massage) { +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *PrivateEndpointConnectionServiceCreatePrivateEndpointConnectionRequest) GetMessage() string { + if o == nil || IsNil(o.Message) { var ret string return ret } - return *o.Massage + return *o.Message } -// GetMassageOk returns a tuple with the Massage field value if set, nil otherwise +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PrivateEndpointConnectionServiceCreatePrivateEndpointConnectionRequest) GetMassageOk() (*string, bool) { - if o == nil || IsNil(o.Massage) { +func (o *PrivateEndpointConnectionServiceCreatePrivateEndpointConnectionRequest) GetMessageOk() (*string, bool) { + if o == nil || IsNil(o.Message) { return nil, false } - return o.Massage, true + return o.Message, true } -// HasMassage returns a boolean if a field has been set. -func (o *PrivateEndpointConnectionServiceCreatePrivateEndpointConnectionRequest) HasMassage() bool { - if o != nil && !IsNil(o.Massage) { +// HasMessage returns a boolean if a field has been set. +func (o *PrivateEndpointConnectionServiceCreatePrivateEndpointConnectionRequest) HasMessage() bool { + if o != nil && !IsNil(o.Message) { return true } return false } -// SetMassage gets a reference to the given string and assigns it to the Massage field. -func (o *PrivateEndpointConnectionServiceCreatePrivateEndpointConnectionRequest) SetMassage(v string) { - o.Massage = &v +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *PrivateEndpointConnectionServiceCreatePrivateEndpointConnectionRequest) SetMessage(v string) { + o.Message = &v } // GetRegionId returns the RegionId field value if set, zero value otherwise. @@ -687,8 +687,8 @@ func (o PrivateEndpointConnectionServiceCreatePrivateEndpointConnectionRequest) if !IsNil(o.EndpointState) { toSerialize["endpointState"] = o.EndpointState } - if !IsNil(o.Massage) { - toSerialize["massage"] = o.Massage + if !IsNil(o.Message) { + toSerialize["message"] = o.Message } if !IsNil(o.RegionId) { toSerialize["regionId"] = o.RegionId @@ -768,7 +768,7 @@ func (o *PrivateEndpointConnectionServiceCreatePrivateEndpointConnectionRequest) delete(additionalProperties, "endpointId") delete(additionalProperties, "privateIpAddress") delete(additionalProperties, "endpointState") - delete(additionalProperties, "massage") + delete(additionalProperties, "message") delete(additionalProperties, "regionId") delete(additionalProperties, "regionDisplayName") delete(additionalProperties, "cloudProvider") diff --git a/pkg/tidbcloud/v1beta1/dedicated/model_v1beta1_private_endpoint_connection.go b/pkg/tidbcloud/v1beta1/dedicated/model_v1beta1_private_endpoint_connection.go index d950cb5e..d2420a36 100644 --- a/pkg/tidbcloud/v1beta1/dedicated/model_v1beta1_private_endpoint_connection.go +++ b/pkg/tidbcloud/v1beta1/dedicated/model_v1beta1_private_endpoint_connection.go @@ -32,7 +32,7 @@ type V1beta1PrivateEndpointConnection struct { // The private IP address of the private endpoint in the user's vNet. TiDB Cloud will setup a public DNS record for this private IP address. So the user can use DNS address to connect to the cluster. Only available for Azure clusters. PrivateIpAddress NullableString `json:"privateIpAddress,omitempty"` EndpointState *PrivateEndpointConnectionEndpointState `json:"endpointState,omitempty"` - Massage *string `json:"massage,omitempty"` + Message *string `json:"message,omitempty"` RegionId *string `json:"regionId,omitempty"` RegionDisplayName *string `json:"regionDisplayName,omitempty"` CloudProvider *V1beta1RegionCloudProvider `json:"cloudProvider,omitempty"` @@ -350,36 +350,36 @@ func (o *V1beta1PrivateEndpointConnection) SetEndpointState(v PrivateEndpointCon o.EndpointState = &v } -// GetMassage returns the Massage field value if set, zero value otherwise. -func (o *V1beta1PrivateEndpointConnection) GetMassage() string { - if o == nil || IsNil(o.Massage) { +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *V1beta1PrivateEndpointConnection) GetMessage() string { + if o == nil || IsNil(o.Message) { var ret string return ret } - return *o.Massage + return *o.Message } -// GetMassageOk returns a tuple with the Massage field value if set, nil otherwise +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *V1beta1PrivateEndpointConnection) GetMassageOk() (*string, bool) { - if o == nil || IsNil(o.Massage) { +func (o *V1beta1PrivateEndpointConnection) GetMessageOk() (*string, bool) { + if o == nil || IsNil(o.Message) { return nil, false } - return o.Massage, true + return o.Message, true } -// HasMassage returns a boolean if a field has been set. -func (o *V1beta1PrivateEndpointConnection) HasMassage() bool { - if o != nil && !IsNil(o.Massage) { +// HasMessage returns a boolean if a field has been set. +func (o *V1beta1PrivateEndpointConnection) HasMessage() bool { + if o != nil && !IsNil(o.Message) { return true } return false } -// SetMassage gets a reference to the given string and assigns it to the Massage field. -func (o *V1beta1PrivateEndpointConnection) SetMassage(v string) { - o.Massage = &v +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *V1beta1PrivateEndpointConnection) SetMessage(v string) { + o.Message = &v } // GetRegionId returns the RegionId field value if set, zero value otherwise. @@ -714,8 +714,8 @@ func (o V1beta1PrivateEndpointConnection) ToMap() (map[string]interface{}, error if !IsNil(o.EndpointState) { toSerialize["endpointState"] = o.EndpointState } - if !IsNil(o.Massage) { - toSerialize["massage"] = o.Massage + if !IsNil(o.Message) { + toSerialize["message"] = o.Message } if !IsNil(o.RegionId) { toSerialize["regionId"] = o.RegionId @@ -797,7 +797,7 @@ func (o *V1beta1PrivateEndpointConnection) UnmarshalJSON(data []byte) (err error delete(additionalProperties, "endpointId") delete(additionalProperties, "privateIpAddress") delete(additionalProperties, "endpointState") - delete(additionalProperties, "massage") + delete(additionalProperties, "message") delete(additionalProperties, "regionId") delete(additionalProperties, "regionDisplayName") delete(additionalProperties, "cloudProvider") diff --git a/pkg/tidbcloud/v1beta1/dedicated/model_v1beta1_region_cloud_provider.go b/pkg/tidbcloud/v1beta1/dedicated/model_v1beta1_region_cloud_provider.go index 2ba3a8c2..75113872 100644 --- a/pkg/tidbcloud/v1beta1/dedicated/model_v1beta1_region_cloud_provider.go +++ b/pkg/tidbcloud/v1beta1/dedicated/model_v1beta1_region_cloud_provider.go @@ -15,7 +15,7 @@ import ( "fmt" ) -// V1beta1RegionCloudProvider Enum of cloud provider names. - aws: Amazon Web Services. buf:lint:ignore ENUM_VALUE_UPPER_SNAKE_CASE - gcp: Google Cloud Platform. buf:lint:ignore ENUM_VALUE_UPPER_SNAKE_CASE - azure: Microsoft Azure. buf:lint:ignore ENUM_VALUE_UPPER_SNAKE_CASE +// V1beta1RegionCloudProvider Enum of cloud provider names. - aws: Amazon Web Services. - gcp: Google Cloud Platform. - azure: Microsoft Azure. type V1beta1RegionCloudProvider string // List of v1beta1RegionCloudProvider