byteplus-python-sdk-v2 3.0.61__py2.py3-none-any.whl → 3.0.63__py2.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.
Files changed (112) hide show
  1. {byteplus_python_sdk_v2-3.0.61.dist-info → byteplus_python_sdk_v2-3.0.63.dist-info}/METADATA +1 -1
  2. {byteplus_python_sdk_v2-3.0.61.dist-info → byteplus_python_sdk_v2-3.0.63.dist-info}/RECORD +111 -64
  3. {byteplus_python_sdk_v2-3.0.61.dist-info → byteplus_python_sdk_v2-3.0.63.dist-info}/WHEEL +1 -1
  4. byteplussdkcore/api_client.py +36 -8
  5. byteplussdkcore/auth/provider_binding.py +42 -0
  6. byteplussdkcore/auth/providers/sts_oidc_provider.py +23 -3
  7. byteplussdkcore/auth/providers/sts_provider.py +32 -3
  8. byteplussdkcore/auth/providers/sts_saml_provider.py +23 -3
  9. byteplussdkcore/auth/sts_http_config.py +133 -0
  10. byteplussdkcore/configuration.py +1 -1
  11. byteplussdkcore/feature/rds/connect_utils.py +6 -8
  12. byteplussdkcore/interceptor/interceptors/request.py +5 -0
  13. byteplussdkcore/rest.py +27 -0
  14. byteplussdkcore/retryer/retry_condition.py +29 -1
  15. byteplussdkecopartner/__init__.py +10 -0
  16. byteplussdkecopartner/api/eco_partner_api.py +291 -0
  17. byteplussdkecopartner/models/__init__.py +10 -0
  18. byteplussdkecopartner/models/download_bill_request.py +129 -0
  19. byteplussdkredis/models/configure_node_for_create_enterprise_db_instance_input.py → byteplussdkecopartner/models/download_bill_response.py +23 -23
  20. byteplussdkecopartner/models/file_for_download_bill_output.py +175 -0
  21. byteplussdkecopartner/models/initiate_bill_generation_request.py +190 -0
  22. byteplussdkecopartner/models/initiate_bill_generation_response.py +253 -0
  23. byteplussdkecopartner/models/item_for_list_billing_items_output.py +461 -0
  24. byteplussdkecopartner/models/list_billing_items_request.py +240 -0
  25. byteplussdkecopartner/models/list_billing_items_response.py +253 -0
  26. byteplussdkecopartner/models/task_for_download_bill_output.py +409 -0
  27. byteplussdkecopartner/models/total_for_list_billing_items_output.py +305 -0
  28. byteplussdkredis/__init__.py +6 -4
  29. byteplussdkredis/api/redis_api.py +97 -97
  30. byteplussdkredis/models/__init__.py +6 -4
  31. byteplussdkredis/models/describe_planned_event_impact_detail_request.py +124 -0
  32. byteplussdkredis/models/describe_planned_event_impact_detail_response.py +123 -0
  33. byteplussdkredis/models/impact_for_describe_planned_event_impact_detail_output.py +149 -0
  34. byteplussdkredis/models/impact_item_for_describe_planned_event_impact_detail_output.py +201 -0
  35. byteplussdkredis/models/impact_summary_for_describe_planned_events_output.py +201 -0
  36. byteplussdkredis/models/involved_node_for_describe_planned_event_impact_detail_output.py +201 -0
  37. byteplussdkredis/models/planned_event_for_describe_planned_events_output.py +79 -1
  38. byteplussdkresourcecenter/__init__.py +16 -0
  39. byteplussdkresourcecenter/api/resourcecenter_api.py +485 -0
  40. byteplussdkresourcecenter/models/__init__.py +16 -0
  41. byteplussdkresourcecenter/models/create_query_request.py +11 -3
  42. byteplussdkresourcecenter/models/execute_multi_account_sql_query_request.py +211 -0
  43. byteplussdkresourcecenter/models/execute_multi_account_sql_query_response.py +149 -0
  44. byteplussdkresourcecenter/models/execute_sql_query_request.py +9 -0
  45. byteplussdkresourcecenter/models/execute_sql_query_response.py +29 -3
  46. byteplussdkresourcecenter/models/get_multi_account_resource_center_status_response.py +15 -15
  47. byteplussdkresourcecenter/models/get_multi_account_resource_description_request.py +204 -0
  48. byteplussdkresourcecenter/models/get_multi_account_resource_description_response.py +461 -0
  49. byteplussdkresourcecenter/models/get_resource_description_request.py +177 -0
  50. byteplussdkresourcecenter/models/get_resource_description_response.py +461 -0
  51. byteplussdkresourcecenter/models/list_multi_account_resource_relationships_request.py +262 -0
  52. byteplussdkresourcecenter/models/list_multi_account_resource_relationships_response.py +149 -0
  53. byteplussdkresourcecenter/models/list_resource_relationships_request.py +235 -0
  54. byteplussdkresourcecenter/models/list_resource_relationships_response.py +149 -0
  55. byteplussdkresourcecenter/models/related_type_name_for_list_resource_types_output.py +149 -0
  56. byteplussdkresourcecenter/models/resource_relationship_for_list_multi_account_resource_relationships_output.py +227 -0
  57. byteplussdkresourcecenter/models/resource_relationship_for_list_resource_relationships_output.py +227 -0
  58. byteplussdkresourcecenter/models/resource_type_for_list_resource_types_output.py +55 -3
  59. byteplussdkresourcecenter/models/scope_for_execute_multi_account_sql_query_input.py +175 -0
  60. byteplussdkresourcecenter/models/search_multi_account_resources_request.py +20 -0
  61. byteplussdkresourcecenter/models/search_resources_request.py +6 -0
  62. byteplussdkredis/models/create_enterprise_db_instance_response.py → byteplussdkresourcecenter/models/tag_for_get_multi_account_resource_description_output.py +35 -35
  63. byteplussdkredis/models/tag_for_create_enterprise_db_instance_input.py → byteplussdkresourcecenter/models/tag_for_get_resource_description_output.py +14 -14
  64. byteplussdkresourcecenter/models/update_query_request.py +9 -0
  65. byteplussdkvpc/__init__.py +17 -0
  66. byteplussdkvpc/api/vpc_api.py +582 -0
  67. byteplussdkvpc/models/__init__.py +17 -0
  68. byteplussdkvpc/models/authorize_security_group_egress_batch_request.py +150 -0
  69. byteplussdkvpc/models/authorize_security_group_egress_batch_response.py +149 -0
  70. byteplussdkvpc/models/authorize_security_group_ingress_batch_request.py +150 -0
  71. byteplussdkvpc/models/authorize_security_group_ingress_batch_response.py +149 -0
  72. byteplussdkvpc/models/create_flow_log_request.py +27 -1
  73. byteplussdkvpc/models/create_flow_log_response.py +29 -3
  74. byteplussdkvpc/models/create_ipam_pool_request.py +2 -5
  75. byteplussdkvpc/models/create_ipam_request.py +0 -3
  76. byteplussdkvpc/models/create_ipam_resource_discovery_request.py +9 -0
  77. byteplussdkvpc/models/create_ipam_scope_request.py +2 -5
  78. byteplussdkvpc/models/create_network_interface_request.py +81 -3
  79. byteplussdkvpc/models/describe_ipam_pools_request.py +6 -0
  80. byteplussdkvpc/models/describe_ipam_resource_cidrs_request.py +27 -1
  81. byteplussdkvpc/models/describe_ipam_resource_discoveries_request.py +6 -0
  82. byteplussdkvpc/models/describe_ipam_scopes_request.py +6 -0
  83. byteplussdkvpc/models/describe_ipams_request.py +2 -2
  84. byteplussdkvpc/models/describe_network_interface_attributes_response.py +79 -1
  85. byteplussdkvpc/models/ipam_resource_cidr_for_describe_ipam_resource_cidrs_output.py +53 -1
  86. byteplussdkvpc/models/modify_flow_log_attribute_request.py +27 -1
  87. byteplussdkvpc/models/modify_flow_log_attribute_response.py +29 -3
  88. byteplussdkvpc/models/modify_ipam_pool_request.py +2 -5
  89. byteplussdkvpc/models/modify_ipam_request.py +2 -5
  90. byteplussdkvpc/models/modify_ipam_resource_discovery_request.py +61 -6
  91. byteplussdkvpc/models/modify_ipam_resource_discovery_response.py +27 -1
  92. byteplussdkvpc/models/modify_ipam_scope_request.py +2 -5
  93. byteplussdkvpc/models/modify_network_interface_attributes_request.py +81 -3
  94. byteplussdkvpc/models/modify_security_group_egress_batch_request.py +150 -0
  95. byteplussdkvpc/models/modify_security_group_egress_batch_response.py +149 -0
  96. byteplussdkvpc/models/modify_security_group_ingress_batch_request.py +150 -0
  97. byteplussdkvpc/models/modify_security_group_ingress_batch_response.py +149 -0
  98. byteplussdkvpc/models/network_interface_set_for_describe_network_interfaces_output.py +79 -1
  99. byteplussdkvpc/models/overlap_detail_for_describe_ipam_resource_cidrs_output.py +175 -0
  100. byteplussdkvpc/models/permission_for_authorize_security_group_egress_batch_input.py +412 -0
  101. byteplussdkvpc/models/permission_for_authorize_security_group_ingress_batch_input.py +412 -0
  102. byteplussdkvpc/models/permission_for_describe_security_group_attributes_output.py +27 -1
  103. byteplussdkvpc/models/permission_for_modify_security_group_egress_batch_input.py +439 -0
  104. byteplussdkvpc/models/permission_for_modify_security_group_ingress_batch_input.py +439 -0
  105. byteplussdkvpc/models/revoke_security_group_egress_batch_request.py +150 -0
  106. byteplussdkvpc/models/revoke_security_group_egress_batch_response.py +149 -0
  107. byteplussdkvpc/models/revoke_security_group_ingress_batch_request.py +150 -0
  108. byteplussdkvpc/models/revoke_security_group_ingress_batch_response.py +149 -0
  109. byteplussdkredis/models/create_enterprise_db_instance_request.py +0 -625
  110. {byteplus_python_sdk_v2-3.0.61.dist-info → byteplus_python_sdk_v2-3.0.63.dist-info}/licenses/LICENSE.txt +0 -0
  111. {byteplus_python_sdk_v2-3.0.61.dist-info → byteplus_python_sdk_v2-3.0.63.dist-info}/licenses/NOTICE.md +0 -0
  112. {byteplus_python_sdk_v2-3.0.61.dist-info → byteplus_python_sdk_v2-3.0.63.dist-info}/top_level.txt +0 -0
@@ -324,6 +324,103 @@ class ECOPARTNERApi(object):
324
324
  _request_timeout=params.get('_request_timeout'),
325
325
  collection_formats=collection_formats)
326
326
 
327
+ def download_bill(self, body, **kwargs): # noqa: E501
328
+ """download_bill # noqa: E501
329
+
330
+ This method makes a synchronous HTTP request by default. To make an
331
+ asynchronous HTTP request, please pass async_req=True
332
+ >>> thread = api.download_bill(body, async_req=True)
333
+ >>> result = thread.get()
334
+
335
+ :param async_req bool
336
+ :param DownloadBillRequest body: (required)
337
+ :return: DownloadBillResponse
338
+ If the method is called asynchronously,
339
+ returns the request thread.
340
+ """
341
+ kwargs['_return_http_data_only'] = True
342
+ if kwargs.get('async_req'):
343
+ return self.download_bill_with_http_info(body, **kwargs) # noqa: E501
344
+ else:
345
+ (data) = self.download_bill_with_http_info(body, **kwargs) # noqa: E501
346
+ return data
347
+
348
+ def download_bill_with_http_info(self, body, **kwargs): # noqa: E501
349
+ """download_bill # noqa: E501
350
+
351
+ This method makes a synchronous HTTP request by default. To make an
352
+ asynchronous HTTP request, please pass async_req=True
353
+ >>> thread = api.download_bill_with_http_info(body, async_req=True)
354
+ >>> result = thread.get()
355
+
356
+ :param async_req bool
357
+ :param DownloadBillRequest body: (required)
358
+ :return: DownloadBillResponse
359
+ If the method is called asynchronously,
360
+ returns the request thread.
361
+ """
362
+
363
+ all_params = ['body'] # noqa: E501
364
+ all_params.append('async_req')
365
+ all_params.append('_return_http_data_only')
366
+ all_params.append('_preload_content')
367
+ all_params.append('_request_timeout')
368
+
369
+ params = locals()
370
+ for key, val in six.iteritems(params['kwargs']):
371
+ if key not in all_params:
372
+ raise TypeError(
373
+ "Got an unexpected keyword argument '%s'"
374
+ " to method download_bill" % key
375
+ )
376
+ params[key] = val
377
+ del params['kwargs']
378
+ # verify the required parameter 'body' is set
379
+ if self.api_client.client_side_validation and ('body' not in params or
380
+ params['body'] is None): # noqa: E501
381
+ raise ValueError("Missing the required parameter `body` when calling `download_bill`") # noqa: E501
382
+
383
+ collection_formats = {}
384
+
385
+ path_params = {}
386
+
387
+ query_params = []
388
+
389
+ header_params = {}
390
+
391
+ form_params = []
392
+ local_var_files = {}
393
+
394
+ body_params = None
395
+ if 'body' in params:
396
+ body_params = params['body']
397
+ # HTTP header `Accept`
398
+ header_params['Accept'] = self.api_client.select_header_accept(
399
+ ['application/json']) # noqa: E501
400
+
401
+ # HTTP header `Content-Type`
402
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
403
+ ['application/json']) # noqa: E501
404
+
405
+ # Authentication setting
406
+ auth_settings = ['byteplusSign'] # noqa: E501
407
+
408
+ return self.api_client.call_api(
409
+ '/DownloadBill/2025-05-29/eco_partner/post/application_json/', 'POST',
410
+ path_params,
411
+ query_params,
412
+ header_params,
413
+ body=body_params,
414
+ post_params=form_params,
415
+ files=local_var_files,
416
+ response_type='DownloadBillResponse', # noqa: E501
417
+ auth_settings=auth_settings,
418
+ async_req=params.get('async_req'),
419
+ _return_http_data_only=params.get('_return_http_data_only'),
420
+ _preload_content=params.get('_preload_content', True),
421
+ _request_timeout=params.get('_request_timeout'),
422
+ collection_formats=collection_formats)
423
+
327
424
  def get_customer_details_by_type(self, body, **kwargs): # noqa: E501
328
425
  """get_customer_details_by_type # noqa: E501
329
426
 
@@ -615,6 +712,200 @@ class ECOPARTNERApi(object):
615
712
  _request_timeout=params.get('_request_timeout'),
616
713
  collection_formats=collection_formats)
617
714
 
715
+ def initiate_bill_generation(self, body, **kwargs): # noqa: E501
716
+ """initiate_bill_generation # noqa: E501
717
+
718
+ This method makes a synchronous HTTP request by default. To make an
719
+ asynchronous HTTP request, please pass async_req=True
720
+ >>> thread = api.initiate_bill_generation(body, async_req=True)
721
+ >>> result = thread.get()
722
+
723
+ :param async_req bool
724
+ :param InitiateBillGenerationRequest body: (required)
725
+ :return: InitiateBillGenerationResponse
726
+ If the method is called asynchronously,
727
+ returns the request thread.
728
+ """
729
+ kwargs['_return_http_data_only'] = True
730
+ if kwargs.get('async_req'):
731
+ return self.initiate_bill_generation_with_http_info(body, **kwargs) # noqa: E501
732
+ else:
733
+ (data) = self.initiate_bill_generation_with_http_info(body, **kwargs) # noqa: E501
734
+ return data
735
+
736
+ def initiate_bill_generation_with_http_info(self, body, **kwargs): # noqa: E501
737
+ """initiate_bill_generation # noqa: E501
738
+
739
+ This method makes a synchronous HTTP request by default. To make an
740
+ asynchronous HTTP request, please pass async_req=True
741
+ >>> thread = api.initiate_bill_generation_with_http_info(body, async_req=True)
742
+ >>> result = thread.get()
743
+
744
+ :param async_req bool
745
+ :param InitiateBillGenerationRequest body: (required)
746
+ :return: InitiateBillGenerationResponse
747
+ If the method is called asynchronously,
748
+ returns the request thread.
749
+ """
750
+
751
+ all_params = ['body'] # noqa: E501
752
+ all_params.append('async_req')
753
+ all_params.append('_return_http_data_only')
754
+ all_params.append('_preload_content')
755
+ all_params.append('_request_timeout')
756
+
757
+ params = locals()
758
+ for key, val in six.iteritems(params['kwargs']):
759
+ if key not in all_params:
760
+ raise TypeError(
761
+ "Got an unexpected keyword argument '%s'"
762
+ " to method initiate_bill_generation" % key
763
+ )
764
+ params[key] = val
765
+ del params['kwargs']
766
+ # verify the required parameter 'body' is set
767
+ if self.api_client.client_side_validation and ('body' not in params or
768
+ params['body'] is None): # noqa: E501
769
+ raise ValueError("Missing the required parameter `body` when calling `initiate_bill_generation`") # noqa: E501
770
+
771
+ collection_formats = {}
772
+
773
+ path_params = {}
774
+
775
+ query_params = []
776
+
777
+ header_params = {}
778
+
779
+ form_params = []
780
+ local_var_files = {}
781
+
782
+ body_params = None
783
+ if 'body' in params:
784
+ body_params = params['body']
785
+ # HTTP header `Accept`
786
+ header_params['Accept'] = self.api_client.select_header_accept(
787
+ ['application/json']) # noqa: E501
788
+
789
+ # HTTP header `Content-Type`
790
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
791
+ ['application/json']) # noqa: E501
792
+
793
+ # Authentication setting
794
+ auth_settings = ['byteplusSign'] # noqa: E501
795
+
796
+ return self.api_client.call_api(
797
+ '/InitiateBillGeneration/2025-05-29/eco_partner/post/application_json/', 'POST',
798
+ path_params,
799
+ query_params,
800
+ header_params,
801
+ body=body_params,
802
+ post_params=form_params,
803
+ files=local_var_files,
804
+ response_type='InitiateBillGenerationResponse', # noqa: E501
805
+ auth_settings=auth_settings,
806
+ async_req=params.get('async_req'),
807
+ _return_http_data_only=params.get('_return_http_data_only'),
808
+ _preload_content=params.get('_preload_content', True),
809
+ _request_timeout=params.get('_request_timeout'),
810
+ collection_formats=collection_formats)
811
+
812
+ def list_billing_items(self, body, **kwargs): # noqa: E501
813
+ """list_billing_items # noqa: E501
814
+
815
+ This method makes a synchronous HTTP request by default. To make an
816
+ asynchronous HTTP request, please pass async_req=True
817
+ >>> thread = api.list_billing_items(body, async_req=True)
818
+ >>> result = thread.get()
819
+
820
+ :param async_req bool
821
+ :param ListBillingItemsRequest body: (required)
822
+ :return: ListBillingItemsResponse
823
+ If the method is called asynchronously,
824
+ returns the request thread.
825
+ """
826
+ kwargs['_return_http_data_only'] = True
827
+ if kwargs.get('async_req'):
828
+ return self.list_billing_items_with_http_info(body, **kwargs) # noqa: E501
829
+ else:
830
+ (data) = self.list_billing_items_with_http_info(body, **kwargs) # noqa: E501
831
+ return data
832
+
833
+ def list_billing_items_with_http_info(self, body, **kwargs): # noqa: E501
834
+ """list_billing_items # noqa: E501
835
+
836
+ This method makes a synchronous HTTP request by default. To make an
837
+ asynchronous HTTP request, please pass async_req=True
838
+ >>> thread = api.list_billing_items_with_http_info(body, async_req=True)
839
+ >>> result = thread.get()
840
+
841
+ :param async_req bool
842
+ :param ListBillingItemsRequest body: (required)
843
+ :return: ListBillingItemsResponse
844
+ If the method is called asynchronously,
845
+ returns the request thread.
846
+ """
847
+
848
+ all_params = ['body'] # noqa: E501
849
+ all_params.append('async_req')
850
+ all_params.append('_return_http_data_only')
851
+ all_params.append('_preload_content')
852
+ all_params.append('_request_timeout')
853
+
854
+ params = locals()
855
+ for key, val in six.iteritems(params['kwargs']):
856
+ if key not in all_params:
857
+ raise TypeError(
858
+ "Got an unexpected keyword argument '%s'"
859
+ " to method list_billing_items" % key
860
+ )
861
+ params[key] = val
862
+ del params['kwargs']
863
+ # verify the required parameter 'body' is set
864
+ if self.api_client.client_side_validation and ('body' not in params or
865
+ params['body'] is None): # noqa: E501
866
+ raise ValueError("Missing the required parameter `body` when calling `list_billing_items`") # noqa: E501
867
+
868
+ collection_formats = {}
869
+
870
+ path_params = {}
871
+
872
+ query_params = []
873
+
874
+ header_params = {}
875
+
876
+ form_params = []
877
+ local_var_files = {}
878
+
879
+ body_params = None
880
+ if 'body' in params:
881
+ body_params = params['body']
882
+ # HTTP header `Accept`
883
+ header_params['Accept'] = self.api_client.select_header_accept(
884
+ ['application/json']) # noqa: E501
885
+
886
+ # HTTP header `Content-Type`
887
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
888
+ ['application/json']) # noqa: E501
889
+
890
+ # Authentication setting
891
+ auth_settings = ['byteplusSign'] # noqa: E501
892
+
893
+ return self.api_client.call_api(
894
+ '/ListBillingItems/2025-05-29/eco_partner/post/application_json/', 'POST',
895
+ path_params,
896
+ query_params,
897
+ header_params,
898
+ body=body_params,
899
+ post_params=form_params,
900
+ files=local_var_files,
901
+ response_type='ListBillingItemsResponse', # noqa: E501
902
+ auth_settings=auth_settings,
903
+ async_req=params.get('async_req'),
904
+ _return_http_data_only=params.get('_return_http_data_only'),
905
+ _preload_content=params.get('_preload_content', True),
906
+ _request_timeout=params.get('_request_timeout'),
907
+ collection_formats=collection_formats)
908
+
618
909
  def modify_quota(self, body, **kwargs): # noqa: E501
619
910
  """modify_quota # noqa: E501
620
911
 
@@ -22,13 +22,23 @@ from byteplussdkecopartner.models.create_invitation_link_response import CreateI
22
22
  from byteplussdkecopartner.models.create_unique_invitation_link_request import CreateUniqueInvitationLinkRequest
23
23
  from byteplussdkecopartner.models.create_unique_invitation_link_response import CreateUniqueInvitationLinkResponse
24
24
  from byteplussdkecopartner.models.customer_for_get_customer_details_by_type_output import CustomerForGetCustomerDetailsByTypeOutput
25
+ from byteplussdkecopartner.models.download_bill_request import DownloadBillRequest
26
+ from byteplussdkecopartner.models.download_bill_response import DownloadBillResponse
27
+ from byteplussdkecopartner.models.file_for_download_bill_output import FileForDownloadBillOutput
25
28
  from byteplussdkecopartner.models.get_customer_details_by_type_request import GetCustomerDetailsByTypeRequest
26
29
  from byteplussdkecopartner.models.get_customer_details_by_type_response import GetCustomerDetailsByTypeResponse
27
30
  from byteplussdkecopartner.models.get_customer_details_by_uid_request import GetCustomerDetailsByUIDRequest
28
31
  from byteplussdkecopartner.models.get_customer_details_by_uid_response import GetCustomerDetailsByUIDResponse
29
32
  from byteplussdkecopartner.models.get_quota_information_request import GetQuotaInformationRequest
30
33
  from byteplussdkecopartner.models.get_quota_information_response import GetQuotaInformationResponse
34
+ from byteplussdkecopartner.models.initiate_bill_generation_request import InitiateBillGenerationRequest
35
+ from byteplussdkecopartner.models.initiate_bill_generation_response import InitiateBillGenerationResponse
36
+ from byteplussdkecopartner.models.item_for_list_billing_items_output import ItemForListBillingItemsOutput
37
+ from byteplussdkecopartner.models.list_billing_items_request import ListBillingItemsRequest
38
+ from byteplussdkecopartner.models.list_billing_items_response import ListBillingItemsResponse
31
39
  from byteplussdkecopartner.models.modify_quota_request import ModifyQuotaRequest
32
40
  from byteplussdkecopartner.models.modify_quota_response import ModifyQuotaResponse
33
41
  from byteplussdkecopartner.models.settle_quota_payment_request import SettleQuotaPaymentRequest
34
42
  from byteplussdkecopartner.models.settle_quota_payment_response import SettleQuotaPaymentResponse
43
+ from byteplussdkecopartner.models.task_for_download_bill_output import TaskForDownloadBillOutput
44
+ from byteplussdkecopartner.models.total_for_list_billing_items_output import TotalForListBillingItemsOutput
@@ -0,0 +1,129 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ eco_partner
5
+
6
+ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
7
+
8
+ OpenAPI spec version: common-version
9
+
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+ """
12
+
13
+
14
+ import pprint
15
+ import re # noqa: F401
16
+
17
+ import six
18
+
19
+ from byteplussdkcore.configuration import Configuration
20
+
21
+
22
+ class DownloadBillRequest(object):
23
+ """NOTE: This class is auto generated by the swagger code generator program.
24
+
25
+ Do not edit the class manually.
26
+ """
27
+
28
+ """
29
+ Attributes:
30
+ swagger_types (dict): The key is attribute name
31
+ and the value is attribute type.
32
+ attribute_map (dict): The key is attribute name
33
+ and the value is json key in definition.
34
+ """
35
+ swagger_types = {
36
+ 'task_id': 'str'
37
+ }
38
+
39
+ attribute_map = {
40
+ 'task_id': 'TaskId'
41
+ }
42
+
43
+ def __init__(self, task_id=None, _configuration=None): # noqa: E501
44
+ """DownloadBillRequest - a model defined in Swagger""" # noqa: E501
45
+ if _configuration is None:
46
+ _configuration = Configuration()
47
+ self._configuration = _configuration
48
+
49
+ self._task_id = None
50
+ self.discriminator = None
51
+
52
+ if task_id is not None:
53
+ self.task_id = task_id
54
+
55
+ @property
56
+ def task_id(self):
57
+ """Gets the task_id of this DownloadBillRequest. # noqa: E501
58
+
59
+
60
+ :return: The task_id of this DownloadBillRequest. # noqa: E501
61
+ :rtype: str
62
+ """
63
+ return self._task_id
64
+
65
+ @task_id.setter
66
+ def task_id(self, task_id):
67
+ """Sets the task_id of this DownloadBillRequest.
68
+
69
+
70
+ :param task_id: The task_id of this DownloadBillRequest. # noqa: E501
71
+ :type: str
72
+ """
73
+ if (self._configuration.client_side_validation and
74
+ task_id is not None and len(task_id) > 36):
75
+ raise ValueError("Invalid value for `task_id`, length must be less than or equal to `36`") # noqa: E501
76
+ if (self._configuration.client_side_validation and
77
+ task_id is not None and len(task_id) < 36):
78
+ raise ValueError("Invalid value for `task_id`, length must be greater than or equal to `36`") # noqa: E501
79
+
80
+ self._task_id = task_id
81
+
82
+ def to_dict(self):
83
+ """Returns the model properties as a dict"""
84
+ result = {}
85
+
86
+ for attr, _ in six.iteritems(self.swagger_types):
87
+ value = getattr(self, attr)
88
+ if isinstance(value, list):
89
+ result[attr] = list(map(
90
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
91
+ value
92
+ ))
93
+ elif hasattr(value, "to_dict"):
94
+ result[attr] = value.to_dict()
95
+ elif isinstance(value, dict):
96
+ result[attr] = dict(map(
97
+ lambda item: (item[0], item[1].to_dict())
98
+ if hasattr(item[1], "to_dict") else item,
99
+ value.items()
100
+ ))
101
+ else:
102
+ result[attr] = value
103
+ if issubclass(DownloadBillRequest, dict):
104
+ for key, value in self.items():
105
+ result[key] = value
106
+
107
+ return result
108
+
109
+ def to_str(self):
110
+ """Returns the string representation of the model"""
111
+ return pprint.pformat(self.to_dict())
112
+
113
+ def __repr__(self):
114
+ """For `print` and `pprint`"""
115
+ return self.to_str()
116
+
117
+ def __eq__(self, other):
118
+ """Returns true if both objects are equal"""
119
+ if not isinstance(other, DownloadBillRequest):
120
+ return False
121
+
122
+ return self.to_dict() == other.to_dict()
123
+
124
+ def __ne__(self, other):
125
+ """Returns true if both objects are not equal"""
126
+ if not isinstance(other, DownloadBillRequest):
127
+ return True
128
+
129
+ return self.to_dict() != other.to_dict()
@@ -1,7 +1,7 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- redis
4
+ eco_partner
5
5
 
6
6
  No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
7
7
 
@@ -19,7 +19,7 @@ import six
19
19
  from byteplussdkcore.configuration import Configuration
20
20
 
21
21
 
22
- class ConfigureNodeForCreateEnterpriseDBInstanceInput(object):
22
+ class DownloadBillResponse(object):
23
23
  """NOTE: This class is auto generated by the swagger code generator program.
24
24
 
25
25
  Do not edit the class manually.
@@ -33,45 +33,45 @@ class ConfigureNodeForCreateEnterpriseDBInstanceInput(object):
33
33
  and the value is json key in definition.
34
34
  """
35
35
  swagger_types = {
36
- 'az': 'str'
36
+ 'tasks': 'list[TaskForDownloadBillOutput]'
37
37
  }
38
38
 
39
39
  attribute_map = {
40
- 'az': 'AZ'
40
+ 'tasks': 'Tasks'
41
41
  }
42
42
 
43
- def __init__(self, az=None, _configuration=None): # noqa: E501
44
- """ConfigureNodeForCreateEnterpriseDBInstanceInput - a model defined in Swagger""" # noqa: E501
43
+ def __init__(self, tasks=None, _configuration=None): # noqa: E501
44
+ """DownloadBillResponse - a model defined in Swagger""" # noqa: E501
45
45
  if _configuration is None:
46
46
  _configuration = Configuration()
47
47
  self._configuration = _configuration
48
48
 
49
- self._az = None
49
+ self._tasks = None
50
50
  self.discriminator = None
51
51
 
52
- if az is not None:
53
- self.az = az
52
+ if tasks is not None:
53
+ self.tasks = tasks
54
54
 
55
55
  @property
56
- def az(self):
57
- """Gets the az of this ConfigureNodeForCreateEnterpriseDBInstanceInput. # noqa: E501
56
+ def tasks(self):
57
+ """Gets the tasks of this DownloadBillResponse. # noqa: E501
58
58
 
59
59
 
60
- :return: The az of this ConfigureNodeForCreateEnterpriseDBInstanceInput. # noqa: E501
61
- :rtype: str
60
+ :return: The tasks of this DownloadBillResponse. # noqa: E501
61
+ :rtype: list[TaskForDownloadBillOutput]
62
62
  """
63
- return self._az
63
+ return self._tasks
64
64
 
65
- @az.setter
66
- def az(self, az):
67
- """Sets the az of this ConfigureNodeForCreateEnterpriseDBInstanceInput.
65
+ @tasks.setter
66
+ def tasks(self, tasks):
67
+ """Sets the tasks of this DownloadBillResponse.
68
68
 
69
69
 
70
- :param az: The az of this ConfigureNodeForCreateEnterpriseDBInstanceInput. # noqa: E501
71
- :type: str
70
+ :param tasks: The tasks of this DownloadBillResponse. # noqa: E501
71
+ :type: list[TaskForDownloadBillOutput]
72
72
  """
73
73
 
74
- self._az = az
74
+ self._tasks = tasks
75
75
 
76
76
  def to_dict(self):
77
77
  """Returns the model properties as a dict"""
@@ -94,7 +94,7 @@ class ConfigureNodeForCreateEnterpriseDBInstanceInput(object):
94
94
  ))
95
95
  else:
96
96
  result[attr] = value
97
- if issubclass(ConfigureNodeForCreateEnterpriseDBInstanceInput, dict):
97
+ if issubclass(DownloadBillResponse, dict):
98
98
  for key, value in self.items():
99
99
  result[key] = value
100
100
 
@@ -110,14 +110,14 @@ class ConfigureNodeForCreateEnterpriseDBInstanceInput(object):
110
110
 
111
111
  def __eq__(self, other):
112
112
  """Returns true if both objects are equal"""
113
- if not isinstance(other, ConfigureNodeForCreateEnterpriseDBInstanceInput):
113
+ if not isinstance(other, DownloadBillResponse):
114
114
  return False
115
115
 
116
116
  return self.to_dict() == other.to_dict()
117
117
 
118
118
  def __ne__(self, other):
119
119
  """Returns true if both objects are not equal"""
120
- if not isinstance(other, ConfigureNodeForCreateEnterpriseDBInstanceInput):
120
+ if not isinstance(other, DownloadBillResponse):
121
121
  return True
122
122
 
123
123
  return self.to_dict() != other.to_dict()