tencentcloud-sdk-cloudapp 3.0.1203 → 3.0.1213

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 07b6495622cdcc2e1df067b15c345cc06c2c297d
4
- data.tar.gz: fb627295c9d51422c7fb777d0788223b7953c34d
3
+ metadata.gz: 378735a3f8230a5f988e1e22bf5f098c0a3b5ee0
4
+ data.tar.gz: c6248240d8e2a7acf779075c304fb3806494f44b
5
5
  SHA512:
6
- metadata.gz: 84bf2574f06d9ad7741ffef2d031f4121db69736d7859a41203bb867075074488cfcb34d32d13867e5582e160ba4d5b73a994bb50dad9f5e2bc18de31a31177d
7
- data.tar.gz: 399d88d00263c9f4c376d5ebc9fdaf743f5296d5dd650aa128f07e739e9ea45ea0b02c3cb4e890595b09003205f5a73ff1bb3f9c819b877a4b29661d2362ad0f
6
+ metadata.gz: e1fdc17f00b0c35da639208c9dfdc0958d6d64b9380d6646a3784afe49d17c4d16494426cf92dcb347bf7bf4bcd3f6e0b8ee200da80e4fc3978e5c2adede9c6d
7
+ data.tar.gz: f14cef9f12faf07dcf81e13a49ac96e695326473692f4f798daa88fddfccb1a71b8fd0b473fd400eb26ea7bfbd61e5696ed3fb85e4e47af895b005ac958796a2
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1203
1
+ 3.0.1213
@@ -166,6 +166,30 @@ module TencentCloud
166
166
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
167
167
  end
168
168
 
169
+ # 颁发 License
170
+
171
+ # @param request: Request instance for IssueLicense.
172
+ # @type request: :class:`Tencentcloud::cloudapp::V20220530::IssueLicenseRequest`
173
+ # @rtype: :class:`Tencentcloud::cloudapp::V20220530::IssueLicenseResponse`
174
+ def IssueLicense(request)
175
+ body = send_request('IssueLicense', request.serialize)
176
+ response = JSON.parse(body)
177
+ if response['Response'].key?('Error') == false
178
+ model = IssueLicenseResponse.new
179
+ model.deserialize(response['Response'])
180
+ model
181
+ else
182
+ code = response['Response']['Error']['Code']
183
+ message = response['Response']['Error']['Message']
184
+ reqid = response['Response']['RequestId']
185
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
186
+ end
187
+ rescue TencentCloud::Common::TencentCloudSDKException => e
188
+ raise e
189
+ rescue StandardError => e
190
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
191
+ end
192
+
169
193
  # 从软件进程读取 LICENSE。
170
194
 
171
195
  # @param request: Request instance for VerifyLicense.
@@ -103,6 +103,57 @@ module TencentCloud
103
103
  end
104
104
  end
105
105
 
106
+ # IssueLicense请求参数结构体
107
+ class IssueLicenseRequest < TencentCloud::Common::AbstractModel
108
+ # @param CloudappId: <p>云应用实例 ID</p>
109
+ # @type CloudappId: String
110
+ # @param LicenseId: <p>云应用颁发的 License 授权 ID。系统中唯一,伙伴可通过 License 颁发的订阅接口中获取</p>
111
+ # @type LicenseId: String
112
+ # @param LicenseData: <p>License 的详细数据</p>
113
+ # @type LicenseData: :class:`Tencentcloud::Cloudapp.v20220530.models.PartnerLicenseData`
114
+ # @param ActivateMode: <p>License 的激活模式</p>枚举值:<ul><li> immediate : 立即激活</li><li> scheduled: 指定时间激活</li></ul>
115
+ # @type ActivateMode: String
116
+ # @param ActivateAt: <p>激活时间,指定时间激活时需要传该字段</p>
117
+ # @type ActivateAt: String
118
+
119
+ attr_accessor :CloudappId, :LicenseId, :LicenseData, :ActivateMode, :ActivateAt
120
+
121
+ def initialize(cloudappid=nil, licenseid=nil, licensedata=nil, activatemode=nil, activateat=nil)
122
+ @CloudappId = cloudappid
123
+ @LicenseId = licenseid
124
+ @LicenseData = licensedata
125
+ @ActivateMode = activatemode
126
+ @ActivateAt = activateat
127
+ end
128
+
129
+ def deserialize(params)
130
+ @CloudappId = params['CloudappId']
131
+ @LicenseId = params['LicenseId']
132
+ unless params['LicenseData'].nil?
133
+ @LicenseData = PartnerLicenseData.new
134
+ @LicenseData.deserialize(params['LicenseData'])
135
+ end
136
+ @ActivateMode = params['ActivateMode']
137
+ @ActivateAt = params['ActivateAt']
138
+ end
139
+ end
140
+
141
+ # IssueLicense返回参数结构体
142
+ class IssueLicenseResponse < TencentCloud::Common::AbstractModel
143
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
144
+ # @type RequestId: String
145
+
146
+ attr_accessor :RequestId
147
+
148
+ def initialize(requestid=nil)
149
+ @RequestId = requestid
150
+ end
151
+
152
+ def deserialize(params)
153
+ @RequestId = params['RequestId']
154
+ end
155
+ end
156
+
106
157
  # 表示应用实例的软件授权,包含颁发信息、激活信息等内容。
107
158
  class License < TencentCloud::Common::AbstractModel
108
159
  # @param LicenseId: <p>License ID</p>
@@ -147,10 +198,14 @@ module TencentCloud
147
198
  # @type LicenseData: :class:`Tencentcloud::Cloudapp.v20220530.models.LicenseData`
148
199
  # @param IssueURL: <p>License 颁发地址</p>
149
200
  # @type IssueURL: String
201
+ # @param ProviderUin: <p>商品供应商 UIN</p>
202
+ # @type ProviderUin: String
203
+ # @param CreateSource: <p>License 创建来源 ID</p>
204
+ # @type CreateSource: String
150
205
 
151
- attr_accessor :LicenseId, :LicenseMode, :LicenseStatus, :ProviderId, :SoftwarePackageId, :SoftwarePackageVersion, :AuthorizedUserUin, :AuthorizedCloudappId, :AuthorizedCloudappRoleId, :AuthorizedSpecification, :BillingMode, :LifeSpan, :IssueDate, :ActivationDate, :ExpirationDate, :LifeSpanUnit, :LicenseType, :LicenseLevel, :LicenseData, :IssueURL
206
+ attr_accessor :LicenseId, :LicenseMode, :LicenseStatus, :ProviderId, :SoftwarePackageId, :SoftwarePackageVersion, :AuthorizedUserUin, :AuthorizedCloudappId, :AuthorizedCloudappRoleId, :AuthorizedSpecification, :BillingMode, :LifeSpan, :IssueDate, :ActivationDate, :ExpirationDate, :LifeSpanUnit, :LicenseType, :LicenseLevel, :LicenseData, :IssueURL, :ProviderUin, :CreateSource
152
207
 
153
- def initialize(licenseid=nil, licensemode=nil, licensestatus=nil, providerid=nil, softwarepackageid=nil, softwarepackageversion=nil, authorizeduseruin=nil, authorizedcloudappid=nil, authorizedcloudapproleid=nil, authorizedspecification=nil, billingmode=nil, lifespan=nil, issuedate=nil, activationdate=nil, expirationdate=nil, lifespanunit=nil, licensetype=nil, licenselevel=nil, licensedata=nil, issueurl=nil)
208
+ def initialize(licenseid=nil, licensemode=nil, licensestatus=nil, providerid=nil, softwarepackageid=nil, softwarepackageversion=nil, authorizeduseruin=nil, authorizedcloudappid=nil, authorizedcloudapproleid=nil, authorizedspecification=nil, billingmode=nil, lifespan=nil, issuedate=nil, activationdate=nil, expirationdate=nil, lifespanunit=nil, licensetype=nil, licenselevel=nil, licensedata=nil, issueurl=nil, provideruin=nil, createsource=nil)
154
209
  @LicenseId = licenseid
155
210
  @LicenseMode = licensemode
156
211
  @LicenseStatus = licensestatus
@@ -171,6 +226,8 @@ module TencentCloud
171
226
  @LicenseLevel = licenselevel
172
227
  @LicenseData = licensedata
173
228
  @IssueURL = issueurl
229
+ @ProviderUin = provideruin
230
+ @CreateSource = createsource
174
231
  end
175
232
 
176
233
  def deserialize(params)
@@ -204,6 +261,8 @@ module TencentCloud
204
261
  @LicenseData.deserialize(params['LicenseData'])
205
262
  end
206
263
  @IssueURL = params['IssueURL']
264
+ @ProviderUin = params['ProviderUin']
265
+ @CreateSource = params['CreateSource']
207
266
  end
208
267
  end
209
268
 
@@ -238,6 +297,26 @@ module TencentCloud
238
297
  end
239
298
  end
240
299
 
300
+ # License 内容信息
301
+ class PartnerLicenseData < TencentCloud::Common::AbstractModel
302
+ # @param Text: <p>License 文本内容。可传入密钥、证书等文本型 License 内容,二进制内容请进行 base64 编码</p>
303
+ # @type Text: String
304
+ # @param ExtraData: <p>License 的额外信息,JSON 字符串格式</p>
305
+ # @type ExtraData: String
306
+
307
+ attr_accessor :Text, :ExtraData
308
+
309
+ def initialize(text=nil, extradata=nil)
310
+ @Text = text
311
+ @ExtraData = extradata
312
+ end
313
+
314
+ def deserialize(params)
315
+ @Text = params['Text']
316
+ @ExtraData = params['ExtraData']
317
+ end
318
+ end
319
+
241
320
  # 表示商品 SKU 的单个售卖参数
242
321
  class SaleParam < TencentCloud::Common::AbstractModel
243
322
  # @param ParamKey: 售卖参数标识
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-cloudapp
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1203
4
+ version: 3.0.1213
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-01-18 00:00:00.000000000 Z
11
+ date: 2026-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common