alibabacloud-sls20201230 5.7.2__py3-none-any.whl → 5.7.3__py3-none-any.whl

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.
@@ -1 +1 @@
1
- __version__ = '5.7.2'
1
+ __version__ = '5.7.3'
@@ -4225,22 +4225,26 @@ class Client(OpenApiClient):
4225
4225
  def delete_agent_instance_config_with_options(
4226
4226
  self,
4227
4227
  config_type: str,
4228
- request: sls_20201230_models.DeleteAgentInstanceConfigRequest,
4228
+ tmp_req: sls_20201230_models.DeleteAgentInstanceConfigRequest,
4229
4229
  headers: Dict[str, str],
4230
4230
  runtime: util_models.RuntimeOptions,
4231
4231
  ) -> sls_20201230_models.DeleteAgentInstanceConfigResponse:
4232
4232
  """
4233
4233
  @summary DeleteAgentInstanceConfig
4234
4234
 
4235
- @param request: DeleteAgentInstanceConfigRequest
4235
+ @param tmp_req: DeleteAgentInstanceConfigRequest
4236
4236
  @param headers: map
4237
4237
  @param runtime: runtime options for this request RuntimeOptions
4238
4238
  @return: DeleteAgentInstanceConfigResponse
4239
4239
  """
4240
- UtilClient.validate_model(request)
4240
+ UtilClient.validate_model(tmp_req)
4241
+ request = sls_20201230_models.DeleteAgentInstanceConfigShrinkRequest()
4242
+ OpenApiUtilClient.convert(tmp_req, request)
4243
+ if not UtilClient.is_unset(tmp_req.attributes):
4244
+ request.attributes_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.attributes, 'attributes', 'json')
4241
4245
  query = {}
4242
- if not UtilClient.is_unset(request.attributes):
4243
- query['attributes'] = request.attributes
4246
+ if not UtilClient.is_unset(request.attributes_shrink):
4247
+ query['attributes'] = request.attributes_shrink
4244
4248
  req = open_api_models.OpenApiRequest(
4245
4249
  headers=headers,
4246
4250
  query=OpenApiUtilClient.query(query)
@@ -4264,22 +4268,26 @@ class Client(OpenApiClient):
4264
4268
  async def delete_agent_instance_config_with_options_async(
4265
4269
  self,
4266
4270
  config_type: str,
4267
- request: sls_20201230_models.DeleteAgentInstanceConfigRequest,
4271
+ tmp_req: sls_20201230_models.DeleteAgentInstanceConfigRequest,
4268
4272
  headers: Dict[str, str],
4269
4273
  runtime: util_models.RuntimeOptions,
4270
4274
  ) -> sls_20201230_models.DeleteAgentInstanceConfigResponse:
4271
4275
  """
4272
4276
  @summary DeleteAgentInstanceConfig
4273
4277
 
4274
- @param request: DeleteAgentInstanceConfigRequest
4278
+ @param tmp_req: DeleteAgentInstanceConfigRequest
4275
4279
  @param headers: map
4276
4280
  @param runtime: runtime options for this request RuntimeOptions
4277
4281
  @return: DeleteAgentInstanceConfigResponse
4278
4282
  """
4279
- UtilClient.validate_model(request)
4283
+ UtilClient.validate_model(tmp_req)
4284
+ request = sls_20201230_models.DeleteAgentInstanceConfigShrinkRequest()
4285
+ OpenApiUtilClient.convert(tmp_req, request)
4286
+ if not UtilClient.is_unset(tmp_req.attributes):
4287
+ request.attributes_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.attributes, 'attributes', 'json')
4280
4288
  query = {}
4281
- if not UtilClient.is_unset(request.attributes):
4282
- query['attributes'] = request.attributes
4289
+ if not UtilClient.is_unset(request.attributes_shrink):
4290
+ query['attributes'] = request.attributes_shrink
4283
4291
  req = open_api_models.OpenApiRequest(
4284
4292
  headers=headers,
4285
4293
  query=OpenApiUtilClient.query(query)
@@ -7885,22 +7893,26 @@ class Client(OpenApiClient):
7885
7893
  def get_agent_instance_config_with_options(
7886
7894
  self,
7887
7895
  config_type: str,
7888
- request: sls_20201230_models.GetAgentInstanceConfigRequest,
7896
+ tmp_req: sls_20201230_models.GetAgentInstanceConfigRequest,
7889
7897
  headers: Dict[str, str],
7890
7898
  runtime: util_models.RuntimeOptions,
7891
7899
  ) -> sls_20201230_models.GetAgentInstanceConfigResponse:
7892
7900
  """
7893
7901
  @summary GetAgentInstanceConfig
7894
7902
 
7895
- @param request: GetAgentInstanceConfigRequest
7903
+ @param tmp_req: GetAgentInstanceConfigRequest
7896
7904
  @param headers: map
7897
7905
  @param runtime: runtime options for this request RuntimeOptions
7898
7906
  @return: GetAgentInstanceConfigResponse
7899
7907
  """
7900
- UtilClient.validate_model(request)
7908
+ UtilClient.validate_model(tmp_req)
7909
+ request = sls_20201230_models.GetAgentInstanceConfigShrinkRequest()
7910
+ OpenApiUtilClient.convert(tmp_req, request)
7911
+ if not UtilClient.is_unset(tmp_req.attributes):
7912
+ request.attributes_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.attributes, 'attributes', 'json')
7901
7913
  query = {}
7902
- if not UtilClient.is_unset(request.attributes):
7903
- query['attributes'] = request.attributes
7914
+ if not UtilClient.is_unset(request.attributes_shrink):
7915
+ query['attributes'] = request.attributes_shrink
7904
7916
  req = open_api_models.OpenApiRequest(
7905
7917
  headers=headers,
7906
7918
  query=OpenApiUtilClient.query(query)
@@ -7924,22 +7936,26 @@ class Client(OpenApiClient):
7924
7936
  async def get_agent_instance_config_with_options_async(
7925
7937
  self,
7926
7938
  config_type: str,
7927
- request: sls_20201230_models.GetAgentInstanceConfigRequest,
7939
+ tmp_req: sls_20201230_models.GetAgentInstanceConfigRequest,
7928
7940
  headers: Dict[str, str],
7929
7941
  runtime: util_models.RuntimeOptions,
7930
7942
  ) -> sls_20201230_models.GetAgentInstanceConfigResponse:
7931
7943
  """
7932
7944
  @summary GetAgentInstanceConfig
7933
7945
 
7934
- @param request: GetAgentInstanceConfigRequest
7946
+ @param tmp_req: GetAgentInstanceConfigRequest
7935
7947
  @param headers: map
7936
7948
  @param runtime: runtime options for this request RuntimeOptions
7937
7949
  @return: GetAgentInstanceConfigResponse
7938
7950
  """
7939
- UtilClient.validate_model(request)
7951
+ UtilClient.validate_model(tmp_req)
7952
+ request = sls_20201230_models.GetAgentInstanceConfigShrinkRequest()
7953
+ OpenApiUtilClient.convert(tmp_req, request)
7954
+ if not UtilClient.is_unset(tmp_req.attributes):
7955
+ request.attributes_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.attributes, 'attributes', 'json')
7940
7956
  query = {}
7941
- if not UtilClient.is_unset(request.attributes):
7942
- query['attributes'] = request.attributes
7957
+ if not UtilClient.is_unset(request.attributes_shrink):
7958
+ query['attributes'] = request.attributes_shrink
7943
7959
  req = open_api_models.OpenApiRequest(
7944
7960
  headers=headers,
7945
7961
  query=OpenApiUtilClient.query(query)
@@ -12954,8 +12970,6 @@ class Client(OpenApiClient):
12954
12970
  """
12955
12971
  UtilClient.validate_model(request)
12956
12972
  query = {}
12957
- if not UtilClient.is_unset(request.attributes):
12958
- query['attributes'] = request.attributes
12959
12973
  if not UtilClient.is_unset(request.config_type):
12960
12974
  query['configType'] = request.config_type
12961
12975
  if not UtilClient.is_unset(request.offset):
@@ -12998,8 +13012,6 @@ class Client(OpenApiClient):
12998
13012
  """
12999
13013
  UtilClient.validate_model(request)
13000
13014
  query = {}
13001
- if not UtilClient.is_unset(request.attributes):
13002
- query['attributes'] = request.attributes
13003
13015
  if not UtilClient.is_unset(request.config_type):
13004
13016
  query['configType'] = request.config_type
13005
13017
  if not UtilClient.is_unset(request.offset):
@@ -14320,7 +14332,7 @@ class Client(OpenApiClient):
14320
14332
  runtime: util_models.RuntimeOptions,
14321
14333
  ) -> sls_20201230_models.ListDownloadJobsResponse:
14322
14334
  """
14323
- @summary 列举下载任务
14335
+ @summary Queries a list of log download tasks in a project.
14324
14336
 
14325
14337
  @param request: ListDownloadJobsRequest
14326
14338
  @param headers: map
@@ -14366,7 +14378,7 @@ class Client(OpenApiClient):
14366
14378
  runtime: util_models.RuntimeOptions,
14367
14379
  ) -> sls_20201230_models.ListDownloadJobsResponse:
14368
14380
  """
14369
- @summary 列举下载任务
14381
+ @summary Queries a list of log download tasks in a project.
14370
14382
 
14371
14383
  @param request: ListDownloadJobsRequest
14372
14384
  @param headers: map
@@ -14410,7 +14422,7 @@ class Client(OpenApiClient):
14410
14422
  request: sls_20201230_models.ListDownloadJobsRequest,
14411
14423
  ) -> sls_20201230_models.ListDownloadJobsResponse:
14412
14424
  """
14413
- @summary 列举下载任务
14425
+ @summary Queries a list of log download tasks in a project.
14414
14426
 
14415
14427
  @param request: ListDownloadJobsRequest
14416
14428
  @return: ListDownloadJobsResponse
@@ -14425,7 +14437,7 @@ class Client(OpenApiClient):
14425
14437
  request: sls_20201230_models.ListDownloadJobsRequest,
14426
14438
  ) -> sls_20201230_models.ListDownloadJobsResponse:
14427
14439
  """
14428
- @summary 列举下载任务
14440
+ @summary Queries a list of log download tasks in a project.
14429
14441
 
14430
14442
  @param request: ListDownloadJobsRequest
14431
14443
  @return: ListDownloadJobsResponse
@@ -19583,22 +19595,26 @@ class Client(OpenApiClient):
19583
19595
  def update_agent_instance_config_with_options(
19584
19596
  self,
19585
19597
  config_type: str,
19586
- request: sls_20201230_models.UpdateAgentInstanceConfigRequest,
19598
+ tmp_req: sls_20201230_models.UpdateAgentInstanceConfigRequest,
19587
19599
  headers: Dict[str, str],
19588
19600
  runtime: util_models.RuntimeOptions,
19589
19601
  ) -> sls_20201230_models.UpdateAgentInstanceConfigResponse:
19590
19602
  """
19591
19603
  @summary UpdateAgentInstanceConfig
19592
19604
 
19593
- @param request: UpdateAgentInstanceConfigRequest
19605
+ @param tmp_req: UpdateAgentInstanceConfigRequest
19594
19606
  @param headers: map
19595
19607
  @param runtime: runtime options for this request RuntimeOptions
19596
19608
  @return: UpdateAgentInstanceConfigResponse
19597
19609
  """
19598
- UtilClient.validate_model(request)
19610
+ UtilClient.validate_model(tmp_req)
19611
+ request = sls_20201230_models.UpdateAgentInstanceConfigShrinkRequest()
19612
+ OpenApiUtilClient.convert(tmp_req, request)
19613
+ if not UtilClient.is_unset(tmp_req.attributes):
19614
+ request.attributes_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.attributes, 'attributes', 'json')
19599
19615
  query = {}
19600
- if not UtilClient.is_unset(request.attributes):
19601
- query['attributes'] = request.attributes
19616
+ if not UtilClient.is_unset(request.attributes_shrink):
19617
+ query['attributes'] = request.attributes_shrink
19602
19618
  body = {}
19603
19619
  if not UtilClient.is_unset(request.config):
19604
19620
  body['config'] = request.config
@@ -19628,22 +19644,26 @@ class Client(OpenApiClient):
19628
19644
  async def update_agent_instance_config_with_options_async(
19629
19645
  self,
19630
19646
  config_type: str,
19631
- request: sls_20201230_models.UpdateAgentInstanceConfigRequest,
19647
+ tmp_req: sls_20201230_models.UpdateAgentInstanceConfigRequest,
19632
19648
  headers: Dict[str, str],
19633
19649
  runtime: util_models.RuntimeOptions,
19634
19650
  ) -> sls_20201230_models.UpdateAgentInstanceConfigResponse:
19635
19651
  """
19636
19652
  @summary UpdateAgentInstanceConfig
19637
19653
 
19638
- @param request: UpdateAgentInstanceConfigRequest
19654
+ @param tmp_req: UpdateAgentInstanceConfigRequest
19639
19655
  @param headers: map
19640
19656
  @param runtime: runtime options for this request RuntimeOptions
19641
19657
  @return: UpdateAgentInstanceConfigResponse
19642
19658
  """
19643
- UtilClient.validate_model(request)
19659
+ UtilClient.validate_model(tmp_req)
19660
+ request = sls_20201230_models.UpdateAgentInstanceConfigShrinkRequest()
19661
+ OpenApiUtilClient.convert(tmp_req, request)
19662
+ if not UtilClient.is_unset(tmp_req.attributes):
19663
+ request.attributes_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.attributes, 'attributes', 'json')
19644
19664
  query = {}
19645
- if not UtilClient.is_unset(request.attributes):
19646
- query['attributes'] = request.attributes
19665
+ if not UtilClient.is_unset(request.attributes_shrink):
19666
+ query['attributes'] = request.attributes_shrink
19647
19667
  body = {}
19648
19668
  if not UtilClient.is_unset(request.config):
19649
19669
  body['config'] = request.config
@@ -4,6 +4,39 @@ from Tea.model import TeaModel
4
4
  from typing import List, Dict, Any
5
5
 
6
6
 
7
+ class AgentInstanceConfigGrayConfigs(TeaModel):
8
+ def __init__(
9
+ self,
10
+ condition: str = None,
11
+ content: str = None,
12
+ ):
13
+ self.condition = condition
14
+ self.content = content
15
+
16
+ def validate(self):
17
+ pass
18
+
19
+ def to_map(self):
20
+ _map = super().to_map()
21
+ if _map is not None:
22
+ return _map
23
+
24
+ result = dict()
25
+ if self.condition is not None:
26
+ result['condition'] = self.condition
27
+ if self.content is not None:
28
+ result['content'] = self.content
29
+ return result
30
+
31
+ def from_map(self, m: dict = None):
32
+ m = m or dict()
33
+ if m.get('condition') is not None:
34
+ self.condition = m.get('condition')
35
+ if m.get('content') is not None:
36
+ self.content = m.get('content')
37
+ return self
38
+
39
+
7
40
  class AlertTag(TeaModel):
8
41
  def __init__(
9
42
  self,
@@ -5395,12 +5428,11 @@ class ConsumerGroupUpdateCheckPointResponse(TeaModel):
5395
5428
  class CreateAgentInstanceConfigRequest(TeaModel):
5396
5429
  def __init__(
5397
5430
  self,
5398
- attributes: str = None,
5431
+ attributes: Dict[str, str] = None,
5399
5432
  config: str = None,
5400
5433
  config_type: str = None,
5401
- gray_configs: str = None,
5434
+ gray_configs: List[AgentInstanceConfigGrayConfigs] = None,
5402
5435
  ):
5403
- # This parameter is required.
5404
5436
  self.attributes = attributes
5405
5437
  # This parameter is required.
5406
5438
  self.config = config
@@ -5409,7 +5441,10 @@ class CreateAgentInstanceConfigRequest(TeaModel):
5409
5441
  self.gray_configs = gray_configs
5410
5442
 
5411
5443
  def validate(self):
5412
- pass
5444
+ if self.gray_configs:
5445
+ for k in self.gray_configs:
5446
+ if k:
5447
+ k.validate()
5413
5448
 
5414
5449
  def to_map(self):
5415
5450
  _map = super().to_map()
@@ -5423,8 +5458,10 @@ class CreateAgentInstanceConfigRequest(TeaModel):
5423
5458
  result['config'] = self.config
5424
5459
  if self.config_type is not None:
5425
5460
  result['configType'] = self.config_type
5461
+ result['grayConfigs'] = []
5426
5462
  if self.gray_configs is not None:
5427
- result['grayConfigs'] = self.gray_configs
5463
+ for k in self.gray_configs:
5464
+ result['grayConfigs'].append(k.to_map() if k else None)
5428
5465
  return result
5429
5466
 
5430
5467
  def from_map(self, m: dict = None):
@@ -5435,8 +5472,11 @@ class CreateAgentInstanceConfigRequest(TeaModel):
5435
5472
  self.config = m.get('config')
5436
5473
  if m.get('configType') is not None:
5437
5474
  self.config_type = m.get('configType')
5475
+ self.gray_configs = []
5438
5476
  if m.get('grayConfigs') is not None:
5439
- self.gray_configs = m.get('grayConfigs')
5477
+ for k in m.get('grayConfigs'):
5478
+ temp_model = AgentInstanceConfigGrayConfigs()
5479
+ self.gray_configs.append(temp_model.from_map(k))
5440
5480
  return self
5441
5481
 
5442
5482
 
@@ -7930,7 +7970,7 @@ class CreateTicketRequest(TeaModel):
7930
7970
  # * If you use a Security Token Service (STS) token to call this operation, the validity period of the access token is the smallest value among accessTokenExpirationTime, expirationTime, and the validity period of the STS token.
7931
7971
  self.access_token_expiration_time = access_token_expiration_time
7932
7972
  # * You must use the Simple Log Service endpoint for the China (Shanghai) or Singapore region to call the CreateTicket operation. After you obtain the ticket, you can use the ticket regardless of the region.
7933
- # * The validity period for the URL of the console page that you want to embed. Unit: seconds. Default value: 86400, which specifies one day. Valid values: 0 to 2592000. The value 2592000 specifies 30 days.
7973
+ # * The validity period for the URL of the console page that you want to embed. Unit: seconds. Default value: 86400 (one day). Valid values: 0 to 2592000 (30 days).
7934
7974
  self.expiration_time = expiration_time
7935
7975
 
7936
7976
  def validate(self):
@@ -8029,9 +8069,8 @@ class CreateTicketResponse(TeaModel):
8029
8069
  class DeleteAgentInstanceConfigRequest(TeaModel):
8030
8070
  def __init__(
8031
8071
  self,
8032
- attributes: str = None,
8072
+ attributes: Dict[str, str] = None,
8033
8073
  ):
8034
- # This parameter is required.
8035
8074
  self.attributes = attributes
8036
8075
 
8037
8076
  def validate(self):
@@ -8054,6 +8093,33 @@ class DeleteAgentInstanceConfigRequest(TeaModel):
8054
8093
  return self
8055
8094
 
8056
8095
 
8096
+ class DeleteAgentInstanceConfigShrinkRequest(TeaModel):
8097
+ def __init__(
8098
+ self,
8099
+ attributes_shrink: str = None,
8100
+ ):
8101
+ self.attributes_shrink = attributes_shrink
8102
+
8103
+ def validate(self):
8104
+ pass
8105
+
8106
+ def to_map(self):
8107
+ _map = super().to_map()
8108
+ if _map is not None:
8109
+ return _map
8110
+
8111
+ result = dict()
8112
+ if self.attributes_shrink is not None:
8113
+ result['attributes'] = self.attributes_shrink
8114
+ return result
8115
+
8116
+ def from_map(self, m: dict = None):
8117
+ m = m or dict()
8118
+ if m.get('attributes') is not None:
8119
+ self.attributes_shrink = m.get('attributes')
8120
+ return self
8121
+
8122
+
8057
8123
  class DeleteAgentInstanceConfigResponse(TeaModel):
8058
8124
  def __init__(
8059
8125
  self,
@@ -9332,9 +9398,8 @@ class EnableScheduledSQLResponse(TeaModel):
9332
9398
  class GetAgentInstanceConfigRequest(TeaModel):
9333
9399
  def __init__(
9334
9400
  self,
9335
- attributes: str = None,
9401
+ attributes: Dict[str, str] = None,
9336
9402
  ):
9337
- # This parameter is required.
9338
9403
  self.attributes = attributes
9339
9404
 
9340
9405
  def validate(self):
@@ -9357,14 +9422,41 @@ class GetAgentInstanceConfigRequest(TeaModel):
9357
9422
  return self
9358
9423
 
9359
9424
 
9425
+ class GetAgentInstanceConfigShrinkRequest(TeaModel):
9426
+ def __init__(
9427
+ self,
9428
+ attributes_shrink: str = None,
9429
+ ):
9430
+ self.attributes_shrink = attributes_shrink
9431
+
9432
+ def validate(self):
9433
+ pass
9434
+
9435
+ def to_map(self):
9436
+ _map = super().to_map()
9437
+ if _map is not None:
9438
+ return _map
9439
+
9440
+ result = dict()
9441
+ if self.attributes_shrink is not None:
9442
+ result['attributes'] = self.attributes_shrink
9443
+ return result
9444
+
9445
+ def from_map(self, m: dict = None):
9446
+ m = m or dict()
9447
+ if m.get('attributes') is not None:
9448
+ self.attributes_shrink = m.get('attributes')
9449
+ return self
9450
+
9451
+
9360
9452
  class GetAgentInstanceConfigResponseBody(TeaModel):
9361
9453
  def __init__(
9362
9454
  self,
9363
- attributes: str = None,
9455
+ attributes: Dict[str, str] = None,
9364
9456
  config: str = None,
9365
9457
  config_type: str = None,
9366
9458
  create_time: int = None,
9367
- gray_configs: List[Dict[str, str]] = None,
9459
+ gray_configs: List[AgentInstanceConfigGrayConfigs] = None,
9368
9460
  last_modify_time: int = None,
9369
9461
  ):
9370
9462
  self.attributes = attributes
@@ -9375,7 +9467,10 @@ class GetAgentInstanceConfigResponseBody(TeaModel):
9375
9467
  self.last_modify_time = last_modify_time
9376
9468
 
9377
9469
  def validate(self):
9378
- pass
9470
+ if self.gray_configs:
9471
+ for k in self.gray_configs:
9472
+ if k:
9473
+ k.validate()
9379
9474
 
9380
9475
  def to_map(self):
9381
9476
  _map = super().to_map()
@@ -9391,8 +9486,10 @@ class GetAgentInstanceConfigResponseBody(TeaModel):
9391
9486
  result['configType'] = self.config_type
9392
9487
  if self.create_time is not None:
9393
9488
  result['createTime'] = self.create_time
9489
+ result['grayConfigs'] = []
9394
9490
  if self.gray_configs is not None:
9395
- result['grayConfigs'] = self.gray_configs
9491
+ for k in self.gray_configs:
9492
+ result['grayConfigs'].append(k.to_map() if k else None)
9396
9493
  if self.last_modify_time is not None:
9397
9494
  result['lastModifyTime'] = self.last_modify_time
9398
9495
  return result
@@ -9407,8 +9504,11 @@ class GetAgentInstanceConfigResponseBody(TeaModel):
9407
9504
  self.config_type = m.get('configType')
9408
9505
  if m.get('createTime') is not None:
9409
9506
  self.create_time = m.get('createTime')
9507
+ self.gray_configs = []
9410
9508
  if m.get('grayConfigs') is not None:
9411
- self.gray_configs = m.get('grayConfigs')
9509
+ for k in m.get('grayConfigs'):
9510
+ temp_model = AgentInstanceConfigGrayConfigs()
9511
+ self.gray_configs.append(temp_model.from_map(k))
9412
9512
  if m.get('lastModifyTime') is not None:
9413
9513
  self.last_modify_time = m.get('lastModifyTime')
9414
9514
  return self
@@ -13393,12 +13493,10 @@ class GetStoreViewIndexResponse(TeaModel):
13393
13493
  class ListAgentInstanceConfigsRequest(TeaModel):
13394
13494
  def __init__(
13395
13495
  self,
13396
- attributes: str = None,
13397
13496
  config_type: str = None,
13398
13497
  offset: int = None,
13399
13498
  size: int = None,
13400
13499
  ):
13401
- self.attributes = attributes
13402
13500
  self.config_type = config_type
13403
13501
  self.offset = offset
13404
13502
  self.size = size
@@ -13412,8 +13510,6 @@ class ListAgentInstanceConfigsRequest(TeaModel):
13412
13510
  return _map
13413
13511
 
13414
13512
  result = dict()
13415
- if self.attributes is not None:
13416
- result['attributes'] = self.attributes
13417
13513
  if self.config_type is not None:
13418
13514
  result['configType'] = self.config_type
13419
13515
  if self.offset is not None:
@@ -13424,8 +13520,6 @@ class ListAgentInstanceConfigsRequest(TeaModel):
13424
13520
 
13425
13521
  def from_map(self, m: dict = None):
13426
13522
  m = m or dict()
13427
- if m.get('attributes') is not None:
13428
- self.attributes = m.get('attributes')
13429
13523
  if m.get('configType') is not None:
13430
13524
  self.config_type = m.get('configType')
13431
13525
  if m.get('offset') is not None:
@@ -15539,7 +15633,7 @@ class ListDownloadJobsResponseBodyResults(TeaModel):
15539
15633
  self.description = description
15540
15634
  # 任务显示名称
15541
15635
  self.display_name = display_name
15542
- # 任务执行细节
15636
+ # The execution details.
15543
15637
  self.execution_details = execution_details
15544
15638
  # 代表资源名称的资源属性字段
15545
15639
  self.name = name
@@ -15603,7 +15697,7 @@ class ListDownloadJobsResponseBody(TeaModel):
15603
15697
  total: int = None,
15604
15698
  ):
15605
15699
  self.count = count
15606
- # The log download tasks.
15700
+ # Array, to return a list of log download tasks.
15607
15701
  self.results = results
15608
15702
  self.total = total
15609
15703
 
@@ -19462,18 +19556,20 @@ class UntagResourcesResponse(TeaModel):
19462
19556
  class UpdateAgentInstanceConfigRequest(TeaModel):
19463
19557
  def __init__(
19464
19558
  self,
19465
- attributes: str = None,
19559
+ attributes: Dict[str, str] = None,
19466
19560
  config: str = None,
19467
- gray_configs: str = None,
19561
+ gray_configs: List[AgentInstanceConfigGrayConfigs] = None,
19468
19562
  ):
19469
- # This parameter is required.
19470
19563
  self.attributes = attributes
19471
19564
  # This parameter is required.
19472
19565
  self.config = config
19473
19566
  self.gray_configs = gray_configs
19474
19567
 
19475
19568
  def validate(self):
19476
- pass
19569
+ if self.gray_configs:
19570
+ for k in self.gray_configs:
19571
+ if k:
19572
+ k.validate()
19477
19573
 
19478
19574
  def to_map(self):
19479
19575
  _map = super().to_map()
@@ -19485,8 +19581,10 @@ class UpdateAgentInstanceConfigRequest(TeaModel):
19485
19581
  result['attributes'] = self.attributes
19486
19582
  if self.config is not None:
19487
19583
  result['config'] = self.config
19584
+ result['grayConfigs'] = []
19488
19585
  if self.gray_configs is not None:
19489
- result['grayConfigs'] = self.gray_configs
19586
+ for k in self.gray_configs:
19587
+ result['grayConfigs'].append(k.to_map() if k else None)
19490
19588
  return result
19491
19589
 
19492
19590
  def from_map(self, m: dict = None):
@@ -19495,8 +19593,59 @@ class UpdateAgentInstanceConfigRequest(TeaModel):
19495
19593
  self.attributes = m.get('attributes')
19496
19594
  if m.get('config') is not None:
19497
19595
  self.config = m.get('config')
19596
+ self.gray_configs = []
19597
+ if m.get('grayConfigs') is not None:
19598
+ for k in m.get('grayConfigs'):
19599
+ temp_model = AgentInstanceConfigGrayConfigs()
19600
+ self.gray_configs.append(temp_model.from_map(k))
19601
+ return self
19602
+
19603
+
19604
+ class UpdateAgentInstanceConfigShrinkRequest(TeaModel):
19605
+ def __init__(
19606
+ self,
19607
+ attributes_shrink: str = None,
19608
+ config: str = None,
19609
+ gray_configs: List[AgentInstanceConfigGrayConfigs] = None,
19610
+ ):
19611
+ self.attributes_shrink = attributes_shrink
19612
+ # This parameter is required.
19613
+ self.config = config
19614
+ self.gray_configs = gray_configs
19615
+
19616
+ def validate(self):
19617
+ if self.gray_configs:
19618
+ for k in self.gray_configs:
19619
+ if k:
19620
+ k.validate()
19621
+
19622
+ def to_map(self):
19623
+ _map = super().to_map()
19624
+ if _map is not None:
19625
+ return _map
19626
+
19627
+ result = dict()
19628
+ if self.attributes_shrink is not None:
19629
+ result['attributes'] = self.attributes_shrink
19630
+ if self.config is not None:
19631
+ result['config'] = self.config
19632
+ result['grayConfigs'] = []
19633
+ if self.gray_configs is not None:
19634
+ for k in self.gray_configs:
19635
+ result['grayConfigs'].append(k.to_map() if k else None)
19636
+ return result
19637
+
19638
+ def from_map(self, m: dict = None):
19639
+ m = m or dict()
19640
+ if m.get('attributes') is not None:
19641
+ self.attributes_shrink = m.get('attributes')
19642
+ if m.get('config') is not None:
19643
+ self.config = m.get('config')
19644
+ self.gray_configs = []
19498
19645
  if m.get('grayConfigs') is not None:
19499
- self.gray_configs = m.get('grayConfigs')
19646
+ for k in m.get('grayConfigs'):
19647
+ temp_model = AgentInstanceConfigGrayConfigs()
19648
+ self.gray_configs.append(temp_model.from_map(k))
19500
19649
  return self
19501
19650
 
19502
19651
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: alibabacloud-sls20201230
3
- Version: 5.7.2
3
+ Version: 5.7.3
4
4
  Summary: Alibaba Cloud Log Service (20201230) SDK Library for Python
5
5
  Home-page: https://github.com/aliyun/alibabacloud-python-sdk
6
6
  Author: Alibaba Cloud SDK
@@ -0,0 +1,8 @@
1
+ alibabacloud_sls20201230/__init__.py,sha256=Yh_4VAj_DnCaV7q-wal5T0MaLF5rDcGEJv0BR3dpvHA,21
2
+ alibabacloud_sls20201230/client.py,sha256=Xb1tF8USSGENcgzh09ggeutE-FGvMZGhJzsB7jIHYM4,1119047
3
+ alibabacloud_sls20201230/models.py,sha256=4v2HK5PndYVpxV7RU1dOXLd7XJaK68t0s7wsTo3lSrU,714679
4
+ alibabacloud_sls20201230-5.7.3.dist-info/LICENSE,sha256=0CFItL6bHvxqS44T6vlLoW2R4Zaic304OO3WxN0oXF0,600
5
+ alibabacloud_sls20201230-5.7.3.dist-info/METADATA,sha256=rPoF2FrA6xGiRBBctJNj_fnm8ELazNNZlibLoGVautk,2318
6
+ alibabacloud_sls20201230-5.7.3.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
7
+ alibabacloud_sls20201230-5.7.3.dist-info/top_level.txt,sha256=_m_h-kYhApsSWSuotU7YSM9-BDg5IBt6N8Tw-HaO3zU,25
8
+ alibabacloud_sls20201230-5.7.3.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- alibabacloud_sls20201230/__init__.py,sha256=Vkt9Ec3Z0ZK46oCno3lO90maJsZDwDA7Gg19Dif0-YA,21
2
- alibabacloud_sls20201230/client.py,sha256=SlkIckeaYqDmrSwjw2xP7p7_QuHCv01grXs7cX4O98I,1117115
3
- alibabacloud_sls20201230/models.py,sha256=6ime-enXsue8oZ5z6Nd-j2c1L6wC9J6xDUoFpDzuwvI,710144
4
- alibabacloud_sls20201230-5.7.2.dist-info/LICENSE,sha256=0CFItL6bHvxqS44T6vlLoW2R4Zaic304OO3WxN0oXF0,600
5
- alibabacloud_sls20201230-5.7.2.dist-info/METADATA,sha256=_ALw2QOXkOP9bi9aMJjWQhrdNeQFERubB22IbRsX51E,2318
6
- alibabacloud_sls20201230-5.7.2.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
7
- alibabacloud_sls20201230-5.7.2.dist-info/top_level.txt,sha256=_m_h-kYhApsSWSuotU7YSM9-BDg5IBt6N8Tw-HaO3zU,25
8
- alibabacloud_sls20201230-5.7.2.dist-info/RECORD,,