bce-python-sdk 0.9.35__py3-none-any.whl → 0.9.39__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.
baidubce/__init__.py CHANGED
@@ -18,7 +18,7 @@ from builtins import bytes
18
18
  from . import protocol
19
19
 
20
20
 
21
- SDK_VERSION = b'0.9.35'
21
+ SDK_VERSION = b'0.9.39'
22
22
  DEFAULT_SERVICE_DOMAIN = b'bcebos.com'
23
23
  URL_PREFIX = b'/v1'
24
24
  DEFAULT_ENCODING = 'UTF-8'
@@ -77,6 +77,17 @@ class BccClient(bce_base_client.BceBaseClient):
77
77
  config, bce_v1_signer.sign, [handler.parse_error, body_parser],
78
78
  http_method, prefix + path, body, headers, params)
79
79
 
80
+ def _send_action_request(self, http_method, path,
81
+ body=None, headers=None, params=None,
82
+ config=None, body_parser=None):
83
+ config = self._merge_config(config)
84
+ if body_parser is None:
85
+ body_parser = handler.parse_json
86
+
87
+ return bce_http_client.send_request(
88
+ config, bce_v1_signer.sign, [handler.parse_error, body_parser],
89
+ http_method, path, body, headers, params)
90
+
80
91
  @required(cpu_count=int,
81
92
  memory_capacity_in_gb=int,
82
93
  image_id=(bytes, str)) # ***Unicode***
@@ -3182,7 +3193,7 @@ class BccClient(bce_base_client.BceBaseClient):
3182
3193
  return self._send_request(http_methods.POST, path, json.dumps(body),
3183
3194
  params=params, config=config)
3184
3195
 
3185
- def list_security_groups(self, instance_id=None, vpc_id=None, marker=None, max_keys=None,
3196
+ def list_security_groups(self, instance_id=None, vpc_id=None, security_group_ids=None, marker=None, max_keys=None,
3186
3197
  config=None):
3187
3198
  """
3188
3199
  Listing SecurityGroup owned by the authenticated user.
@@ -3196,6 +3207,10 @@ class BccClient(bce_base_client.BceBaseClient):
3196
3207
  filter by vpcId, optional parameter
3197
3208
  :type vpc_id: string
3198
3209
 
3210
+ :param security_group_ids:
3211
+ filter by securityGroupIds, optional parameter
3212
+ :type security_group_ids: string
3213
+
3199
3214
  :param marker:
3200
3215
  The optional parameter marker specified in the original request to specify
3201
3216
  where in the results to begin listing.
@@ -3217,6 +3232,8 @@ class BccClient(bce_base_client.BceBaseClient):
3217
3232
  params['instanceId'] = instance_id
3218
3233
  if vpc_id is not None:
3219
3234
  params['vpcId'] = vpc_id
3235
+ if security_group_ids is not None:
3236
+ params['securityGroupIds'] = security_group_ids
3220
3237
  if marker is not None:
3221
3238
  params['marker'] = marker
3222
3239
  if max_keys is not None:
@@ -7056,6 +7073,542 @@ class BccClient(bce_base_client.BceBaseClient):
7056
7073
  return self._send_request(http_methods.PUT, path, json.dumps(body),
7057
7074
  params=params, config=config)
7058
7075
 
7076
+ def authorize_server_event(self, authorize_maintenance_operation, server_event_id=None, instance_id=None,
7077
+ execute_time=None, config=None, client_token=None):
7078
+ """
7079
+ authorize_server_event
7080
+
7081
+ :param authorize_maintenance_operation:
7082
+ Authorized operation and maintenance operations
7083
+ :type authorize_maintenance_operation: string
7084
+
7085
+ :param server_event_id:
7086
+ event Id.
7087
+ :type marker: string
7088
+
7089
+ :param instance_id:
7090
+ Instance Id, server Event ID, instance ID must select one of the request options
7091
+ :type max_keys: string
7092
+
7093
+ :param execute_time:
7094
+ Authorized execution time,
7095
+ The format is yyyy-MM-dd'T'HH: mm: ss'Z ', if it is empty, query the operation log of the day
7096
+ :type execute_time: string
7097
+
7098
+ :return:
7099
+ :rtype baidubce.bce_response.BceResponse
7100
+ """
7101
+ path = b'/'
7102
+ params = {}
7103
+ if client_token is None:
7104
+ params['clientToken'] = generate_client_token()
7105
+ else:
7106
+ params['clientToken'] = client_token
7107
+ params['action'] = 'AuthorizeServerEvent'
7108
+ body = {
7109
+ 'serverEventId': server_event_id,
7110
+ 'instanceId': instance_id,
7111
+ 'authorizeMaintenanceOperation': authorize_maintenance_operation,
7112
+ 'executeTime': execute_time
7113
+ }
7114
+ return self._send_action_request(http_methods.POST, path, json.dumps(body),
7115
+ params=params, config=config)
7116
+
7117
+ def create_authorize_rule(self, server_event_category, authorize_maintenance_operations, rule_name,
7118
+ enable_rule=None, effective_scope=None, tags=None, config=None, client_token=None):
7119
+ """
7120
+ create_authorize_rule
7121
+
7122
+ :param server_event_category:
7123
+ Server Event Category
7124
+ :type server_event_category: string
7125
+
7126
+ :param authorize_maintenance_operations:
7127
+ Authorized operation and maintenance operations
7128
+ :type authorize_maintenance_operations: list
7129
+
7130
+ :param rule_name:
7131
+ Rule Name
7132
+ :type rule_name: string
7133
+
7134
+ :param enable_rule:
7135
+ Whether to enable the rule
7136
+ :type enable_rule: int
7137
+
7138
+ :param effective_scope:
7139
+ Effective scope
7140
+ :type effective_scope: String
7141
+
7142
+ :param tags:
7143
+ Tag information
7144
+ :type tags: list
7145
+
7146
+ :return:
7147
+ :rtype baidubce.bce_response.BceResponse
7148
+ """
7149
+ path = b'/'
7150
+ params = {}
7151
+ if client_token is None:
7152
+ params['clientToken'] = generate_client_token()
7153
+ else:
7154
+ params['clientToken'] = client_token
7155
+ params['action'] = 'CreateAuthorizeRule'
7156
+ body = {
7157
+ 'enableRule': enable_rule,
7158
+ 'serverEventCategory': server_event_category,
7159
+ 'authorizeMaintenanceOperations': authorize_maintenance_operations,
7160
+ 'tags': tags,
7161
+ 'effectiveScope': effective_scope,
7162
+ 'ruleName': rule_name
7163
+ }
7164
+ return self._send_action_request(http_methods.POST, path, json.dumps(body),
7165
+ params=params, config=config)
7166
+
7167
+ def modify_authorize_rule(self, rule_id, authorize_maintenance_operations=None, rule_name=None,
7168
+ enable_rule=None, effective_scope=None, tags=None, config=None, client_token=None):
7169
+ """
7170
+ modify_authorize_rule
7171
+
7172
+ :param rule_id:
7173
+ rule_id to be modified
7174
+ :type rule_id: string
7175
+
7176
+ :param authorize_maintenance_operations:
7177
+ Authorized operation and maintenance operations
7178
+ :type authorize_maintenance_operations: list
7179
+
7180
+ :param rule_name:
7181
+ Rule Name
7182
+ :type rule_name: string
7183
+
7184
+ :param enable_rule:
7185
+ Whether to enable the rule
7186
+ :type enable_rule: int
7187
+
7188
+ :param effective_scope:
7189
+ Effective scope
7190
+ :type effective_scope: String
7191
+
7192
+ :param tags:
7193
+ Tag information
7194
+ :type tags: list
7195
+
7196
+ :return:
7197
+ :rtype baidubce.bce_response.BceResponse
7198
+ """
7199
+ path = b'/'
7200
+ params = {}
7201
+ if client_token is None:
7202
+ params['clientToken'] = generate_client_token()
7203
+ else:
7204
+ params['clientToken'] = client_token
7205
+ params['action'] = 'ModifyInstUserOpAuthorizeRuleAttribute'
7206
+ body = {
7207
+ 'enableRule': enable_rule,
7208
+ 'authorizeMaintenanceOperations': authorize_maintenance_operations,
7209
+ 'tags': tags,
7210
+ 'effectiveScope': effective_scope,
7211
+ 'ruleName': rule_name,
7212
+ "ruleId": rule_id
7213
+ }
7214
+ return self._send_action_request(http_methods.POST, path, json.dumps(body),
7215
+ params=params, config=config)
7216
+
7217
+ def delete_authorize_rule(self, rule_id, config=None, client_token=None):
7218
+ """
7219
+ delete_authorize_rule
7220
+
7221
+ :param rule_id:
7222
+ rule_id to be deleted
7223
+ :type rule_id: string
7224
+
7225
+ :return:
7226
+ :rtype baidubce.bce_response.BceResponse
7227
+ """
7228
+ path = b'/'
7229
+ params = {}
7230
+ if client_token is None:
7231
+ params['clientToken'] = generate_client_token()
7232
+ else:
7233
+ params['clientToken'] = client_token
7234
+ params['action'] = 'DeleteInstUserOpAuthorizeRule'
7235
+ body = {
7236
+ 'ruleId': rule_id
7237
+ }
7238
+ return self._send_action_request(http_methods.POST, path, json.dumps(body),
7239
+ params=params, config=config)
7240
+
7241
+ def describe_authorize_rules(self, max_keys, marker=None, rule_ids=None, rule_names=None, config=None):
7242
+ """
7243
+ describe_authorize_rules
7244
+
7245
+ :param max_keys:
7246
+ The optional parameter to specifies the max number of list result to return.
7247
+ The default value is 10.
7248
+ :type max_keys: int
7249
+
7250
+ :param marker:
7251
+ The optional parameter marker specified in the original request to specify
7252
+ where in the results to begin listing.
7253
+ Together with the marker, specifies the list result which listing should begin.
7254
+ If the marker is not specified, the list result will listing from the first one.
7255
+ :type marker: string
7256
+
7257
+ :param rule_ids:
7258
+ filter rule list with multiple rule ids
7259
+ :type rule_ids: string
7260
+
7261
+ :param rule_names:
7262
+ filter rule list with multiple rule names
7263
+ :type rule_names: list
7264
+
7265
+ :return:
7266
+ :rtype baidubce.bce_response.BceResponse
7267
+ """
7268
+ path = b'/'
7269
+ params = {}
7270
+ params['action'] = 'DescribeAuthorizeRules'
7271
+ body = {
7272
+ "marker": marker,
7273
+ "maxKeys": max_keys,
7274
+ "ruleIds": rule_ids,
7275
+ "ruleNames": rule_names
7276
+ }
7277
+ return self._send_action_request(http_methods.POST, path, json.dumps(body),
7278
+ params=params, config=config)
7279
+
7280
+ def describe_planned_events(self, max_keys, marker=None, server_event_ids=None, instance_ids=None,
7281
+ product_category=None, server_event_type=None, server_event_log_time_filter=None,
7282
+ period_start_time=None, period_end_time=None, server_event_status=None, config=None):
7283
+ """
7284
+ describe_planned_events
7285
+
7286
+ :param max_keys:
7287
+ The optional parameter to specifies the max number of list result to return.
7288
+ The default value is 10.
7289
+ :type max_keys: int
7290
+
7291
+ :param marker:
7292
+ The optional parameter marker specified in the original request to specify
7293
+ where in the results to begin listing.
7294
+ Together with the marker, specifies the list result which listing should begin.
7295
+ If the marker is not specified, the list result will listing from the first one.
7296
+ :type marker: string
7297
+
7298
+ :param server_event_ids:
7299
+ filter planned event list with multiple server event ids
7300
+ :type server_event_ids: list of string
7301
+
7302
+ :param instance_ids:
7303
+ filter planned event list with multiple instance ids
7304
+ :type instance_ids: list of string
7305
+
7306
+ :param product_category:
7307
+ filter planned event list with product_category
7308
+ :type product_category: string
7309
+
7310
+ :param server_event_type:
7311
+ filter planned event list with server_event_type
7312
+ :type server_event_type: string
7313
+
7314
+ :param server_event_log_time_filter:
7315
+ filter planned event list with server_event_log_time_filter,
7316
+ The format is yyyy-MM-dd'T'HH: mm: ss'Z ', if it is empty, query the operation log of the day
7317
+ :type server_event_log_time_filter: string
7318
+
7319
+ :param period_start_time:
7320
+ filter planned event list with period_start_time,
7321
+ The format is yyyy-MM-dd'T'HH: mm: ss'Z ', if it is empty, query the operation log of the day
7322
+ :type period_start_time: string
7323
+
7324
+ :param period_end_time:
7325
+ filter planned event list with period_end_time,
7326
+ The format is yyyy-MM-dd'T'HH: mm: ss'Z ', if it is empty, query the operation log of the day
7327
+ :type period_end_time: string
7328
+
7329
+ :param server_event_status:
7330
+ filter planned event list with server_event_status
7331
+ :type server_event_status: string
7332
+
7333
+ :return:
7334
+ :rtype baidubce.bce_response.BceResponse
7335
+ """
7336
+ path = b'/'
7337
+ params = {}
7338
+ params['action'] = 'DescribePlannedEvents'
7339
+ body = {
7340
+ "marker": marker,
7341
+ "maxKeys": max_keys,
7342
+ "serverEventIds": server_event_ids,
7343
+ "instanceIds": instance_ids,
7344
+ "productCategory": product_category,
7345
+ "serverEventType": server_event_type,
7346
+ "serverEventLogTimeFilter": server_event_log_time_filter,
7347
+ "periodStartTime": period_start_time,
7348
+ "periodEndTime": period_end_time,
7349
+ "serverEventStatus": server_event_status
7350
+ }
7351
+ return self._send_action_request(http_methods.POST, path, json.dumps(body),
7352
+ params=params, config=config)
7353
+
7354
+ def describe_planned_recored_events(self, max_keys, marker=None, server_event_ids=None, instance_ids=None,
7355
+ product_category=None, server_event_type=None,
7356
+ server_event_log_time_filter=None, period_start_time=None,
7357
+ period_end_time=None, config=None):
7358
+ """
7359
+ describe_planned_recored_events
7360
+
7361
+ :param max_keys:
7362
+ The optional parameter to specifies the max number of list result to return.
7363
+ The default value is 10.
7364
+ :type max_keys: int
7365
+
7366
+ :param marker:
7367
+ The optional parameter marker specified in the original request to specify
7368
+ where in the results to begin listing.
7369
+ Together with the marker, specifies the list result which listing should begin.
7370
+ If the marker is not specified, the list result will listing from the first one.
7371
+ :type marker: string
7372
+
7373
+ :param server_event_ids:
7374
+ filter planned event list with multiple server event ids
7375
+ :type server_event_ids: list of string
7376
+
7377
+ :param instance_ids:
7378
+ filter planned event list with multiple instance ids
7379
+ :type instance_ids: list of string
7380
+
7381
+ :param product_category:
7382
+ filter planned event list with product_category
7383
+ :type product_category: string
7384
+
7385
+ :param server_event_type:
7386
+ filter planned event list with server_event_type
7387
+ :type server_event_type: string
7388
+
7389
+ :param server_event_log_time_filter:
7390
+ filter planned event list with server_event_log_time_filter,
7391
+ The format is yyyy-MM-dd'T'HH: mm: ss'Z ', if it is empty, query the operation log of the day
7392
+ :type server_event_log_time_filter: string
7393
+
7394
+ :param period_start_time:
7395
+ filter planned event list with period_start_time,
7396
+ The format is yyyy-MM-dd'T'HH: mm: ss'Z ', if it is empty, query the operation log of the day
7397
+ :type period_start_time: string
7398
+
7399
+ :param period_end_time:
7400
+ filter planned event list with period_end_time,
7401
+ The format is yyyy-MM-dd'T'HH: mm: ss'Z ', if it is empty, query the operation log of the day
7402
+ :type period_end_time: string
7403
+
7404
+ :return:
7405
+ :rtype baidubce.bce_response.BceResponse
7406
+ """
7407
+ path = b'/'
7408
+ params = {}
7409
+ params['action'] = 'DescribePlannedEventRecords'
7410
+ body = {
7411
+ "marker": marker,
7412
+ "maxKeys": max_keys,
7413
+ "serverEventIds": server_event_ids,
7414
+ "instanceIds": instance_ids,
7415
+ "productCategory": product_category,
7416
+ "serverEventType": server_event_type,
7417
+ "serverEventLogTimeFilter": server_event_log_time_filter,
7418
+ "periodStartTime": period_start_time,
7419
+ "periodEndTime": period_end_time
7420
+ }
7421
+ return self._send_action_request(http_methods.POST, path, json.dumps(body),
7422
+ params=params, config=config)
7423
+
7424
+ def describe_unplanned_events(self, max_keys, marker=None, server_event_ids=None, instance_ids=None,
7425
+ product_category=None, server_event_type=None, server_event_log_time_filter=None,
7426
+ period_start_time=None, period_end_time=None, server_event_status=None, config=None):
7427
+ """
7428
+ describe_unplanned_events
7429
+
7430
+ :param max_keys:
7431
+ The optional parameter to specifies the max number of list result to return.
7432
+ The default value is 10.
7433
+ :type max_keys: int
7434
+
7435
+ :param marker:
7436
+ The optional parameter marker specified in the original request to specify
7437
+ where in the results to begin listing.
7438
+ Together with the marker, specifies the list result which listing should begin.
7439
+ If the marker is not specified, the list result will listing from the first one.
7440
+ :type marker: string
7441
+
7442
+ :param server_event_ids:
7443
+ filter unplanned event list with multiple server event ids
7444
+ :type server_event_ids: list of string
7445
+
7446
+ :param instance_ids:
7447
+ filter unplanned event list with multiple instance ids
7448
+ :type instance_ids: list of string
7449
+
7450
+ :param product_category:
7451
+ filter unplanned event list with product_category
7452
+ :type product_category: string
7453
+
7454
+ :param server_event_type:
7455
+ filter unplanned event list with server_event_type
7456
+ :type server_event_type: string
7457
+
7458
+ :param server_event_log_time_filter:
7459
+ filter unplanned event list with server_event_log_time_filter,
7460
+ The format is yyyy-MM-dd'T'HH: mm: ss'Z ', if it is empty, query the operation log of the day
7461
+ :type server_event_log_time_filter: string
7462
+
7463
+ :param period_start_time:
7464
+ filter unplanned event list with period_start_time,
7465
+ The format is yyyy-MM-dd'T'HH: mm: ss'Z ', if it is empty, query the operation log of the day
7466
+ :type period_start_time: string
7467
+
7468
+ :param period_end_time:
7469
+ filter unplanned event list with period_end_time,
7470
+ The format is yyyy-MM-dd'T'HH: mm: ss'Z ', if it is empty, query the operation log of the day
7471
+ :type period_end_time: string
7472
+
7473
+ :param server_event_status:
7474
+ filter unplanned event list with server_event_status
7475
+ :type server_event_status: string
7476
+
7477
+ :return:
7478
+ :rtype baidubce.bce_response.BceResponse
7479
+ """
7480
+ path = b'/'
7481
+ params = {}
7482
+ params['action'] = 'DescribeUnplannedEvents'
7483
+ body = {
7484
+ "marker": marker,
7485
+ "maxKeys": max_keys,
7486
+ "serverEventIds": server_event_ids,
7487
+ "instanceIds": instance_ids,
7488
+ "productCategory": product_category,
7489
+ "serverEventType": server_event_type,
7490
+ "serverEventLogTimeFilter": server_event_log_time_filter,
7491
+ "periodStartTime": period_start_time,
7492
+ "periodEndTime": period_end_time,
7493
+ "serverEventStatus": server_event_status
7494
+ }
7495
+ return self._send_action_request(http_methods.POST, path, json.dumps(body),
7496
+ params=params, config=config)
7497
+
7498
+ def describe_unplanned_recored_events(self, max_keys, marker=None, server_event_ids=None, instance_ids=None,
7499
+ product_category=None, server_event_type=None,
7500
+ server_event_log_time_filter=None, period_start_time=None,
7501
+ period_end_time=None, config=None):
7502
+ """
7503
+ describe_unplanned_recored_events
7504
+
7505
+ :param max_keys:
7506
+ The optional parameter to specifies the max number of list result to return.
7507
+ The default value is 10.
7508
+ :type max_keys: int
7509
+
7510
+ :param marker:
7511
+ The optional parameter marker specified in the original request to specify
7512
+ where in the results to begin listing.
7513
+ Together with the marker, specifies the list result which listing should begin.
7514
+ If the marker is not specified, the list result will listing from the first one.
7515
+ :type marker: string
7516
+
7517
+ :param server_event_ids:
7518
+ filter unplanned event list with multiple server event ids
7519
+ :type server_event_ids: list of string
7520
+
7521
+ :param instance_ids:
7522
+ filter unplanned event list with multiple instance ids
7523
+ :type instance_ids: list of string
7524
+
7525
+ :param product_category:
7526
+ filter unplanned event list with product_category
7527
+ :type product_category: string
7528
+
7529
+ :param server_event_type:
7530
+ filter unplanned event list with server_event_type
7531
+ :type server_event_type: string
7532
+
7533
+ :param server_event_log_time_filter:
7534
+ filter unplanned event list with server_event_log_time_filter,
7535
+ The format is yyyy-MM-dd'T'HH: mm: ss'Z ', if it is empty, query the operation log of the day
7536
+ :type server_event_log_time_filter: string
7537
+
7538
+ :param period_start_time:
7539
+ filter unplanned event list with period_start_time,
7540
+ The format is yyyy-MM-dd'T'HH: mm: ss'Z ', if it is empty, query the operation log of the day
7541
+ :type period_start_time: string
7542
+
7543
+ :param period_end_time:
7544
+ filter unplanned event list with period_end_time,
7545
+ The format is yyyy-MM-dd'T'HH: mm: ss'Z ', if it is empty, query the operation log of the day
7546
+ :type period_end_time: string
7547
+
7548
+ :return:
7549
+ :rtype baidubce.bce_response.BceResponse
7550
+ """
7551
+ path = b'/'
7552
+ params = {}
7553
+ params['action'] = 'DescribeUnplannedEventRecords'
7554
+ body = {
7555
+ "marker": marker,
7556
+ "maxKeys": max_keys,
7557
+ "serverEventIds": server_event_ids,
7558
+ "instanceIds": instance_ids,
7559
+ "productCategory": product_category,
7560
+ "serverEventType": server_event_type,
7561
+ "serverEventLogTimeFilter": server_event_log_time_filter,
7562
+ "periodStartTime": period_start_time,
7563
+ "periodEndTime": period_end_time
7564
+ }
7565
+ return self._send_action_request(http_methods.POST, path, json.dumps(body),
7566
+ params=params, config=config)
7567
+
7568
+ def check_unplanned_event(self, server_event_id, check_result, issue_effect=None, issue_description=None,
7569
+ authorize_maintenance_operation=None, config=None, client_token=None):
7570
+ """
7571
+ check_unplanned_event
7572
+
7573
+ :param server_event_id:
7574
+ server_event_id to be check
7575
+ :type server_event_id: string
7576
+
7577
+ :param check_result:
7578
+ Whether unplanned events have passed the acceptance, supporting parameters Pass and Reject
7579
+ :type check_result: string
7580
+
7581
+ :param issue_effect:
7582
+ Fault effect must be passed when the fault acceptance is rejected
7583
+ :type issue_effect: string
7584
+
7585
+ :param issue_description:
7586
+ Fault description must be passed when the fault acceptance is rejected
7587
+ :type issue_description: string
7588
+
7589
+ :param authorize_maintenance_operation:
7590
+ Authorized operation and maintenance
7591
+ :type authorize_maintenance_operation: string
7592
+
7593
+ :return:
7594
+ :rtype baidubce.bce_response.BceResponse
7595
+ """
7596
+ path = b'/'
7597
+ params = {}
7598
+ if client_token is None:
7599
+ params['clientToken'] = generate_client_token()
7600
+ else:
7601
+ params['clientToken'] = client_token
7602
+ params['action'] = 'CheckUnplannedEvent'
7603
+ body = {
7604
+ "serverEventId": server_event_id,
7605
+ "checkResult": check_result,
7606
+ "issueEffect": issue_effect,
7607
+ "issueDescription": issue_description,
7608
+ "authorizeMaintenanceOperation": authorize_maintenance_operation
7609
+ }
7610
+ return self._send_action_request(http_methods.POST, path, json.dumps(body),
7611
+ params=params, config=config)
7059
7612
 
7060
7613
  def generate_client_token_by_uuid():
7061
7614
  """
File without changes
@@ -0,0 +1,265 @@
1
+ # Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
4
+ # except in compliance with the License. You may obtain a copy of the License at
5
+ #
6
+ # http://www.apache.org/licenses/LICENSE-2.0
7
+ #
8
+ # Unless required by applicable law or agreed to in writing, software distributed under the
9
+ # License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
10
+ # either express or implied. See the License for the specific language governing permissions
11
+ # and limitations under the License.
12
+
13
+ """
14
+ This module provides a client class for BCM.
15
+ """
16
+ import copy
17
+ import json
18
+ import sys
19
+ import uuid
20
+
21
+ from baidubce import bce_base_client, compat
22
+ from baidubce.auth import bce_v1_signer
23
+ from baidubce.http import handler, bce_http_client, http_methods
24
+ from baidubce.services.bls import bls_handler
25
+
26
+ if sys.version_info[0] == 2:
27
+ value_type = (str, unicode)
28
+ else:
29
+ value_type = (str, bytes)
30
+
31
+ MAX_BATCH_RECORD_NUMBER = 1000
32
+ DEFAULT_BATCH_RECORD_NUMBER = 100
33
+ DEFAULT_SORT = "desc"
34
+
35
+
36
+ class BlsClient(bce_base_client.BceBaseClient):
37
+ """
38
+ BLS base sdk client
39
+ """
40
+
41
+ log_prefix = b'/logstore'
42
+ version = b'/v1'
43
+ version_v2 = b'/v2'
44
+ version_v3 = b'/v3'
45
+
46
+ content_type_header_key = b"content-type"
47
+ content_type_header_value = b"application/json;charset=UTF-8"
48
+ request_id_header_key = b"x-bce-request-id"
49
+
50
+ def __init__(self, config=None):
51
+ bce_base_client.BceBaseClient.__init__(self, config)
52
+
53
+ def _merge_config(self, config=None):
54
+ if config is None:
55
+ return self.config
56
+ else:
57
+ new_config = copy.copy(self.config)
58
+ new_config.merge_non_none_values(config)
59
+ return new_config
60
+
61
+ def _send_request(self, http_method, path, version=b'/v1',
62
+ body=None, headers=None, params=None, config=None, body_parser=None):
63
+ config = self._merge_config(config)
64
+ if body_parser is None:
65
+ body_parser = handler.parse_json
66
+ if headers is None:
67
+ headers = {}
68
+ if self.content_type_header_key not in headers:
69
+ headers[self.content_type_header_key] = self.content_type_header_value
70
+ if self.request_id_header_key not in headers:
71
+ headers[self.request_id_header_key] = uuid.uuid4()
72
+
73
+ return bce_http_client.send_request(
74
+ config, bce_v1_signer.sign, [bls_handler.parse_error, body_parser],
75
+ http_method, version + BlsClient.log_prefix + path, body, headers, params)
76
+
77
+ def pull_log_records(self, log_store_name, start_time, end_time, log_stream_name, project=None,
78
+ limit=None, marker=None, config=None):
79
+ """
80
+ Pull log records from specified log store.
81
+
82
+ :param config:
83
+ :param marker:
84
+ :param limit:
85
+ :param project:
86
+ :param log_stream_name:
87
+ :param log_store_name: The name of log store which will be pulled.
88
+ :type log_store_name: string
89
+ :param start_time: Start time of pulling log records.
90
+ :type start_time: string
91
+ :param end_time: End time of pulling log records.
92
+ :type end_time: string
93
+ :return: A list of log records.
94
+ :rtype: list
95
+ """
96
+ log_store_name = compat.convert_to_bytes(log_store_name)
97
+ path = b'/%s/logrecord' % log_store_name
98
+ params = {b'startDateTime': start_time, b'endDateTime': end_time, b'logStreamName': log_stream_name}
99
+
100
+ if project is not None:
101
+ params[b'project'] = project
102
+ if limit is None:
103
+ params[b'limit'] = DEFAULT_BATCH_RECORD_NUMBER
104
+ if limit is not None:
105
+ if limit > MAX_BATCH_RECORD_NUMBER:
106
+ limit = MAX_BATCH_RECORD_NUMBER
107
+ params[b'limit'] = limit
108
+ if marker is not None:
109
+ params[b'marker'] = marker
110
+
111
+ return self._send_request(http_methods.GET, path, params=params, config=config)
112
+
113
+ def push_log_records(self, log_store_name, log_stream_name, log_records, project=None, type=None, tags=None,
114
+ config=None):
115
+ """
116
+ Push log records into the specified log stream in the given log store.
117
+
118
+ :param log_store_name: The name of the log store which will receive the log records.
119
+ :type log_store_name: str
120
+
121
+ :param log_stream_name: The name of the log stream to write to.
122
+ :type log_stream_name: str
123
+
124
+ :param log_records: A list of log records to push.
125
+ Each record should be an instance of `LogRecordModel`.
126
+ Example:
127
+ [
128
+ LogRecordModel(message="test log", timestamp=1715231012000),
129
+ LogRecordModel(message="another log", timestamp=1715231044000)
130
+ ]
131
+ :type log_records: List[LogRecordModel]
132
+
133
+ :param project: (Optional) The project name to which the log store belongs.
134
+ :type project: str or None
135
+
136
+ :param type: (Optional) Type of logs, defaults to 'TEXT' if not specified.
137
+ :type type: str or None
138
+
139
+ :param tags: (Optional) A list of tags associated with the push.
140
+ Each tag should be an instance of `TagModel`.
141
+ Example:
142
+ [
143
+ TagModel("env", "prod"),
144
+ TagModel("service", "auth")
145
+ ]
146
+ :type tags: List[TagModel] or None
147
+
148
+ :param config: (Optional) Custom request config.
149
+ :type config: baidubce.BceClientConfiguration or None
150
+
151
+ :return: A dictionary containing the result of the push operation.
152
+ :rtype: dict
153
+ """
154
+ log_store_name = compat.convert_to_bytes(log_store_name)
155
+ path = b'/%s/logrecord' % log_store_name
156
+ params = {}
157
+
158
+ tags_list = [dict(tag) for tag in tags]
159
+ type = type if type is not None else 'TEXT'
160
+ records_payload = [dict(record) for record in log_records]
161
+ if project is not None:
162
+ params['project'] = project
163
+ body = {
164
+ "logStreamName": log_stream_name,
165
+ "tags": tags_list,
166
+ "type": type,
167
+ "logRecords": records_payload
168
+ }
169
+ return self._send_request(http_methods.POST, path, params=params, body=json.dumps(body), config=config)
170
+
171
+ def query_log_records(self, log_store_name, start_time, end_time, log_stream_name, project=None, query=None,
172
+ sort=None, limit=None, marker=None, config=None):
173
+ """
174
+ query log records from specified log store.
175
+
176
+ :param sort: desc or asc
177
+ :type sort: string
178
+ :param query: query statement, eg: match *
179
+ :type query: string
180
+ :param config:
181
+ :param marker:
182
+ :param limit:
183
+ :param project:
184
+ :param log_stream_name:
185
+ :param log_store_name: The name of log store which will be pulled.
186
+ :type log_store_name: string
187
+ :param start_time: Start time of pulling log records.
188
+ :type start_time: string
189
+ :param end_time: End time of pulling log records.
190
+ :type end_time: string
191
+ :return: A list of log records.
192
+ :rtype: list
193
+ """
194
+ log_store_name = compat.convert_to_bytes(log_store_name)
195
+ path = b'/%s/logrecord' % log_store_name
196
+ params = {b'startDateTime': start_time, b'endDateTime': end_time, b'logStreamName': log_stream_name}
197
+
198
+ if project is not None:
199
+ params[b'project'] = project
200
+ if limit is None:
201
+ params[b'limit'] = DEFAULT_BATCH_RECORD_NUMBER
202
+ if limit is not None:
203
+ if limit > MAX_BATCH_RECORD_NUMBER:
204
+ limit = MAX_BATCH_RECORD_NUMBER
205
+ params[b'limit'] = limit
206
+ if marker is not None:
207
+ params[b'marker'] = marker
208
+
209
+ if query is not None:
210
+ params[b'query'] = query
211
+
212
+ if sort is not None:
213
+ if sort == 'asc':
214
+ params[b'sort'] = sort
215
+ else:
216
+ params[b'sort'] = DEFAULT_SORT
217
+
218
+ return self._send_request(http_methods.GET, path, params=params, config=config)
219
+
220
+ def pull_log_records_v3(self, log_store_name, start_time, end_time, log_stream_name, project=None, query=None,
221
+ limit=None, marker=None, sort=None, config=None):
222
+ """
223
+ Pull log records v3 from specified log store.
224
+
225
+ :param query: query statement, eg: match *
226
+ :type query: string
227
+ :param sort: desc or asc
228
+ :type: sort: string
229
+ :param config:
230
+ :param marker:
231
+ :param limit:
232
+ :param project:
233
+ :param log_stream_name:
234
+ :param log_store_name: The name of log store which will be pulled.
235
+ :type log_store_name: string
236
+ :param start_time: Start time of pulling log records.
237
+ :type start_time: string
238
+ :param end_time: End time of pulling log records.
239
+ :type end_time: string
240
+ :return: A list of log records.
241
+ :rtype: list
242
+ """
243
+ log_store_name = compat.convert_to_bytes(log_store_name)
244
+ path = b'/%s/logrecord/pull' % log_store_name
245
+ params = {b'startDateTime': start_time, b'endDateTime': end_time, b'logStreamName': log_stream_name}
246
+
247
+ if project is not None:
248
+ params[b'project'] = project
249
+ if limit is None:
250
+ params[b'limit'] = DEFAULT_BATCH_RECORD_NUMBER
251
+ if limit is not None:
252
+ if limit > MAX_BATCH_RECORD_NUMBER:
253
+ limit = MAX_BATCH_RECORD_NUMBER
254
+ params[b'limit'] = limit
255
+ if marker is not None:
256
+ params[b'marker'] = marker
257
+ if sort is not None:
258
+ if sort == 'asc':
259
+ params[b'sort'] = sort
260
+ else:
261
+ params[b'sort'] = DEFAULT_SORT
262
+ if query is not None:
263
+ params[b'query'] = query
264
+
265
+ return self._send_request(http_methods.GET, path, version=self.version_v3, params=params, config=config)
@@ -0,0 +1,62 @@
1
+ # Copyright 2014 Baidu, Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
4
+ # except in compliance with the License. You may obtain a copy of the License at
5
+ #
6
+ # http://www.apache.org/licenses/LICENSE-2.0
7
+ #
8
+ # Unless required by applicable law or agreed to in writing, software distributed under the
9
+ # License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
10
+ # either express or implied. See the License for the specific language governing permissions
11
+ # and limitations under the License.
12
+
13
+ """
14
+ This module provides general http handler functions for processing http responses from BCM services.
15
+ """
16
+
17
+ import http.client
18
+ import json
19
+ from baidubce import compat, utils
20
+ from baidubce.exception import BceClientError
21
+ from baidubce.exception import BceServerError
22
+
23
+
24
+ def parse_error(http_response, response):
25
+ """If the body is not empty, convert it to a python object and set as the value of
26
+ response.body. http_response is always closed if no error occurs.
27
+
28
+ :param http_response: the http_response object returned by HTTPConnection.getresponse()
29
+ :type http_response: httplib.HTTPResponse
30
+
31
+ :param response: general response object which will be returned to the caller
32
+ :type response: baidubce.BceResponse
33
+
34
+ :return: false if http status code is 2xx, raise an error otherwise
35
+ :rtype bool
36
+
37
+ :raise baidubce.exception.BceClientError: if http status code is NOT 2xx
38
+ """
39
+ if http_response.status // 100 == http.client.OK // 100:
40
+ return False
41
+ if http_response.status // 100 == http.client.CONTINUE // 100:
42
+ raise BceClientError(b'Can not handle 1xx http status code')
43
+ body = http_response.read()
44
+ if not body:
45
+ bse = BceServerError(http_response.reason, request_id=response.metadata.bce_request_id)
46
+ bse.status_code = http_response.status
47
+ raise bse
48
+
49
+ error_dict = json.loads(compat.convert_to_string(body))
50
+ message = str(error_dict)
51
+ if 'message' in error_dict and error_dict['message'] is not None:
52
+ message = error_dict['message']
53
+ code = "Exception"
54
+ if 'code' in error_dict and error_dict['code'] is not None:
55
+ code = error_dict['code']
56
+ request_id = response.metadata.bce_request_id
57
+ if 'request_id' in error_dict and error_dict['request_id'] is not None:
58
+ request_id = error_dict['request_id']
59
+
60
+ bse = BceServerError(message, code=code, request_id=request_id)
61
+ bse.status_code = http_response.status
62
+ raise bse
@@ -0,0 +1,55 @@
1
+ # Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
4
+ # except in compliance with the License. You may obtain a copy of the License at
5
+ #
6
+ # http://www.apache.org/licenses/LICENSE-2.0
7
+ #
8
+ # Unless required by applicable law or agreed to in writing, software distributed under the
9
+ # License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
10
+ # either express or implied. See the License for the specific language governing permissions
11
+ # and limitations under the License.
12
+
13
+ """
14
+ This module provides a model class for BLS.
15
+ """
16
+
17
+
18
+ class LogRecordModel(dict):
19
+ """
20
+ This class define log record.
21
+ """
22
+
23
+ def __init__(self, message="", timestamp=0):
24
+ """
25
+ :param message:
26
+ log record.
27
+ :type message: string
28
+
29
+ :param timestamp:
30
+ log record timestamp.
31
+ :type timestamp: int
32
+ """
33
+ super(LogRecordModel, self).__init__()
34
+ self["message"] = message
35
+ self["timestamp"] = timestamp
36
+
37
+
38
+ class TagModel(dict):
39
+ """
40
+ This class define tag.
41
+ """
42
+
43
+ def __init__(self, k, v=""):
44
+ """
45
+ :param k:
46
+ tag key.
47
+ :type k: string
48
+
49
+ :param v:
50
+ tag value.
51
+ :type v: string
52
+ """
53
+ super(TagModel, self).__init__()
54
+ self["k"] = k
55
+ self["v"] = v
@@ -1439,6 +1439,7 @@ class BosClient(BceBaseClient):
1439
1439
  copy_object_user_headers=None,
1440
1440
  traffic_limit=None,
1441
1441
  object_tagging=None,
1442
+ source_version_id=None,
1442
1443
  config=None):
1443
1444
  """
1444
1445
  Copy one object to another object
@@ -1466,10 +1467,14 @@ class BosClient(BceBaseClient):
1466
1467
  user_headers=user_headers,
1467
1468
  traffic_limit=traffic_limit,
1468
1469
  object_tagging=object_tagging)
1469
- headers[http_headers.BCE_COPY_SOURCE] = utils.normalize_string(
1470
+
1471
+ merge_source_key = utils.normalize_string(
1470
1472
  b'/%s/%s' % (
1471
1473
  compat.convert_to_bytes(source_bucket_name),
1472
1474
  source_key), False)
1475
+ if source_version_id is not None:
1476
+ merge_source_key = merge_source_key + b'?versionId=%s' % compat.convert_to_bytes(source_version_id)
1477
+ headers[http_headers.BCE_COPY_SOURCE] = merge_source_key
1473
1478
  if etag is not None:
1474
1479
  headers[http_headers.BCE_COPY_SOURCE_IF_MATCH] = etag
1475
1480
  if user_metadata is not None or content_type is not None:
@@ -148,7 +148,7 @@ class SubnetClient(bce_base_client.BceBaseClient):
148
148
  vpc_id=(bytes, str),
149
149
  zone_name=(bytes, str),
150
150
  subnet_type=(bytes, str))
151
- def list_subnets(self, marker=None, max_keys=None, vpc_id=None,
151
+ def list_subnets(self, marker=None, max_keys=None, vpc_id=None, subnet_ids=None,
152
152
  zone_name=None, subnet_type=None, config=None):
153
153
  """
154
154
  Return a list of subnets owned by the authenticated user.
@@ -169,6 +169,9 @@ class SubnetClient(bce_base_client.BceBaseClient):
169
169
  The id of the vpc
170
170
  :type vpc_id: string
171
171
 
172
+ :param subnet_ids:
173
+ The ids of the subnet
174
+
172
175
  :param zone_name:
173
176
  The name of available zone which the subnet belong
174
177
  through listZones, we can get all available zone info at current region
@@ -193,6 +196,8 @@ class SubnetClient(bce_base_client.BceBaseClient):
193
196
  params[b'maxKeys'] = max_keys
194
197
  if vpc_id is not None:
195
198
  params[b'vpcId'] = vpc_id
199
+ if subnet_ids is not None:
200
+ params[b'subnetIds'] = subnet_ids
196
201
  if zone_name is not None:
197
202
  params[b'zoneName'] = zone_name
198
203
  if subnet_type is not None:
@@ -113,7 +113,7 @@ class VpcClient(bce_base_client.BceBaseClient):
113
113
  config=config)
114
114
 
115
115
  @required(marker=(bytes, str), max_Keys=int, is_Default=bool)
116
- def list_vpcs(self, marker=None, max_Keys=None, isDefault=None, config=None):
116
+ def list_vpcs(self, marker=None, max_Keys=None, vpc_ids=None, isDefault=None, config=None):
117
117
  """
118
118
  Return a list of vpcs owned by the authenticated user.
119
119
 
@@ -129,6 +129,10 @@ class VpcClient(bce_base_client.BceBaseClient):
129
129
  The default value is 1000.
130
130
  :type max_keys: int
131
131
 
132
+ :param vpc_ids:
133
+ filter by vpc_ids, optional parameter
134
+ :type vpc_ids: string
135
+
132
136
  :param isDefault:
133
137
  The option param demotes whether the vpc is default vpc.
134
138
  :type isDefault: boolean
@@ -146,6 +150,8 @@ class VpcClient(bce_base_client.BceBaseClient):
146
150
  params[b'marker'] = marker
147
151
  if max_Keys is not None:
148
152
  params[b'maxKeys'] = max_Keys
153
+ if vpc_ids is not None:
154
+ params[b'vpcIds'] = vpc_ids
149
155
  if isDefault is not None:
150
156
  params[b'isDefault'] = isDefault
151
157
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bce-python-sdk
3
- Version: 0.9.35
3
+ Version: 0.9.39
4
4
  Summary: BCE SDK for python
5
5
  Home-page: http://bce.baidu.com
6
6
  Author:
@@ -1,4 +1,4 @@
1
- baidubce/__init__.py,sha256=pbn7Z7Xjh7dHwoeu1xDJXTv2zH9S0LADdlJ2k4zxSbU,813
1
+ baidubce/__init__.py,sha256=QtDSqQw9O42rSEfn2RX9oUzBCj4MOzOHD6JwwR__vQw,813
2
2
  baidubce/bce_base_client.py,sha256=7gjkRy_YlTTb6TXHYHyZRYMjdVO7FTtHMdwXx8bPgsE,3428
3
3
  baidubce/bce_client_configuration.py,sha256=84xv1Hsi_6ddqZlU8Mde7JQHOl-zWNWX7CObPsorDbQ,3157
4
4
  baidubce/bce_response.py,sha256=V5a3bgRj04cM3Ml3s1OByLyZZSGDUy9PL52JSugmCgM,1655
@@ -27,7 +27,7 @@ baidubce/services/bbc/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3h
27
27
  baidubce/services/bbc/bbc_client.py,sha256=6x2fWmjyKSZ02WvsmQ1pryE0c_mtXHCjI0Ev80MfzbY,38951
28
28
  baidubce/services/bbc/bbc_model.py,sha256=Dy80LZ4ro_iS3UejJ_CL9kI7OyMSBoDitTE4J1XAC_g,1790
29
29
  baidubce/services/bcc/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
30
- baidubce/services/bcc/bcc_client.py,sha256=qVVaV4PSAlset3TCSdq_tVETZaSloe-ffH-n2LNBWWk,267745
30
+ baidubce/services/bcc/bcc_client.py,sha256=-E3a9m74YgpUmI3H9sXLPdsksG1ywExnJpfuYEXPY54,289908
31
31
  baidubce/services/bcc/bcc_model.py,sha256=DLdpyU2x917zcyODd7OiyeDigkUTw8XxQvAdCCL9ur4,6647
32
32
  baidubce/services/bcc/fpga_card_type.py,sha256=n6goqnapIgAC9_sciA_2he5HFqPRbRv109qitO7qpd8,948
33
33
  baidubce/services/bcc/gpu_card_type.py,sha256=HEfMzne-UC5F295JPrPUu7V9F5g-hbXF2TNBontEFes,1054
@@ -42,10 +42,14 @@ baidubce/services/blb/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3h
42
42
  baidubce/services/blb/app_blb_client.py,sha256=35NkkWIwoeAtld6GpTM-rZuR1hrFytrKxsJyKqK2ks8,129274
43
43
  baidubce/services/blb/blb_client.py,sha256=iP_cmxc9RV2heqO1fdqMfKfMBc6JLNmUcUkAOPnabMk,99349
44
44
  baidubce/services/blb/user_service_client.py,sha256=bS8SKQKslvoSefVVl76A6cgvqyZnQoiU-tIPjTgAxDk,17046
45
+ baidubce/services/bls/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
46
+ baidubce/services/bls/bls_client.py,sha256=8s-AADWx7jNojHiCQo8qf69YcwUgQuFRJNouAfgEbHs,10123
47
+ baidubce/services/bls/bls_handler.py,sha256=mtjatvc2cDSjJHH3d65s9oKWt5nUZ8V4jssk0RJOz8o,2523
48
+ baidubce/services/bls/bls_model.py,sha256=A4kLRQo0aOlh2t4IFjd0aJbju-CmhZdryuXESum_i-8,1428
45
49
  baidubce/services/bmr/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
46
50
  baidubce/services/bmr/bmr_client.py,sha256=ntJie-R6qFxdd6znpfCj25RSoJ6gOV0o2Tn9asJThQg,20565
47
51
  baidubce/services/bos/__init__.py,sha256=bRvJAiFjUIBF64HeoZ7bkTjGfqkKJAvxYWBSEvbUOIc,813
48
- baidubce/services/bos/bos_client.py,sha256=K-a_MI7m3T7DpQ4b_06u9ttdT91imZbp3FeQbrggIEU,102941
52
+ baidubce/services/bos/bos_client.py,sha256=FHRScfUV1VycabKKhvBEriSk8b19WETRpo2va1jg9Lw,103192
49
53
  baidubce/services/bos/bos_handler.py,sha256=ZWVjezraJsdNy0tsX8fZkWPmSBYLSlGolKqZ1CcWE7A,1832
50
54
  baidubce/services/bos/canned_acl.py,sha256=Y2qvU81OI_nT0uu96MyTemXyR2EnNVVYrJxfPS1rhBA,723
51
55
  baidubce/services/bos/common.py,sha256=X2_PDLRR3Lpr7i2mzzyMBI2jCQ779hIx3XwBDTQAXhE,138
@@ -149,7 +153,7 @@ baidubce/services/sms/sms_client.py,sha256=Dgdrlz8fQDp5CRTOyoZc8Kc8Hak4Pn090ZRV_
149
153
  baidubce/services/sts/__init__.py,sha256=EZmfLCCKOijC7YePDGTzWy9Qzn9OVh5et5klAffza_g,669
150
154
  baidubce/services/sts/sts_client.py,sha256=kyJZPQTx48aCeeQqNZsSgd3TqSNk0hgMILG_HuF-BGs,3687
151
155
  baidubce/services/subnet/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
152
- baidubce/services/subnet/subnet_client.py,sha256=mOsC1qQbERXE6APfCFpQs1mVZv9XLlZnBMQ2d0etVHY,15018
156
+ baidubce/services/subnet/subnet_client.py,sha256=JUNHvZ-8lVHaS0fxZxGGPVvPUk5ad3J8g2TGaN-eh7M,15178
153
157
  baidubce/services/tsdb/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
154
158
  baidubce/services/tsdb/tsdb_admin_client.py,sha256=Gs4ltGvtm17jhc02xmVTNLghj6iQc8SyTVNiGTYSVXI,4845
155
159
  baidubce/services/tsdb/tsdb_client.py,sha256=Meg0mko2E5KgkZCd8vJWH7NAoMGWst3XqlxeiGIYZK4,9337
@@ -166,11 +170,11 @@ baidubce/services/vpc/peerconn_client.py,sha256=JN43IMTMB6sMPKHu8s1zYb86K666ysux
166
170
  baidubce/services/vpc/peerconn_model.py,sha256=oPNRbrfAKhkRIZcZSu2p2Y6UCc49otD7KDQBiPBSuTk,1686
167
171
  baidubce/services/vpc/template_client.py,sha256=FDJoHU83SUj3SHyydxqthUvvj0SH0JjmXAhoZuvMSDM,21917
168
172
  baidubce/services/vpc/template_model.py,sha256=lCvqmYfJx1JV-OPioWDnu2yjdRtPanHEtODscbNpjOo,1297
169
- baidubce/services/vpc/vpc_client.py,sha256=b-WwTwaUx2CGz58stUyI6UbYscEd3EF6gcioVAp7OeQ,11958
173
+ baidubce/services/vpc/vpc_client.py,sha256=xmW-m7IIYrnvvH0epwvJ1JgG52AMA5-YIvKjxq7l208,12149
170
174
  baidubce/services/vpn/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
171
175
  baidubce/services/vpn/vpn_client.py,sha256=rrnQElD-LTttsqMbbIHoHK0Jdc7FrVVTZIdu-0Zthr8,31352
172
176
  baidubce/services/vpn/vpn_model.py,sha256=C9rEBYyFIDjrqvqJG4WEin6qVzEIvbhPvT5KwDYm1qA,3365
173
- bce_python_sdk-0.9.35.dist-info/METADATA,sha256=6_idnDxNvP9kkhUxX12waaa6ORheaD-rXfK7rjSyu8o,416
174
- bce_python_sdk-0.9.35.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
175
- bce_python_sdk-0.9.35.dist-info/top_level.txt,sha256=Oh6eo_-T_AuEDpIaR54biUUPThxsoQiYMVHLBTaweQs,9
176
- bce_python_sdk-0.9.35.dist-info/RECORD,,
177
+ bce_python_sdk-0.9.39.dist-info/METADATA,sha256=8PKBVYEOlZNFmuK-MYyzRbQXgrdl1kYFjydcFu6-qbw,416
178
+ bce_python_sdk-0.9.39.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
179
+ bce_python_sdk-0.9.39.dist-info/top_level.txt,sha256=Oh6eo_-T_AuEDpIaR54biUUPThxsoQiYMVHLBTaweQs,9
180
+ bce_python_sdk-0.9.39.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.7.1)
2
+ Generator: setuptools (80.9.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5