Skip to content

Commit 5eb1675

Browse files
committed
Update API GenerateWuyingServerSceneUrl: add request parameters ApiKey.
1 parent d082fcf commit 5eb1675

File tree

3 files changed

+23
-6
lines changed

3 files changed

+23
-6
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2025-11-20 Version: 1.0.1
2+
- Update API GenerateWuyingServerSceneUrl: add request parameters ApiKey.
3+
4+
15
2025-11-19 Version: 1.0.0
26
- Generated cpp 2025-11-11 for wuying-personal-pc.
37

wuying-personal-pc-20251111/include/alibabacloud/models/GenerateWuyingServerSceneUrlRequest.hpp

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ namespace Models
1313
class GenerateWuyingServerSceneUrlRequest : public Darabonba::Model {
1414
public:
1515
friend void to_json(Darabonba::Json& j, const GenerateWuyingServerSceneUrlRequest& obj) {
16+
DARABONBA_PTR_TO_JSON(ApiKey, apiKey_);
1617
DARABONBA_PTR_TO_JSON(ClientId, clientId_);
1718
DARABONBA_PTR_TO_JSON(ClientIp, clientIp_);
1819
DARABONBA_PTR_TO_JSON(ClientOS, clientOS_);
@@ -28,6 +29,7 @@ namespace Models
2829
DARABONBA_PTR_TO_JSON(WuyingServerId, wuyingServerId_);
2930
};
3031
friend void from_json(const Darabonba::Json& j, GenerateWuyingServerSceneUrlRequest& obj) {
32+
DARABONBA_PTR_FROM_JSON(ApiKey, apiKey_);
3133
DARABONBA_PTR_FROM_JSON(ClientId, clientId_);
3234
DARABONBA_PTR_FROM_JSON(ClientIp, clientIp_);
3335
DARABONBA_PTR_FROM_JSON(ClientOS, clientOS_);
@@ -53,10 +55,17 @@ namespace Models
5355
};
5456
virtual void fromMap(const Darabonba::Json &obj) override { from_json(obj, *this); validate(); };
5557
virtual Darabonba::Json toMap() const override { Darabonba::Json obj; to_json(obj, *this); return obj; };
56-
virtual bool empty() const override { return this->clientId_ == nullptr
57-
&& return this->clientIp_ == nullptr && return this->clientOS_ == nullptr && return this->clientType_ == nullptr && return this->clientVersion_ == nullptr && return this->endUserId_ == nullptr
58-
&& return this->loginRegionId_ == nullptr && return this->loginToken_ == nullptr && return this->productType_ == nullptr && return this->scene_ == nullptr && return this->sessionId_ == nullptr
59-
&& return this->uuid_ == nullptr && return this->wuyingServerId_ == nullptr; };
58+
virtual bool empty() const override { return this->apiKey_ == nullptr
59+
&& return this->clientId_ == nullptr && return this->clientIp_ == nullptr && return this->clientOS_ == nullptr && return this->clientType_ == nullptr && return this->clientVersion_ == nullptr
60+
&& return this->endUserId_ == nullptr && return this->loginRegionId_ == nullptr && return this->loginToken_ == nullptr && return this->productType_ == nullptr && return this->scene_ == nullptr
61+
&& return this->sessionId_ == nullptr && return this->uuid_ == nullptr && return this->wuyingServerId_ == nullptr; };
62+
// apiKey Field Functions
63+
bool hasApiKey() const { return this->apiKey_ != nullptr;};
64+
void deleteApiKey() { this->apiKey_ = nullptr;};
65+
inline string apiKey() const { DARABONBA_PTR_GET_DEFAULT(apiKey_, "") };
66+
inline GenerateWuyingServerSceneUrlRequest& setApiKey(string apiKey) { DARABONBA_PTR_SET_VALUE(apiKey_, apiKey) };
67+
68+
6069
// clientId Field Functions
6170
bool hasClientId() const { return this->clientId_ != nullptr;};
6271
void deleteClientId() { this->clientId_ = nullptr;};
@@ -149,20 +158,20 @@ namespace Models
149158

150159

151160
protected:
161+
// This parameter is required.
162+
std::shared_ptr<string> apiKey_ = nullptr;
152163
std::shared_ptr<string> clientId_ = nullptr;
153164
std::shared_ptr<string> clientIp_ = nullptr;
154165
std::shared_ptr<string> clientOS_ = nullptr;
155166
std::shared_ptr<string> clientType_ = nullptr;
156167
std::shared_ptr<string> clientVersion_ = nullptr;
157168
std::shared_ptr<string> endUserId_ = nullptr;
158169
std::shared_ptr<string> loginRegionId_ = nullptr;
159-
// This parameter is required.
160170
std::shared_ptr<string> loginToken_ = nullptr;
161171
// This parameter is required.
162172
std::shared_ptr<string> productType_ = nullptr;
163173
// This parameter is required.
164174
std::shared_ptr<string> scene_ = nullptr;
165-
// This parameter is required.
166175
std::shared_ptr<string> sessionId_ = nullptr;
167176
std::shared_ptr<string> uuid_ = nullptr;
168177
// This parameter is required.

wuying-personal-pc-20251111/src/Client.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -625,6 +625,10 @@ DescribePackageOrdersResponse Client::describePackageOrders(const DescribePackag
625625
GenerateWuyingServerSceneUrlResponse Client::generateWuyingServerSceneUrlWithOptions(const GenerateWuyingServerSceneUrlRequest &request, const Darabonba::RuntimeOptions &runtime) {
626626
request.validate();
627627
json body = {};
628+
if (!!request.hasApiKey()) {
629+
body["ApiKey"] = request.apiKey();
630+
}
631+
628632
if (!!request.hasClientId()) {
629633
body["ClientId"] = request.clientId();
630634
}

0 commit comments

Comments
 (0)