tencentcloud-sdk-gs 3.0.1041 → 3.0.1042

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: f26ccc3e2c46519dd871cdf11be24a471cbdfe79
4
- data.tar.gz: 031a4f25622628b2f7cc24c19343650669af9ffa
3
+ metadata.gz: bda3a512279d95b7e11a687bbedb3f302f13ce12
4
+ data.tar.gz: ee9afe3b1500f6af53fa439045d8b9c761f0b310
5
5
  SHA512:
6
- metadata.gz: 3199fa80164fdc4a5644d4595e4debc797140963682c09c757a7dd3235d28932cfdea552add1b26209498ae44e50d7f9a3ef1350247d70b9c1a37cc113c695b9
7
- data.tar.gz: 43ac1f5493429e3f5b3ea220f8ca7f7f4cf3fe4eba8bd6213ee45376e0249a4e401275ea873091257f3eddbab1a86071abf6843bf0a22b329c38260da88f94c2
6
+ metadata.gz: 6aa16ae78f400bb27d361c04c693c59ac78cde5e1a0a69f1ce4ff6ac605a6e630c1cf6d819abe0bc885dd4b66f4e46f798226b8057401275c9128f8c72323646
7
+ data.tar.gz: 4dccf3a17e0365be8a5845f29dc5b0e234cadb184130d51828108230d1162a810d2f51311c010fe089664500702e9b3706449270044a2ce82924a1e9ad044e7a
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1041
1
+ 3.0.1042
@@ -705,6 +705,30 @@ module TencentCloud
705
705
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
706
706
  end
707
707
 
708
+ # 修改安卓应用版本
709
+
710
+ # @param request: Request instance for ModifyAndroidAppVersion.
711
+ # @type request: :class:`Tencentcloud::gs::V20191118::ModifyAndroidAppVersionRequest`
712
+ # @rtype: :class:`Tencentcloud::gs::V20191118::ModifyAndroidAppVersionResponse`
713
+ def ModifyAndroidAppVersion(request)
714
+ body = send_request('ModifyAndroidAppVersion', request.serialize)
715
+ response = JSON.parse(body)
716
+ if response['Response'].key?('Error') == false
717
+ model = ModifyAndroidAppVersionResponse.new
718
+ model.deserialize(response['Response'])
719
+ model
720
+ else
721
+ code = response['Response']['Error']['Code']
722
+ message = response['Response']['Error']['Message']
723
+ reqid = response['Response']['RequestId']
724
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
725
+ end
726
+ rescue TencentCloud::Common::TencentCloudSDKException => e
727
+ raise e
728
+ rescue StandardError => e
729
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
730
+ end
731
+
708
732
  # 修改安卓实例的信息
709
733
 
710
734
  # @param request: Request instance for ModifyAndroidInstanceInformation.
@@ -777,6 +801,30 @@ module TencentCloud
777
801
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
778
802
  end
779
803
 
804
+ # 修改安卓实例分辨率。需要注意的是该接口需要重启才能生效。
805
+
806
+ # @param request: Request instance for ModifyAndroidInstancesResolution.
807
+ # @type request: :class:`Tencentcloud::gs::V20191118::ModifyAndroidInstancesResolutionRequest`
808
+ # @rtype: :class:`Tencentcloud::gs::V20191118::ModifyAndroidInstancesResolutionResponse`
809
+ def ModifyAndroidInstancesResolution(request)
810
+ body = send_request('ModifyAndroidInstancesResolution', request.serialize)
811
+ response = JSON.parse(body)
812
+ if response['Response'].key?('Error') == false
813
+ model = ModifyAndroidInstancesResolutionResponse.new
814
+ model.deserialize(response['Response'])
815
+ model
816
+ else
817
+ code = response['Response']['Error']['Code']
818
+ message = response['Response']['Error']['Message']
819
+ reqid = response['Response']['RequestId']
820
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
821
+ end
822
+ rescue TencentCloud::Common::TencentCloudSDKException => e
823
+ raise e
824
+ rescue StandardError => e
825
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
826
+ end
827
+
780
828
  # 批量修改安卓实例的用户ID
781
829
 
782
830
  # @param request: Request instance for ModifyAndroidInstancesUserId.
@@ -31,16 +31,19 @@ module TencentCloud
31
31
  # @type CreateTime: String
32
32
  # @param UserId: 用户 Id
33
33
  # @type UserId: String
34
+ # @param AppMode: 应用模式(NORMAL : 普通模式;ADVANCED : 高级模式)
35
+ # @type AppMode: String
34
36
 
35
- attr_accessor :AndroidAppId, :Name, :State, :AndroidAppVersionInfo, :CreateTime, :UserId
37
+ attr_accessor :AndroidAppId, :Name, :State, :AndroidAppVersionInfo, :CreateTime, :UserId, :AppMode
36
38
 
37
- def initialize(androidappid=nil, name=nil, state=nil, androidappversioninfo=nil, createtime=nil, userid=nil)
39
+ def initialize(androidappid=nil, name=nil, state=nil, androidappversioninfo=nil, createtime=nil, userid=nil, appmode=nil)
38
40
  @AndroidAppId = androidappid
39
41
  @Name = name
40
42
  @State = state
41
43
  @AndroidAppVersionInfo = androidappversioninfo
42
44
  @CreateTime = createtime
43
45
  @UserId = userid
46
+ @AppMode = appmode
44
47
  end
45
48
 
46
49
  def deserialize(params)
@@ -57,6 +60,7 @@ module TencentCloud
57
60
  end
58
61
  @CreateTime = params['CreateTime']
59
62
  @UserId = params['UserId']
63
+ @AppMode = params['AppMode']
60
64
  end
61
65
  end
62
66
 
@@ -64,15 +68,19 @@ module TencentCloud
64
68
  class AndroidAppCosInfo < TencentCloud::Common::AbstractModel
65
69
  # @param AndroidAppId: 安卓应用ID
66
70
  # @type AndroidAppId: String
71
+ # @param FileName: 应用名称(支持 apk 和 tgz 两种格式文件,当应用 AppMode 为 NORMAL 时,只支持上传 apk 类型文件,当应用 AppMode 为 ADVANCED 高级模式时,只支持上传 tgz 类型文件)
72
+ # @type FileName: String
67
73
 
68
- attr_accessor :AndroidAppId
74
+ attr_accessor :AndroidAppId, :FileName
69
75
 
70
- def initialize(androidappid=nil)
76
+ def initialize(androidappid=nil, filename=nil)
71
77
  @AndroidAppId = androidappid
78
+ @FileName = filename
72
79
  end
73
80
 
74
81
  def deserialize(params)
75
82
  @AndroidAppId = params['AndroidAppId']
83
+ @FileName = params['FileName']
76
84
  end
77
85
  end
78
86
 
@@ -86,19 +94,23 @@ module TencentCloud
86
94
  # @type State: String
87
95
  # @param CreateTime: 安卓应用版本创建时间
88
96
  # @type CreateTime: String
97
+ # @param Command: shell 命令(支持多条命令执行,通过 && 组合;只在应用 AppMode 为 ADVANCED 高级模式下 才会生效)
98
+ # @type Command: String
89
99
 
90
- attr_accessor :AndroidAppVersion, :State, :CreateTime
100
+ attr_accessor :AndroidAppVersion, :State, :CreateTime, :Command
91
101
 
92
- def initialize(androidappversion=nil, state=nil, createtime=nil)
102
+ def initialize(androidappversion=nil, state=nil, createtime=nil, command=nil)
93
103
  @AndroidAppVersion = androidappversion
94
104
  @State = state
95
105
  @CreateTime = createtime
106
+ @Command = command
96
107
  end
97
108
 
98
109
  def deserialize(params)
99
110
  @AndroidAppVersion = params['AndroidAppVersion']
100
111
  @State = params['State']
101
112
  @CreateTime = params['CreateTime']
113
+ @Command = params['Command']
102
114
  end
103
115
  end
104
116
 
@@ -505,17 +517,21 @@ module TencentCloud
505
517
  # @type Name: String
506
518
  # @param UserId: 用户 Id
507
519
  # @type UserId: String
520
+ # @param AppMode: 应用模式(NORMAL : 普通模式、只支持 apk 文件上传,为默认值;ADVANCED : 高级模式、只支持上传 tgz 文件 和 自定义 shell 命令执行)
521
+ # @type AppMode: String
508
522
 
509
- attr_accessor :Name, :UserId
523
+ attr_accessor :Name, :UserId, :AppMode
510
524
 
511
- def initialize(name=nil, userid=nil)
525
+ def initialize(name=nil, userid=nil, appmode=nil)
512
526
  @Name = name
513
527
  @UserId = userid
528
+ @AppMode = appmode
514
529
  end
515
530
 
516
531
  def deserialize(params)
517
532
  @Name = params['Name']
518
533
  @UserId = params['UserId']
534
+ @AppMode = params['AppMode']
519
535
  end
520
536
  end
521
537
 
@@ -545,17 +561,21 @@ module TencentCloud
545
561
  # @type AndroidAppId: String
546
562
  # @param DownloadUrl: 应用包下载地址
547
563
  # @type DownloadUrl: String
564
+ # @param Command: shell 命令(支持多条命令执行,通过 && 组合;只在应用 AppMode 为 ADVANCED 高级模式下 才会生效)
565
+ # @type Command: String
548
566
 
549
- attr_accessor :AndroidAppId, :DownloadUrl
567
+ attr_accessor :AndroidAppId, :DownloadUrl, :Command
550
568
 
551
- def initialize(androidappid=nil, downloadurl=nil)
569
+ def initialize(androidappid=nil, downloadurl=nil, command=nil)
552
570
  @AndroidAppId = androidappid
553
571
  @DownloadUrl = downloadurl
572
+ @Command = command
554
573
  end
555
574
 
556
575
  def deserialize(params)
557
576
  @AndroidAppId = params['AndroidAppId']
558
577
  @DownloadUrl = params['DownloadUrl']
578
+ @Command = params['Command']
559
579
  end
560
580
  end
561
581
 
@@ -1834,6 +1854,50 @@ module TencentCloud
1834
1854
  end
1835
1855
  end
1836
1856
 
1857
+ # ModifyAndroidAppVersion请求参数结构体
1858
+ class ModifyAndroidAppVersionRequest < TencentCloud::Common::AbstractModel
1859
+ # @param AndroidAppId: 安卓应用 Id
1860
+ # @type AndroidAppId: String
1861
+ # @param AndroidAppVersion: 安卓应用版本 Id
1862
+ # @type AndroidAppVersion: String
1863
+ # @param AndroidAppVersionName: 安卓应用版本名称
1864
+ # @type AndroidAppVersionName: String
1865
+ # @param Command: shell 命令(支持多条命令执行,通过 && 组合;只在应用 AppMode 为 ADVANCED 高级模式下 才会生效)
1866
+ # @type Command: String
1867
+
1868
+ attr_accessor :AndroidAppId, :AndroidAppVersion, :AndroidAppVersionName, :Command
1869
+
1870
+ def initialize(androidappid=nil, androidappversion=nil, androidappversionname=nil, command=nil)
1871
+ @AndroidAppId = androidappid
1872
+ @AndroidAppVersion = androidappversion
1873
+ @AndroidAppVersionName = androidappversionname
1874
+ @Command = command
1875
+ end
1876
+
1877
+ def deserialize(params)
1878
+ @AndroidAppId = params['AndroidAppId']
1879
+ @AndroidAppVersion = params['AndroidAppVersion']
1880
+ @AndroidAppVersionName = params['AndroidAppVersionName']
1881
+ @Command = params['Command']
1882
+ end
1883
+ end
1884
+
1885
+ # ModifyAndroidAppVersion返回参数结构体
1886
+ class ModifyAndroidAppVersionResponse < TencentCloud::Common::AbstractModel
1887
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1888
+ # @type RequestId: String
1889
+
1890
+ attr_accessor :RequestId
1891
+
1892
+ def initialize(requestid=nil)
1893
+ @RequestId = requestid
1894
+ end
1895
+
1896
+ def deserialize(params)
1897
+ @RequestId = params['RequestId']
1898
+ end
1899
+ end
1900
+
1837
1901
  # ModifyAndroidInstanceInformation请求参数结构体
1838
1902
  class ModifyAndroidInstanceInformationRequest < TencentCloud::Common::AbstractModel
1839
1903
  # @param AndroidInstanceId: 安卓实例 ID
@@ -1875,25 +1939,33 @@ module TencentCloud
1875
1939
  # @param AndroidInstanceId: 安卓实例 ID
1876
1940
  # @type AndroidInstanceId: String
1877
1941
  # @param Width: 分辨率宽度。建议按照以下数值设置,避免出现性能不足问题:
1878
- # 实例类型为单开(A1)、双开(A2)、三开( A3):建议设置为 1080
1879
- # 实例类型为 四开(A4) 及以上:建议设置为 720
1942
+ # 实例类型为单开(A1):建议设置为 1080
1943
+ # 实例类型为双开(A2) 及以上:建议设置为 720
1880
1944
  # @type Width: Integer
1881
1945
  # @param Height: 分辨率高度。建议按照以下数值设置,避免出现性能不足问题:
1882
- # 实例类型为单开(A1)、双开(A2)、三开( A3):建议设置为 1920
1883
- # 实例类型为 四开(A4) 及以上:建议设置为 1280
1946
+ # 实例类型为单开(A1):建议设置为 1920
1947
+ # 实例类型为双开(A2) 及以上:建议设置为 1280
1884
1948
  # @type Height: Integer
1885
1949
  # @param DPI: 每英寸像素点。如果不填,系统将会计算一个合理的数值。修改 DPI 可能会导致 App 异常退出,请谨慎使用!
1886
1950
  # 分辨率为 720x1280:建议配置为 320
1887
1951
  # 分辨率为 1080x1920:建议配置为 480
1888
1952
  # @type DPI: Integer
1953
+ # @param FPS: 帧率。ResolutionType 为 PHYSICAL 时才会修改帧率。另外建议按照以下数值设置,避免出现性能不足问题: 实例类型为单开(A1):建议设置为 60 实例类型为双开(A2) 及以上:建议设置为 30
1954
+ # @type FPS: Integer
1955
+ # @param ResolutionType: 修改分辨率类型。修改物理分辨率,需要重启才能生效。
1956
+ # OVERRIDE:默认值,修改覆盖(显示)分辨率
1957
+ # PHYSICAL:修改物理分辨率
1958
+ # @type ResolutionType: String
1889
1959
 
1890
- attr_accessor :AndroidInstanceId, :Width, :Height, :DPI
1960
+ attr_accessor :AndroidInstanceId, :Width, :Height, :DPI, :FPS, :ResolutionType
1891
1961
 
1892
- def initialize(androidinstanceid=nil, width=nil, height=nil, dpi=nil)
1962
+ def initialize(androidinstanceid=nil, width=nil, height=nil, dpi=nil, fps=nil, resolutiontype=nil)
1893
1963
  @AndroidInstanceId = androidinstanceid
1894
1964
  @Width = width
1895
1965
  @Height = height
1896
1966
  @DPI = dpi
1967
+ @FPS = fps
1968
+ @ResolutionType = resolutiontype
1897
1969
  end
1898
1970
 
1899
1971
  def deserialize(params)
@@ -1901,6 +1973,8 @@ module TencentCloud
1901
1973
  @Width = params['Width']
1902
1974
  @Height = params['Height']
1903
1975
  @DPI = params['DPI']
1976
+ @FPS = params['FPS']
1977
+ @ResolutionType = params['ResolutionType']
1904
1978
  end
1905
1979
  end
1906
1980
 
@@ -1967,6 +2041,68 @@ module TencentCloud
1967
2041
  end
1968
2042
  end
1969
2043
 
2044
+ # ModifyAndroidInstancesResolution请求参数结构体
2045
+ class ModifyAndroidInstancesResolutionRequest < TencentCloud::Common::AbstractModel
2046
+ # @param AndroidInstanceIds: 安卓实例 ID 列表
2047
+ # @type AndroidInstanceIds: Array
2048
+ # @param Width: 分辨率宽度。建议按照以下数值设置,避免出现性能不足问题:
2049
+ # 实例类型为单开(A1):建议设置为 1080
2050
+ # 实例类型为双开(A2) 及以上:建议设置为 720
2051
+ # @type Width: Integer
2052
+ # @param Height: 分辨率高度。建议按照以下数值设置,避免出现性能不足问题:
2053
+ # 实例类型为单开(A1):建议设置为 1920
2054
+ # 实例类型为双开(A2) 及以上:建议设置为 1280
2055
+ # @type Height: Integer
2056
+ # @param DPI: 每英寸像素点。
2057
+ # 分辨率为 720x1280:建议配置为 320
2058
+ # 分辨率为 1080x1920:建议配置为 480
2059
+ # @type DPI: Integer
2060
+ # @param FPS: 帧率。ResolutionType 为 PHYSICAL 时才会修改帧率。另外建议按照以下数值设置,避免出现性能不足问题:
2061
+ # 实例类型为单开(A1):建议设置为 60
2062
+ # 实例类型为双开(A2) 及以上:建议设置为 30
2063
+ # @type FPS: Integer
2064
+ # @param ResolutionType: 修改分辨率类型。修改物理分辨率,需要重启才能生效。
2065
+ # OVERRIDE:默认值,修改覆盖(显示)分辨率
2066
+ # PHYSICAL:修改物理分辨率
2067
+ # @type ResolutionType: String
2068
+
2069
+ attr_accessor :AndroidInstanceIds, :Width, :Height, :DPI, :FPS, :ResolutionType
2070
+
2071
+ def initialize(androidinstanceids=nil, width=nil, height=nil, dpi=nil, fps=nil, resolutiontype=nil)
2072
+ @AndroidInstanceIds = androidinstanceids
2073
+ @Width = width
2074
+ @Height = height
2075
+ @DPI = dpi
2076
+ @FPS = fps
2077
+ @ResolutionType = resolutiontype
2078
+ end
2079
+
2080
+ def deserialize(params)
2081
+ @AndroidInstanceIds = params['AndroidInstanceIds']
2082
+ @Width = params['Width']
2083
+ @Height = params['Height']
2084
+ @DPI = params['DPI']
2085
+ @FPS = params['FPS']
2086
+ @ResolutionType = params['ResolutionType']
2087
+ end
2088
+ end
2089
+
2090
+ # ModifyAndroidInstancesResolution返回参数结构体
2091
+ class ModifyAndroidInstancesResolutionResponse < TencentCloud::Common::AbstractModel
2092
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2093
+ # @type RequestId: String
2094
+
2095
+ attr_accessor :RequestId
2096
+
2097
+ def initialize(requestid=nil)
2098
+ @RequestId = requestid
2099
+ end
2100
+
2101
+ def deserialize(params)
2102
+ @RequestId = params['RequestId']
2103
+ end
2104
+ end
2105
+
1970
2106
  # ModifyAndroidInstancesUserId请求参数结构体
1971
2107
  class ModifyAndroidInstancesUserIdRequest < TencentCloud::Common::AbstractModel
1972
2108
  # @param AndroidInstanceIds: 安卓实例 ID 列表
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-gs
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1041
4
+ version: 3.0.1042
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-04-16 00:00:00.000000000 Z
11
+ date: 2025-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common