@@ -52,8 +52,8 @@ def list_audit_logs(self, **kwargs): # noqa: E501
5252 If the method is called asynchronously,
5353 returns the request thread.
5454 """
55- kwargs [' _return_http_data_only' ] = True
56- if kwargs .get (' async_req' ):
55+ kwargs [" _return_http_data_only" ] = True
56+ if kwargs .get (" async_req" ):
5757 return self .list_audit_logs_with_http_info (** kwargs ) # noqa: E501
5858 else :
5959 (data ) = self .list_audit_logs_with_http_info (** kwargs ) # noqa: E501
@@ -79,72 +79,82 @@ def list_audit_logs_with_http_info(self, **kwargs): # noqa: E501
7979 returns the request thread.
8080 """
8181
82- all_params = [' x_request_id' , 'q' , ' sort' , ' page' , ' page_size' ] # noqa: E501
83- all_params .append (' async_req' )
84- all_params .append (' _return_http_data_only' )
85- all_params .append (' _preload_content' )
86- all_params .append (' _request_timeout' )
82+ all_params = [" x_request_id" , "q" , " sort" , " page" , " page_size" ] # noqa: E501
83+ all_params .append (" async_req" )
84+ all_params .append (" _return_http_data_only" )
85+ all_params .append (" _preload_content" )
86+ all_params .append (" _request_timeout" )
8787
8888 params = locals ()
89- for key , val in six .iteritems (params [' kwargs' ]):
89+ for key , val in six .iteritems (params [" kwargs" ]):
9090 if key not in all_params :
9191 raise TypeError (
92- "Got an unexpected keyword argument '%s'"
93- " to method list_audit_logs" % key
92+ "Got an unexpected keyword argument '%s'" " to method list_audit_logs" % key
9493 )
9594 params [key ] = val
96- del params ['kwargs' ]
97-
98- if self .api_client .client_side_validation and ('x_request_id' in params and
99- len (params ['x_request_id' ]) < 1 ):
100- raise ValueError ("Invalid value for parameter `x_request_id` when calling `list_audit_logs`, length must be greater than or equal to `1`" ) # noqa: E501
101- if self .api_client .client_side_validation and ('page_size' in params and params ['page_size' ] > 100 ): # noqa: E501
102- raise ValueError ("Invalid value for parameter `page_size` when calling `list_audit_logs`, must be a value less than or equal to `100`" ) # noqa: E501
95+ del params ["kwargs" ]
96+
97+ if self .api_client .client_side_validation and (
98+ "x_request_id" in params and len (params ["x_request_id" ]) < 1
99+ ):
100+ raise ValueError (
101+ "Invalid value for parameter `x_request_id` when calling `list_audit_logs`, length must be greater than or equal to `1`"
102+ ) # noqa: E501
103+ if self .api_client .client_side_validation and (
104+ "page_size" in params and params ["page_size" ] > 100
105+ ): # noqa: E501
106+ raise ValueError (
107+ "Invalid value for parameter `page_size` when calling `list_audit_logs`, must be a value less than or equal to `100`"
108+ ) # noqa: E501
103109 collection_formats = {}
104110
105111 path_params = {}
106112
107113 query_params = []
108- if 'q' in params :
109- query_params .append (('q' , params ['q' ])) # noqa: E501
110- if ' sort' in params :
111- query_params .append ((' sort' , params [' sort' ])) # noqa: E501
112- if ' page' in params :
113- query_params .append ((' page' , params [' page' ])) # noqa: E501
114- if ' page_size' in params :
115- query_params .append ((' page_size' , params [' page_size' ])) # noqa: E501
114+ if "q" in params :
115+ query_params .append (("q" , params ["q" ])) # noqa: E501
116+ if " sort" in params :
117+ query_params .append ((" sort" , params [" sort" ])) # noqa: E501
118+ if " page" in params :
119+ query_params .append ((" page" , params [" page" ])) # noqa: E501
120+ if " page_size" in params :
121+ query_params .append ((" page_size" , params [" page_size" ])) # noqa: E501
116122
117123 header_params = {}
118- if ' x_request_id' in params :
119- header_params [' X-Request-Id' ] = params [' x_request_id' ] # noqa: E501
124+ if " x_request_id" in params :
125+ header_params [" X-Request-Id" ] = params [" x_request_id" ] # noqa: E501
120126
121127 form_params = []
122128 local_var_files = {}
123129
124130 body_params = None
125131 # HTTP header `Accept`
126- header_params ['Accept' ] = self .api_client .select_header_accept (
127- ['application/json' ]) # noqa: E501
132+ header_params ["Accept" ] = self .api_client .select_header_accept (
133+ ["application/json" ]
134+ ) # noqa: E501
128135
129136 # HTTP header `Content-Type`
130- header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
131- ['application/json' ]) # noqa: E501
137+ header_params ["Content-Type" ] = self .api_client .select_header_content_type ( # noqa: E501
138+ ["application/json" ]
139+ ) # noqa: E501
132140
133141 # Authentication setting
134- auth_settings = [' basic' ] # noqa: E501
142+ auth_settings = [" basic" ] # noqa: E501
135143
136144 return self .api_client .call_api (
137- '/audit-logs' , 'GET' ,
145+ "/audit-logs" ,
146+ "GET" ,
138147 path_params ,
139148 query_params ,
140149 header_params ,
141150 body = body_params ,
142151 post_params = form_params ,
143152 files = local_var_files ,
144- response_type = ' list[AuditLog]' , # noqa: E501
153+ response_type = " list[AuditLog]" , # noqa: E501
145154 auth_settings = auth_settings ,
146- async_req = params .get ('async_req' ),
147- _return_http_data_only = params .get ('_return_http_data_only' ),
148- _preload_content = params .get ('_preload_content' , True ),
149- _request_timeout = params .get ('_request_timeout' ),
150- collection_formats = collection_formats )
155+ async_req = params .get ("async_req" ),
156+ _return_http_data_only = params .get ("_return_http_data_only" ),
157+ _preload_content = params .get ("_preload_content" , True ),
158+ _request_timeout = params .get ("_request_timeout" ),
159+ collection_formats = collection_formats ,
160+ )
0 commit comments