Skip to content

Commit e800f27

Browse files
committed
Publishing release-0815 as purefusion-1.0.4
1 parent cf52367 commit e800f27

54 files changed

Lines changed: 3662 additions & 117 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

build/lib.linux-x86_64-2.7/fusion/api/availability_zones_api.py

Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,119 @@ def create_availability_zone_with_http_info(self, body, region_name, **kwargs):
149149
_request_timeout=params.get('_request_timeout'),
150150
collection_formats=collection_formats)
151151

152+
def delete_availability_zone(self, region_name, availability_zone_name, **kwargs): # noqa: E501
153+
"""Deletes a specific Availability Zone. # noqa: E501
154+
155+
This method makes a synchronous HTTP request by default. To make an
156+
asynchronous HTTP request, please pass async_req=True
157+
>>> thread = api.delete_availability_zone(region_name, availability_zone_name, async_req=True)
158+
>>> result = thread.get()
159+
160+
:param async_req bool
161+
:param str region_name: The Region name (required)
162+
:param str availability_zone_name: The Availability Zone name (required)
163+
:param str x_request_id: The Request ID supplied with the request, used to perform operations idempotently.
164+
:param str authorization: Access token (in JWT format) required to use any API endpoint.
165+
:param str x_correlation_id: The Correlation ID provided will be added to log messages and can be used for support. The same Correlation ID may be used for separate requests, to track a higher level workflow.
166+
:return: Operation
167+
If the method is called asynchronously,
168+
returns the request thread.
169+
"""
170+
kwargs['_return_http_data_only'] = True
171+
if kwargs.get('async_req'):
172+
return self.delete_availability_zone_with_http_info(region_name, availability_zone_name, **kwargs) # noqa: E501
173+
else:
174+
(data) = self.delete_availability_zone_with_http_info(region_name, availability_zone_name, **kwargs) # noqa: E501
175+
return data
176+
177+
def delete_availability_zone_with_http_info(self, region_name, availability_zone_name, **kwargs): # noqa: E501
178+
"""Deletes a specific Availability Zone. # noqa: E501
179+
180+
This method makes a synchronous HTTP request by default. To make an
181+
asynchronous HTTP request, please pass async_req=True
182+
>>> thread = api.delete_availability_zone_with_http_info(region_name, availability_zone_name, async_req=True)
183+
>>> result = thread.get()
184+
185+
:param async_req bool
186+
:param str region_name: The Region name (required)
187+
:param str availability_zone_name: The Availability Zone name (required)
188+
:param str x_request_id: The Request ID supplied with the request, used to perform operations idempotently.
189+
:param str authorization: Access token (in JWT format) required to use any API endpoint.
190+
:param str x_correlation_id: The Correlation ID provided will be added to log messages and can be used for support. The same Correlation ID may be used for separate requests, to track a higher level workflow.
191+
:return: Operation
192+
If the method is called asynchronously,
193+
returns the request thread.
194+
"""
195+
196+
all_params = ['region_name', 'availability_zone_name', 'x_request_id', 'authorization', 'x_correlation_id'] # noqa: E501
197+
all_params.append('async_req')
198+
all_params.append('_return_http_data_only')
199+
all_params.append('_preload_content')
200+
all_params.append('_request_timeout')
201+
202+
params = locals()
203+
for key, val in six.iteritems(params['kwargs']):
204+
if key not in all_params:
205+
raise TypeError(
206+
"Got an unexpected keyword argument '%s'"
207+
" to method delete_availability_zone" % key
208+
)
209+
params[key] = val
210+
del params['kwargs']
211+
# verify the required parameter 'region_name' is set
212+
if ('region_name' not in params or
213+
params['region_name'] is None):
214+
raise ValueError("Missing the required parameter `region_name` when calling `delete_availability_zone`") # noqa: E501
215+
# verify the required parameter 'availability_zone_name' is set
216+
if ('availability_zone_name' not in params or
217+
params['availability_zone_name'] is None):
218+
raise ValueError("Missing the required parameter `availability_zone_name` when calling `delete_availability_zone`") # noqa: E501
219+
220+
collection_formats = {}
221+
222+
path_params = {}
223+
if 'region_name' in params:
224+
path_params['region_name'] = params['region_name'] # noqa: E501
225+
if 'availability_zone_name' in params:
226+
path_params['availability_zone_name'] = params['availability_zone_name'] # noqa: E501
227+
228+
query_params = []
229+
230+
header_params = {}
231+
if 'x_request_id' in params:
232+
header_params['X-Request-ID'] = params['x_request_id'] # noqa: E501
233+
if 'authorization' in params:
234+
header_params['Authorization'] = params['authorization'] # noqa: E501
235+
if 'x_correlation_id' in params:
236+
header_params['X-Correlation-ID'] = params['x_correlation_id'] # noqa: E501
237+
238+
form_params = []
239+
local_var_files = {}
240+
241+
body_params = None
242+
# HTTP header `Accept`
243+
header_params['Accept'] = self.api_client.select_header_accept(
244+
['application/json']) # noqa: E501
245+
246+
# Authentication setting
247+
auth_settings = ['accessToken', 'oauth'] # noqa: E501
248+
249+
return self.api_client.call_api(
250+
'/regions/{region_name}/availability-zones/{availability_zone_name}', 'DELETE',
251+
path_params,
252+
query_params,
253+
header_params,
254+
body=body_params,
255+
post_params=form_params,
256+
files=local_var_files,
257+
response_type='Operation', # noqa: E501
258+
auth_settings=auth_settings,
259+
async_req=params.get('async_req'),
260+
_return_http_data_only=params.get('_return_http_data_only'),
261+
_preload_content=params.get('_preload_content', True),
262+
_request_timeout=params.get('_request_timeout'),
263+
collection_formats=collection_formats)
264+
152265
def get_availability_zone(self, region_name, availability_zone_name, **kwargs): # noqa: E501
153266
"""Gets a specific Availability Zone. # noqa: E501
154267

build/lib.linux-x86_64-2.7/fusion/api/operations_api.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,6 @@ def list_operations(self, **kwargs): # noqa: E501
260260
:param str resource_kind: The kind of resource on which the Operation was performed.
261261
:param str resource_id: The ID of resource on which the Operation was performed.
262262
:param str status: The status of the Operation.
263-
:param bool error: Whether to return Operations which had errors.
264-
:param str attributes:
265263
:param str sort:
266264
:param int limit:
267265
:param int offset:
@@ -295,8 +293,6 @@ def list_operations_with_http_info(self, **kwargs): # noqa: E501
295293
:param str resource_kind: The kind of resource on which the Operation was performed.
296294
:param str resource_id: The ID of resource on which the Operation was performed.
297295
:param str status: The status of the Operation.
298-
:param bool error: Whether to return Operations which had errors.
299-
:param str attributes:
300296
:param str sort:
301297
:param int limit:
302298
:param int offset:
@@ -306,7 +302,7 @@ def list_operations_with_http_info(self, **kwargs): # noqa: E501
306302
returns the request thread.
307303
"""
308304

309-
all_params = ['x_request_id', 'authorization', 'x_correlation_id', 'action', 'request_id', 'request_collection', 'resource_kind', 'resource_id', 'status', 'error', 'attributes', 'sort', 'limit', 'offset', 'created_after'] # noqa: E501
305+
all_params = ['x_request_id', 'authorization', 'x_correlation_id', 'action', 'request_id', 'request_collection', 'resource_kind', 'resource_id', 'status', 'sort', 'limit', 'offset', 'created_after'] # noqa: E501
310306
all_params.append('async_req')
311307
all_params.append('_return_http_data_only')
312308
all_params.append('_preload_content')
@@ -339,10 +335,6 @@ def list_operations_with_http_info(self, **kwargs): # noqa: E501
339335
query_params.append(('resource_id', params['resource_id'])) # noqa: E501
340336
if 'status' in params:
341337
query_params.append(('status', params['status'])) # noqa: E501
342-
if 'error' in params:
343-
query_params.append(('error', params['error'])) # noqa: E501
344-
if 'attributes' in params:
345-
query_params.append(('attributes', params['attributes'])) # noqa: E501
346338
if 'sort' in params:
347339
query_params.append(('sort', params['sort'])) # noqa: E501
348340
if 'limit' in params:

build/lib.linux-x86_64-2.7/fusion/api/protection_policies_api.py

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,111 @@ def create_protection_policy_with_http_info(self, body, **kwargs): # noqa: E501
141141
_request_timeout=params.get('_request_timeout'),
142142
collection_formats=collection_formats)
143143

144+
def delete_protection_policy(self, protection_policy_name, **kwargs): # noqa: E501
145+
"""Deletes a specific protection policy. # noqa: E501
146+
147+
This method makes a synchronous HTTP request by default. To make an
148+
asynchronous HTTP request, please pass async_req=True
149+
>>> thread = api.delete_protection_policy(protection_policy_name, async_req=True)
150+
>>> result = thread.get()
151+
152+
:param async_req bool
153+
:param str protection_policy_name: The Protection Policy name (required)
154+
:param str x_request_id: The Request ID supplied with the request, used to perform operations idempotently.
155+
:param str authorization: Access token (in JWT format) required to use any API endpoint.
156+
:param str x_correlation_id: The Correlation ID provided will be added to log messages and can be used for support. The same Correlation ID may be used for separate requests, to track a higher level workflow.
157+
:return: Operation
158+
If the method is called asynchronously,
159+
returns the request thread.
160+
"""
161+
kwargs['_return_http_data_only'] = True
162+
if kwargs.get('async_req'):
163+
return self.delete_protection_policy_with_http_info(protection_policy_name, **kwargs) # noqa: E501
164+
else:
165+
(data) = self.delete_protection_policy_with_http_info(protection_policy_name, **kwargs) # noqa: E501
166+
return data
167+
168+
def delete_protection_policy_with_http_info(self, protection_policy_name, **kwargs): # noqa: E501
169+
"""Deletes a specific protection policy. # noqa: E501
170+
171+
This method makes a synchronous HTTP request by default. To make an
172+
asynchronous HTTP request, please pass async_req=True
173+
>>> thread = api.delete_protection_policy_with_http_info(protection_policy_name, async_req=True)
174+
>>> result = thread.get()
175+
176+
:param async_req bool
177+
:param str protection_policy_name: The Protection Policy name (required)
178+
:param str x_request_id: The Request ID supplied with the request, used to perform operations idempotently.
179+
:param str authorization: Access token (in JWT format) required to use any API endpoint.
180+
:param str x_correlation_id: The Correlation ID provided will be added to log messages and can be used for support. The same Correlation ID may be used for separate requests, to track a higher level workflow.
181+
:return: Operation
182+
If the method is called asynchronously,
183+
returns the request thread.
184+
"""
185+
186+
all_params = ['protection_policy_name', 'x_request_id', 'authorization', 'x_correlation_id'] # noqa: E501
187+
all_params.append('async_req')
188+
all_params.append('_return_http_data_only')
189+
all_params.append('_preload_content')
190+
all_params.append('_request_timeout')
191+
192+
params = locals()
193+
for key, val in six.iteritems(params['kwargs']):
194+
if key not in all_params:
195+
raise TypeError(
196+
"Got an unexpected keyword argument '%s'"
197+
" to method delete_protection_policy" % key
198+
)
199+
params[key] = val
200+
del params['kwargs']
201+
# verify the required parameter 'protection_policy_name' is set
202+
if ('protection_policy_name' not in params or
203+
params['protection_policy_name'] is None):
204+
raise ValueError("Missing the required parameter `protection_policy_name` when calling `delete_protection_policy`") # noqa: E501
205+
206+
collection_formats = {}
207+
208+
path_params = {}
209+
if 'protection_policy_name' in params:
210+
path_params['protection_policy_name'] = params['protection_policy_name'] # noqa: E501
211+
212+
query_params = []
213+
214+
header_params = {}
215+
if 'x_request_id' in params:
216+
header_params['X-Request-ID'] = params['x_request_id'] # noqa: E501
217+
if 'authorization' in params:
218+
header_params['Authorization'] = params['authorization'] # noqa: E501
219+
if 'x_correlation_id' in params:
220+
header_params['X-Correlation-ID'] = params['x_correlation_id'] # noqa: E501
221+
222+
form_params = []
223+
local_var_files = {}
224+
225+
body_params = None
226+
# HTTP header `Accept`
227+
header_params['Accept'] = self.api_client.select_header_accept(
228+
['application/json']) # noqa: E501
229+
230+
# Authentication setting
231+
auth_settings = ['accessToken', 'oauth'] # noqa: E501
232+
233+
return self.api_client.call_api(
234+
'/protection-policies/{protection_policy_name}', 'DELETE',
235+
path_params,
236+
query_params,
237+
header_params,
238+
body=body_params,
239+
post_params=form_params,
240+
files=local_var_files,
241+
response_type='Operation', # noqa: E501
242+
auth_settings=auth_settings,
243+
async_req=params.get('async_req'),
244+
_return_http_data_only=params.get('_return_http_data_only'),
245+
_preload_content=params.get('_preload_content', True),
246+
_request_timeout=params.get('_request_timeout'),
247+
collection_formats=collection_formats)
248+
144249
def get_protection_policy(self, protection_policy_name, **kwargs): # noqa: E501
145250
"""Gets a specific Protection Policy. # noqa: E501
146251

0 commit comments

Comments
 (0)