tencentcloud-sdk-python-ags 3.1.189__tar.gz → 3.1.196__tar.gz

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.
Files changed (17) hide show
  1. {tencentcloud_sdk_python_ags-3.1.189 → tencentcloud_sdk_python_ags-3.1.196}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_ags-3.1.189 → tencentcloud_sdk_python_ags-3.1.196}/setup.py +1 -1
  3. {tencentcloud_sdk_python_ags-3.1.189 → tencentcloud_sdk_python_ags-3.1.196}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_ags-3.1.189 → tencentcloud_sdk_python_ags-3.1.196}/tencentcloud/ags/v20250920/ags_client.py +23 -0
  5. {tencentcloud_sdk_python_ags-3.1.189 → tencentcloud_sdk_python_ags-3.1.196}/tencentcloud/ags/v20250920/ags_client_async.py +18 -0
  6. {tencentcloud_sdk_python_ags-3.1.189 → tencentcloud_sdk_python_ags-3.1.196}/tencentcloud/ags/v20250920/errorcodes.py +9 -0
  7. {tencentcloud_sdk_python_ags-3.1.189 → tencentcloud_sdk_python_ags-3.1.196}/tencentcloud/ags/v20250920/models.py +93 -9
  8. {tencentcloud_sdk_python_ags-3.1.189 → tencentcloud_sdk_python_ags-3.1.196}/tencentcloud_sdk_python_ags.egg-info/PKG-INFO +2 -2
  9. tencentcloud_sdk_python_ags-3.1.196/tencentcloud_sdk_python_ags.egg-info/requires.txt +1 -0
  10. tencentcloud_sdk_python_ags-3.1.189/tencentcloud_sdk_python_ags.egg-info/requires.txt +0 -1
  11. {tencentcloud_sdk_python_ags-3.1.189 → tencentcloud_sdk_python_ags-3.1.196}/README.rst +0 -0
  12. {tencentcloud_sdk_python_ags-3.1.189 → tencentcloud_sdk_python_ags-3.1.196}/setup.cfg +0 -0
  13. {tencentcloud_sdk_python_ags-3.1.189 → tencentcloud_sdk_python_ags-3.1.196}/tencentcloud/ags/__init__.py +0 -0
  14. {tencentcloud_sdk_python_ags-3.1.189 → tencentcloud_sdk_python_ags-3.1.196}/tencentcloud/ags/v20250920/__init__.py +0 -0
  15. {tencentcloud_sdk_python_ags-3.1.189 → tencentcloud_sdk_python_ags-3.1.196}/tencentcloud_sdk_python_ags.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_ags-3.1.189 → tencentcloud_sdk_python_ags-3.1.196}/tencentcloud_sdk_python_ags.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_ags-3.1.189 → tencentcloud_sdk_python_ags-3.1.196}/tencentcloud_sdk_python_ags.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-ags
3
- Version: 3.1.189
3
+ Version: 3.1.196
4
4
  Summary: Tencent Cloud Ags SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3.6
17
17
  Classifier: Programming Language :: Python :: 3.7
18
- Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.189
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.196
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
8
8
 
9
9
  setup(
10
10
  name='tencentcloud-sdk-python-ags',
11
- install_requires=["tencentcloud-sdk-python-common>=3.1.189,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.196,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Ags SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.189'
17
+ __version__ = '3.1.196'
@@ -888,6 +888,29 @@ class AgsClient(AbstractClient):
888
888
  raise TencentCloudSDKException(type(e).__name__, str(e))
889
889
 
890
890
 
891
+ def DescribeSandboxInstances(self, request):
892
+ r"""查询沙箱实例
893
+
894
+ :param request: Request instance for DescribeSandboxInstances.
895
+ :type request: :class:`tencentcloud.ags.v20250920.models.DescribeSandboxInstancesRequest`
896
+ :rtype: :class:`tencentcloud.ags.v20250920.models.DescribeSandboxInstancesResponse`
897
+
898
+ """
899
+ try:
900
+ params = request._serialize()
901
+ headers = request.headers
902
+ body = self.call("DescribeSandboxInstances", params, headers=headers)
903
+ response = json.loads(body)
904
+ model = models.DescribeSandboxInstancesResponse()
905
+ model._deserialize(response["Response"])
906
+ return model
907
+ except Exception as e:
908
+ if isinstance(e, TencentCloudSDKException):
909
+ raise
910
+ else:
911
+ raise TencentCloudSDKException(type(e).__name__, str(e))
912
+
913
+
891
914
  def DescribeSandboxSnapshotList(self, request):
892
915
  r"""查询沙箱快照
893
916
  该接口属于 Runtime Snapshot API ,当前为预览版本(Beta)。接口后续可能发生不兼容变更或被弃用,不保证向后兼容。请关注后续版本及变更说明,并根据需要调整调用代码。
@@ -702,6 +702,24 @@ class AgsClient(AbstractClient):
702
702
 
703
703
  return await self.call_and_deserialize(**kwargs)
704
704
 
705
+ async def DescribeSandboxInstances(
706
+ self,
707
+ request: models.DescribeSandboxInstancesRequest,
708
+ opts: Dict = None,
709
+ ) -> models.DescribeSandboxInstancesResponse:
710
+ """
711
+ 查询沙箱实例
712
+ """
713
+
714
+ kwargs = {}
715
+ kwargs["action"] = "DescribeSandboxInstances"
716
+ kwargs["params"] = request._serialize()
717
+ kwargs["resp_cls"] = models.DescribeSandboxInstancesResponse
718
+ kwargs["headers"] = request.headers
719
+ kwargs["opts"] = opts or {}
720
+
721
+ return await self.call_and_deserialize(**kwargs)
722
+
705
723
  async def DescribeSandboxSnapshotList(
706
724
  self,
707
725
  request: models.DescribeSandboxSnapshotListRequest,
@@ -149,6 +149,12 @@ INVALIDPARAMETERVALUE_AGENTSOURCETYPE = 'InvalidParameterValue.AgentSourceType'
149
149
  # InvalidParameterValue.ApprovalMode
150
150
  INVALIDPARAMETERVALUE_APPROVALMODE = 'InvalidParameterValue.ApprovalMode'
151
151
 
152
+ # 用户不在自动暂停白名单中
153
+ INVALIDPARAMETERVALUE_AUTOPAUSENOTALLOWED = 'InvalidParameterValue.AutoPauseNotAllowed'
154
+
155
+ # 用户不在自动恢复白名单中
156
+ INVALIDPARAMETERVALUE_AUTORESUMENOTALLOWED = 'InvalidParameterValue.AutoResumeNotAllowed'
157
+
152
158
  # InvalidParameterValue.DescriptorType
153
159
  INVALIDPARAMETERVALUE_DESCRIPTORTYPE = 'InvalidParameterValue.DescriptorType'
154
160
 
@@ -179,6 +185,9 @@ INVALIDPARAMETERVALUE_SANDBOXTOOL = 'InvalidParameterValue.SandboxTool'
179
185
  # 参数 Scopes 取值无效,或当前地域不支持指定的镜像预热范围。
180
186
  INVALIDPARAMETERVALUE_SCOPE = 'InvalidParameterValue.Scope'
181
187
 
188
+ # 参数 SecurityContext 取值无效
189
+ INVALIDPARAMETERVALUE_SECURITYCONTEXT = 'InvalidParameterValue.SecurityContext'
190
+
182
191
  # 安全组ID格式错误
183
192
  INVALIDPARAMETERVALUE_SECURITYGROUPID = 'InvalidParameterValue.SecurityGroupId'
184
193
 
@@ -7939,6 +7939,90 @@ class DescribeSandboxInstanceListResponse(AbstractModel):
7939
7939
  self._RequestId = params.get("RequestId")
7940
7940
 
7941
7941
 
7942
+ class DescribeSandboxInstancesRequest(AbstractModel):
7943
+ r"""DescribeSandboxInstances请求参数结构体
7944
+
7945
+ """
7946
+
7947
+ def __init__(self):
7948
+ r"""
7949
+ :param _InstanceIds: <p>沙箱实例ID列表,指定要查询的实例。如果为空则查询所有实例。最大支持100个ID</p>
7950
+ :type InstanceIds: list of str
7951
+ """
7952
+ self._InstanceIds = None
7953
+
7954
+ @property
7955
+ def InstanceIds(self):
7956
+ r"""<p>沙箱实例ID列表,指定要查询的实例。如果为空则查询所有实例。最大支持100个ID</p>
7957
+ :rtype: list of str
7958
+ """
7959
+ return self._InstanceIds
7960
+
7961
+ @InstanceIds.setter
7962
+ def InstanceIds(self, InstanceIds):
7963
+ self._InstanceIds = InstanceIds
7964
+
7965
+
7966
+ def _deserialize(self, params):
7967
+ self._InstanceIds = params.get("InstanceIds")
7968
+ memeber_set = set(params.keys())
7969
+ for name, value in vars(self).items():
7970
+ property_name = name[1:]
7971
+ if property_name in memeber_set:
7972
+ memeber_set.remove(property_name)
7973
+ if len(memeber_set) > 0:
7974
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
7975
+
7976
+
7977
+
7978
+ class DescribeSandboxInstancesResponse(AbstractModel):
7979
+ r"""DescribeSandboxInstances返回参数结构体
7980
+
7981
+ """
7982
+
7983
+ def __init__(self):
7984
+ r"""
7985
+ :param _InstanceSet: <p>沙箱实例列表</p>
7986
+ :type InstanceSet: list of SandboxInstance
7987
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
7988
+ :type RequestId: str
7989
+ """
7990
+ self._InstanceSet = None
7991
+ self._RequestId = None
7992
+
7993
+ @property
7994
+ def InstanceSet(self):
7995
+ r"""<p>沙箱实例列表</p>
7996
+ :rtype: list of SandboxInstance
7997
+ """
7998
+ return self._InstanceSet
7999
+
8000
+ @InstanceSet.setter
8001
+ def InstanceSet(self, InstanceSet):
8002
+ self._InstanceSet = InstanceSet
8003
+
8004
+ @property
8005
+ def RequestId(self):
8006
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
8007
+ :rtype: str
8008
+ """
8009
+ return self._RequestId
8010
+
8011
+ @RequestId.setter
8012
+ def RequestId(self, RequestId):
8013
+ self._RequestId = RequestId
8014
+
8015
+
8016
+ def _deserialize(self, params):
8017
+ if params.get("InstanceSet") is not None:
8018
+ self._InstanceSet = []
8019
+ for item in params.get("InstanceSet"):
8020
+ obj = SandboxInstance()
8021
+ obj._deserialize(item)
8022
+ self._InstanceSet.append(obj)
8023
+ self._RequestId = params.get("RequestId")
8024
+
8025
+
7942
8026
  class DescribeSandboxSnapshotListRequest(AbstractModel):
7943
8027
  r"""DescribeSandboxSnapshotList请求参数结构体
7944
8028
 
@@ -11695,7 +11779,7 @@ class ResumeSandboxInstanceResponse(AbstractModel):
11695
11779
 
11696
11780
 
11697
11781
  class SandboxInstance(AbstractModel):
11698
- r"""沙箱实例结构体
11782
+ r"""沙箱实例结构体信息
11699
11783
 
11700
11784
  """
11701
11785
 
@@ -14085,9 +14169,9 @@ class UpdateSandboxInstanceRequest(AbstractModel):
14085
14169
  r"""
14086
14170
  :param _InstanceId: <p>沙箱实例ID</p>
14087
14171
  :type InstanceId: str
14088
- :param _Timeout: <p>新的超时时间(从设置时开始重新计算超时),支持格式:5m、300s、1h等。最小30s,最大24h。如果不指定则保持原有超时设置</p>
14172
+ :param _Timeout: 手动设置实例还需运行多久,如 5m、300s、1h。未传入时保持原设置;传入后从本次设置开始重新计时。仅正在运行、且未设置为永久运行的实例可修改。修改时不会缩短已获得的自动续期时间。
14089
14173
  :type Timeout: str
14090
- :param _Metadata: <p>沙箱实例元数据</p>
14174
+ :param _Metadata: 实例元数据。
14091
14175
  :type Metadata: list of MetadataVar
14092
14176
  """
14093
14177
  self._InstanceId = None
@@ -14107,7 +14191,7 @@ class UpdateSandboxInstanceRequest(AbstractModel):
14107
14191
 
14108
14192
  @property
14109
14193
  def Timeout(self):
14110
- r"""<p>新的超时时间(从设置时开始重新计算超时),支持格式:5m、300s、1h等。最小30s,最大24h。如果不指定则保持原有超时设置</p>
14194
+ r"""手动设置实例还需运行多久,如 5m、300s、1h。未传入时保持原设置;传入后从本次设置开始重新计时。仅正在运行、且未设置为永久运行的实例可修改。修改时不会缩短已获得的自动续期时间。
14111
14195
  :rtype: str
14112
14196
  """
14113
14197
  return self._Timeout
@@ -14118,7 +14202,7 @@ class UpdateSandboxInstanceRequest(AbstractModel):
14118
14202
 
14119
14203
  @property
14120
14204
  def Metadata(self):
14121
- r"""<p>沙箱实例元数据</p>
14205
+ r"""实例元数据。
14122
14206
  :rtype: list of MetadataVar
14123
14207
  """
14124
14208
  return self._Metadata
@@ -14383,10 +14467,10 @@ class VolumeRef(AbstractModel):
14383
14467
 
14384
14468
  def __init__(self):
14385
14469
  r"""
14386
- :param _VolumeName: Volume 名称;服务端在当前认证 AppId 下解析为稳定 VolumeId
14470
+ :param _VolumeName: <p>Volume 名称;服务端在当前认证 AppId 下解析为稳定 VolumeId</p>
14387
14471
  注意:此字段可能返回 null,表示取不到有效值。
14388
14472
  :type VolumeName: str
14389
- :param _VolumeId: 稳定 Volume ID,格式 vol-xxxxxxxx
14473
+ :param _VolumeId: <p>稳定 Volume ID,格式 vol-xxxxxxxx</p>
14390
14474
  注意:此字段可能返回 null,表示取不到有效值。
14391
14475
  :type VolumeId: str
14392
14476
  """
@@ -14395,7 +14479,7 @@ class VolumeRef(AbstractModel):
14395
14479
 
14396
14480
  @property
14397
14481
  def VolumeName(self):
14398
- r"""Volume 名称;服务端在当前认证 AppId 下解析为稳定 VolumeId
14482
+ r"""<p>Volume 名称;服务端在当前认证 AppId 下解析为稳定 VolumeId</p>
14399
14483
  注意:此字段可能返回 null,表示取不到有效值。
14400
14484
  :rtype: str
14401
14485
  """
@@ -14407,7 +14491,7 @@ class VolumeRef(AbstractModel):
14407
14491
 
14408
14492
  @property
14409
14493
  def VolumeId(self):
14410
- r"""稳定 Volume ID,格式 vol-xxxxxxxx
14494
+ r"""<p>稳定 Volume ID,格式 vol-xxxxxxxx</p>
14411
14495
  注意:此字段可能返回 null,表示取不到有效值。
14412
14496
  :rtype: str
14413
14497
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-ags
3
- Version: 3.1.189
3
+ Version: 3.1.196
4
4
  Summary: Tencent Cloud Ags SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3.6
17
17
  Classifier: Programming Language :: Python :: 3.7
18
- Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.189
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.196
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.196
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.189