eilam_test 1.1.15
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.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/LICENSE.txt +21 -0
- data/README.md +271 -0
- data/Rakefile +10 -0
- data/docs/AbstractCapability.md +20 -0
- data/docs/AbstractCapabilityApi.md +276 -0
- data/docs/Account.md +22 -0
- data/docs/AccountApi.md +346 -0
- data/docs/AccountPostRequest.md +20 -0
- data/docs/AccountPostResponse.md +24 -0
- data/docs/Address.md +32 -0
- data/docs/AddressApi.md +276 -0
- data/docs/AddressCreate.md +32 -0
- data/docs/AuthResponse.md +18 -0
- data/docs/Authentication.md +20 -0
- data/docs/AuthenticationApi.md +70 -0
- data/docs/AutoSDEProject.md +56 -0
- data/docs/AutoSDEProjectApi.md +276 -0
- data/docs/AutoSDERole.md +20 -0
- data/docs/AutoSDERoleApi.md +276 -0
- data/docs/CapabilityTranslation.md +36 -0
- data/docs/CapabilityTranslationApi.md +276 -0
- data/docs/CapabilityTranslationCreate.md +32 -0
- data/docs/Event.md +32 -0
- data/docs/EventApi.md +276 -0
- data/docs/Host.md +30 -0
- data/docs/HostApi.md +276 -0
- data/docs/HostCluster.md +34 -0
- data/docs/HostClusterApi.md +276 -0
- data/docs/HostClusterCreate.md +30 -0
- data/docs/HostClusterMembership.md +24 -0
- data/docs/HostClusterMembershipApi.md +276 -0
- data/docs/HostClusterResponse.md +34 -0
- data/docs/HostClusterVolumeMapping.md +26 -0
- data/docs/HostClusterVolumeMappingApi.md +276 -0
- data/docs/HostClusterVolumeMappingCreate.md +24 -0
- data/docs/HostClusterVolumeMappingResponse.md +26 -0
- data/docs/HostCreate.md +40 -0
- data/docs/HostVolumeConnection.md +24 -0
- data/docs/HostVolumeConnectionApi.md +276 -0
- data/docs/HostVolumeConnectionCreate.md +22 -0
- data/docs/Job.md +30 -0
- data/docs/JobApi.md +140 -0
- data/docs/JobCreate.md +20 -0
- data/docs/NativeCapability.md +24 -0
- data/docs/NativeCapabilityApi.md +276 -0
- data/docs/Profile.md +26 -0
- data/docs/ProfileApi.md +276 -0
- data/docs/ProvisioningStrategy.md +20 -0
- data/docs/ProvisioningStrategyApi.md +276 -0
- data/docs/Service.md +36 -0
- data/docs/ServiceAbstractCapabilityValue.md +22 -0
- data/docs/ServiceApi.md +346 -0
- data/docs/ServiceCreate.md +34 -0
- data/docs/ServiceResourceAttachment.md +24 -0
- data/docs/ServiceResourceAttachmentApi.md +276 -0
- data/docs/Snapshot.md +26 -0
- data/docs/SnapshotApi.md +276 -0
- data/docs/SnapshotCreate.md +24 -0
- data/docs/StorageHost.md +36 -0
- data/docs/StorageHostApi.md +346 -0
- data/docs/StorageHostCreate.md +42 -0
- data/docs/StorageHostResponse.md +38 -0
- data/docs/StorageHostUpdate.md +22 -0
- data/docs/StorageHostVolumeMapping.md +26 -0
- data/docs/StorageHostVolumeMappingApi.md +276 -0
- data/docs/StorageHostVolumeMappingCreate.md +24 -0
- data/docs/StorageHostVolumeMappingResponse.md +26 -0
- data/docs/StorageHostWWPNCandidates.md +20 -0
- data/docs/StorageHostWWPNCandidatesApi.md +72 -0
- data/docs/StorageResource.md +34 -0
- data/docs/StorageResourceApi.md +346 -0
- data/docs/StorageResourceCreate.md +32 -0
- data/docs/StorageResourceResponse.md +34 -0
- data/docs/StorageSystem.md +34 -0
- data/docs/StorageSystemApi.md +346 -0
- data/docs/StorageSystemCreate.md +52 -0
- data/docs/StorageSystemUpdate.md +24 -0
- data/docs/SystemType.md +26 -0
- data/docs/SystemTypeApi.md +276 -0
- data/docs/SystemTypeCreate.md +28 -0
- data/docs/User.md +38 -0
- data/docs/UserApi.md +346 -0
- data/docs/UserCreate.md +38 -0
- data/docs/UserUpdate.md +30 -0
- data/docs/ValidateSystem.md +26 -0
- data/docs/ValidateSystemApi.md +75 -0
- data/docs/Volume.md +36 -0
- data/docs/VolumeApi.md +346 -0
- data/docs/VolumeCreate.md +34 -0
- data/docs/VolumeResponse.md +36 -0
- data/docs/VolumeSafeDelete.md +22 -0
- data/docs/VolumeSafeDeleteApi.md +276 -0
- data/docs/VolumeSafeDeleteCreate.md +18 -0
- data/docs/VolumeUpdate.md +20 -0
- data/eilam_test.gemspec +38 -0
- data/git_push.sh +58 -0
- data/lib/.DS_Store +0 -0
- data/lib/eilam_test/.DS_Store +0 -0
- data/lib/eilam_test/api/abstract_capability_api.rb +254 -0
- data/lib/eilam_test/api/account_api.rb +321 -0
- data/lib/eilam_test/api/address_api.rb +254 -0
- data/lib/eilam_test/api/authentication_api.rb +83 -0
- data/lib/eilam_test/api/auto_sde_project_api.rb +254 -0
- data/lib/eilam_test/api/auto_sde_role_api.rb +254 -0
- data/lib/eilam_test/api/capability_translation_api.rb +254 -0
- data/lib/eilam_test/api/event_api.rb +254 -0
- data/lib/eilam_test/api/host_api.rb +254 -0
- data/lib/eilam_test/api/host_cluster_api.rb +254 -0
- data/lib/eilam_test/api/host_cluster_membership_api.rb +254 -0
- data/lib/eilam_test/api/host_cluster_volume_mapping_api.rb +254 -0
- data/lib/eilam_test/api/host_volume_connection_api.rb +254 -0
- data/lib/eilam_test/api/job_api.rb +136 -0
- data/lib/eilam_test/api/native_capability_api.rb +254 -0
- data/lib/eilam_test/api/profile_api.rb +254 -0
- data/lib/eilam_test/api/provisioning_strategy_api.rb +254 -0
- data/lib/eilam_test/api/service_api.rb +321 -0
- data/lib/eilam_test/api/service_resource_attachment_api.rb +254 -0
- data/lib/eilam_test/api/snapshot_api.rb +254 -0
- data/lib/eilam_test/api/storage_host_api.rb +321 -0
- data/lib/eilam_test/api/storage_host_volume_mapping_api.rb +254 -0
- data/lib/eilam_test/api/storage_host_wwpn_candidates_api.rb +75 -0
- data/lib/eilam_test/api/storage_resource_api.rb +321 -0
- data/lib/eilam_test/api/storage_system_api.rb +321 -0
- data/lib/eilam_test/api/system_type_api.rb +254 -0
- data/lib/eilam_test/api/user_api.rb +321 -0
- data/lib/eilam_test/api/validate_system_api.rb +83 -0
- data/lib/eilam_test/api/volume_api.rb +321 -0
- data/lib/eilam_test/api/volume_safe_delete_api.rb +254 -0
- data/lib/eilam_test/api_client.rb +390 -0
- data/lib/eilam_test/api_error.rb +57 -0
- data/lib/eilam_test/configuration.rb +293 -0
- data/lib/eilam_test/models/abstract_capability.rb +230 -0
- data/lib/eilam_test/models/account.rb +240 -0
- data/lib/eilam_test/models/account_post_request.rb +230 -0
- data/lib/eilam_test/models/account_post_response.rb +250 -0
- data/lib/eilam_test/models/address.rb +340 -0
- data/lib/eilam_test/models/address_create.rb +342 -0
- data/lib/eilam_test/models/auth_response.rb +220 -0
- data/lib/eilam_test/models/authentication.rb +230 -0
- data/lib/eilam_test/models/auto_sde_project.rb +410 -0
- data/lib/eilam_test/models/auto_sde_role.rb +230 -0
- data/lib/eilam_test/models/capability_translation.rb +340 -0
- data/lib/eilam_test/models/capability_translation_create.rb +322 -0
- data/lib/eilam_test/models/event.rb +289 -0
- data/lib/eilam_test/models/host.rb +333 -0
- data/lib/eilam_test/models/host_cluster.rb +397 -0
- data/lib/eilam_test/models/host_cluster_create.rb +338 -0
- data/lib/eilam_test/models/host_cluster_membership.rb +287 -0
- data/lib/eilam_test/models/host_cluster_response.rb +398 -0
- data/lib/eilam_test/models/host_cluster_volume_mapping.rb +299 -0
- data/lib/eilam_test/models/host_cluster_volume_mapping_create.rb +291 -0
- data/lib/eilam_test/models/host_cluster_volume_mapping_response.rb +301 -0
- data/lib/eilam_test/models/host_create.rb +394 -0
- data/lib/eilam_test/models/host_volume_connection.rb +287 -0
- data/lib/eilam_test/models/host_volume_connection_create.rb +277 -0
- data/lib/eilam_test/models/job.rb +280 -0
- data/lib/eilam_test/models/job_create.rb +230 -0
- data/lib/eilam_test/models/native_capability.rb +251 -0
- data/lib/eilam_test/models/profile.rb +295 -0
- data/lib/eilam_test/models/provisioning_strategy.rb +269 -0
- data/lib/eilam_test/models/service.rb +351 -0
- data/lib/eilam_test/models/service_abstract_capability_value.rb +239 -0
- data/lib/eilam_test/models/service_create.rb +339 -0
- data/lib/eilam_test/models/service_resource_attachment.rb +250 -0
- data/lib/eilam_test/models/snapshot.rb +298 -0
- data/lib/eilam_test/models/snapshot_create.rb +288 -0
- data/lib/eilam_test/models/storage_host.rb +346 -0
- data/lib/eilam_test/models/storage_host_create.rb +388 -0
- data/lib/eilam_test/models/storage_host_response.rb +363 -0
- data/lib/eilam_test/models/storage_host_update.rb +301 -0
- data/lib/eilam_test/models/storage_host_volume_mapping.rb +299 -0
- data/lib/eilam_test/models/storage_host_volume_mapping_create.rb +291 -0
- data/lib/eilam_test/models/storage_host_volume_mapping_response.rb +301 -0
- data/lib/eilam_test/models/storage_host_wwpn_candidates.rb +230 -0
- data/lib/eilam_test/models/storage_resource.rb +354 -0
- data/lib/eilam_test/models/storage_resource_create.rb +345 -0
- data/lib/eilam_test/models/storage_resource_response.rb +355 -0
- data/lib/eilam_test/models/storage_system.rb +352 -0
- data/lib/eilam_test/models/storage_system_create.rb +455 -0
- data/lib/eilam_test/models/storage_system_update.rb +265 -0
- data/lib/eilam_test/models/system_type.rb +333 -0
- data/lib/eilam_test/models/system_type_create.rb +345 -0
- data/lib/eilam_test/models/user.rb +395 -0
- data/lib/eilam_test/models/user_create.rb +395 -0
- data/lib/eilam_test/models/user_update.rb +280 -0
- data/lib/eilam_test/models/validate_system.rb +260 -0
- data/lib/eilam_test/models/volume.rb +348 -0
- data/lib/eilam_test/models/volume_create.rb +343 -0
- data/lib/eilam_test/models/volume_response.rb +350 -0
- data/lib/eilam_test/models/volume_safe_delete.rb +239 -0
- data/lib/eilam_test/models/volume_safe_delete_create.rb +219 -0
- data/lib/eilam_test/models/volume_update.rb +232 -0
- data/lib/eilam_test/version.rb +15 -0
- data/lib/eilam_test.rb +130 -0
- data/spec/api/abstract_capability_api_spec.rb +74 -0
- data/spec/api/account_api_spec.rb +85 -0
- data/spec/api/address_api_spec.rb +74 -0
- data/spec/api/authentication_api_spec.rb +45 -0
- data/spec/api/auto_sde_project_api_spec.rb +74 -0
- data/spec/api/auto_sde_role_api_spec.rb +74 -0
- data/spec/api/capability_translation_api_spec.rb +74 -0
- data/spec/api/event_api_spec.rb +74 -0
- data/spec/api/host_api_spec.rb +74 -0
- data/spec/api/host_cluster_api_spec.rb +74 -0
- data/spec/api/host_cluster_membership_api_spec.rb +74 -0
- data/spec/api/host_cluster_volume_mapping_api_spec.rb +74 -0
- data/spec/api/host_volume_connection_api_spec.rb +74 -0
- data/spec/api/job_api_spec.rb +54 -0
- data/spec/api/native_capability_api_spec.rb +74 -0
- data/spec/api/profile_api_spec.rb +74 -0
- data/spec/api/provisioning_strategy_api_spec.rb +74 -0
- data/spec/api/service_api_spec.rb +85 -0
- data/spec/api/service_resource_attachment_api_spec.rb +74 -0
- data/spec/api/snapshot_api_spec.rb +74 -0
- data/spec/api/storage_host_api_spec.rb +85 -0
- data/spec/api/storage_host_volume_mapping_api_spec.rb +74 -0
- data/spec/api/storage_host_wwpn_candidates_api_spec.rb +44 -0
- data/spec/api/storage_resource_api_spec.rb +85 -0
- data/spec/api/storage_system_api_spec.rb +85 -0
- data/spec/api/system_type_api_spec.rb +74 -0
- data/spec/api/user_api_spec.rb +85 -0
- data/spec/api/validate_system_api_spec.rb +45 -0
- data/spec/api/volume_api_spec.rb +85 -0
- data/spec/api/volume_safe_delete_api_spec.rb +74 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/abstract_capability_spec.rb +40 -0
- data/spec/models/account_post_request_spec.rb +40 -0
- data/spec/models/account_post_response_spec.rb +52 -0
- data/spec/models/account_spec.rb +46 -0
- data/spec/models/address_create_spec.rb +84 -0
- data/spec/models/address_spec.rb +84 -0
- data/spec/models/auth_response_spec.rb +34 -0
- data/spec/models/authentication_spec.rb +40 -0
- data/spec/models/auto_sde_project_spec.rb +148 -0
- data/spec/models/auto_sde_role_spec.rb +40 -0
- data/spec/models/capability_translation_create_spec.rb +76 -0
- data/spec/models/capability_translation_spec.rb +88 -0
- data/spec/models/event_spec.rb +76 -0
- data/spec/models/host_cluster_create_spec.rb +70 -0
- data/spec/models/host_cluster_membership_spec.rb +56 -0
- data/spec/models/host_cluster_response_spec.rb +86 -0
- data/spec/models/host_cluster_spec.rb +86 -0
- data/spec/models/host_cluster_volume_mapping_create_spec.rb +56 -0
- data/spec/models/host_cluster_volume_mapping_response_spec.rb +62 -0
- data/spec/models/host_cluster_volume_mapping_spec.rb +62 -0
- data/spec/models/host_create_spec.rb +112 -0
- data/spec/models/host_spec.rb +78 -0
- data/spec/models/host_volume_connection_create_spec.rb +50 -0
- data/spec/models/host_volume_connection_spec.rb +56 -0
- data/spec/models/job_create_spec.rb +40 -0
- data/spec/models/job_spec.rb +70 -0
- data/spec/models/native_capability_spec.rb +52 -0
- data/spec/models/profile_spec.rb +62 -0
- data/spec/models/provisioning_strategy_spec.rb +44 -0
- data/spec/models/service_abstract_capability_value_spec.rb +46 -0
- data/spec/models/service_create_spec.rb +86 -0
- data/spec/models/service_resource_attachment_spec.rb +52 -0
- data/spec/models/service_spec.rb +92 -0
- data/spec/models/snapshot_create_spec.rb +56 -0
- data/spec/models/snapshot_spec.rb +62 -0
- data/spec/models/storage_host_create_spec.rb +114 -0
- data/spec/models/storage_host_response_spec.rb +98 -0
- data/spec/models/storage_host_spec.rb +92 -0
- data/spec/models/storage_host_update_spec.rb +54 -0
- data/spec/models/storage_host_volume_mapping_create_spec.rb +56 -0
- data/spec/models/storage_host_volume_mapping_response_spec.rb +62 -0
- data/spec/models/storage_host_volume_mapping_spec.rb +62 -0
- data/spec/models/storage_host_wwpn_candidates_spec.rb +40 -0
- data/spec/models/storage_resource_create_spec.rb +84 -0
- data/spec/models/storage_resource_response_spec.rb +90 -0
- data/spec/models/storage_resource_spec.rb +90 -0
- data/spec/models/storage_system_create_spec.rb +148 -0
- data/spec/models/storage_system_spec.rb +90 -0
- data/spec/models/storage_system_update_spec.rb +52 -0
- data/spec/models/system_type_create_spec.rb +72 -0
- data/spec/models/system_type_spec.rb +66 -0
- data/spec/models/user_create_spec.rb +94 -0
- data/spec/models/user_spec.rb +94 -0
- data/spec/models/user_update_spec.rb +70 -0
- data/spec/models/validate_system_spec.rb +58 -0
- data/spec/models/volume_create_spec.rb +86 -0
- data/spec/models/volume_response_spec.rb +92 -0
- data/spec/models/volume_safe_delete_create_spec.rb +34 -0
- data/spec/models/volume_safe_delete_spec.rb +46 -0
- data/spec/models/volume_spec.rb +92 -0
- data/spec/models/volume_update_spec.rb +40 -0
- data/spec/spec_helper.rb +111 -0
- metadata +466 -0
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Site Manager API
|
|
3
|
+
|
|
4
|
+
#Site Manager API
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
Contact: autosde@il.ibm.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 5.0.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module AutosdeOpenapiClient
|
|
16
|
+
class ProfileApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# @param [Hash] opts the optional parameters
|
|
23
|
+
# @return [Array<Profile>]
|
|
24
|
+
def profiles_get(opts = {})
|
|
25
|
+
data, _status_code, _headers = profiles_get_with_http_info(opts)
|
|
26
|
+
data
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
# @param [Hash] opts the optional parameters
|
|
30
|
+
# @return [Array<(Array<Profile>, Integer, Hash)>] Array<Profile> data, response status code and response headers
|
|
31
|
+
def profiles_get_with_http_info(opts = {})
|
|
32
|
+
if @api_client.config.debugging
|
|
33
|
+
@api_client.config.logger.debug 'Calling API: ProfileApi.profiles_get ...'
|
|
34
|
+
end
|
|
35
|
+
# resource path
|
|
36
|
+
local_var_path = '/profiles'
|
|
37
|
+
|
|
38
|
+
# query parameters
|
|
39
|
+
query_params = opts[:query_params] || {}
|
|
40
|
+
|
|
41
|
+
# header parameters
|
|
42
|
+
header_params = opts[:header_params] || {}
|
|
43
|
+
# HTTP header 'Accept' (if needed)
|
|
44
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
45
|
+
|
|
46
|
+
# form parameters
|
|
47
|
+
form_params = opts[:form_params] || {}
|
|
48
|
+
|
|
49
|
+
# http body (model)
|
|
50
|
+
post_body = opts[:debug_body]
|
|
51
|
+
|
|
52
|
+
# return_type
|
|
53
|
+
return_type = opts[:debug_return_type] || 'Array<Profile>'
|
|
54
|
+
|
|
55
|
+
# auth_names
|
|
56
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
57
|
+
|
|
58
|
+
new_options = opts.merge(
|
|
59
|
+
:operation => :"ProfileApi.profiles_get",
|
|
60
|
+
:header_params => header_params,
|
|
61
|
+
:query_params => query_params,
|
|
62
|
+
:form_params => form_params,
|
|
63
|
+
:body => post_body,
|
|
64
|
+
:auth_names => auth_names,
|
|
65
|
+
:return_type => return_type
|
|
66
|
+
)
|
|
67
|
+
|
|
68
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
69
|
+
if @api_client.config.debugging
|
|
70
|
+
@api_client.config.logger.debug "API called: ProfileApi#profiles_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
71
|
+
end
|
|
72
|
+
return data, status_code, headers
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
# @param pk [Integer]
|
|
76
|
+
# @param [Hash] opts the optional parameters
|
|
77
|
+
# @return [Array<Profile>]
|
|
78
|
+
def profiles_pk_delete(pk, opts = {})
|
|
79
|
+
data, _status_code, _headers = profiles_pk_delete_with_http_info(pk, opts)
|
|
80
|
+
data
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# @param pk [Integer]
|
|
84
|
+
# @param [Hash] opts the optional parameters
|
|
85
|
+
# @return [Array<(Array<Profile>, Integer, Hash)>] Array<Profile> data, response status code and response headers
|
|
86
|
+
def profiles_pk_delete_with_http_info(pk, opts = {})
|
|
87
|
+
if @api_client.config.debugging
|
|
88
|
+
@api_client.config.logger.debug 'Calling API: ProfileApi.profiles_pk_delete ...'
|
|
89
|
+
end
|
|
90
|
+
# verify the required parameter 'pk' is set
|
|
91
|
+
if @api_client.config.client_side_validation && pk.nil?
|
|
92
|
+
fail ArgumentError, "Missing the required parameter 'pk' when calling ProfileApi.profiles_pk_delete"
|
|
93
|
+
end
|
|
94
|
+
# resource path
|
|
95
|
+
local_var_path = '/profiles/{pk}'.sub('{' + 'pk' + '}', CGI.escape(pk.to_s))
|
|
96
|
+
|
|
97
|
+
# query parameters
|
|
98
|
+
query_params = opts[:query_params] || {}
|
|
99
|
+
|
|
100
|
+
# header parameters
|
|
101
|
+
header_params = opts[:header_params] || {}
|
|
102
|
+
# HTTP header 'Accept' (if needed)
|
|
103
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
104
|
+
|
|
105
|
+
# form parameters
|
|
106
|
+
form_params = opts[:form_params] || {}
|
|
107
|
+
|
|
108
|
+
# http body (model)
|
|
109
|
+
post_body = opts[:debug_body]
|
|
110
|
+
|
|
111
|
+
# return_type
|
|
112
|
+
return_type = opts[:debug_return_type] || 'Array<Profile>'
|
|
113
|
+
|
|
114
|
+
# auth_names
|
|
115
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
116
|
+
|
|
117
|
+
new_options = opts.merge(
|
|
118
|
+
:operation => :"ProfileApi.profiles_pk_delete",
|
|
119
|
+
:header_params => header_params,
|
|
120
|
+
:query_params => query_params,
|
|
121
|
+
:form_params => form_params,
|
|
122
|
+
:body => post_body,
|
|
123
|
+
:auth_names => auth_names,
|
|
124
|
+
:return_type => return_type
|
|
125
|
+
)
|
|
126
|
+
|
|
127
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
128
|
+
if @api_client.config.debugging
|
|
129
|
+
@api_client.config.logger.debug "API called: ProfileApi#profiles_pk_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
130
|
+
end
|
|
131
|
+
return data, status_code, headers
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
# @param pk [Integer]
|
|
135
|
+
# @param [Hash] opts the optional parameters
|
|
136
|
+
# @return [Array<Profile>]
|
|
137
|
+
def profiles_pk_get(pk, opts = {})
|
|
138
|
+
data, _status_code, _headers = profiles_pk_get_with_http_info(pk, opts)
|
|
139
|
+
data
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
# @param pk [Integer]
|
|
143
|
+
# @param [Hash] opts the optional parameters
|
|
144
|
+
# @return [Array<(Array<Profile>, Integer, Hash)>] Array<Profile> data, response status code and response headers
|
|
145
|
+
def profiles_pk_get_with_http_info(pk, opts = {})
|
|
146
|
+
if @api_client.config.debugging
|
|
147
|
+
@api_client.config.logger.debug 'Calling API: ProfileApi.profiles_pk_get ...'
|
|
148
|
+
end
|
|
149
|
+
# verify the required parameter 'pk' is set
|
|
150
|
+
if @api_client.config.client_side_validation && pk.nil?
|
|
151
|
+
fail ArgumentError, "Missing the required parameter 'pk' when calling ProfileApi.profiles_pk_get"
|
|
152
|
+
end
|
|
153
|
+
# resource path
|
|
154
|
+
local_var_path = '/profiles/{pk}'.sub('{' + 'pk' + '}', CGI.escape(pk.to_s))
|
|
155
|
+
|
|
156
|
+
# query parameters
|
|
157
|
+
query_params = opts[:query_params] || {}
|
|
158
|
+
|
|
159
|
+
# header parameters
|
|
160
|
+
header_params = opts[:header_params] || {}
|
|
161
|
+
# HTTP header 'Accept' (if needed)
|
|
162
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
163
|
+
|
|
164
|
+
# form parameters
|
|
165
|
+
form_params = opts[:form_params] || {}
|
|
166
|
+
|
|
167
|
+
# http body (model)
|
|
168
|
+
post_body = opts[:debug_body]
|
|
169
|
+
|
|
170
|
+
# return_type
|
|
171
|
+
return_type = opts[:debug_return_type] || 'Array<Profile>'
|
|
172
|
+
|
|
173
|
+
# auth_names
|
|
174
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
175
|
+
|
|
176
|
+
new_options = opts.merge(
|
|
177
|
+
:operation => :"ProfileApi.profiles_pk_get",
|
|
178
|
+
:header_params => header_params,
|
|
179
|
+
:query_params => query_params,
|
|
180
|
+
:form_params => form_params,
|
|
181
|
+
:body => post_body,
|
|
182
|
+
:auth_names => auth_names,
|
|
183
|
+
:return_type => return_type
|
|
184
|
+
)
|
|
185
|
+
|
|
186
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
187
|
+
if @api_client.config.debugging
|
|
188
|
+
@api_client.config.logger.debug "API called: ProfileApi#profiles_pk_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
189
|
+
end
|
|
190
|
+
return data, status_code, headers
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
# @param profile [Profile]
|
|
194
|
+
# @param [Hash] opts the optional parameters
|
|
195
|
+
# @return [Profile]
|
|
196
|
+
def profiles_post(profile, opts = {})
|
|
197
|
+
data, _status_code, _headers = profiles_post_with_http_info(profile, opts)
|
|
198
|
+
data
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
# @param profile [Profile]
|
|
202
|
+
# @param [Hash] opts the optional parameters
|
|
203
|
+
# @return [Array<(Profile, Integer, Hash)>] Profile data, response status code and response headers
|
|
204
|
+
def profiles_post_with_http_info(profile, opts = {})
|
|
205
|
+
if @api_client.config.debugging
|
|
206
|
+
@api_client.config.logger.debug 'Calling API: ProfileApi.profiles_post ...'
|
|
207
|
+
end
|
|
208
|
+
# verify the required parameter 'profile' is set
|
|
209
|
+
if @api_client.config.client_side_validation && profile.nil?
|
|
210
|
+
fail ArgumentError, "Missing the required parameter 'profile' when calling ProfileApi.profiles_post"
|
|
211
|
+
end
|
|
212
|
+
# resource path
|
|
213
|
+
local_var_path = '/profiles'
|
|
214
|
+
|
|
215
|
+
# query parameters
|
|
216
|
+
query_params = opts[:query_params] || {}
|
|
217
|
+
|
|
218
|
+
# header parameters
|
|
219
|
+
header_params = opts[:header_params] || {}
|
|
220
|
+
# HTTP header 'Accept' (if needed)
|
|
221
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
222
|
+
# HTTP header 'Content-Type'
|
|
223
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
224
|
+
|
|
225
|
+
# form parameters
|
|
226
|
+
form_params = opts[:form_params] || {}
|
|
227
|
+
|
|
228
|
+
# http body (model)
|
|
229
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(profile)
|
|
230
|
+
|
|
231
|
+
# return_type
|
|
232
|
+
return_type = opts[:debug_return_type] || 'Profile'
|
|
233
|
+
|
|
234
|
+
# auth_names
|
|
235
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
236
|
+
|
|
237
|
+
new_options = opts.merge(
|
|
238
|
+
:operation => :"ProfileApi.profiles_post",
|
|
239
|
+
:header_params => header_params,
|
|
240
|
+
:query_params => query_params,
|
|
241
|
+
:form_params => form_params,
|
|
242
|
+
:body => post_body,
|
|
243
|
+
:auth_names => auth_names,
|
|
244
|
+
:return_type => return_type
|
|
245
|
+
)
|
|
246
|
+
|
|
247
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
248
|
+
if @api_client.config.debugging
|
|
249
|
+
@api_client.config.logger.debug "API called: ProfileApi#profiles_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
250
|
+
end
|
|
251
|
+
return data, status_code, headers
|
|
252
|
+
end
|
|
253
|
+
end
|
|
254
|
+
end
|
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Site Manager API
|
|
3
|
+
|
|
4
|
+
#Site Manager API
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
Contact: autosde@il.ibm.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 5.0.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module AutosdeOpenapiClient
|
|
16
|
+
class ProvisioningStrategyApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# @param [Hash] opts the optional parameters
|
|
23
|
+
# @return [Array<ProvisioningStrategy>]
|
|
24
|
+
def provisioning_strategy_get(opts = {})
|
|
25
|
+
data, _status_code, _headers = provisioning_strategy_get_with_http_info(opts)
|
|
26
|
+
data
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
# @param [Hash] opts the optional parameters
|
|
30
|
+
# @return [Array<(Array<ProvisioningStrategy>, Integer, Hash)>] Array<ProvisioningStrategy> data, response status code and response headers
|
|
31
|
+
def provisioning_strategy_get_with_http_info(opts = {})
|
|
32
|
+
if @api_client.config.debugging
|
|
33
|
+
@api_client.config.logger.debug 'Calling API: ProvisioningStrategyApi.provisioning_strategy_get ...'
|
|
34
|
+
end
|
|
35
|
+
# resource path
|
|
36
|
+
local_var_path = '/provisioning-strategy'
|
|
37
|
+
|
|
38
|
+
# query parameters
|
|
39
|
+
query_params = opts[:query_params] || {}
|
|
40
|
+
|
|
41
|
+
# header parameters
|
|
42
|
+
header_params = opts[:header_params] || {}
|
|
43
|
+
# HTTP header 'Accept' (if needed)
|
|
44
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
45
|
+
|
|
46
|
+
# form parameters
|
|
47
|
+
form_params = opts[:form_params] || {}
|
|
48
|
+
|
|
49
|
+
# http body (model)
|
|
50
|
+
post_body = opts[:debug_body]
|
|
51
|
+
|
|
52
|
+
# return_type
|
|
53
|
+
return_type = opts[:debug_return_type] || 'Array<ProvisioningStrategy>'
|
|
54
|
+
|
|
55
|
+
# auth_names
|
|
56
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
57
|
+
|
|
58
|
+
new_options = opts.merge(
|
|
59
|
+
:operation => :"ProvisioningStrategyApi.provisioning_strategy_get",
|
|
60
|
+
:header_params => header_params,
|
|
61
|
+
:query_params => query_params,
|
|
62
|
+
:form_params => form_params,
|
|
63
|
+
:body => post_body,
|
|
64
|
+
:auth_names => auth_names,
|
|
65
|
+
:return_type => return_type
|
|
66
|
+
)
|
|
67
|
+
|
|
68
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
69
|
+
if @api_client.config.debugging
|
|
70
|
+
@api_client.config.logger.debug "API called: ProvisioningStrategyApi#provisioning_strategy_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
71
|
+
end
|
|
72
|
+
return data, status_code, headers
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
# @param pk [Integer]
|
|
76
|
+
# @param [Hash] opts the optional parameters
|
|
77
|
+
# @return [Array<ProvisioningStrategy>]
|
|
78
|
+
def provisioning_strategy_pk_delete(pk, opts = {})
|
|
79
|
+
data, _status_code, _headers = provisioning_strategy_pk_delete_with_http_info(pk, opts)
|
|
80
|
+
data
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# @param pk [Integer]
|
|
84
|
+
# @param [Hash] opts the optional parameters
|
|
85
|
+
# @return [Array<(Array<ProvisioningStrategy>, Integer, Hash)>] Array<ProvisioningStrategy> data, response status code and response headers
|
|
86
|
+
def provisioning_strategy_pk_delete_with_http_info(pk, opts = {})
|
|
87
|
+
if @api_client.config.debugging
|
|
88
|
+
@api_client.config.logger.debug 'Calling API: ProvisioningStrategyApi.provisioning_strategy_pk_delete ...'
|
|
89
|
+
end
|
|
90
|
+
# verify the required parameter 'pk' is set
|
|
91
|
+
if @api_client.config.client_side_validation && pk.nil?
|
|
92
|
+
fail ArgumentError, "Missing the required parameter 'pk' when calling ProvisioningStrategyApi.provisioning_strategy_pk_delete"
|
|
93
|
+
end
|
|
94
|
+
# resource path
|
|
95
|
+
local_var_path = '/provisioning-strategy/{pk}'.sub('{' + 'pk' + '}', CGI.escape(pk.to_s))
|
|
96
|
+
|
|
97
|
+
# query parameters
|
|
98
|
+
query_params = opts[:query_params] || {}
|
|
99
|
+
|
|
100
|
+
# header parameters
|
|
101
|
+
header_params = opts[:header_params] || {}
|
|
102
|
+
# HTTP header 'Accept' (if needed)
|
|
103
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
104
|
+
|
|
105
|
+
# form parameters
|
|
106
|
+
form_params = opts[:form_params] || {}
|
|
107
|
+
|
|
108
|
+
# http body (model)
|
|
109
|
+
post_body = opts[:debug_body]
|
|
110
|
+
|
|
111
|
+
# return_type
|
|
112
|
+
return_type = opts[:debug_return_type] || 'Array<ProvisioningStrategy>'
|
|
113
|
+
|
|
114
|
+
# auth_names
|
|
115
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
116
|
+
|
|
117
|
+
new_options = opts.merge(
|
|
118
|
+
:operation => :"ProvisioningStrategyApi.provisioning_strategy_pk_delete",
|
|
119
|
+
:header_params => header_params,
|
|
120
|
+
:query_params => query_params,
|
|
121
|
+
:form_params => form_params,
|
|
122
|
+
:body => post_body,
|
|
123
|
+
:auth_names => auth_names,
|
|
124
|
+
:return_type => return_type
|
|
125
|
+
)
|
|
126
|
+
|
|
127
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
128
|
+
if @api_client.config.debugging
|
|
129
|
+
@api_client.config.logger.debug "API called: ProvisioningStrategyApi#provisioning_strategy_pk_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
130
|
+
end
|
|
131
|
+
return data, status_code, headers
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
# @param pk [Integer]
|
|
135
|
+
# @param [Hash] opts the optional parameters
|
|
136
|
+
# @return [Array<ProvisioningStrategy>]
|
|
137
|
+
def provisioning_strategy_pk_get(pk, opts = {})
|
|
138
|
+
data, _status_code, _headers = provisioning_strategy_pk_get_with_http_info(pk, opts)
|
|
139
|
+
data
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
# @param pk [Integer]
|
|
143
|
+
# @param [Hash] opts the optional parameters
|
|
144
|
+
# @return [Array<(Array<ProvisioningStrategy>, Integer, Hash)>] Array<ProvisioningStrategy> data, response status code and response headers
|
|
145
|
+
def provisioning_strategy_pk_get_with_http_info(pk, opts = {})
|
|
146
|
+
if @api_client.config.debugging
|
|
147
|
+
@api_client.config.logger.debug 'Calling API: ProvisioningStrategyApi.provisioning_strategy_pk_get ...'
|
|
148
|
+
end
|
|
149
|
+
# verify the required parameter 'pk' is set
|
|
150
|
+
if @api_client.config.client_side_validation && pk.nil?
|
|
151
|
+
fail ArgumentError, "Missing the required parameter 'pk' when calling ProvisioningStrategyApi.provisioning_strategy_pk_get"
|
|
152
|
+
end
|
|
153
|
+
# resource path
|
|
154
|
+
local_var_path = '/provisioning-strategy/{pk}'.sub('{' + 'pk' + '}', CGI.escape(pk.to_s))
|
|
155
|
+
|
|
156
|
+
# query parameters
|
|
157
|
+
query_params = opts[:query_params] || {}
|
|
158
|
+
|
|
159
|
+
# header parameters
|
|
160
|
+
header_params = opts[:header_params] || {}
|
|
161
|
+
# HTTP header 'Accept' (if needed)
|
|
162
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
163
|
+
|
|
164
|
+
# form parameters
|
|
165
|
+
form_params = opts[:form_params] || {}
|
|
166
|
+
|
|
167
|
+
# http body (model)
|
|
168
|
+
post_body = opts[:debug_body]
|
|
169
|
+
|
|
170
|
+
# return_type
|
|
171
|
+
return_type = opts[:debug_return_type] || 'Array<ProvisioningStrategy>'
|
|
172
|
+
|
|
173
|
+
# auth_names
|
|
174
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
175
|
+
|
|
176
|
+
new_options = opts.merge(
|
|
177
|
+
:operation => :"ProvisioningStrategyApi.provisioning_strategy_pk_get",
|
|
178
|
+
:header_params => header_params,
|
|
179
|
+
:query_params => query_params,
|
|
180
|
+
:form_params => form_params,
|
|
181
|
+
:body => post_body,
|
|
182
|
+
:auth_names => auth_names,
|
|
183
|
+
:return_type => return_type
|
|
184
|
+
)
|
|
185
|
+
|
|
186
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
187
|
+
if @api_client.config.debugging
|
|
188
|
+
@api_client.config.logger.debug "API called: ProvisioningStrategyApi#provisioning_strategy_pk_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
189
|
+
end
|
|
190
|
+
return data, status_code, headers
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
# @param provisioning_strategy [ProvisioningStrategy]
|
|
194
|
+
# @param [Hash] opts the optional parameters
|
|
195
|
+
# @return [ProvisioningStrategy]
|
|
196
|
+
def provisioning_strategy_post(provisioning_strategy, opts = {})
|
|
197
|
+
data, _status_code, _headers = provisioning_strategy_post_with_http_info(provisioning_strategy, opts)
|
|
198
|
+
data
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
# @param provisioning_strategy [ProvisioningStrategy]
|
|
202
|
+
# @param [Hash] opts the optional parameters
|
|
203
|
+
# @return [Array<(ProvisioningStrategy, Integer, Hash)>] ProvisioningStrategy data, response status code and response headers
|
|
204
|
+
def provisioning_strategy_post_with_http_info(provisioning_strategy, opts = {})
|
|
205
|
+
if @api_client.config.debugging
|
|
206
|
+
@api_client.config.logger.debug 'Calling API: ProvisioningStrategyApi.provisioning_strategy_post ...'
|
|
207
|
+
end
|
|
208
|
+
# verify the required parameter 'provisioning_strategy' is set
|
|
209
|
+
if @api_client.config.client_side_validation && provisioning_strategy.nil?
|
|
210
|
+
fail ArgumentError, "Missing the required parameter 'provisioning_strategy' when calling ProvisioningStrategyApi.provisioning_strategy_post"
|
|
211
|
+
end
|
|
212
|
+
# resource path
|
|
213
|
+
local_var_path = '/provisioning-strategy'
|
|
214
|
+
|
|
215
|
+
# query parameters
|
|
216
|
+
query_params = opts[:query_params] || {}
|
|
217
|
+
|
|
218
|
+
# header parameters
|
|
219
|
+
header_params = opts[:header_params] || {}
|
|
220
|
+
# HTTP header 'Accept' (if needed)
|
|
221
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
222
|
+
# HTTP header 'Content-Type'
|
|
223
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
224
|
+
|
|
225
|
+
# form parameters
|
|
226
|
+
form_params = opts[:form_params] || {}
|
|
227
|
+
|
|
228
|
+
# http body (model)
|
|
229
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(provisioning_strategy)
|
|
230
|
+
|
|
231
|
+
# return_type
|
|
232
|
+
return_type = opts[:debug_return_type] || 'ProvisioningStrategy'
|
|
233
|
+
|
|
234
|
+
# auth_names
|
|
235
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
236
|
+
|
|
237
|
+
new_options = opts.merge(
|
|
238
|
+
:operation => :"ProvisioningStrategyApi.provisioning_strategy_post",
|
|
239
|
+
:header_params => header_params,
|
|
240
|
+
:query_params => query_params,
|
|
241
|
+
:form_params => form_params,
|
|
242
|
+
:body => post_body,
|
|
243
|
+
:auth_names => auth_names,
|
|
244
|
+
:return_type => return_type
|
|
245
|
+
)
|
|
246
|
+
|
|
247
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
248
|
+
if @api_client.config.debugging
|
|
249
|
+
@api_client.config.logger.debug "API called: ProvisioningStrategyApi#provisioning_strategy_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
250
|
+
end
|
|
251
|
+
return data, status_code, headers
|
|
252
|
+
end
|
|
253
|
+
end
|
|
254
|
+
end
|