Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit eccc767

Browse files
committed
Update API CreateDBInstance: add request parameters DBTimeZone.
1 parent 41e9729 commit eccc767

File tree

4 files changed

+36
-8
lines changed

4 files changed

+36
-8
lines changed

‎clickhouse-20230522/ChangeLog.txt‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2025年10月30日 Version: 2.1.1
2+
- Update API CreateDBInstance: add request parameters DBTimeZone.
3+
4+
15
2025年10月27日 Version: 2.1.0
26
- Support API ChangeResourceGroup.
37
- Update API CreateEndpoint: add request parameters ComputingGroupId.

‎clickhouse-20230522/include/alibabacloud/models/CreateDbInstanceRequest.hpp‎

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ namespace Models
1818
DARABONBA_PTR_TO_JSON(BackupSetId, backupSetId_);
1919
DARABONBA_PTR_TO_JSON(ClientToken, clientToken_);
2020
DARABONBA_PTR_TO_JSON(DBInstanceDescription, DBInstanceDescription_);
21+
DARABONBA_PTR_TO_JSON(DBTimeZone, DBTimeZone_);
2122
DARABONBA_PTR_TO_JSON(DeploySchema, deploySchema_);
2223
DARABONBA_PTR_TO_JSON(Engine, engine_);
2324
DARABONBA_PTR_TO_JSON(EngineVersion, engineVersion_);
@@ -40,6 +41,7 @@ namespace Models
4041
DARABONBA_PTR_FROM_JSON(BackupSetId, backupSetId_);
4142
DARABONBA_PTR_FROM_JSON(ClientToken, clientToken_);
4243
DARABONBA_PTR_FROM_JSON(DBInstanceDescription, DBInstanceDescription_);
44+
DARABONBA_PTR_FROM_JSON(DBTimeZone, DBTimeZone_);
4345
DARABONBA_PTR_FROM_JSON(DeploySchema, deploySchema_);
4446
DARABONBA_PTR_FROM_JSON(Engine, engine_);
4547
DARABONBA_PTR_FROM_JSON(EngineVersion, engineVersion_);
@@ -70,10 +72,10 @@ namespace Models
7072
virtual void fromMap(const Darabonba::Json &obj) override { from_json(obj, *this); validate(); };
7173
virtual Darabonba::Json toMap() const override { Darabonba::Json obj; to_json(obj, *this); return obj; };
7274
virtual bool empty() const override { return this->backupSetId_ == nullptr
73-
&& return this->clientToken_ == nullptr && return this->DBInstanceDescription_ == nullptr && return this->deploySchema_ == nullptr && return this->engine_ == nullptr && return this->engineVersion_ == nullptr
74-
&& return this->multiZone_ == nullptr && return this->nodeCount_ == nullptr && return this->nodeScaleMax_ == nullptr && return this->nodeScaleMin_ == nullptr && return this->regionId_ == nullptr
75-
&& return this->resourceGroupId_ == nullptr && return this->scaleMax_ == nullptr && return this->scaleMin_ == nullptr && return this->sourceDBInstanceId_ == nullptr && return this->storageQuota_ == nullptr
76-
&& return this->storageType_ == nullptr && return this->vpcId_ == nullptr && return this->vswitchId_ == nullptr && return this->zoneId_ == nullptr; };
75+
&& return this->clientToken_ == nullptr && return this->DBInstanceDescription_ == nullptr && return this->DBTimeZone_ == nullptr && return this->deploySchema_ == nullptr && return this->engine_ == nullptr
76+
&& return this->engineVersion_ == nullptr && return this->multiZone_ == nullptr && return this->nodeCount_ == nullptr && return this->nodeScaleMax_ == nullptr && return this->nodeScaleMin_ == nullptr
77+
&& return this->regionId_ == nullptr && return this->resourceGroupId_ == nullptr && return this->scaleMax_ == nullptr && return this->scaleMin_ == nullptr && return this->sourceDBInstanceId_ == nullptr
78+
&& return this->storageQuota_ == nullptr && returnthis->storageType_ == nullptr && return this->vpcId_ == nullptr && return this->vswitchId_ == nullptr && return this->zoneId_ == nullptr; };
7779
// backupSetId Field Functions
7880
bool hasBackupSetId() const { return this->backupSetId_ != nullptr;};
7981
void deleteBackupSetId() { this->backupSetId_ = nullptr;};
@@ -95,6 +97,13 @@ namespace Models
9597
inline CreateDBInstanceRequest& setDBInstanceDescription(string DBInstanceDescription) { DARABONBA_PTR_SET_VALUE(DBInstanceDescription_, DBInstanceDescription) };
9698

9799

100+
// DBTimeZone Field Functions
101+
bool hasDBTimeZone() const { return this->DBTimeZone_ != nullptr;};
102+
void deleteDBTimeZone() { this->DBTimeZone_ = nullptr;};
103+
inline string DBTimeZone() const { DARABONBA_PTR_GET_DEFAULT(DBTimeZone_, "") };
104+
inline CreateDBInstanceRequest& setDBTimeZone(string DBTimeZone) { DARABONBA_PTR_SET_VALUE(DBTimeZone_, DBTimeZone) };
105+
106+
98107
// deploySchema Field Functions
99108
bool hasDeploySchema() const { return this->deploySchema_ != nullptr;};
100109
void deleteDeploySchema() { this->deploySchema_ = nullptr;};
@@ -223,6 +232,7 @@ namespace Models
223232
std::shared_ptr<string> clientToken_ = nullptr;
224233
// The cluster description.
225234
std::shared_ptr<string> DBInstanceDescription_ = nullptr;
235+
std::shared_ptr<string> DBTimeZone_ = nullptr;
226236
// The deployment status of the cluster.
227237
std::shared_ptr<string> deploySchema_ = nullptr;
228238
// The engine type.

‎clickhouse-20230522/include/alibabacloud/models/CreateDbInstanceShrinkRequest.hpp‎

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ namespace Models
1616
DARABONBA_PTR_TO_JSON(BackupSetId, backupSetId_);
1717
DARABONBA_PTR_TO_JSON(ClientToken, clientToken_);
1818
DARABONBA_PTR_TO_JSON(DBInstanceDescription, DBInstanceDescription_);
19+
DARABONBA_PTR_TO_JSON(DBTimeZone, DBTimeZone_);
1920
DARABONBA_PTR_TO_JSON(DeploySchema, deploySchema_);
2021
DARABONBA_PTR_TO_JSON(Engine, engine_);
2122
DARABONBA_PTR_TO_JSON(EngineVersion, engineVersion_);
@@ -38,6 +39,7 @@ namespace Models
3839
DARABONBA_PTR_FROM_JSON(BackupSetId, backupSetId_);
3940
DARABONBA_PTR_FROM_JSON(ClientToken, clientToken_);
4041
DARABONBA_PTR_FROM_JSON(DBInstanceDescription, DBInstanceDescription_);
42+
DARABONBA_PTR_FROM_JSON(DBTimeZone, DBTimeZone_);
4143
DARABONBA_PTR_FROM_JSON(DeploySchema, deploySchema_);
4244
DARABONBA_PTR_FROM_JSON(Engine, engine_);
4345
DARABONBA_PTR_FROM_JSON(EngineVersion, engineVersion_);
@@ -68,10 +70,10 @@ namespace Models
6870
virtual void fromMap(const Darabonba::Json &obj) override { from_json(obj, *this); validate(); };
6971
virtual Darabonba::Json toMap() const override { Darabonba::Json obj; to_json(obj, *this); return obj; };
7072
virtual bool empty() const override { return this->backupSetId_ == nullptr
71-
&& return this->clientToken_ == nullptr && return this->DBInstanceDescription_ == nullptr && return this->deploySchema_ == nullptr && return this->engine_ == nullptr && return this->engineVersion_ == nullptr
72-
&& return this->multiZoneShrink_ == nullptr && return this->nodeCount_ == nullptr && return this->nodeScaleMax_ == nullptr && return this->nodeScaleMin_ == nullptr && return this->regionId_ == nullptr
73-
&& return this->resourceGroupId_ == nullptr && return this->scaleMax_ == nullptr && return this->scaleMin_ == nullptr && return this->sourceDBInstanceId_ == nullptr && return this->storageQuota_ == nullptr
74-
&& return this->storageType_ == nullptr && return this->vpcId_ == nullptr && return this->vswitchId_ == nullptr && return this->zoneId_ == nullptr; };
73+
&& return this->clientToken_ == nullptr && return this->DBInstanceDescription_ == nullptr && return this->DBTimeZone_ == nullptr && return this->deploySchema_ == nullptr && return this->engine_ == nullptr
74+
&& return this->engineVersion_ == nullptr && return this->multiZoneShrink_ == nullptr && return this->nodeCount_ == nullptr && return this->nodeScaleMax_ == nullptr && return this->nodeScaleMin_ == nullptr
75+
&& return this->regionId_ == nullptr && return this->resourceGroupId_ == nullptr && return this->scaleMax_ == nullptr && return this->scaleMin_ == nullptr && return this->sourceDBInstanceId_ == nullptr
76+
&& return this->storageQuota_ == nullptr && returnthis->storageType_ == nullptr && return this->vpcId_ == nullptr && return this->vswitchId_ == nullptr && return this->zoneId_ == nullptr; };
7577
// backupSetId Field Functions
7678
bool hasBackupSetId() const { return this->backupSetId_ != nullptr;};
7779
void deleteBackupSetId() { this->backupSetId_ = nullptr;};
@@ -93,6 +95,13 @@ namespace Models
9395
inline CreateDBInstanceShrinkRequest& setDBInstanceDescription(string DBInstanceDescription) { DARABONBA_PTR_SET_VALUE(DBInstanceDescription_, DBInstanceDescription) };
9496

9597

98+
// DBTimeZone Field Functions
99+
bool hasDBTimeZone() const { return this->DBTimeZone_ != nullptr;};
100+
void deleteDBTimeZone() { this->DBTimeZone_ = nullptr;};
101+
inline string DBTimeZone() const { DARABONBA_PTR_GET_DEFAULT(DBTimeZone_, "") };
102+
inline CreateDBInstanceShrinkRequest& setDBTimeZone(string DBTimeZone) { DARABONBA_PTR_SET_VALUE(DBTimeZone_, DBTimeZone) };
103+
104+
96105
// deploySchema Field Functions
97106
bool hasDeploySchema() const { return this->deploySchema_ != nullptr;};
98107
void deleteDeploySchema() { this->deploySchema_ = nullptr;};
@@ -219,6 +228,7 @@ namespace Models
219228
std::shared_ptr<string> clientToken_ = nullptr;
220229
// The cluster description.
221230
std::shared_ptr<string> DBInstanceDescription_ = nullptr;
231+
std::shared_ptr<string> DBTimeZone_ = nullptr;
222232
// The deployment status of the cluster.
223233
std::shared_ptr<string> deploySchema_ = nullptr;
224234
// The engine type.

‎clickhouse-20230522/src/Client.cpp‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,10 @@ CreateDBInstanceResponse Client::createDBInstanceWithOptions(const CreateDBInsta
351351
query["DBInstanceDescription"] = request.DBInstanceDescription();
352352
}
353353

354+
if (!!request.hasDBTimeZone()) {
355+
query["DBTimeZone"] = request.DBTimeZone();
356+
}
357+
354358
if (!!request.hasDeploySchema()) {
355359
query["DeploySchema"] = request.deploySchema();
356360
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /