tencentcloud-sdk-lighthouse 1.0.256 → 1.0.257

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: 9de99d65d19799b6d2fd9681fa476814467ad9f4
4
- data.tar.gz: 5fead10e9d4947d01c47abad94346b97bfb1430c
3
+ metadata.gz: 1bdafb840b1972084a6dbd9f890c6048307fe412
4
+ data.tar.gz: eaa1fec762dcf1bd4e9200a8b7456e717d257c35
5
5
  SHA512:
6
- metadata.gz: a61f1faec74e345282b37e8473146cc28cd49ea6d5f654c281cdb49e4df5e3a9c449478109394f6a47ff7d86221f309d1090d20016cdf34c74a57031ff275ab7
7
- data.tar.gz: 94b2f6a6f95fcd2e6eb5b15b4062780bc1d45798c4d7b99a3f3e319b52ab7e3b5cf5f8c85172414e8ac5dbed34f051d1d6576ac371a57b86e26461f34a91c24b
6
+ metadata.gz: 4125173a33f0573121131e99a7d9527ff688429ed302ac940945ad837b69f04184b29ed959820fd799336d9065220a21a3f7dd3d1b80dd06529527a5b1ff4112
7
+ data.tar.gz: 0d7a85d5f9d4474c7261880b6b5e5cb8739386498bfc247ab7dc5cbe390002bbd8d3301506266697b713a8874e814d269f4d918c534aa983d47b0a986275563a
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.256
1
+ 1.0.257
@@ -216,6 +216,30 @@ module TencentCloud
216
216
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
217
217
  end
218
218
 
219
+ # 本接口(CreateInstances)用于创建一个或多个指定套餐的轻量应用服务器实例。
220
+
221
+ # @param request: Request instance for CreateInstances.
222
+ # @type request: :class:`Tencentcloud::lighthouse::V20200324::CreateInstancesRequest`
223
+ # @rtype: :class:`Tencentcloud::lighthouse::V20200324::CreateInstancesResponse`
224
+ def CreateInstances(request)
225
+ body = send_request('CreateInstances', request.serialize)
226
+ response = JSON.parse(body)
227
+ if response['Response'].key?('Error') == false
228
+ model = CreateInstancesResponse.new
229
+ model.deserialize(response['Response'])
230
+ model
231
+ else
232
+ code = response['Response']['Error']['Code']
233
+ message = response['Response']['Error']['Message']
234
+ reqid = response['Response']['RequestId']
235
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
236
+ end
237
+ rescue TencentCloud::Common::TencentCloudSDKException => e
238
+ raise e
239
+ rescue StandardError => e
240
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
241
+ end
242
+
219
243
  # 本接口(CreateKeyPair)用于创建一个密钥对。
220
244
 
221
245
  # @param request: Request instance for CreateKeyPair.
@@ -448,6 +448,26 @@ module TencentCloud
448
448
  end
449
449
  end
450
450
 
451
+ # 容器环境变量
452
+ class ContainerEnv < TencentCloud::Common::AbstractModel
453
+ # @param Key: 环境变量Key
454
+ # @type Key: String
455
+ # @param Value: 环境变量值
456
+ # @type Value: String
457
+
458
+ attr_accessor :Key, :Value
459
+
460
+ def initialize(key=nil, value=nil)
461
+ @Key = key
462
+ @Value = value
463
+ end
464
+
465
+ def deserialize(params)
466
+ @Key = params['Key']
467
+ @Value = params['Value']
468
+ end
469
+ end
470
+
451
471
  # CreateBlueprint请求参数结构体
452
472
  class CreateBlueprintRequest < TencentCloud::Common::AbstractModel
453
473
  # @param BlueprintName: 镜像名称。最大长度60。
@@ -579,6 +599,97 @@ module TencentCloud
579
599
  end
580
600
  end
581
601
 
602
+ # CreateInstances请求参数结构体
603
+ class CreateInstancesRequest < TencentCloud::Common::AbstractModel
604
+ # @param BundleId: Lighthouse套餐ID。
605
+ # @type BundleId: String
606
+ # @param BlueprintId: Lighthouse镜像ID。
607
+ # @type BlueprintId: String
608
+ # @param InstanceChargePrepaid: 当前Lighthouse实例仅支持预付费模式,即包年包月相关参数设置,单位(月)。通过该参数可以指定包年包月实例的购买时长、是否设置自动续费等属性。该参数必传。
609
+ # @type InstanceChargePrepaid: :class:`Tencentcloud::Lighthouse.v20200324.models.InstanceChargePrepaid`
610
+ # @param InstanceName: Lighthouse实例显示名称。
611
+ # @type InstanceName: String
612
+ # @param InstanceCount: 购买Lighthouse实例数量。包年包月实例取值范围:[1,30]。默认取值:1。指定购买实例的数量不能超过用户所能购买的剩余配额数量
613
+ # @type InstanceCount: Integer
614
+ # @param Zones: 可用区列表。默认为随机可用区
615
+ # @type Zones: Array
616
+ # @param DryRun: 是否只预检此次请求。
617
+ # true:发送检查请求,不会创建实例。检查项包括是否填写了必需参数,请求格式,业务限制和库存。
618
+ # 如果检查不通过,则返回对应错误码;
619
+ # 如果检查通过,则返回RequestId.
620
+ # false(默认):发送正常请求,通过检查后直接创建实例
621
+ # @type DryRun: Boolean
622
+ # @param ClientToken: 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。
623
+ # @type ClientToken: String
624
+ # @param LoginConfiguration: 实例登录密码信息配置。本字段目前仅支持WINDOWS实例进行密码设置。默认缺失情况下代表用户选择实例创建后设置登录密码。
625
+ # @type LoginConfiguration: :class:`Tencentcloud::Lighthouse.v20200324.models.LoginConfiguration`
626
+ # @param Containers: 要创建的容器配置列表。
627
+ # @type Containers: Array
628
+
629
+ attr_accessor :BundleId, :BlueprintId, :InstanceChargePrepaid, :InstanceName, :InstanceCount, :Zones, :DryRun, :ClientToken, :LoginConfiguration, :Containers
630
+
631
+ def initialize(bundleid=nil, blueprintid=nil, instancechargeprepaid=nil, instancename=nil, instancecount=nil, zones=nil, dryrun=nil, clienttoken=nil, loginconfiguration=nil, containers=nil)
632
+ @BundleId = bundleid
633
+ @BlueprintId = blueprintid
634
+ @InstanceChargePrepaid = instancechargeprepaid
635
+ @InstanceName = instancename
636
+ @InstanceCount = instancecount
637
+ @Zones = zones
638
+ @DryRun = dryrun
639
+ @ClientToken = clienttoken
640
+ @LoginConfiguration = loginconfiguration
641
+ @Containers = containers
642
+ end
643
+
644
+ def deserialize(params)
645
+ @BundleId = params['BundleId']
646
+ @BlueprintId = params['BlueprintId']
647
+ unless params['InstanceChargePrepaid'].nil?
648
+ @InstanceChargePrepaid = InstanceChargePrepaid.new
649
+ @InstanceChargePrepaid.deserialize(params['InstanceChargePrepaid'])
650
+ end
651
+ @InstanceName = params['InstanceName']
652
+ @InstanceCount = params['InstanceCount']
653
+ @Zones = params['Zones']
654
+ @DryRun = params['DryRun']
655
+ @ClientToken = params['ClientToken']
656
+ unless params['LoginConfiguration'].nil?
657
+ @LoginConfiguration = LoginConfiguration.new
658
+ @LoginConfiguration.deserialize(params['LoginConfiguration'])
659
+ end
660
+ unless params['Containers'].nil?
661
+ @Containers = []
662
+ params['Containers'].each do |i|
663
+ dockercontainerconfiguration_tmp = DockerContainerConfiguration.new
664
+ dockercontainerconfiguration_tmp.deserialize(i)
665
+ @Containers << dockercontainerconfiguration_tmp
666
+ end
667
+ end
668
+ end
669
+ end
670
+
671
+ # CreateInstances返回参数结构体
672
+ class CreateInstancesResponse < TencentCloud::Common::AbstractModel
673
+ # @param InstanceIdSet: 当通过本接口来创建实例时会返回该参数,表示一个或多个实例ID。返回实例ID列表并不代表实例创建成功。
674
+
675
+ # 可根据 DescribeInstances 接口查询返回的InstancesSet中对应实例的ID的状态来判断创建是否完成;如果实例状态由“启动中”变为“运行中”,则为创建成功。
676
+ # @type InstanceIdSet: Array
677
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
678
+ # @type RequestId: String
679
+
680
+ attr_accessor :InstanceIdSet, :RequestId
681
+
682
+ def initialize(instanceidset=nil, requestid=nil)
683
+ @InstanceIdSet = instanceidset
684
+ @RequestId = requestid
685
+ end
686
+
687
+ def deserialize(params)
688
+ @InstanceIdSet = params['InstanceIdSet']
689
+ @RequestId = params['RequestId']
690
+ end
691
+ end
692
+
582
693
  # CreateKeyPair请求参数结构体
583
694
  class CreateKeyPairRequest < TencentCloud::Common::AbstractModel
584
695
  # @param KeyName: 密钥对名称,可由数字,字母和下划线组成,长度不超过 25 个字符。
@@ -2719,6 +2830,113 @@ module TencentCloud
2719
2830
  end
2720
2831
  end
2721
2832
 
2833
+ # Docker容器创建时的配置
2834
+ class DockerContainerConfiguration < TencentCloud::Common::AbstractModel
2835
+ # @param ContainerImage: 容器镜像地址
2836
+ # @type ContainerImage: String
2837
+ # @param ContainerName: 容器名称
2838
+ # @type ContainerName: String
2839
+ # @param Envs: 环境变量列表
2840
+ # @type Envs: Array
2841
+ # @param PublishPorts: 容器端口主机端口映射列表
2842
+ # @type PublishPorts: Array
2843
+ # @param Volumes: 容器加载本地卷列表
2844
+ # @type Volumes: Array
2845
+ # @param Command: 运行的命令
2846
+ # @type Command: String
2847
+
2848
+ attr_accessor :ContainerImage, :ContainerName, :Envs, :PublishPorts, :Volumes, :Command
2849
+
2850
+ def initialize(containerimage=nil, containername=nil, envs=nil, publishports=nil, volumes=nil, command=nil)
2851
+ @ContainerImage = containerimage
2852
+ @ContainerName = containername
2853
+ @Envs = envs
2854
+ @PublishPorts = publishports
2855
+ @Volumes = volumes
2856
+ @Command = command
2857
+ end
2858
+
2859
+ def deserialize(params)
2860
+ @ContainerImage = params['ContainerImage']
2861
+ @ContainerName = params['ContainerName']
2862
+ unless params['Envs'].nil?
2863
+ @Envs = []
2864
+ params['Envs'].each do |i|
2865
+ containerenv_tmp = ContainerEnv.new
2866
+ containerenv_tmp.deserialize(i)
2867
+ @Envs << containerenv_tmp
2868
+ end
2869
+ end
2870
+ unless params['PublishPorts'].nil?
2871
+ @PublishPorts = []
2872
+ params['PublishPorts'].each do |i|
2873
+ dockercontainerpublishport_tmp = DockerContainerPublishPort.new
2874
+ dockercontainerpublishport_tmp.deserialize(i)
2875
+ @PublishPorts << dockercontainerpublishport_tmp
2876
+ end
2877
+ end
2878
+ unless params['Volumes'].nil?
2879
+ @Volumes = []
2880
+ params['Volumes'].each do |i|
2881
+ dockercontainervolume_tmp = DockerContainerVolume.new
2882
+ dockercontainervolume_tmp.deserialize(i)
2883
+ @Volumes << dockercontainervolume_tmp
2884
+ end
2885
+ end
2886
+ @Command = params['Command']
2887
+ end
2888
+ end
2889
+
2890
+ # Docker容器映射的端口
2891
+ class DockerContainerPublishPort < TencentCloud::Common::AbstractModel
2892
+ # @param HostPort: 主机端口
2893
+ # @type HostPort: Integer
2894
+ # @param ContainerPort: 容器端口
2895
+ # @type ContainerPort: Integer
2896
+ # @param Ip: 对外绑定IP,默认0.0.0.0
2897
+ # 注意:此字段可能返回 null,表示取不到有效值。
2898
+ # @type Ip: String
2899
+ # @param Protocol: 协议,默认tcp,支持tcp/udp/sctp
2900
+ # 注意:此字段可能返回 null,表示取不到有效值。
2901
+ # @type Protocol: String
2902
+
2903
+ attr_accessor :HostPort, :ContainerPort, :Ip, :Protocol
2904
+
2905
+ def initialize(hostport=nil, containerport=nil, ip=nil, protocol=nil)
2906
+ @HostPort = hostport
2907
+ @ContainerPort = containerport
2908
+ @Ip = ip
2909
+ @Protocol = protocol
2910
+ end
2911
+
2912
+ def deserialize(params)
2913
+ @HostPort = params['HostPort']
2914
+ @ContainerPort = params['ContainerPort']
2915
+ @Ip = params['Ip']
2916
+ @Protocol = params['Protocol']
2917
+ end
2918
+ end
2919
+
2920
+ # Docker容器挂载卷
2921
+ class DockerContainerVolume < TencentCloud::Common::AbstractModel
2922
+ # @param ContainerPath: 容器路径
2923
+ # @type ContainerPath: String
2924
+ # @param HostPath: 主机路径
2925
+ # @type HostPath: String
2926
+
2927
+ attr_accessor :ContainerPath, :HostPath
2928
+
2929
+ def initialize(containerpath=nil, hostpath=nil)
2930
+ @ContainerPath = containerpath
2931
+ @HostPath = hostpath
2932
+ end
2933
+
2934
+ def deserialize(params)
2935
+ @ContainerPath = params['ContainerPath']
2936
+ @HostPath = params['HostPath']
2937
+ end
2938
+ end
2939
+
2722
2940
  # >描述键值对过滤器,用于条件过滤查询。例如过滤名称等
2723
2941
  # > * 若存在多个`Filter`时,`Filter`间的关系为逻辑与(`AND`)关系。
2724
2942
  # > * 若同一个`Filter`存在多个`Values`,同一`Filter`下`Values`间的关系为逻辑或(`OR`)关系。
@@ -3486,6 +3704,17 @@ module TencentCloud
3486
3704
  end
3487
3705
  end
3488
3706
 
3707
+ # 实例密码登录配置信息。
3708
+ class LoginConfiguration < TencentCloud::Common::AbstractModel
3709
+
3710
+
3711
+ def initialize()
3712
+ end
3713
+
3714
+ def deserialize(params)
3715
+ end
3716
+ end
3717
+
3489
3718
  # 描述了实例登录相关配置与信息。
3490
3719
  class LoginSettings < TencentCloud::Common::AbstractModel
3491
3720
  # @param KeyIds: 密钥 ID 列表。关联密钥后,就可以通过对应的私钥来访问实例。注意:此字段可能返回 [],表示取不到有效值。
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-lighthouse
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.256
4
+ version: 1.0.257
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-02-15 00:00:00.000000000 Z
11
+ date: 2022-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common