spinnaker_gate_ruby_client 1.0.0
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 +8 -0
- data/Gemfile.lock +85 -0
- data/LICENSE +201 -0
- data/README.md +240 -0
- data/Rakefile +8 -0
- data/docs/Account.md +14 -0
- data/docs/AccountDetails.md +19 -0
- data/docs/AmazonInfrastructureControllerApi.md +128 -0
- data/docs/ApplicationControllerApi.md +754 -0
- data/docs/ArtifactControllerApi.md +111 -0
- data/docs/AuthControllerApi.md +212 -0
- data/docs/BakeControllerApi.md +143 -0
- data/docs/BuildControllerApi.md +493 -0
- data/docs/ClusterControllerApi.md +475 -0
- data/docs/ConcourseControllerApi.md +161 -0
- data/docs/CredentialsControllerApi.md +129 -0
- data/docs/EcsServerGroupEventsControllerApi.md +66 -0
- data/docs/ExecutionsControllerApi.md +133 -0
- data/docs/FirewallControllerApi.md +171 -0
- data/docs/GrantedAuthority.md +8 -0
- data/docs/HashMapstringobject.md +7 -0
- data/docs/HttpEntity.md +8 -0
- data/docs/ImageControllerApi.md +178 -0
- data/docs/InstanceControllerApi.md +122 -0
- data/docs/JobControllerApi.md +69 -0
- data/docs/LoadBalancerControllerApi.md +217 -0
- data/docs/Mapstringstring.md +7 -0
- data/docs/NetworkControllerApi.md +105 -0
- data/docs/PipelineConfigControllerApi.md +144 -0
- data/docs/PipelineControllerApi.md +1074 -0
- data/docs/PipelineTemplateDependent.md +10 -0
- data/docs/PipelineTemplatesControllerApi.md +350 -0
- data/docs/ProjectControllerApi.md +196 -0
- data/docs/PubsubSubscriptionControllerApi.md +48 -0
- data/docs/ReorderPipelinesCommand.md +9 -0
- data/docs/ReorderPipelinesControllerApi.md +54 -0
- data/docs/ResponseEntity.md +10 -0
- data/docs/SearchControllerApi.md +68 -0
- data/docs/SecurityGroupControllerApi.md +171 -0
- data/docs/ServerGroupControllerApi.md +125 -0
- data/docs/ServerGroupManagerControllerApi.md +54 -0
- data/docs/SnapshotControllerApi.md +110 -0
- data/docs/SubnetControllerApi.md +58 -0
- data/docs/TaskControllerApi.md +291 -0
- data/docs/User.md +18 -0
- data/docs/V2CanaryConfigControllerApi.md +259 -0
- data/docs/V2CanaryControllerApi.md +356 -0
- data/docs/V2PipelineTemplatesControllerApi.md +356 -0
- data/docs/Version.md +8 -0
- data/docs/VersionControllerApi.md +48 -0
- data/docs/WebhookControllerApi.md +105 -0
- data/git_push.sh +55 -0
- data/lib/swagger_client.rb +85 -0
- data/lib/swagger_client/api/amazon_infrastructure_controller_api.rb +161 -0
- data/lib/swagger_client/api/application_controller_api.rb +868 -0
- data/lib/swagger_client/api/artifact_controller_api.rb +141 -0
- data/lib/swagger_client/api/auth_controller_api.rb +258 -0
- data/lib/swagger_client/api/bake_controller_api.rb +179 -0
- data/lib/swagger_client/api/build_controller_api.rb +588 -0
- data/lib/swagger_client/api/cluster_controller_api.rb +591 -0
- data/lib/swagger_client/api/concourse_controller_api.rb +209 -0
- data/lib/swagger_client/api/credentials_controller_api.rb +163 -0
- data/lib/swagger_client/api/ecs_server_group_events_controller_api.rb +101 -0
- data/lib/swagger_client/api/executions_controller_api.rb +169 -0
- data/lib/swagger_client/api/firewall_controller_api.rb +209 -0
- data/lib/swagger_client/api/image_controller_api.rb +222 -0
- data/lib/swagger_client/api/instance_controller_api.rb +160 -0
- data/lib/swagger_client/api/job_controller_api.rb +99 -0
- data/lib/swagger_client/api/load_balancer_controller_api.rb +258 -0
- data/lib/swagger_client/api/network_controller_api.rb +127 -0
- data/lib/swagger_client/api/pipeline_config_controller_api.rb +176 -0
- data/lib/swagger_client/api/pipeline_controller_api.rb +1268 -0
- data/lib/swagger_client/api/pipeline_templates_controller_api.rb +404 -0
- data/lib/swagger_client/api/project_controller_api.rb +234 -0
- data/lib/swagger_client/api/pubsub_subscription_controller_api.rb +69 -0
- data/lib/swagger_client/api/reorder_pipelines_controller_api.rb +75 -0
- data/lib/swagger_client/api/search_controller_api.rb +94 -0
- data/lib/swagger_client/api/security_group_controller_api.rb +209 -0
- data/lib/swagger_client/api/server_group_controller_api.rb +163 -0
- data/lib/swagger_client/api/server_group_manager_controller_api.rb +75 -0
- data/lib/swagger_client/api/snapshot_controller_api.rb +142 -0
- data/lib/swagger_client/api/subnet_controller_api.rb +78 -0
- data/lib/swagger_client/api/task_controller_api.rb +345 -0
- data/lib/swagger_client/api/v2_canary_config_controller_api.rb +300 -0
- data/lib/swagger_client/api/v2_canary_controller_api.rb +421 -0
- data/lib/swagger_client/api/v2_pipeline_templates_controller_api.rb +412 -0
- data/lib/swagger_client/api/version_controller_api.rb +69 -0
- data/lib/swagger_client/api/webhook_controller_api.rb +135 -0
- data/lib/swagger_client/api_client.rb +388 -0
- data/lib/swagger_client/api_error.rb +38 -0
- data/lib/swagger_client/configuration.rb +202 -0
- data/lib/swagger_client/models/account.rb +241 -0
- data/lib/swagger_client/models/account_details.rb +286 -0
- data/lib/swagger_client/models/granted_authority.rb +183 -0
- data/lib/swagger_client/models/hash_mapstringobject.rb +174 -0
- data/lib/swagger_client/models/http_entity.rb +183 -0
- data/lib/swagger_client/models/mapstringstring.rb +174 -0
- data/lib/swagger_client/models/pipeline_template_dependent.rb +201 -0
- data/lib/swagger_client/models/reorder_pipelines_command.rb +194 -0
- data/lib/swagger_client/models/response_entity.rb +235 -0
- data/lib/swagger_client/models/user.rb +279 -0
- data/lib/swagger_client/models/version.rb +183 -0
- data/lib/swagger_client/version.rb +15 -0
- data/spec/api/amazon_infrastructure_controller_api_spec.rb +65 -0
- data/spec/api/application_controller_api_spec.rb +218 -0
- data/spec/api/artifact_controller_api_spec.rb +60 -0
- data/spec/api/auth_controller_api_spec.rb +86 -0
- data/spec/api/bake_controller_api_spec.rb +68 -0
- data/spec/api/build_controller_api_spec.rb +155 -0
- data/spec/api/cluster_controller_api_spec.rb +155 -0
- data/spec/api/concourse_controller_api_spec.rb +73 -0
- data/spec/api/credentials_controller_api_spec.rb +70 -0
- data/spec/api/ecs_server_group_events_controller_api_spec.rb +50 -0
- data/spec/api/executions_controller_api_spec.rb +72 -0
- data/spec/api/firewall_controller_api_spec.rb +77 -0
- data/spec/api/image_controller_api_spec.rb +80 -0
- data/spec/api/instance_controller_api_spec.rb +64 -0
- data/spec/api/job_controller_api_spec.rb +51 -0
- data/spec/api/load_balancer_controller_api_spec.rb +87 -0
- data/spec/api/network_controller_api_spec.rb +58 -0
- data/spec/api/pipeline_config_controller_api_spec.rb +68 -0
- data/spec/api/pipeline_controller_api_spec.rb +296 -0
- data/spec/api/pipeline_templates_controller_api_spec.rb +118 -0
- data/spec/api/project_controller_api_spec.rb +81 -0
- data/spec/api/pubsub_subscription_controller_api_spec.rb +45 -0
- data/spec/api/reorder_pipelines_controller_api_spec.rb +46 -0
- data/spec/api/search_controller_api_spec.rb +52 -0
- data/spec/api/security_group_controller_api_spec.rb +77 -0
- data/spec/api/server_group_controller_api_spec.rb +66 -0
- data/spec/api/server_group_manager_controller_api_spec.rb +46 -0
- data/spec/api/snapshot_controller_api_spec.rb +60 -0
- data/spec/api/subnet_controller_api_spec.rb +47 -0
- data/spec/api/task_controller_api_spec.rb +103 -0
- data/spec/api/v2_canary_config_controller_api_spec.rb +96 -0
- data/spec/api/v2_canary_controller_api_spec.rb +123 -0
- data/spec/api/v2_pipeline_templates_controller_api_spec.rb +121 -0
- data/spec/api/version_controller_api_spec.rb +45 -0
- data/spec/api/webhook_controller_api_spec.rb +60 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/account_details_spec.rb +107 -0
- data/spec/models/account_spec.rb +77 -0
- data/spec/models/granted_authority_spec.rb +41 -0
- data/spec/models/hash_mapstringobject_spec.rb +35 -0
- data/spec/models/http_entity_spec.rb +41 -0
- data/spec/models/mapstringstring_spec.rb +35 -0
- data/spec/models/pipeline_template_dependent_spec.rb +53 -0
- data/spec/models/reorder_pipelines_command_spec.rb +47 -0
- data/spec/models/response_entity_spec.rb +57 -0
- data/spec/models/user_spec.rb +101 -0
- data/spec/models/version_spec.rb +41 -0
- data/spec/spec_helper.rb +111 -0
- data/spinnaker_gate_ruby_client.gemspec +45 -0
- metadata +426 -0
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Spinnaker API
|
|
3
|
+
|
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.4.7
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'uri'
|
|
14
|
+
|
|
15
|
+
module SwaggerClient
|
|
16
|
+
class InstanceControllerApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Retrieve an instance's console output
|
|
23
|
+
# @param account account
|
|
24
|
+
# @param region region
|
|
25
|
+
# @param instance_id instanceId
|
|
26
|
+
# @param [Hash] opts the optional parameters
|
|
27
|
+
# @option opts [String] :provider provider (default to aws)
|
|
28
|
+
# @option opts [String] :x_rate_limit_app X-RateLimit-App
|
|
29
|
+
# @return [Object]
|
|
30
|
+
def get_console_output_using_get(account, region, instance_id, opts = {})
|
|
31
|
+
data, _status_code, _headers = get_console_output_using_get_with_http_info(account, region, instance_id, opts)
|
|
32
|
+
data
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# Retrieve an instance's console output
|
|
36
|
+
# @param account account
|
|
37
|
+
# @param region region
|
|
38
|
+
# @param instance_id instanceId
|
|
39
|
+
# @param [Hash] opts the optional parameters
|
|
40
|
+
# @option opts [String] :provider provider
|
|
41
|
+
# @option opts [String] :x_rate_limit_app X-RateLimit-App
|
|
42
|
+
# @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
|
|
43
|
+
def get_console_output_using_get_with_http_info(account, region, instance_id, opts = {})
|
|
44
|
+
if @api_client.config.debugging
|
|
45
|
+
@api_client.config.logger.debug 'Calling API: InstanceControllerApi.get_console_output_using_get ...'
|
|
46
|
+
end
|
|
47
|
+
# verify the required parameter 'account' is set
|
|
48
|
+
if @api_client.config.client_side_validation && account.nil?
|
|
49
|
+
fail ArgumentError, "Missing the required parameter 'account' when calling InstanceControllerApi.get_console_output_using_get"
|
|
50
|
+
end
|
|
51
|
+
# verify the required parameter 'region' is set
|
|
52
|
+
if @api_client.config.client_side_validation && region.nil?
|
|
53
|
+
fail ArgumentError, "Missing the required parameter 'region' when calling InstanceControllerApi.get_console_output_using_get"
|
|
54
|
+
end
|
|
55
|
+
# verify the required parameter 'instance_id' is set
|
|
56
|
+
if @api_client.config.client_side_validation && instance_id.nil?
|
|
57
|
+
fail ArgumentError, "Missing the required parameter 'instance_id' when calling InstanceControllerApi.get_console_output_using_get"
|
|
58
|
+
end
|
|
59
|
+
# resource path
|
|
60
|
+
local_var_path = '/instances/{account}/{region}/{instanceId}/console'.sub('{' + 'account' + '}', account.to_s).sub('{' + 'region' + '}', region.to_s).sub('{' + 'instanceId' + '}', instance_id.to_s)
|
|
61
|
+
|
|
62
|
+
# query parameters
|
|
63
|
+
query_params = {}
|
|
64
|
+
query_params[:'provider'] = opts[:'provider'] if !opts[:'provider'].nil?
|
|
65
|
+
|
|
66
|
+
# header parameters
|
|
67
|
+
header_params = {}
|
|
68
|
+
# HTTP header 'Accept' (if needed)
|
|
69
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
70
|
+
# HTTP header 'Content-Type'
|
|
71
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
72
|
+
header_params[:'X-RateLimit-App'] = opts[:'x_rate_limit_app'] if !opts[:'x_rate_limit_app'].nil?
|
|
73
|
+
|
|
74
|
+
# form parameters
|
|
75
|
+
form_params = {}
|
|
76
|
+
|
|
77
|
+
# http body (model)
|
|
78
|
+
post_body = nil
|
|
79
|
+
auth_names = []
|
|
80
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
81
|
+
:header_params => header_params,
|
|
82
|
+
:query_params => query_params,
|
|
83
|
+
:form_params => form_params,
|
|
84
|
+
:body => post_body,
|
|
85
|
+
:auth_names => auth_names,
|
|
86
|
+
:return_type => 'Object')
|
|
87
|
+
if @api_client.config.debugging
|
|
88
|
+
@api_client.config.logger.debug "API called: InstanceControllerApi#get_console_output_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
89
|
+
end
|
|
90
|
+
return data, status_code, headers
|
|
91
|
+
end
|
|
92
|
+
# Retrieve an instance's details
|
|
93
|
+
# @param account account
|
|
94
|
+
# @param region region
|
|
95
|
+
# @param instance_id instanceId
|
|
96
|
+
# @param [Hash] opts the optional parameters
|
|
97
|
+
# @option opts [String] :x_rate_limit_app X-RateLimit-App
|
|
98
|
+
# @return [Object]
|
|
99
|
+
def get_instance_details_using_get(account, region, instance_id, opts = {})
|
|
100
|
+
data, _status_code, _headers = get_instance_details_using_get_with_http_info(account, region, instance_id, opts)
|
|
101
|
+
data
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# Retrieve an instance's details
|
|
105
|
+
# @param account account
|
|
106
|
+
# @param region region
|
|
107
|
+
# @param instance_id instanceId
|
|
108
|
+
# @param [Hash] opts the optional parameters
|
|
109
|
+
# @option opts [String] :x_rate_limit_app X-RateLimit-App
|
|
110
|
+
# @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
|
|
111
|
+
def get_instance_details_using_get_with_http_info(account, region, instance_id, opts = {})
|
|
112
|
+
if @api_client.config.debugging
|
|
113
|
+
@api_client.config.logger.debug 'Calling API: InstanceControllerApi.get_instance_details_using_get ...'
|
|
114
|
+
end
|
|
115
|
+
# verify the required parameter 'account' is set
|
|
116
|
+
if @api_client.config.client_side_validation && account.nil?
|
|
117
|
+
fail ArgumentError, "Missing the required parameter 'account' when calling InstanceControllerApi.get_instance_details_using_get"
|
|
118
|
+
end
|
|
119
|
+
# verify the required parameter 'region' is set
|
|
120
|
+
if @api_client.config.client_side_validation && region.nil?
|
|
121
|
+
fail ArgumentError, "Missing the required parameter 'region' when calling InstanceControllerApi.get_instance_details_using_get"
|
|
122
|
+
end
|
|
123
|
+
# verify the required parameter 'instance_id' is set
|
|
124
|
+
if @api_client.config.client_side_validation && instance_id.nil?
|
|
125
|
+
fail ArgumentError, "Missing the required parameter 'instance_id' when calling InstanceControllerApi.get_instance_details_using_get"
|
|
126
|
+
end
|
|
127
|
+
# resource path
|
|
128
|
+
local_var_path = '/instances/{account}/{region}/{instanceId}'.sub('{' + 'account' + '}', account.to_s).sub('{' + 'region' + '}', region.to_s).sub('{' + 'instanceId' + '}', instance_id.to_s)
|
|
129
|
+
|
|
130
|
+
# query parameters
|
|
131
|
+
query_params = {}
|
|
132
|
+
|
|
133
|
+
# header parameters
|
|
134
|
+
header_params = {}
|
|
135
|
+
# HTTP header 'Accept' (if needed)
|
|
136
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
137
|
+
# HTTP header 'Content-Type'
|
|
138
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
139
|
+
header_params[:'X-RateLimit-App'] = opts[:'x_rate_limit_app'] if !opts[:'x_rate_limit_app'].nil?
|
|
140
|
+
|
|
141
|
+
# form parameters
|
|
142
|
+
form_params = {}
|
|
143
|
+
|
|
144
|
+
# http body (model)
|
|
145
|
+
post_body = nil
|
|
146
|
+
auth_names = []
|
|
147
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
148
|
+
:header_params => header_params,
|
|
149
|
+
:query_params => query_params,
|
|
150
|
+
:form_params => form_params,
|
|
151
|
+
:body => post_body,
|
|
152
|
+
:auth_names => auth_names,
|
|
153
|
+
:return_type => 'Object')
|
|
154
|
+
if @api_client.config.debugging
|
|
155
|
+
@api_client.config.logger.debug "API called: InstanceControllerApi#get_instance_details_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
156
|
+
end
|
|
157
|
+
return data, status_code, headers
|
|
158
|
+
end
|
|
159
|
+
end
|
|
160
|
+
end
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Spinnaker API
|
|
3
|
+
|
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.4.7
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'uri'
|
|
14
|
+
|
|
15
|
+
module SwaggerClient
|
|
16
|
+
class JobControllerApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Get job
|
|
23
|
+
# @param application_name applicationName
|
|
24
|
+
# @param account account
|
|
25
|
+
# @param region region
|
|
26
|
+
# @param name name
|
|
27
|
+
# @param [Hash] opts the optional parameters
|
|
28
|
+
# @option opts [String] :expand expand (default to false)
|
|
29
|
+
# @option opts [String] :x_rate_limit_app X-RateLimit-App
|
|
30
|
+
# @return [Hash<String, Object>]
|
|
31
|
+
def get_job_using_get(application_name, account, region, name, opts = {})
|
|
32
|
+
data, _status_code, _headers = get_job_using_get_with_http_info(application_name, account, region, name, opts)
|
|
33
|
+
data
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# Get job
|
|
37
|
+
# @param application_name applicationName
|
|
38
|
+
# @param account account
|
|
39
|
+
# @param region region
|
|
40
|
+
# @param name name
|
|
41
|
+
# @param [Hash] opts the optional parameters
|
|
42
|
+
# @option opts [String] :expand expand
|
|
43
|
+
# @option opts [String] :x_rate_limit_app X-RateLimit-App
|
|
44
|
+
# @return [Array<(Hash<String, Object>, Fixnum, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
45
|
+
def get_job_using_get_with_http_info(application_name, account, region, name, opts = {})
|
|
46
|
+
if @api_client.config.debugging
|
|
47
|
+
@api_client.config.logger.debug 'Calling API: JobControllerApi.get_job_using_get ...'
|
|
48
|
+
end
|
|
49
|
+
# verify the required parameter 'application_name' is set
|
|
50
|
+
if @api_client.config.client_side_validation && application_name.nil?
|
|
51
|
+
fail ArgumentError, "Missing the required parameter 'application_name' when calling JobControllerApi.get_job_using_get"
|
|
52
|
+
end
|
|
53
|
+
# verify the required parameter 'account' is set
|
|
54
|
+
if @api_client.config.client_side_validation && account.nil?
|
|
55
|
+
fail ArgumentError, "Missing the required parameter 'account' when calling JobControllerApi.get_job_using_get"
|
|
56
|
+
end
|
|
57
|
+
# verify the required parameter 'region' is set
|
|
58
|
+
if @api_client.config.client_side_validation && region.nil?
|
|
59
|
+
fail ArgumentError, "Missing the required parameter 'region' when calling JobControllerApi.get_job_using_get"
|
|
60
|
+
end
|
|
61
|
+
# verify the required parameter 'name' is set
|
|
62
|
+
if @api_client.config.client_side_validation && name.nil?
|
|
63
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling JobControllerApi.get_job_using_get"
|
|
64
|
+
end
|
|
65
|
+
# resource path
|
|
66
|
+
local_var_path = '/applications/{applicationName}/jobs/{account}/{region}/{name}'.sub('{' + 'applicationName' + '}', application_name.to_s).sub('{' + 'account' + '}', account.to_s).sub('{' + 'region' + '}', region.to_s).sub('{' + 'name' + '}', name.to_s)
|
|
67
|
+
|
|
68
|
+
# query parameters
|
|
69
|
+
query_params = {}
|
|
70
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
|
71
|
+
|
|
72
|
+
# header parameters
|
|
73
|
+
header_params = {}
|
|
74
|
+
# HTTP header 'Accept' (if needed)
|
|
75
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
76
|
+
# HTTP header 'Content-Type'
|
|
77
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
78
|
+
header_params[:'X-RateLimit-App'] = opts[:'x_rate_limit_app'] if !opts[:'x_rate_limit_app'].nil?
|
|
79
|
+
|
|
80
|
+
# form parameters
|
|
81
|
+
form_params = {}
|
|
82
|
+
|
|
83
|
+
# http body (model)
|
|
84
|
+
post_body = nil
|
|
85
|
+
auth_names = []
|
|
86
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
87
|
+
:header_params => header_params,
|
|
88
|
+
:query_params => query_params,
|
|
89
|
+
:form_params => form_params,
|
|
90
|
+
:body => post_body,
|
|
91
|
+
:auth_names => auth_names,
|
|
92
|
+
:return_type => 'Hash<String, Object>')
|
|
93
|
+
if @api_client.config.debugging
|
|
94
|
+
@api_client.config.logger.debug "API called: JobControllerApi#get_job_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
95
|
+
end
|
|
96
|
+
return data, status_code, headers
|
|
97
|
+
end
|
|
98
|
+
end
|
|
99
|
+
end
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Spinnaker API
|
|
3
|
+
|
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.4.7
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'uri'
|
|
14
|
+
|
|
15
|
+
module SwaggerClient
|
|
16
|
+
class LoadBalancerControllerApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Retrieve a list of load balancers for a given cloud provider
|
|
23
|
+
# @param [Hash] opts the optional parameters
|
|
24
|
+
# @option opts [String] :provider provider (default to aws)
|
|
25
|
+
# @option opts [String] :x_rate_limit_app X-RateLimit-App
|
|
26
|
+
# @return [Array<Object>]
|
|
27
|
+
def get_all_using_get(opts = {})
|
|
28
|
+
data, _status_code, _headers = get_all_using_get_with_http_info(opts)
|
|
29
|
+
data
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Retrieve a list of load balancers for a given cloud provider
|
|
33
|
+
# @param [Hash] opts the optional parameters
|
|
34
|
+
# @option opts [String] :provider provider
|
|
35
|
+
# @option opts [String] :x_rate_limit_app X-RateLimit-App
|
|
36
|
+
# @return [Array<(Array<Object>, Fixnum, Hash)>] Array<Object> data, response status code and response headers
|
|
37
|
+
def get_all_using_get_with_http_info(opts = {})
|
|
38
|
+
if @api_client.config.debugging
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: LoadBalancerControllerApi.get_all_using_get ...'
|
|
40
|
+
end
|
|
41
|
+
# resource path
|
|
42
|
+
local_var_path = '/loadBalancers'
|
|
43
|
+
|
|
44
|
+
# query parameters
|
|
45
|
+
query_params = {}
|
|
46
|
+
query_params[:'provider'] = opts[:'provider'] if !opts[:'provider'].nil?
|
|
47
|
+
|
|
48
|
+
# header parameters
|
|
49
|
+
header_params = {}
|
|
50
|
+
# HTTP header 'Accept' (if needed)
|
|
51
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
52
|
+
# HTTP header 'Content-Type'
|
|
53
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
54
|
+
header_params[:'X-RateLimit-App'] = opts[:'x_rate_limit_app'] if !opts[:'x_rate_limit_app'].nil?
|
|
55
|
+
|
|
56
|
+
# form parameters
|
|
57
|
+
form_params = {}
|
|
58
|
+
|
|
59
|
+
# http body (model)
|
|
60
|
+
post_body = nil
|
|
61
|
+
auth_names = []
|
|
62
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
63
|
+
:header_params => header_params,
|
|
64
|
+
:query_params => query_params,
|
|
65
|
+
:form_params => form_params,
|
|
66
|
+
:body => post_body,
|
|
67
|
+
:auth_names => auth_names,
|
|
68
|
+
:return_type => 'Array<Object>')
|
|
69
|
+
if @api_client.config.debugging
|
|
70
|
+
@api_client.config.logger.debug "API called: LoadBalancerControllerApi#get_all_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
71
|
+
end
|
|
72
|
+
return data, status_code, headers
|
|
73
|
+
end
|
|
74
|
+
# Retrieve a list of load balancers for a given application
|
|
75
|
+
# @param application application
|
|
76
|
+
# @param [Hash] opts the optional parameters
|
|
77
|
+
# @option opts [String] :x_rate_limit_app X-RateLimit-App
|
|
78
|
+
# @return [Array<Object>]
|
|
79
|
+
def get_application_load_balancers_using_get(application, opts = {})
|
|
80
|
+
data, _status_code, _headers = get_application_load_balancers_using_get_with_http_info(application, opts)
|
|
81
|
+
data
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
# Retrieve a list of load balancers for a given application
|
|
85
|
+
# @param application application
|
|
86
|
+
# @param [Hash] opts the optional parameters
|
|
87
|
+
# @option opts [String] :x_rate_limit_app X-RateLimit-App
|
|
88
|
+
# @return [Array<(Array<Object>, Fixnum, Hash)>] Array<Object> data, response status code and response headers
|
|
89
|
+
def get_application_load_balancers_using_get_with_http_info(application, opts = {})
|
|
90
|
+
if @api_client.config.debugging
|
|
91
|
+
@api_client.config.logger.debug 'Calling API: LoadBalancerControllerApi.get_application_load_balancers_using_get ...'
|
|
92
|
+
end
|
|
93
|
+
# verify the required parameter 'application' is set
|
|
94
|
+
if @api_client.config.client_side_validation && application.nil?
|
|
95
|
+
fail ArgumentError, "Missing the required parameter 'application' when calling LoadBalancerControllerApi.get_application_load_balancers_using_get"
|
|
96
|
+
end
|
|
97
|
+
# resource path
|
|
98
|
+
local_var_path = '/applications/{application}/loadBalancers'.sub('{' + 'application' + '}', application.to_s)
|
|
99
|
+
|
|
100
|
+
# query parameters
|
|
101
|
+
query_params = {}
|
|
102
|
+
|
|
103
|
+
# header parameters
|
|
104
|
+
header_params = {}
|
|
105
|
+
# HTTP header 'Accept' (if needed)
|
|
106
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
107
|
+
# HTTP header 'Content-Type'
|
|
108
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
109
|
+
header_params[:'X-RateLimit-App'] = opts[:'x_rate_limit_app'] if !opts[:'x_rate_limit_app'].nil?
|
|
110
|
+
|
|
111
|
+
# form parameters
|
|
112
|
+
form_params = {}
|
|
113
|
+
|
|
114
|
+
# http body (model)
|
|
115
|
+
post_body = nil
|
|
116
|
+
auth_names = []
|
|
117
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
118
|
+
:header_params => header_params,
|
|
119
|
+
:query_params => query_params,
|
|
120
|
+
:form_params => form_params,
|
|
121
|
+
:body => post_body,
|
|
122
|
+
:auth_names => auth_names,
|
|
123
|
+
:return_type => 'Array<Object>')
|
|
124
|
+
if @api_client.config.debugging
|
|
125
|
+
@api_client.config.logger.debug "API called: LoadBalancerControllerApi#get_application_load_balancers_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
126
|
+
end
|
|
127
|
+
return data, status_code, headers
|
|
128
|
+
end
|
|
129
|
+
# Retrieve a load balancer's details as a single element list for a given account, region, cloud provider and load balancer name
|
|
130
|
+
# @param account account
|
|
131
|
+
# @param region region
|
|
132
|
+
# @param name name
|
|
133
|
+
# @param [Hash] opts the optional parameters
|
|
134
|
+
# @option opts [String] :provider provider (default to aws)
|
|
135
|
+
# @option opts [String] :x_rate_limit_app X-RateLimit-App
|
|
136
|
+
# @return [Array<Object>]
|
|
137
|
+
def get_load_balancer_details_using_get(account, region, name, opts = {})
|
|
138
|
+
data, _status_code, _headers = get_load_balancer_details_using_get_with_http_info(account, region, name, opts)
|
|
139
|
+
data
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
# Retrieve a load balancer's details as a single element list for a given account, region, cloud provider and load balancer name
|
|
143
|
+
# @param account account
|
|
144
|
+
# @param region region
|
|
145
|
+
# @param name name
|
|
146
|
+
# @param [Hash] opts the optional parameters
|
|
147
|
+
# @option opts [String] :provider provider
|
|
148
|
+
# @option opts [String] :x_rate_limit_app X-RateLimit-App
|
|
149
|
+
# @return [Array<(Array<Object>, Fixnum, Hash)>] Array<Object> data, response status code and response headers
|
|
150
|
+
def get_load_balancer_details_using_get_with_http_info(account, region, name, opts = {})
|
|
151
|
+
if @api_client.config.debugging
|
|
152
|
+
@api_client.config.logger.debug 'Calling API: LoadBalancerControllerApi.get_load_balancer_details_using_get ...'
|
|
153
|
+
end
|
|
154
|
+
# verify the required parameter 'account' is set
|
|
155
|
+
if @api_client.config.client_side_validation && account.nil?
|
|
156
|
+
fail ArgumentError, "Missing the required parameter 'account' when calling LoadBalancerControllerApi.get_load_balancer_details_using_get"
|
|
157
|
+
end
|
|
158
|
+
# verify the required parameter 'region' is set
|
|
159
|
+
if @api_client.config.client_side_validation && region.nil?
|
|
160
|
+
fail ArgumentError, "Missing the required parameter 'region' when calling LoadBalancerControllerApi.get_load_balancer_details_using_get"
|
|
161
|
+
end
|
|
162
|
+
# verify the required parameter 'name' is set
|
|
163
|
+
if @api_client.config.client_side_validation && name.nil?
|
|
164
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling LoadBalancerControllerApi.get_load_balancer_details_using_get"
|
|
165
|
+
end
|
|
166
|
+
# resource path
|
|
167
|
+
local_var_path = '/loadBalancers/{account}/{region}/{name}'.sub('{' + 'account' + '}', account.to_s).sub('{' + 'region' + '}', region.to_s).sub('{' + 'name' + '}', name.to_s)
|
|
168
|
+
|
|
169
|
+
# query parameters
|
|
170
|
+
query_params = {}
|
|
171
|
+
query_params[:'provider'] = opts[:'provider'] if !opts[:'provider'].nil?
|
|
172
|
+
|
|
173
|
+
# header parameters
|
|
174
|
+
header_params = {}
|
|
175
|
+
# HTTP header 'Accept' (if needed)
|
|
176
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
177
|
+
# HTTP header 'Content-Type'
|
|
178
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
179
|
+
header_params[:'X-RateLimit-App'] = opts[:'x_rate_limit_app'] if !opts[:'x_rate_limit_app'].nil?
|
|
180
|
+
|
|
181
|
+
# form parameters
|
|
182
|
+
form_params = {}
|
|
183
|
+
|
|
184
|
+
# http body (model)
|
|
185
|
+
post_body = nil
|
|
186
|
+
auth_names = []
|
|
187
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
188
|
+
:header_params => header_params,
|
|
189
|
+
:query_params => query_params,
|
|
190
|
+
:form_params => form_params,
|
|
191
|
+
:body => post_body,
|
|
192
|
+
:auth_names => auth_names,
|
|
193
|
+
:return_type => 'Array<Object>')
|
|
194
|
+
if @api_client.config.debugging
|
|
195
|
+
@api_client.config.logger.debug "API called: LoadBalancerControllerApi#get_load_balancer_details_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
196
|
+
end
|
|
197
|
+
return data, status_code, headers
|
|
198
|
+
end
|
|
199
|
+
# Retrieve a load balancer for a given cloud provider
|
|
200
|
+
# @param name name
|
|
201
|
+
# @param [Hash] opts the optional parameters
|
|
202
|
+
# @option opts [String] :provider provider (default to aws)
|
|
203
|
+
# @option opts [String] :x_rate_limit_app X-RateLimit-App
|
|
204
|
+
# @return [Hash<String, Object>]
|
|
205
|
+
def get_load_balancer_using_get(name, opts = {})
|
|
206
|
+
data, _status_code, _headers = get_load_balancer_using_get_with_http_info(name, opts)
|
|
207
|
+
data
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
# Retrieve a load balancer for a given cloud provider
|
|
211
|
+
# @param name name
|
|
212
|
+
# @param [Hash] opts the optional parameters
|
|
213
|
+
# @option opts [String] :provider provider
|
|
214
|
+
# @option opts [String] :x_rate_limit_app X-RateLimit-App
|
|
215
|
+
# @return [Array<(Hash<String, Object>, Fixnum, Hash)>] Hash<String, Object> data, response status code and response headers
|
|
216
|
+
def get_load_balancer_using_get_with_http_info(name, opts = {})
|
|
217
|
+
if @api_client.config.debugging
|
|
218
|
+
@api_client.config.logger.debug 'Calling API: LoadBalancerControllerApi.get_load_balancer_using_get ...'
|
|
219
|
+
end
|
|
220
|
+
# verify the required parameter 'name' is set
|
|
221
|
+
if @api_client.config.client_side_validation && name.nil?
|
|
222
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling LoadBalancerControllerApi.get_load_balancer_using_get"
|
|
223
|
+
end
|
|
224
|
+
# resource path
|
|
225
|
+
local_var_path = '/loadBalancers/{name}'.sub('{' + 'name' + '}', name.to_s)
|
|
226
|
+
|
|
227
|
+
# query parameters
|
|
228
|
+
query_params = {}
|
|
229
|
+
query_params[:'provider'] = opts[:'provider'] if !opts[:'provider'].nil?
|
|
230
|
+
|
|
231
|
+
# header parameters
|
|
232
|
+
header_params = {}
|
|
233
|
+
# HTTP header 'Accept' (if needed)
|
|
234
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
235
|
+
# HTTP header 'Content-Type'
|
|
236
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
237
|
+
header_params[:'X-RateLimit-App'] = opts[:'x_rate_limit_app'] if !opts[:'x_rate_limit_app'].nil?
|
|
238
|
+
|
|
239
|
+
# form parameters
|
|
240
|
+
form_params = {}
|
|
241
|
+
|
|
242
|
+
# http body (model)
|
|
243
|
+
post_body = nil
|
|
244
|
+
auth_names = []
|
|
245
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
246
|
+
:header_params => header_params,
|
|
247
|
+
:query_params => query_params,
|
|
248
|
+
:form_params => form_params,
|
|
249
|
+
:body => post_body,
|
|
250
|
+
:auth_names => auth_names,
|
|
251
|
+
:return_type => 'Hash<String, Object>')
|
|
252
|
+
if @api_client.config.debugging
|
|
253
|
+
@api_client.config.logger.debug "API called: LoadBalancerControllerApi#get_load_balancer_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
254
|
+
end
|
|
255
|
+
return data, status_code, headers
|
|
256
|
+
end
|
|
257
|
+
end
|
|
258
|
+
end
|