tencentcloud-sdk-tem 3.0.384 → 3.0.385

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 03dc9ce7a5b55de31110e7ab7bcbeaac84c7ab74
4
- data.tar.gz: 47413916126dc31fac668647ad27a1abfbb17b00
3
+ metadata.gz: aec1b4c9d07517a2c46e4b9b6cd1a2b539187ef6
4
+ data.tar.gz: 8b4d83dfe794f52f34be569784747af8b170a770
5
5
  SHA512:
6
- metadata.gz: 5516bf87357c3bb99adab61ac3d525efe0ec23eafe42ec15117d581129714ab154102682e24e20c9794217a8f41921cf9a0f30ea3c25fd6375d996ccf4d09f90
7
- data.tar.gz: 649984e6307633fa9187e94b9754b6ad1f9fe59baa627576a6a7026f155c9c319b17dea765b4619672a29402bd607de66aa8aa2d30087c372bc5f08d3b897e1f
6
+ metadata.gz: 019da735081ecd1f77c530fc9ff896ae719fdb6b2fb153ad0586d34c7c775f1370bab0bf67748b674f51257337f25103e2cf5e29f372146bb4857e5f87073c2d
7
+ data.tar.gz: ca812f1a5f3b8994da5e4cafbb0fe5653044fe8d5d6ea79c1c718eedb75bc0f6a393702e76450e223f0c40daffdcbe77441b1180b1805d2e2d6347299bdaea3e
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.384
1
+ 3.0.385
@@ -488,6 +488,30 @@ module TencentCloud
488
488
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
489
489
  end
490
490
 
491
+ # 获取环境基础信息
492
+
493
+ # @param request: Request instance for DescribeEnvironment.
494
+ # @type request: :class:`Tencentcloud::tem::V20210701::DescribeEnvironmentRequest`
495
+ # @rtype: :class:`Tencentcloud::tem::V20210701::DescribeEnvironmentResponse`
496
+ def DescribeEnvironment(request)
497
+ body = send_request('DescribeEnvironment', request.serialize)
498
+ response = JSON.parse(body)
499
+ if response['Response'].key?('Error') == false
500
+ model = DescribeEnvironmentResponse.new
501
+ model.deserialize(response['Response'])
502
+ model
503
+ else
504
+ code = response['Response']['Error']['Code']
505
+ message = response['Response']['Error']['Message']
506
+ reqid = response['Response']['RequestId']
507
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
508
+ end
509
+ rescue TencentCloud::Common::TencentCloudSDKException => e
510
+ raise e
511
+ rescue StandardError => e
512
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
513
+ end
514
+
491
515
  # 获取环境状态
492
516
 
493
517
  # @param request: Request instance for DescribeEnvironmentStatus.
@@ -1719,6 +1719,49 @@ module TencentCloud
1719
1719
  end
1720
1720
  end
1721
1721
 
1722
+ # DescribeEnvironment请求参数结构体
1723
+ class DescribeEnvironmentRequest < TencentCloud::Common::AbstractModel
1724
+ # @param EnvironmentId: 命名空间id
1725
+ # @type EnvironmentId: String
1726
+ # @param SourceChannel: 来源Channel
1727
+ # @type SourceChannel: Integer
1728
+
1729
+ attr_accessor :EnvironmentId, :SourceChannel
1730
+
1731
+ def initialize(environmentid=nil, sourcechannel=nil)
1732
+ @EnvironmentId = environmentid
1733
+ @SourceChannel = sourcechannel
1734
+ end
1735
+
1736
+ def deserialize(params)
1737
+ @EnvironmentId = params['EnvironmentId']
1738
+ @SourceChannel = params['SourceChannel']
1739
+ end
1740
+ end
1741
+
1742
+ # DescribeEnvironment返回参数结构体
1743
+ class DescribeEnvironmentResponse < TencentCloud::Common::AbstractModel
1744
+ # @param Result: 环境信息
1745
+ # @type Result: :class:`Tencentcloud::Tem.v20210701.models.NamespaceInfo`
1746
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1747
+ # @type RequestId: String
1748
+
1749
+ attr_accessor :Result, :RequestId
1750
+
1751
+ def initialize(result=nil, requestid=nil)
1752
+ @Result = result
1753
+ @RequestId = requestid
1754
+ end
1755
+
1756
+ def deserialize(params)
1757
+ unless params['Result'].nil?
1758
+ @Result = NamespaceInfo.new
1759
+ @Result.deserialize(params['Result'])
1760
+ end
1761
+ @RequestId = params['RequestId']
1762
+ end
1763
+ end
1764
+
1722
1765
  # DescribeEnvironmentStatus请求参数结构体
1723
1766
  class DescribeEnvironmentStatusRequest < TencentCloud::Common::AbstractModel
1724
1767
  # @param EnvironmentIds: 命名空间id
@@ -3254,6 +3297,61 @@ module TencentCloud
3254
3297
  end
3255
3298
  end
3256
3299
 
3300
+ # Namespace 基础信息
3301
+ class NamespaceInfo < TencentCloud::Common::AbstractModel
3302
+ # @param EnvironmentId: ID 信息
3303
+ # @type EnvironmentId: String
3304
+ # @param NamespaceName: 名字(已弃用)
3305
+ # @type NamespaceName: String
3306
+ # @param Region: 地域
3307
+ # @type Region: String
3308
+ # @param VpcId: vpc id
3309
+ # @type VpcId: String
3310
+ # @param SubnetIds: subnet id 数组
3311
+ # @type SubnetIds: Array
3312
+ # @param Description: 描述
3313
+ # @type Description: String
3314
+ # @param CreatedDate: 创建时间
3315
+ # @type CreatedDate: String
3316
+ # @param EnvironmentName: 环境名称
3317
+ # 注意:此字段可能返回 null,表示取不到有效值。
3318
+ # @type EnvironmentName: String
3319
+ # @param ApmInstanceId: APM 资源 ID
3320
+ # 注意:此字段可能返回 null,表示取不到有效值。
3321
+ # @type ApmInstanceId: String
3322
+ # @param Locked: 环境是否上锁,1为上锁,0则未上锁
3323
+ # 注意:此字段可能返回 null,表示取不到有效值。
3324
+ # @type Locked: Integer
3325
+
3326
+ attr_accessor :EnvironmentId, :NamespaceName, :Region, :VpcId, :SubnetIds, :Description, :CreatedDate, :EnvironmentName, :ApmInstanceId, :Locked
3327
+
3328
+ def initialize(environmentid=nil, namespacename=nil, region=nil, vpcid=nil, subnetids=nil, description=nil, createddate=nil, environmentname=nil, apminstanceid=nil, locked=nil)
3329
+ @EnvironmentId = environmentid
3330
+ @NamespaceName = namespacename
3331
+ @Region = region
3332
+ @VpcId = vpcid
3333
+ @SubnetIds = subnetids
3334
+ @Description = description
3335
+ @CreatedDate = createddate
3336
+ @EnvironmentName = environmentname
3337
+ @ApmInstanceId = apminstanceid
3338
+ @Locked = locked
3339
+ end
3340
+
3341
+ def deserialize(params)
3342
+ @EnvironmentId = params['EnvironmentId']
3343
+ @NamespaceName = params['NamespaceName']
3344
+ @Region = params['Region']
3345
+ @VpcId = params['VpcId']
3346
+ @SubnetIds = params['SubnetIds']
3347
+ @Description = params['Description']
3348
+ @CreatedDate = params['CreatedDate']
3349
+ @EnvironmentName = params['EnvironmentName']
3350
+ @ApmInstanceId = params['ApmInstanceId']
3351
+ @Locked = params['Locked']
3352
+ end
3353
+ end
3354
+
3257
3355
  # 命名空间分页
3258
3356
  class NamespacePage < TencentCloud::Common::AbstractModel
3259
3357
  # @param Records: 分页内容
@@ -4373,7 +4471,7 @@ module TencentCloud
4373
4471
  # @param VersionId: 主键
4374
4472
  # @type VersionId: String
4375
4473
  # @param ApplicationId: 服务id
4376
- # @type ApplicationId: Boolean
4474
+ # @type ApplicationId: String
4377
4475
  # @param DeployMode: 部署方式
4378
4476
  # @type DeployMode: String
4379
4477
  # @param JdkVersion: jdk版本
@@ -4399,6 +4497,7 @@ module TencentCloud
4399
4497
  # @param ImgVersion: 镜像版本
4400
4498
  # @type ImgVersion: String
4401
4499
  # @param EsInfo: 弹性配置
4500
+ # 注意:此字段可能返回 null,表示取不到有效值。
4402
4501
  # @type EsInfo: :class:`Tencentcloud::Tem.v20210701.models.EsInfo`
4403
4502
  # @param EnvConf: 环境配置
4404
4503
  # @type EnvConf: Array
@@ -4467,7 +4566,7 @@ module TencentCloud
4467
4566
  # @type LogEnable: Integer
4468
4567
  # @param MinAliveInstances: 最小实例数
4469
4568
  # 注意:此字段可能返回 null,表示取不到有效值。
4470
- # @type MinAliveInstances: Integer
4569
+ # @type MinAliveInstances: String
4471
4570
  # @param SecurityGroupIds: 安全组
4472
4571
  # 注意:此字段可能返回 null,表示取不到有效值。
4473
4572
  # @type SecurityGroupIds: Array
@@ -4525,7 +4624,7 @@ module TencentCloud
4525
4624
  # @param EnableTracing: 是否启用调用链组件
4526
4625
  # 注意:此字段可能返回 null,表示取不到有效值。
4527
4626
  # @type EnableTracing: Integer
4528
- # @param EnableTracingReport: 是否开启调用链上报,只有 EnableTracing=1 时生效
4627
+ # @param EnableTracingReport: 是否开启调用链上报,只有 EnableTracing=1 时生效(参数已弃用)
4529
4628
  # 注意:此字段可能返回 null,表示取不到有效值。
4530
4629
  # @type EnableTracingReport: Integer
4531
4630
  # @param RepoType: 镜像类型:0-个人镜像、1-企业镜像、2-公有镜像
@@ -4557,7 +4656,7 @@ module TencentCloud
4557
4656
  # @param UnderDeploying: 是否正在发布中
4558
4657
  # 注意:此字段可能返回 null,表示取不到有效值。
4559
4658
  # @type UnderDeploying: Boolean
4560
- # @param EnablePrometheusConf: 是否开启prometheus业务指标监控
4659
+ # @param EnablePrometheusConf: 监控业务指标监控
4561
4660
  # 注意:此字段可能返回 null,表示取不到有效值。
4562
4661
  # @type EnablePrometheusConf: :class:`Tencentcloud::Tem.v20210701.models.EnablePrometheusConf`
4563
4662
  # @param StoppedManually: 是否为手动停止
@@ -4566,10 +4665,14 @@ module TencentCloud
4566
4665
  # @param TcrInstanceId: tcr实例ID
4567
4666
  # 注意:此字段可能返回 null,表示取不到有效值。
4568
4667
  # @type TcrInstanceId: String
4668
+ # @param EnableMetrics: 1:开始自动metrics采集(open-telemetry);
4669
+ # 0:关闭metrics采集;
4670
+ # 注意:此字段可能返回 null,表示取不到有效值。
4671
+ # @type EnableMetrics: Integer
4569
4672
 
4570
- attr_accessor :VersionId, :ApplicationId, :DeployMode, :JdkVersion, :Description, :DeployVersion, :PublishMode, :JvmOpts, :InitPodNum, :CpuSpec, :MemorySpec, :ImgRepo, :ImgName, :ImgVersion, :EsInfo, :EnvConf, :StorageConfs, :Status, :Vpc, :SubnetId, :CreateDate, :ModifyDate, :StorageMountConfs, :VersionName, :LogOutputConf, :ApplicationName, :ApplicationDescription, :EnvironmentName, :EnvironmentId, :PublicDomain, :EnablePublicAccess, :CurrentInstances, :ExpectedInstances, :CodingLanguage, :PkgName, :EsEnable, :EsStrategy, :ImageTag, :LogEnable, :MinAliveInstances, :SecurityGroupIds, :ImageCommand, :ImageArgs, :UseRegistryDefaultConfig, :Service, :SettingConfs, :LogConfs, :PostStart, :PreStop, :Liveness, :Readiness, :HorizontalAutoscaler, :CronHorizontalAutoscaler, :Zones, :LastDeployDate, :LastDeploySuccessDate, :NodeInfos, :ImageType, :EnableTracing, :EnableTracingReport, :RepoType, :BatchDeployStatus, :ApmInstanceId, :WorkloadInfo, :SpeedUp, :StartupProbe, :OsFlavour, :RepoServer, :UnderDeploying, :EnablePrometheusConf, :StoppedManually, :TcrInstanceId
4673
+ attr_accessor :VersionId, :ApplicationId, :DeployMode, :JdkVersion, :Description, :DeployVersion, :PublishMode, :JvmOpts, :InitPodNum, :CpuSpec, :MemorySpec, :ImgRepo, :ImgName, :ImgVersion, :EsInfo, :EnvConf, :StorageConfs, :Status, :Vpc, :SubnetId, :CreateDate, :ModifyDate, :StorageMountConfs, :VersionName, :LogOutputConf, :ApplicationName, :ApplicationDescription, :EnvironmentName, :EnvironmentId, :PublicDomain, :EnablePublicAccess, :CurrentInstances, :ExpectedInstances, :CodingLanguage, :PkgName, :EsEnable, :EsStrategy, :ImageTag, :LogEnable, :MinAliveInstances, :SecurityGroupIds, :ImageCommand, :ImageArgs, :UseRegistryDefaultConfig, :Service, :SettingConfs, :LogConfs, :PostStart, :PreStop, :Liveness, :Readiness, :HorizontalAutoscaler, :CronHorizontalAutoscaler, :Zones, :LastDeployDate, :LastDeploySuccessDate, :NodeInfos, :ImageType, :EnableTracing, :EnableTracingReport, :RepoType, :BatchDeployStatus, :ApmInstanceId, :WorkloadInfo, :SpeedUp, :StartupProbe, :OsFlavour, :RepoServer, :UnderDeploying, :EnablePrometheusConf, :StoppedManually, :TcrInstanceId, :EnableMetrics
4571
4674
 
4572
- def initialize(versionid=nil, applicationid=nil, deploymode=nil, jdkversion=nil, description=nil, deployversion=nil, publishmode=nil, jvmopts=nil, initpodnum=nil, cpuspec=nil, memoryspec=nil, imgrepo=nil, imgname=nil, imgversion=nil, esinfo=nil, envconf=nil, storageconfs=nil, status=nil, vpc=nil, subnetid=nil, createdate=nil, modifydate=nil, storagemountconfs=nil, versionname=nil, logoutputconf=nil, applicationname=nil, applicationdescription=nil, environmentname=nil, environmentid=nil, publicdomain=nil, enablepublicaccess=nil, currentinstances=nil, expectedinstances=nil, codinglanguage=nil, pkgname=nil, esenable=nil, esstrategy=nil, imagetag=nil, logenable=nil, minaliveinstances=nil, securitygroupids=nil, imagecommand=nil, imageargs=nil, useregistrydefaultconfig=nil, service=nil, settingconfs=nil, logconfs=nil, poststart=nil, prestop=nil, liveness=nil, readiness=nil, horizontalautoscaler=nil, cronhorizontalautoscaler=nil, zones=nil, lastdeploydate=nil, lastdeploysuccessdate=nil, nodeinfos=nil, imagetype=nil, enabletracing=nil, enabletracingreport=nil, repotype=nil, batchdeploystatus=nil, apminstanceid=nil, workloadinfo=nil, speedup=nil, startupprobe=nil, osflavour=nil, reposerver=nil, underdeploying=nil, enableprometheusconf=nil, stoppedmanually=nil, tcrinstanceid=nil)
4675
+ def initialize(versionid=nil, applicationid=nil, deploymode=nil, jdkversion=nil, description=nil, deployversion=nil, publishmode=nil, jvmopts=nil, initpodnum=nil, cpuspec=nil, memoryspec=nil, imgrepo=nil, imgname=nil, imgversion=nil, esinfo=nil, envconf=nil, storageconfs=nil, status=nil, vpc=nil, subnetid=nil, createdate=nil, modifydate=nil, storagemountconfs=nil, versionname=nil, logoutputconf=nil, applicationname=nil, applicationdescription=nil, environmentname=nil, environmentid=nil, publicdomain=nil, enablepublicaccess=nil, currentinstances=nil, expectedinstances=nil, codinglanguage=nil, pkgname=nil, esenable=nil, esstrategy=nil, imagetag=nil, logenable=nil, minaliveinstances=nil, securitygroupids=nil, imagecommand=nil, imageargs=nil, useregistrydefaultconfig=nil, service=nil, settingconfs=nil, logconfs=nil, poststart=nil, prestop=nil, liveness=nil, readiness=nil, horizontalautoscaler=nil, cronhorizontalautoscaler=nil, zones=nil, lastdeploydate=nil, lastdeploysuccessdate=nil, nodeinfos=nil, imagetype=nil, enabletracing=nil, enabletracingreport=nil, repotype=nil, batchdeploystatus=nil, apminstanceid=nil, workloadinfo=nil, speedup=nil, startupprobe=nil, osflavour=nil, reposerver=nil, underdeploying=nil, enableprometheusconf=nil, stoppedmanually=nil, tcrinstanceid=nil, enablemetrics=nil)
4573
4676
  @VersionId = versionid
4574
4677
  @ApplicationId = applicationid
4575
4678
  @DeployMode = deploymode
@@ -4642,6 +4745,7 @@ module TencentCloud
4642
4745
  @EnablePrometheusConf = enableprometheusconf
4643
4746
  @StoppedManually = stoppedmanually
4644
4747
  @TcrInstanceId = tcrinstanceid
4748
+ @EnableMetrics = enablemetrics
4645
4749
  end
4646
4750
 
4647
4751
  def deserialize(params)
@@ -4790,6 +4894,7 @@ module TencentCloud
4790
4894
  end
4791
4895
  @StoppedManually = params['StoppedManually']
4792
4896
  @TcrInstanceId = params['TcrInstanceId']
4897
+ @EnableMetrics = params['EnableMetrics']
4793
4898
  end
4794
4899
  end
4795
4900
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-tem
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.384
4
+ version: 3.0.385
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-10 00:00:00.000000000 Z
11
+ date: 2022-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common