tencentcloud-sdk-as 1.0.362 → 1.0.363

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/VERSION +1 -1
  3. data/lib/v20180419/models.rb +92 -11
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a11573ec8873f3f594afeef38508952d1069076b
4
- data.tar.gz: 9349d358770ab0e76c3a694eee7f403f9823f0f7
3
+ metadata.gz: de76f918952b2071df9b0f66c5dea210b5158136
4
+ data.tar.gz: 47eafbc0c0380f3440de2bce842cb9d3767f4a28
5
5
  SHA512:
6
- metadata.gz: 37f9e76333fa5ca8ca5ff22d64cb8bcd8a3b867a6bef25f80754172c6512e87ea8366ef8ddcc1408603d41a3e1135aa813baaa2d9628068fa1bd5407d751877f
7
- data.tar.gz: 29703caea75496d0279cde5b0ff8dadd166a4b29c01a6857119184de97da0103c53d6b3fda61f8649493ad301c66e0926f2f9a4c73cab538f231b1cc5eaa9595
6
+ metadata.gz: 6f11dcb561057586f199ef57320eb921845516571b5fa0ab5f67efb56e062ba2968ef828c5901da5ddcbaa4549fcc87961201b5daa3fdeb62900f9ac9b383dc1
7
+ data.tar.gz: e60a411caa47ed5ae3290d0d6cdb133d93190d8e29917cef6c0d4d8e3137a6ac3fcbaedcbc7b7da690e016b3c79cf47f4df5a7b075c7951103c0230d5ce4d350
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.362
1
+ 1.0.363
@@ -27,6 +27,7 @@ module TencentCloud
27
27
  # <li>SCALE_OUT:扩容活动<li>SCALE_IN:缩容活动<li>ATTACH_INSTANCES:添加实例<li>REMOVE_INSTANCES:销毁实例<li>DETACH_INSTANCES:移出实例<li>TERMINATE_INSTANCES_UNEXPECTEDLY:实例在CVM控制台被销毁<li>REPLACE_UNHEALTHY_INSTANCE:替换不健康实例
28
28
  # <li>START_INSTANCES:开启实例
29
29
  # <li>STOP_INSTANCES:关闭实例
30
+ # <li>INVOKE_COMMAND:执行命令
30
31
  # @type ActivityType: String
31
32
  # @param StatusCode: 伸缩活动状态。取值如下:<br>
32
33
  # <li>INIT:初始化中
@@ -56,10 +57,12 @@ module TencentCloud
56
57
  # @type LifecycleActionResultSet: Array
57
58
  # @param DetailedStatusMessageSet: 伸缩活动状态详细描述。
58
59
  # @type DetailedStatusMessageSet: Array
60
+ # @param InvocationResultSet: 执行命令结果。
61
+ # @type InvocationResultSet: Array
59
62
 
60
- attr_accessor :AutoScalingGroupId, :ActivityId, :ActivityType, :StatusCode, :StatusMessage, :Cause, :Description, :StartTime, :EndTime, :CreatedTime, :ActivityRelatedInstanceSet, :StatusMessageSimplified, :LifecycleActionResultSet, :DetailedStatusMessageSet
63
+ attr_accessor :AutoScalingGroupId, :ActivityId, :ActivityType, :StatusCode, :StatusMessage, :Cause, :Description, :StartTime, :EndTime, :CreatedTime, :ActivityRelatedInstanceSet, :StatusMessageSimplified, :LifecycleActionResultSet, :DetailedStatusMessageSet, :InvocationResultSet
61
64
 
62
- def initialize(autoscalinggroupid=nil, activityid=nil, activitytype=nil, statuscode=nil, statusmessage=nil, cause=nil, description=nil, starttime=nil, endtime=nil, createdtime=nil, activityrelatedinstanceset=nil, statusmessagesimplified=nil, lifecycleactionresultset=nil, detailedstatusmessageset=nil)
65
+ def initialize(autoscalinggroupid=nil, activityid=nil, activitytype=nil, statuscode=nil, statusmessage=nil, cause=nil, description=nil, starttime=nil, endtime=nil, createdtime=nil, activityrelatedinstanceset=nil, statusmessagesimplified=nil, lifecycleactionresultset=nil, detailedstatusmessageset=nil, invocationresultset=nil)
63
66
  @AutoScalingGroupId = autoscalinggroupid
64
67
  @ActivityId = activityid
65
68
  @ActivityType = activitytype
@@ -74,6 +77,7 @@ module TencentCloud
74
77
  @StatusMessageSimplified = statusmessagesimplified
75
78
  @LifecycleActionResultSet = lifecycleactionresultset
76
79
  @DetailedStatusMessageSet = detailedstatusmessageset
80
+ @InvocationResultSet = invocationresultset
77
81
  end
78
82
 
79
83
  def deserialize(params)
@@ -112,6 +116,14 @@ module TencentCloud
112
116
  @DetailedStatusMessageSet << detailedstatusmessage_tmp
113
117
  end
114
118
  end
119
+ unless params['InvocationResultSet'].nil?
120
+ @InvocationResultSet = []
121
+ params['InvocationResultSet'].each do |i|
122
+ invocationresult_tmp = InvocationResult.new
123
+ invocationresult_tmp.deserialize(i)
124
+ @InvocationResultSet << invocationresult_tmp
125
+ end
126
+ end
115
127
  end
116
128
  end
117
129
 
@@ -876,6 +888,8 @@ module TencentCloud
876
888
  # @param InstanceTypes: 实例机型列表,不同实例机型指定了不同的资源规格,最多支持10种实例机型。
877
889
  # `InstanceType`和`InstanceTypes`参数互斥,二者必填一个且只能填写一个。
878
890
  # @type InstanceTypes: Array
891
+ # @param CamRoleName: CAM角色名称。可通过DescribeRoleList接口返回值中的roleName获取。
892
+ # @type CamRoleName: String
879
893
  # @param InstanceTypesCheckPolicy: 实例类型校验策略,取值包括 ALL 和 ANY,默认取值为ANY。
880
894
  # <br><li> ALL,所有实例类型(InstanceType)都可用则通过校验,否则校验报错。
881
895
  # <br><li> ANY,存在任何一个实例类型(InstanceType)可用则通过校验,否则校验报错。
@@ -885,8 +899,8 @@ module TencentCloud
885
899
  # @type InstanceTypesCheckPolicy: String
886
900
  # @param InstanceTags: 标签列表。通过指定该参数,可以为扩容的实例绑定标签。最多支持指定10个标签。
887
901
  # @type InstanceTags: Array
888
- # @param CamRoleName: CAM角色名称。可通过DescribeRoleList接口返回值中的roleName获取。
889
- # @type CamRoleName: String
902
+ # @param Tags: 标签描述列表。通过指定该参数可以支持绑定标签到启动配置。每个启动配置最多支持30个标签。
903
+ # @type Tags: Array
890
904
  # @param HostNameSettings: 云服务器主机名(HostName)的相关设置。
891
905
  # @type HostNameSettings: :class:`Tencentcloud::As.v20180419.models.HostNameSettings`
892
906
  # @param InstanceNameSettings: 云服务器实例名(InstanceName)的相关设置。
@@ -899,9 +913,9 @@ module TencentCloud
899
913
  # <br><li>AUTOMATIC:自动选择当前可用的云盘类型
900
914
  # @type DiskTypePolicy: String
901
915
 
902
- attr_accessor :LaunchConfigurationName, :ImageId, :ProjectId, :InstanceType, :SystemDisk, :DataDisks, :InternetAccessible, :LoginSettings, :SecurityGroupIds, :EnhancedService, :UserData, :InstanceChargeType, :InstanceMarketOptions, :InstanceTypes, :InstanceTypesCheckPolicy, :InstanceTags, :CamRoleName, :HostNameSettings, :InstanceNameSettings, :InstanceChargePrepaid, :DiskTypePolicy
916
+ attr_accessor :LaunchConfigurationName, :ImageId, :ProjectId, :InstanceType, :SystemDisk, :DataDisks, :InternetAccessible, :LoginSettings, :SecurityGroupIds, :EnhancedService, :UserData, :InstanceChargeType, :InstanceMarketOptions, :InstanceTypes, :CamRoleName, :InstanceTypesCheckPolicy, :InstanceTags, :Tags, :HostNameSettings, :InstanceNameSettings, :InstanceChargePrepaid, :DiskTypePolicy
903
917
 
904
- def initialize(launchconfigurationname=nil, imageid=nil, projectid=nil, instancetype=nil, systemdisk=nil, datadisks=nil, internetaccessible=nil, loginsettings=nil, securitygroupids=nil, enhancedservice=nil, userdata=nil, instancechargetype=nil, instancemarketoptions=nil, instancetypes=nil, instancetypescheckpolicy=nil, instancetags=nil, camrolename=nil, hostnamesettings=nil, instancenamesettings=nil, instancechargeprepaid=nil, disktypepolicy=nil)
918
+ def initialize(launchconfigurationname=nil, imageid=nil, projectid=nil, instancetype=nil, systemdisk=nil, datadisks=nil, internetaccessible=nil, loginsettings=nil, securitygroupids=nil, enhancedservice=nil, userdata=nil, instancechargetype=nil, instancemarketoptions=nil, instancetypes=nil, camrolename=nil, instancetypescheckpolicy=nil, instancetags=nil, tags=nil, hostnamesettings=nil, instancenamesettings=nil, instancechargeprepaid=nil, disktypepolicy=nil)
905
919
  @LaunchConfigurationName = launchconfigurationname
906
920
  @ImageId = imageid
907
921
  @ProjectId = projectid
@@ -916,9 +930,10 @@ module TencentCloud
916
930
  @InstanceChargeType = instancechargetype
917
931
  @InstanceMarketOptions = instancemarketoptions
918
932
  @InstanceTypes = instancetypes
933
+ @CamRoleName = camrolename
919
934
  @InstanceTypesCheckPolicy = instancetypescheckpolicy
920
935
  @InstanceTags = instancetags
921
- @CamRoleName = camrolename
936
+ @Tags = tags
922
937
  @HostNameSettings = hostnamesettings
923
938
  @InstanceNameSettings = instancenamesettings
924
939
  @InstanceChargePrepaid = instancechargeprepaid
@@ -962,6 +977,7 @@ module TencentCloud
962
977
  @InstanceMarketOptions.deserialize(params['InstanceMarketOptions'])
963
978
  end
964
979
  @InstanceTypes = params['InstanceTypes']
980
+ @CamRoleName = params['CamRoleName']
965
981
  @InstanceTypesCheckPolicy = params['InstanceTypesCheckPolicy']
966
982
  unless params['InstanceTags'].nil?
967
983
  @InstanceTags = []
@@ -971,7 +987,14 @@ module TencentCloud
971
987
  @InstanceTags << instancetag_tmp
972
988
  end
973
989
  end
974
- @CamRoleName = params['CamRoleName']
990
+ unless params['Tags'].nil?
991
+ @Tags = []
992
+ params['Tags'].each do |i|
993
+ tag_tmp = Tag.new
994
+ tag_tmp.deserialize(i)
995
+ @Tags << tag_tmp
996
+ end
997
+ end
975
998
  unless params['HostNameSettings'].nil?
976
999
  @HostNameSettings = HostNameSettings.new
977
1000
  @HostNameSettings.deserialize(params['HostNameSettings'])
@@ -1866,6 +1889,10 @@ module TencentCloud
1866
1889
  # <li> launch-configuration-id - String - 是否必填:否 -(过滤条件)按照启动配置ID过滤。</li>
1867
1890
  # <li> launch-configuration-name - String - 是否必填:否 -(过滤条件)按照启动配置名称过滤。</li>
1868
1891
  # <li> vague-launch-configuration-name - String - 是否必填:否 -(过滤条件)按照启动配置名称模糊搜索。</li>
1892
+ # <li> tag-key - String - 是否必填:否 -(过滤条件)按照标签键进行过滤。</li>
1893
+ # <li> tag-value - String - 是否必填:否 -(过滤条件)按照标签值进行过滤。</li>
1894
+ # <li> tag:tag-key - String - 是否必填:否 -(过滤条件)按照标签键值对进行过滤。 tag-key使用具体的标签键进行替换。使用请参考示例3
1895
+ # </li>
1869
1896
  # 每次请求的`Filters`的上限为10,`Filter.Values`的上限为5。参数不支持同时指定`LaunchConfigurationIds`和`Filters`。
1870
1897
  # @type Filters: Array
1871
1898
  # @param Limit: 返回数量,默认为20,最大值为100。关于`Limit`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
@@ -2792,6 +2819,48 @@ module TencentCloud
2792
2819
  end
2793
2820
  end
2794
2821
 
2822
+ # 执行命令结果。
2823
+ class InvocationResult < TencentCloud::Common::AbstractModel
2824
+ # @param InstanceId: 实例ID。
2825
+ # 注意:此字段可能返回 null,表示取不到有效值。
2826
+ # @type InstanceId: String
2827
+ # @param InvocationId: 执行活动ID。
2828
+ # 注意:此字段可能返回 null,表示取不到有效值。
2829
+ # @type InvocationId: String
2830
+ # @param InvocationTaskId: 执行任务ID。
2831
+ # 注意:此字段可能返回 null,表示取不到有效值。
2832
+ # @type InvocationTaskId: String
2833
+ # @param CommandId: 命令ID。
2834
+ # 注意:此字段可能返回 null,表示取不到有效值。
2835
+ # @type CommandId: String
2836
+ # @param TaskStatus: 执行任务状态。
2837
+ # 注意:此字段可能返回 null,表示取不到有效值。
2838
+ # @type TaskStatus: String
2839
+ # @param ErrorMessage: 执行异常信息。
2840
+ # 注意:此字段可能返回 null,表示取不到有效值。
2841
+ # @type ErrorMessage: String
2842
+
2843
+ attr_accessor :InstanceId, :InvocationId, :InvocationTaskId, :CommandId, :TaskStatus, :ErrorMessage
2844
+
2845
+ def initialize(instanceid=nil, invocationid=nil, invocationtaskid=nil, commandid=nil, taskstatus=nil, errormessage=nil)
2846
+ @InstanceId = instanceid
2847
+ @InvocationId = invocationid
2848
+ @InvocationTaskId = invocationtaskid
2849
+ @CommandId = commandid
2850
+ @TaskStatus = taskstatus
2851
+ @ErrorMessage = errormessage
2852
+ end
2853
+
2854
+ def deserialize(params)
2855
+ @InstanceId = params['InstanceId']
2856
+ @InvocationId = params['InvocationId']
2857
+ @InvocationTaskId = params['InvocationTaskId']
2858
+ @CommandId = params['CommandId']
2859
+ @TaskStatus = params['TaskStatus']
2860
+ @ErrorMessage = params['ErrorMessage']
2861
+ end
2862
+ end
2863
+
2795
2864
  # 符合条件的启动配置信息的集合。
2796
2865
  class LaunchConfiguration < TencentCloud::Common::AbstractModel
2797
2866
  # @param ProjectId: 实例所属项目ID。
@@ -2834,8 +2903,11 @@ module TencentCloud
2834
2903
  # @type InstanceMarketOptions: :class:`Tencentcloud::As.v20180419.models.InstanceMarketOptionsRequest`
2835
2904
  # @param InstanceTypes: 实例机型列表。
2836
2905
  # @type InstanceTypes: Array
2837
- # @param InstanceTags: 标签列表。
2906
+ # @param InstanceTags: 实例标签列表。扩容出来的实例会自动带上标签,最多支持10个标签。
2838
2907
  # @type InstanceTags: Array
2908
+ # @param Tags: 标签列表。
2909
+ # 注意:此字段可能返回 null,表示取不到有效值。
2910
+ # @type Tags: Array
2839
2911
  # @param VersionNumber: 版本号。
2840
2912
  # @type VersionNumber: Integer
2841
2913
  # @param UpdatedTime: 更新时间。
@@ -2855,9 +2927,9 @@ module TencentCloud
2855
2927
  # <br><li>AUTOMATIC:自动选择当前可用区下可用的云盘类型
2856
2928
  # @type DiskTypePolicy: String
2857
2929
 
2858
- attr_accessor :ProjectId, :LaunchConfigurationId, :LaunchConfigurationName, :InstanceType, :SystemDisk, :DataDisks, :LoginSettings, :InternetAccessible, :SecurityGroupIds, :AutoScalingGroupAbstractSet, :UserData, :CreatedTime, :EnhancedService, :ImageId, :LaunchConfigurationStatus, :InstanceChargeType, :InstanceMarketOptions, :InstanceTypes, :InstanceTags, :VersionNumber, :UpdatedTime, :CamRoleName, :LastOperationInstanceTypesCheckPolicy, :HostNameSettings, :InstanceNameSettings, :InstanceChargePrepaid, :DiskTypePolicy
2930
+ attr_accessor :ProjectId, :LaunchConfigurationId, :LaunchConfigurationName, :InstanceType, :SystemDisk, :DataDisks, :LoginSettings, :InternetAccessible, :SecurityGroupIds, :AutoScalingGroupAbstractSet, :UserData, :CreatedTime, :EnhancedService, :ImageId, :LaunchConfigurationStatus, :InstanceChargeType, :InstanceMarketOptions, :InstanceTypes, :InstanceTags, :Tags, :VersionNumber, :UpdatedTime, :CamRoleName, :LastOperationInstanceTypesCheckPolicy, :HostNameSettings, :InstanceNameSettings, :InstanceChargePrepaid, :DiskTypePolicy
2859
2931
 
2860
- def initialize(projectid=nil, launchconfigurationid=nil, launchconfigurationname=nil, instancetype=nil, systemdisk=nil, datadisks=nil, loginsettings=nil, internetaccessible=nil, securitygroupids=nil, autoscalinggroupabstractset=nil, userdata=nil, createdtime=nil, enhancedservice=nil, imageid=nil, launchconfigurationstatus=nil, instancechargetype=nil, instancemarketoptions=nil, instancetypes=nil, instancetags=nil, versionnumber=nil, updatedtime=nil, camrolename=nil, lastoperationinstancetypescheckpolicy=nil, hostnamesettings=nil, instancenamesettings=nil, instancechargeprepaid=nil, disktypepolicy=nil)
2932
+ def initialize(projectid=nil, launchconfigurationid=nil, launchconfigurationname=nil, instancetype=nil, systemdisk=nil, datadisks=nil, loginsettings=nil, internetaccessible=nil, securitygroupids=nil, autoscalinggroupabstractset=nil, userdata=nil, createdtime=nil, enhancedservice=nil, imageid=nil, launchconfigurationstatus=nil, instancechargetype=nil, instancemarketoptions=nil, instancetypes=nil, instancetags=nil, tags=nil, versionnumber=nil, updatedtime=nil, camrolename=nil, lastoperationinstancetypescheckpolicy=nil, hostnamesettings=nil, instancenamesettings=nil, instancechargeprepaid=nil, disktypepolicy=nil)
2861
2933
  @ProjectId = projectid
2862
2934
  @LaunchConfigurationId = launchconfigurationid
2863
2935
  @LaunchConfigurationName = launchconfigurationname
@@ -2877,6 +2949,7 @@ module TencentCloud
2877
2949
  @InstanceMarketOptions = instancemarketoptions
2878
2950
  @InstanceTypes = instancetypes
2879
2951
  @InstanceTags = instancetags
2952
+ @Tags = tags
2880
2953
  @VersionNumber = versionnumber
2881
2954
  @UpdatedTime = updatedtime
2882
2955
  @CamRoleName = camrolename
@@ -2943,6 +3016,14 @@ module TencentCloud
2943
3016
  @InstanceTags << instancetag_tmp
2944
3017
  end
2945
3018
  end
3019
+ unless params['Tags'].nil?
3020
+ @Tags = []
3021
+ params['Tags'].each do |i|
3022
+ tag_tmp = Tag.new
3023
+ tag_tmp.deserialize(i)
3024
+ @Tags << tag_tmp
3025
+ end
3026
+ end
2946
3027
  @VersionNumber = params['VersionNumber']
2947
3028
  @UpdatedTime = params['UpdatedTime']
2948
3029
  @CamRoleName = params['CamRoleName']
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-as
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.362
4
+ version: 1.0.363
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-07-24 00:00:00.000000000 Z
11
+ date: 2022-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common