tencentcloud-sdk-cloudapp 3.0.1210 → 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: 3b36b7c4d3f2035f26b50f0f5dc2061f4d53ce28
4
- data.tar.gz: 5141d66064d5c482384dc7c66e972059da2738c0
3
+ metadata.gz: 378735a3f8230a5f988e1e22bf5f098c0a3b5ee0
4
+ data.tar.gz: c6248240d8e2a7acf779075c304fb3806494f44b
5
5
  SHA512:
6
- metadata.gz: bfee1439a5953d6e05aef505570666732b57cb33f44f1d549622c81ad6ca1b137e7fb2073fbc26de67b48abc144c7f1ce5c8b56b9fdfc4bf4db61d8daab305df
7
- data.tar.gz: 7c508d9a4a617c10591717b1b05834b82b268d097d48567679b97bd54060b1a856ed6b46492b7df014a15d58e6145c1017241b0459222ddac4ce606b35f23d59
6
+ metadata.gz: e1fdc17f00b0c35da639208c9dfdc0958d6d64b9380d6646a3784afe49d17c4d16494426cf92dcb347bf7bf4bcd3f6e0b8ee200da80e4fc3978e5c2adede9c6d
7
+ data.tar.gz: f14cef9f12faf07dcf81e13a49ac96e695326473692f4f798daa88fddfccb1a71b8fd0b473fd400eb26ea7bfbd61e5696ed3fb85e4e47af895b005ac958796a2
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1210
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>
@@ -246,6 +297,26 @@ module TencentCloud
246
297
  end
247
298
  end
248
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
+
249
320
  # 表示商品 SKU 的单个售卖参数
250
321
  class SaleParam < TencentCloud::Common::AbstractModel
251
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.1210
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-29 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