Class: TencentCloud::Tem::V20210701::CreateEnvironmentRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tem::V20210701::CreateEnvironmentRequest
- Defined in:
- lib/v20210701/models.rb
Overview
CreateEnvironment请求参数结构体
Instance Attribute Summary collapse
- #ApmId ⇒ Object
- #CreateRegion ⇒ Object
- #Description ⇒ Object
- #EnableTswTraceService ⇒ Object
- #EnvironmentName ⇒ Object
- #EnvType ⇒ Object
- #K8sVersion ⇒ Object
- #PrometheusId ⇒ Object
- #SetupPrometheus ⇒ Object
- #SetupVpc ⇒ Object
- #SourceChannel ⇒ Object
- #SubnetIds ⇒ Object
- #Tags ⇒ Object
- #Vpc ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(environmentname = nil, description = nil, vpc = nil, subnetids = nil, k8sversion = nil, sourcechannel = nil, enabletswtraceservice = nil, tags = nil, envtype = nil, createregion = nil, setupvpc = nil, setupprometheus = nil, prometheusid = nil, apmid = nil) ⇒ CreateEnvironmentRequest
constructor
A new instance of CreateEnvironmentRequest.
Constructor Details
#initialize(environmentname = nil, description = nil, vpc = nil, subnetids = nil, k8sversion = nil, sourcechannel = nil, enabletswtraceservice = nil, tags = nil, envtype = nil, createregion = nil, setupvpc = nil, setupprometheus = nil, prometheusid = nil, apmid = nil) ⇒ CreateEnvironmentRequest
Returns a new instance of CreateEnvironmentRequest.
540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 |
# File 'lib/v20210701/models.rb', line 540 def initialize(environmentname=nil, description=nil, vpc=nil, subnetids=nil, k8sversion=nil, sourcechannel=nil, enabletswtraceservice=nil, =nil, envtype=nil, createregion=nil, setupvpc=nil, setupprometheus=nil, prometheusid=nil, apmid=nil) @EnvironmentName = environmentname @Description = description @Vpc = vpc @SubnetIds = subnetids @K8sVersion = k8sversion @SourceChannel = sourcechannel @EnableTswTraceService = enabletswtraceservice @Tags = @EnvType = envtype @CreateRegion = createregion @SetupVpc = setupvpc @SetupPrometheus = setupprometheus @PrometheusId = prometheusid @ApmId = apmid end |
Instance Attribute Details
#ApmId ⇒ Object
538 539 540 |
# File 'lib/v20210701/models.rb', line 538 def ApmId @ApmId end |
#CreateRegion ⇒ Object
538 539 540 |
# File 'lib/v20210701/models.rb', line 538 def CreateRegion @CreateRegion end |
#Description ⇒ Object
538 539 540 |
# File 'lib/v20210701/models.rb', line 538 def Description @Description end |
#EnableTswTraceService ⇒ Object
538 539 540 |
# File 'lib/v20210701/models.rb', line 538 def EnableTswTraceService @EnableTswTraceService end |
#EnvironmentName ⇒ Object
538 539 540 |
# File 'lib/v20210701/models.rb', line 538 def EnvironmentName @EnvironmentName end |
#EnvType ⇒ Object
538 539 540 |
# File 'lib/v20210701/models.rb', line 538 def EnvType @EnvType end |
#K8sVersion ⇒ Object
538 539 540 |
# File 'lib/v20210701/models.rb', line 538 def K8sVersion @K8sVersion end |
#PrometheusId ⇒ Object
538 539 540 |
# File 'lib/v20210701/models.rb', line 538 def PrometheusId @PrometheusId end |
#SetupPrometheus ⇒ Object
538 539 540 |
# File 'lib/v20210701/models.rb', line 538 def SetupPrometheus @SetupPrometheus end |
#SetupVpc ⇒ Object
538 539 540 |
# File 'lib/v20210701/models.rb', line 538 def SetupVpc @SetupVpc end |
#SourceChannel ⇒ Object
538 539 540 |
# File 'lib/v20210701/models.rb', line 538 def SourceChannel @SourceChannel end |
#SubnetIds ⇒ Object
538 539 540 |
# File 'lib/v20210701/models.rb', line 538 def SubnetIds @SubnetIds end |
#Tags ⇒ Object
538 539 540 |
# File 'lib/v20210701/models.rb', line 538 def Tags @Tags end |
#Vpc ⇒ Object
538 539 540 |
# File 'lib/v20210701/models.rb', line 538 def Vpc @Vpc end |
Instance Method Details
#deserialize(params) ⇒ Object
557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 |
# File 'lib/v20210701/models.rb', line 557 def deserialize(params) @EnvironmentName = params['EnvironmentName'] @Description = params['Description'] @Vpc = params['Vpc'] @SubnetIds = params['SubnetIds'] @K8sVersion = params['K8sVersion'] @SourceChannel = params['SourceChannel'] @EnableTswTraceService = params['EnableTswTraceService'] unless params['Tags'].nil? @Tags = [] params['Tags'].each do |i| tag_tmp = Tag.new tag_tmp.deserialize(i) @Tags << tag_tmp end end @EnvType = params['EnvType'] @CreateRegion = params['CreateRegion'] @SetupVpc = params['SetupVpc'] @SetupPrometheus = params['SetupPrometheus'] @PrometheusId = params['PrometheusId'] @ApmId = params['ApmId'] end |