@@ -518,6 +518,103 @@ def create_key_pair_with_http_info(self, body, **kwargs): # noqa: E501
518518 _request_timeout = params .get ('_request_timeout' ),
519519 collection_formats = collection_formats )
520520
521+ def create_subscription (self , body , ** kwargs ): # noqa: E501
522+ """create_subscription # noqa: E501
523+
524+ This method makes a synchronous HTTP request by default. To make an
525+ asynchronous HTTP request, please pass async_req=True
526+ >>> thread = api.create_subscription(body, async_req=True)
527+ >>> result = thread.get()
528+
529+ :param async_req bool
530+ :param CreateSubscriptionRequest body: (required)
531+ :return: CreateSubscriptionResponse
532+ If the method is called asynchronously,
533+ returns the request thread.
534+ """
535+ kwargs ['_return_http_data_only' ] = True
536+ if kwargs .get ('async_req' ):
537+ return self .create_subscription_with_http_info (body , ** kwargs ) # noqa: E501
538+ else :
539+ (data ) = self .create_subscription_with_http_info (body , ** kwargs ) # noqa: E501
540+ return data
541+
542+ def create_subscription_with_http_info (self , body , ** kwargs ): # noqa: E501
543+ """create_subscription # noqa: E501
544+
545+ This method makes a synchronous HTTP request by default. To make an
546+ asynchronous HTTP request, please pass async_req=True
547+ >>> thread = api.create_subscription_with_http_info(body, async_req=True)
548+ >>> result = thread.get()
549+
550+ :param async_req bool
551+ :param CreateSubscriptionRequest body: (required)
552+ :return: CreateSubscriptionResponse
553+ If the method is called asynchronously,
554+ returns the request thread.
555+ """
556+
557+ all_params = ['body' ] # noqa: E501
558+ all_params .append ('async_req' )
559+ all_params .append ('_return_http_data_only' )
560+ all_params .append ('_preload_content' )
561+ all_params .append ('_request_timeout' )
562+
563+ params = locals ()
564+ for key , val in six .iteritems (params ['kwargs' ]):
565+ if key not in all_params :
566+ raise TypeError (
567+ "Got an unexpected keyword argument '%s'"
568+ " to method create_subscription" % key
569+ )
570+ params [key ] = val
571+ del params ['kwargs' ]
572+ # verify the required parameter 'body' is set
573+ if self .api_client .client_side_validation and ('body' not in params or
574+ params ['body' ] is None ): # noqa: E501
575+ raise ValueError ("Missing the required parameter `body` when calling `create_subscription`" ) # noqa: E501
576+
577+ collection_formats = {}
578+
579+ path_params = {}
580+
581+ query_params = []
582+
583+ header_params = {}
584+
585+ form_params = []
586+ local_var_files = {}
587+
588+ body_params = None
589+ if 'body' in params :
590+ body_params = params ['body' ]
591+ # HTTP header `Accept`
592+ header_params ['Accept' ] = self .api_client .select_header_accept (
593+ ['application/json' ]) # noqa: E501
594+
595+ # HTTP header `Content-Type`
596+ header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
597+ ['text/plain' ]) # noqa: E501
598+
599+ # Authentication setting
600+ auth_settings = ['volcengineSign' ] # noqa: E501
601+
602+ return self .api_client .call_api (
603+ '/CreateSubscription/2020-04-01/ecs/get/' , 'GET' ,
604+ path_params ,
605+ query_params ,
606+ header_params ,
607+ body = body_params ,
608+ post_params = form_params ,
609+ files = local_var_files ,
610+ response_type = 'CreateSubscriptionResponse' , # noqa: E501
611+ auth_settings = auth_settings ,
612+ async_req = params .get ('async_req' ),
613+ _return_http_data_only = params .get ('_return_http_data_only' ),
614+ _preload_content = params .get ('_preload_content' , True ),
615+ _request_timeout = params .get ('_request_timeout' ),
616+ collection_formats = collection_formats )
617+
521618 def create_tags (self , body , ** kwargs ): # noqa: E501
522619 """create_tags # noqa: E501
523620
@@ -2361,6 +2458,103 @@ def describe_key_pairs_with_http_info(self, body, **kwargs): # noqa: E501
23612458 _request_timeout = params .get ('_request_timeout' ),
23622459 collection_formats = collection_formats )
23632460
2461+ def describe_subscriptions (self , body , ** kwargs ): # noqa: E501
2462+ """describe_subscriptions # noqa: E501
2463+
2464+ This method makes a synchronous HTTP request by default. To make an
2465+ asynchronous HTTP request, please pass async_req=True
2466+ >>> thread = api.describe_subscriptions(body, async_req=True)
2467+ >>> result = thread.get()
2468+
2469+ :param async_req bool
2470+ :param DescribeSubscriptionsRequest body: (required)
2471+ :return: DescribeSubscriptionsResponse
2472+ If the method is called asynchronously,
2473+ returns the request thread.
2474+ """
2475+ kwargs ['_return_http_data_only' ] = True
2476+ if kwargs .get ('async_req' ):
2477+ return self .describe_subscriptions_with_http_info (body , ** kwargs ) # noqa: E501
2478+ else :
2479+ (data ) = self .describe_subscriptions_with_http_info (body , ** kwargs ) # noqa: E501
2480+ return data
2481+
2482+ def describe_subscriptions_with_http_info (self , body , ** kwargs ): # noqa: E501
2483+ """describe_subscriptions # noqa: E501
2484+
2485+ This method makes a synchronous HTTP request by default. To make an
2486+ asynchronous HTTP request, please pass async_req=True
2487+ >>> thread = api.describe_subscriptions_with_http_info(body, async_req=True)
2488+ >>> result = thread.get()
2489+
2490+ :param async_req bool
2491+ :param DescribeSubscriptionsRequest body: (required)
2492+ :return: DescribeSubscriptionsResponse
2493+ If the method is called asynchronously,
2494+ returns the request thread.
2495+ """
2496+
2497+ all_params = ['body' ] # noqa: E501
2498+ all_params .append ('async_req' )
2499+ all_params .append ('_return_http_data_only' )
2500+ all_params .append ('_preload_content' )
2501+ all_params .append ('_request_timeout' )
2502+
2503+ params = locals ()
2504+ for key , val in six .iteritems (params ['kwargs' ]):
2505+ if key not in all_params :
2506+ raise TypeError (
2507+ "Got an unexpected keyword argument '%s'"
2508+ " to method describe_subscriptions" % key
2509+ )
2510+ params [key ] = val
2511+ del params ['kwargs' ]
2512+ # verify the required parameter 'body' is set
2513+ if self .api_client .client_side_validation and ('body' not in params or
2514+ params ['body' ] is None ): # noqa: E501
2515+ raise ValueError ("Missing the required parameter `body` when calling `describe_subscriptions`" ) # noqa: E501
2516+
2517+ collection_formats = {}
2518+
2519+ path_params = {}
2520+
2521+ query_params = []
2522+
2523+ header_params = {}
2524+
2525+ form_params = []
2526+ local_var_files = {}
2527+
2528+ body_params = None
2529+ if 'body' in params :
2530+ body_params = params ['body' ]
2531+ # HTTP header `Accept`
2532+ header_params ['Accept' ] = self .api_client .select_header_accept (
2533+ ['application/json' ]) # noqa: E501
2534+
2535+ # HTTP header `Content-Type`
2536+ header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
2537+ ['text/plain' ]) # noqa: E501
2538+
2539+ # Authentication setting
2540+ auth_settings = ['volcengineSign' ] # noqa: E501
2541+
2542+ return self .api_client .call_api (
2543+ '/DescribeSubscriptions/2020-04-01/ecs/get/' , 'GET' ,
2544+ path_params ,
2545+ query_params ,
2546+ header_params ,
2547+ body = body_params ,
2548+ post_params = form_params ,
2549+ files = local_var_files ,
2550+ response_type = 'DescribeSubscriptionsResponse' , # noqa: E501
2551+ auth_settings = auth_settings ,
2552+ async_req = params .get ('async_req' ),
2553+ _return_http_data_only = params .get ('_return_http_data_only' ),
2554+ _preload_content = params .get ('_preload_content' , True ),
2555+ _request_timeout = params .get ('_request_timeout' ),
2556+ collection_formats = collection_formats )
2557+
23642558 def describe_system_events (self , body , ** kwargs ): # noqa: E501
23652559 """describe_system_events # noqa: E501
23662560
@@ -4301,6 +4495,103 @@ def modify_key_pair_attribute_with_http_info(self, body, **kwargs): # noqa: E50
43014495 _request_timeout = params .get ('_request_timeout' ),
43024496 collection_formats = collection_formats )
43034497
4498+ def modify_subscription_event_types (self , body , ** kwargs ): # noqa: E501
4499+ """modify_subscription_event_types # noqa: E501
4500+
4501+ This method makes a synchronous HTTP request by default. To make an
4502+ asynchronous HTTP request, please pass async_req=True
4503+ >>> thread = api.modify_subscription_event_types(body, async_req=True)
4504+ >>> result = thread.get()
4505+
4506+ :param async_req bool
4507+ :param ModifySubscriptionEventTypesRequest body: (required)
4508+ :return: ModifySubscriptionEventTypesResponse
4509+ If the method is called asynchronously,
4510+ returns the request thread.
4511+ """
4512+ kwargs ['_return_http_data_only' ] = True
4513+ if kwargs .get ('async_req' ):
4514+ return self .modify_subscription_event_types_with_http_info (body , ** kwargs ) # noqa: E501
4515+ else :
4516+ (data ) = self .modify_subscription_event_types_with_http_info (body , ** kwargs ) # noqa: E501
4517+ return data
4518+
4519+ def modify_subscription_event_types_with_http_info (self , body , ** kwargs ): # noqa: E501
4520+ """modify_subscription_event_types # noqa: E501
4521+
4522+ This method makes a synchronous HTTP request by default. To make an
4523+ asynchronous HTTP request, please pass async_req=True
4524+ >>> thread = api.modify_subscription_event_types_with_http_info(body, async_req=True)
4525+ >>> result = thread.get()
4526+
4527+ :param async_req bool
4528+ :param ModifySubscriptionEventTypesRequest body: (required)
4529+ :return: ModifySubscriptionEventTypesResponse
4530+ If the method is called asynchronously,
4531+ returns the request thread.
4532+ """
4533+
4534+ all_params = ['body' ] # noqa: E501
4535+ all_params .append ('async_req' )
4536+ all_params .append ('_return_http_data_only' )
4537+ all_params .append ('_preload_content' )
4538+ all_params .append ('_request_timeout' )
4539+
4540+ params = locals ()
4541+ for key , val in six .iteritems (params ['kwargs' ]):
4542+ if key not in all_params :
4543+ raise TypeError (
4544+ "Got an unexpected keyword argument '%s'"
4545+ " to method modify_subscription_event_types" % key
4546+ )
4547+ params [key ] = val
4548+ del params ['kwargs' ]
4549+ # verify the required parameter 'body' is set
4550+ if self .api_client .client_side_validation and ('body' not in params or
4551+ params ['body' ] is None ): # noqa: E501
4552+ raise ValueError ("Missing the required parameter `body` when calling `modify_subscription_event_types`" ) # noqa: E501
4553+
4554+ collection_formats = {}
4555+
4556+ path_params = {}
4557+
4558+ query_params = []
4559+
4560+ header_params = {}
4561+
4562+ form_params = []
4563+ local_var_files = {}
4564+
4565+ body_params = None
4566+ if 'body' in params :
4567+ body_params = params ['body' ]
4568+ # HTTP header `Accept`
4569+ header_params ['Accept' ] = self .api_client .select_header_accept (
4570+ ['application/json' ]) # noqa: E501
4571+
4572+ # HTTP header `Content-Type`
4573+ header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
4574+ ['text/plain' ]) # noqa: E501
4575+
4576+ # Authentication setting
4577+ auth_settings = ['volcengineSign' ] # noqa: E501
4578+
4579+ return self .api_client .call_api (
4580+ '/ModifySubscriptionEventTypes/2020-04-01/ecs/get/' , 'GET' ,
4581+ path_params ,
4582+ query_params ,
4583+ header_params ,
4584+ body = body_params ,
4585+ post_params = form_params ,
4586+ files = local_var_files ,
4587+ response_type = 'ModifySubscriptionEventTypesResponse' , # noqa: E501
4588+ auth_settings = auth_settings ,
4589+ async_req = params .get ('async_req' ),
4590+ _return_http_data_only = params .get ('_return_http_data_only' ),
4591+ _preload_content = params .get ('_preload_content' , True ),
4592+ _request_timeout = params .get ('_request_timeout' ),
4593+ collection_formats = collection_formats )
4594+
43044595 def reboot_instance (self , body , ** kwargs ): # noqa: E501
43054596 """reboot_instance # noqa: E501
43064597
0 commit comments