spinnaker_gate_ruby_client 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- 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,475 @@
|
|
1
|
+
# SwaggerClient::ClusterControllerApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://gate-spinnaker.devint.gcp.openx.org*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**get_cluster_load_balancers_using_get**](ClusterControllerApi.md#get_cluster_load_balancers_using_get) | **GET** /applications/{application}/clusters/{account}/{clusterName}/{type}/loadBalancers | Retrieve a cluster's loadbalancers
|
8
|
+
[**get_clusters_using_get**](ClusterControllerApi.md#get_clusters_using_get) | **GET** /applications/{application}/clusters/{account}/{clusterName} | Retrieve a cluster's details
|
9
|
+
[**get_clusters_using_get1**](ClusterControllerApi.md#get_clusters_using_get1) | **GET** /applications/{application}/clusters/{account} | Retrieve a list of clusters for an account
|
10
|
+
[**get_clusters_using_get2**](ClusterControllerApi.md#get_clusters_using_get2) | **GET** /applications/{application}/clusters | Retrieve a list of cluster names for an application, grouped by account
|
11
|
+
[**get_scaling_activities_using_get**](ClusterControllerApi.md#get_scaling_activities_using_get) | **GET** /applications/{application}/clusters/{account}/{clusterName}/serverGroups/{serverGroupName}/scalingActivities | Retrieve a list of scaling activities for a server group
|
12
|
+
[**get_server_groups_using_get**](ClusterControllerApi.md#get_server_groups_using_get) | **GET** /applications/{application}/clusters/{account}/{clusterName}/serverGroups/{serverGroupName} | Retrieve a server group's details
|
13
|
+
[**get_server_groups_using_get1**](ClusterControllerApi.md#get_server_groups_using_get1) | **GET** /applications/{application}/clusters/{account}/{clusterName}/serverGroups | Retrieve a list of server groups for a cluster
|
14
|
+
[**get_target_server_group_using_get**](ClusterControllerApi.md#get_target_server_group_using_get) | **GET** /applications/{application}/clusters/{account}/{clusterName}/{cloudProvider}/{scope}/serverGroups/target/{target} | Retrieve a server group that matches a target coordinate (e.g., newest, ancestor) relative to a cluster
|
15
|
+
|
16
|
+
|
17
|
+
# **get_cluster_load_balancers_using_get**
|
18
|
+
> Array<Object> get_cluster_load_balancers_using_get(application_name, account, cluster_name, type, opts)
|
19
|
+
|
20
|
+
Retrieve a cluster's loadbalancers
|
21
|
+
|
22
|
+
### Example
|
23
|
+
```ruby
|
24
|
+
# load the gem
|
25
|
+
require 'swagger_client'
|
26
|
+
|
27
|
+
api_instance = SwaggerClient::ClusterControllerApi.new
|
28
|
+
|
29
|
+
application_name = 'application_name_example' # String | applicationName
|
30
|
+
|
31
|
+
account = 'account_example' # String | account
|
32
|
+
|
33
|
+
cluster_name = 'cluster_name_example' # String | clusterName
|
34
|
+
|
35
|
+
type = 'type_example' # String | type
|
36
|
+
|
37
|
+
opts = {
|
38
|
+
x_rate_limit_app: 'x_rate_limit_app_example' # String | X-RateLimit-App
|
39
|
+
}
|
40
|
+
|
41
|
+
begin
|
42
|
+
#Retrieve a cluster's loadbalancers
|
43
|
+
result = api_instance.get_cluster_load_balancers_using_get(application_name, account, cluster_name, type, opts)
|
44
|
+
p result
|
45
|
+
rescue SwaggerClient::ApiError => e
|
46
|
+
puts "Exception when calling ClusterControllerApi->get_cluster_load_balancers_using_get: #{e}"
|
47
|
+
end
|
48
|
+
```
|
49
|
+
|
50
|
+
### Parameters
|
51
|
+
|
52
|
+
Name | Type | Description | Notes
|
53
|
+
------------- | ------------- | ------------- | -------------
|
54
|
+
**application_name** | **String**| applicationName |
|
55
|
+
**account** | **String**| account |
|
56
|
+
**cluster_name** | **String**| clusterName |
|
57
|
+
**type** | **String**| type |
|
58
|
+
**x_rate_limit_app** | **String**| X-RateLimit-App | [optional]
|
59
|
+
|
60
|
+
### Return type
|
61
|
+
|
62
|
+
**Array<Object>**
|
63
|
+
|
64
|
+
### Authorization
|
65
|
+
|
66
|
+
No authorization required
|
67
|
+
|
68
|
+
### HTTP request headers
|
69
|
+
|
70
|
+
- **Content-Type**: application/json
|
71
|
+
- **Accept**: */*
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
# **get_clusters_using_get**
|
76
|
+
> Hash<String, Object> get_clusters_using_get(application, account, cluster_name, opts)
|
77
|
+
|
78
|
+
Retrieve a cluster's details
|
79
|
+
|
80
|
+
### Example
|
81
|
+
```ruby
|
82
|
+
# load the gem
|
83
|
+
require 'swagger_client'
|
84
|
+
|
85
|
+
api_instance = SwaggerClient::ClusterControllerApi.new
|
86
|
+
|
87
|
+
application = 'application_example' # String | application
|
88
|
+
|
89
|
+
account = 'account_example' # String | account
|
90
|
+
|
91
|
+
cluster_name = 'cluster_name_example' # String | clusterName
|
92
|
+
|
93
|
+
opts = {
|
94
|
+
x_rate_limit_app: 'x_rate_limit_app_example' # String | X-RateLimit-App
|
95
|
+
}
|
96
|
+
|
97
|
+
begin
|
98
|
+
#Retrieve a cluster's details
|
99
|
+
result = api_instance.get_clusters_using_get(application, account, cluster_name, opts)
|
100
|
+
p result
|
101
|
+
rescue SwaggerClient::ApiError => e
|
102
|
+
puts "Exception when calling ClusterControllerApi->get_clusters_using_get: #{e}"
|
103
|
+
end
|
104
|
+
```
|
105
|
+
|
106
|
+
### Parameters
|
107
|
+
|
108
|
+
Name | Type | Description | Notes
|
109
|
+
------------- | ------------- | ------------- | -------------
|
110
|
+
**application** | **String**| application |
|
111
|
+
**account** | **String**| account |
|
112
|
+
**cluster_name** | **String**| clusterName |
|
113
|
+
**x_rate_limit_app** | **String**| X-RateLimit-App | [optional]
|
114
|
+
|
115
|
+
### Return type
|
116
|
+
|
117
|
+
**Hash<String, Object>**
|
118
|
+
|
119
|
+
### Authorization
|
120
|
+
|
121
|
+
No authorization required
|
122
|
+
|
123
|
+
### HTTP request headers
|
124
|
+
|
125
|
+
- **Content-Type**: application/json
|
126
|
+
- **Accept**: */*
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
# **get_clusters_using_get1**
|
131
|
+
> Array<Object> get_clusters_using_get1(application, account, opts)
|
132
|
+
|
133
|
+
Retrieve a list of clusters for an account
|
134
|
+
|
135
|
+
### Example
|
136
|
+
```ruby
|
137
|
+
# load the gem
|
138
|
+
require 'swagger_client'
|
139
|
+
|
140
|
+
api_instance = SwaggerClient::ClusterControllerApi.new
|
141
|
+
|
142
|
+
application = 'application_example' # String | application
|
143
|
+
|
144
|
+
account = 'account_example' # String | account
|
145
|
+
|
146
|
+
opts = {
|
147
|
+
x_rate_limit_app: 'x_rate_limit_app_example' # String | X-RateLimit-App
|
148
|
+
}
|
149
|
+
|
150
|
+
begin
|
151
|
+
#Retrieve a list of clusters for an account
|
152
|
+
result = api_instance.get_clusters_using_get1(application, account, opts)
|
153
|
+
p result
|
154
|
+
rescue SwaggerClient::ApiError => e
|
155
|
+
puts "Exception when calling ClusterControllerApi->get_clusters_using_get1: #{e}"
|
156
|
+
end
|
157
|
+
```
|
158
|
+
|
159
|
+
### Parameters
|
160
|
+
|
161
|
+
Name | Type | Description | Notes
|
162
|
+
------------- | ------------- | ------------- | -------------
|
163
|
+
**application** | **String**| application |
|
164
|
+
**account** | **String**| account |
|
165
|
+
**x_rate_limit_app** | **String**| X-RateLimit-App | [optional]
|
166
|
+
|
167
|
+
### Return type
|
168
|
+
|
169
|
+
**Array<Object>**
|
170
|
+
|
171
|
+
### Authorization
|
172
|
+
|
173
|
+
No authorization required
|
174
|
+
|
175
|
+
### HTTP request headers
|
176
|
+
|
177
|
+
- **Content-Type**: application/json
|
178
|
+
- **Accept**: */*
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
# **get_clusters_using_get2**
|
183
|
+
> Hash<String, Object> get_clusters_using_get2(application, opts)
|
184
|
+
|
185
|
+
Retrieve a list of cluster names for an application, grouped by account
|
186
|
+
|
187
|
+
### Example
|
188
|
+
```ruby
|
189
|
+
# load the gem
|
190
|
+
require 'swagger_client'
|
191
|
+
|
192
|
+
api_instance = SwaggerClient::ClusterControllerApi.new
|
193
|
+
|
194
|
+
application = 'application_example' # String | application
|
195
|
+
|
196
|
+
opts = {
|
197
|
+
x_rate_limit_app: 'x_rate_limit_app_example' # String | X-RateLimit-App
|
198
|
+
}
|
199
|
+
|
200
|
+
begin
|
201
|
+
#Retrieve a list of cluster names for an application, grouped by account
|
202
|
+
result = api_instance.get_clusters_using_get2(application, opts)
|
203
|
+
p result
|
204
|
+
rescue SwaggerClient::ApiError => e
|
205
|
+
puts "Exception when calling ClusterControllerApi->get_clusters_using_get2: #{e}"
|
206
|
+
end
|
207
|
+
```
|
208
|
+
|
209
|
+
### Parameters
|
210
|
+
|
211
|
+
Name | Type | Description | Notes
|
212
|
+
------------- | ------------- | ------------- | -------------
|
213
|
+
**application** | **String**| application |
|
214
|
+
**x_rate_limit_app** | **String**| X-RateLimit-App | [optional]
|
215
|
+
|
216
|
+
### Return type
|
217
|
+
|
218
|
+
**Hash<String, Object>**
|
219
|
+
|
220
|
+
### Authorization
|
221
|
+
|
222
|
+
No authorization required
|
223
|
+
|
224
|
+
### HTTP request headers
|
225
|
+
|
226
|
+
- **Content-Type**: application/json
|
227
|
+
- **Accept**: */*
|
228
|
+
|
229
|
+
|
230
|
+
|
231
|
+
# **get_scaling_activities_using_get**
|
232
|
+
> Array<Object> get_scaling_activities_using_get(application, account, cluster_name, server_group_name, opts)
|
233
|
+
|
234
|
+
Retrieve a list of scaling activities for a server group
|
235
|
+
|
236
|
+
### Example
|
237
|
+
```ruby
|
238
|
+
# load the gem
|
239
|
+
require 'swagger_client'
|
240
|
+
|
241
|
+
api_instance = SwaggerClient::ClusterControllerApi.new
|
242
|
+
|
243
|
+
application = 'application_example' # String | application
|
244
|
+
|
245
|
+
account = 'account_example' # String | account
|
246
|
+
|
247
|
+
cluster_name = 'cluster_name_example' # String | clusterName
|
248
|
+
|
249
|
+
server_group_name = 'server_group_name_example' # String | serverGroupName
|
250
|
+
|
251
|
+
opts = {
|
252
|
+
provider: 'aws', # String | provider
|
253
|
+
region: 'region_example', # String | region
|
254
|
+
x_rate_limit_app: 'x_rate_limit_app_example' # String | X-RateLimit-App
|
255
|
+
}
|
256
|
+
|
257
|
+
begin
|
258
|
+
#Retrieve a list of scaling activities for a server group
|
259
|
+
result = api_instance.get_scaling_activities_using_get(application, account, cluster_name, server_group_name, opts)
|
260
|
+
p result
|
261
|
+
rescue SwaggerClient::ApiError => e
|
262
|
+
puts "Exception when calling ClusterControllerApi->get_scaling_activities_using_get: #{e}"
|
263
|
+
end
|
264
|
+
```
|
265
|
+
|
266
|
+
### Parameters
|
267
|
+
|
268
|
+
Name | Type | Description | Notes
|
269
|
+
------------- | ------------- | ------------- | -------------
|
270
|
+
**application** | **String**| application |
|
271
|
+
**account** | **String**| account |
|
272
|
+
**cluster_name** | **String**| clusterName |
|
273
|
+
**server_group_name** | **String**| serverGroupName |
|
274
|
+
**provider** | **String**| provider | [optional] [default to aws]
|
275
|
+
**region** | **String**| region | [optional]
|
276
|
+
**x_rate_limit_app** | **String**| X-RateLimit-App | [optional]
|
277
|
+
|
278
|
+
### Return type
|
279
|
+
|
280
|
+
**Array<Object>**
|
281
|
+
|
282
|
+
### Authorization
|
283
|
+
|
284
|
+
No authorization required
|
285
|
+
|
286
|
+
### HTTP request headers
|
287
|
+
|
288
|
+
- **Content-Type**: application/json
|
289
|
+
- **Accept**: */*
|
290
|
+
|
291
|
+
|
292
|
+
|
293
|
+
# **get_server_groups_using_get**
|
294
|
+
> Array<Object> get_server_groups_using_get(application, account, cluster_name, server_group_name, opts)
|
295
|
+
|
296
|
+
Retrieve a server group's details
|
297
|
+
|
298
|
+
### Example
|
299
|
+
```ruby
|
300
|
+
# load the gem
|
301
|
+
require 'swagger_client'
|
302
|
+
|
303
|
+
api_instance = SwaggerClient::ClusterControllerApi.new
|
304
|
+
|
305
|
+
application = 'application_example' # String | application
|
306
|
+
|
307
|
+
account = 'account_example' # String | account
|
308
|
+
|
309
|
+
cluster_name = 'cluster_name_example' # String | clusterName
|
310
|
+
|
311
|
+
server_group_name = 'server_group_name_example' # String | serverGroupName
|
312
|
+
|
313
|
+
opts = {
|
314
|
+
x_rate_limit_app: 'x_rate_limit_app_example' # String | X-RateLimit-App
|
315
|
+
}
|
316
|
+
|
317
|
+
begin
|
318
|
+
#Retrieve a server group's details
|
319
|
+
result = api_instance.get_server_groups_using_get(application, account, cluster_name, server_group_name, opts)
|
320
|
+
p result
|
321
|
+
rescue SwaggerClient::ApiError => e
|
322
|
+
puts "Exception when calling ClusterControllerApi->get_server_groups_using_get: #{e}"
|
323
|
+
end
|
324
|
+
```
|
325
|
+
|
326
|
+
### Parameters
|
327
|
+
|
328
|
+
Name | Type | Description | Notes
|
329
|
+
------------- | ------------- | ------------- | -------------
|
330
|
+
**application** | **String**| application |
|
331
|
+
**account** | **String**| account |
|
332
|
+
**cluster_name** | **String**| clusterName |
|
333
|
+
**server_group_name** | **String**| serverGroupName |
|
334
|
+
**x_rate_limit_app** | **String**| X-RateLimit-App | [optional]
|
335
|
+
|
336
|
+
### Return type
|
337
|
+
|
338
|
+
**Array<Object>**
|
339
|
+
|
340
|
+
### Authorization
|
341
|
+
|
342
|
+
No authorization required
|
343
|
+
|
344
|
+
### HTTP request headers
|
345
|
+
|
346
|
+
- **Content-Type**: application/json
|
347
|
+
- **Accept**: */*
|
348
|
+
|
349
|
+
|
350
|
+
|
351
|
+
# **get_server_groups_using_get1**
|
352
|
+
> Array<Object> get_server_groups_using_get1(application, account, cluster_name, opts)
|
353
|
+
|
354
|
+
Retrieve a list of server groups for a cluster
|
355
|
+
|
356
|
+
### Example
|
357
|
+
```ruby
|
358
|
+
# load the gem
|
359
|
+
require 'swagger_client'
|
360
|
+
|
361
|
+
api_instance = SwaggerClient::ClusterControllerApi.new
|
362
|
+
|
363
|
+
application = 'application_example' # String | application
|
364
|
+
|
365
|
+
account = 'account_example' # String | account
|
366
|
+
|
367
|
+
cluster_name = 'cluster_name_example' # String | clusterName
|
368
|
+
|
369
|
+
opts = {
|
370
|
+
x_rate_limit_app: 'x_rate_limit_app_example' # String | X-RateLimit-App
|
371
|
+
}
|
372
|
+
|
373
|
+
begin
|
374
|
+
#Retrieve a list of server groups for a cluster
|
375
|
+
result = api_instance.get_server_groups_using_get1(application, account, cluster_name, opts)
|
376
|
+
p result
|
377
|
+
rescue SwaggerClient::ApiError => e
|
378
|
+
puts "Exception when calling ClusterControllerApi->get_server_groups_using_get1: #{e}"
|
379
|
+
end
|
380
|
+
```
|
381
|
+
|
382
|
+
### Parameters
|
383
|
+
|
384
|
+
Name | Type | Description | Notes
|
385
|
+
------------- | ------------- | ------------- | -------------
|
386
|
+
**application** | **String**| application |
|
387
|
+
**account** | **String**| account |
|
388
|
+
**cluster_name** | **String**| clusterName |
|
389
|
+
**x_rate_limit_app** | **String**| X-RateLimit-App | [optional]
|
390
|
+
|
391
|
+
### Return type
|
392
|
+
|
393
|
+
**Array<Object>**
|
394
|
+
|
395
|
+
### Authorization
|
396
|
+
|
397
|
+
No authorization required
|
398
|
+
|
399
|
+
### HTTP request headers
|
400
|
+
|
401
|
+
- **Content-Type**: application/json
|
402
|
+
- **Accept**: */*
|
403
|
+
|
404
|
+
|
405
|
+
|
406
|
+
# **get_target_server_group_using_get**
|
407
|
+
> Hash<String, Object> get_target_server_group_using_get(application, account, cluster_name, cloud_provider, scope, target, opts)
|
408
|
+
|
409
|
+
Retrieve a server group that matches a target coordinate (e.g., newest, ancestor) relative to a cluster
|
410
|
+
|
411
|
+
`scope` is either a zone or a region
|
412
|
+
|
413
|
+
### Example
|
414
|
+
```ruby
|
415
|
+
# load the gem
|
416
|
+
require 'swagger_client'
|
417
|
+
|
418
|
+
api_instance = SwaggerClient::ClusterControllerApi.new
|
419
|
+
|
420
|
+
application = 'application_example' # String | application
|
421
|
+
|
422
|
+
account = 'account_example' # String | account
|
423
|
+
|
424
|
+
cluster_name = 'cluster_name_example' # String | clusterName
|
425
|
+
|
426
|
+
cloud_provider = 'cloud_provider_example' # String | cloudProvider
|
427
|
+
|
428
|
+
scope = 'scope_example' # String | scope
|
429
|
+
|
430
|
+
target = 'target_example' # String | target
|
431
|
+
|
432
|
+
opts = {
|
433
|
+
only_enabled: true, # BOOLEAN | onlyEnabled
|
434
|
+
validate_oldest: true, # BOOLEAN | validateOldest
|
435
|
+
x_rate_limit_app: 'x_rate_limit_app_example' # String | X-RateLimit-App
|
436
|
+
}
|
437
|
+
|
438
|
+
begin
|
439
|
+
#Retrieve a server group that matches a target coordinate (e.g., newest, ancestor) relative to a cluster
|
440
|
+
result = api_instance.get_target_server_group_using_get(application, account, cluster_name, cloud_provider, scope, target, opts)
|
441
|
+
p result
|
442
|
+
rescue SwaggerClient::ApiError => e
|
443
|
+
puts "Exception when calling ClusterControllerApi->get_target_server_group_using_get: #{e}"
|
444
|
+
end
|
445
|
+
```
|
446
|
+
|
447
|
+
### Parameters
|
448
|
+
|
449
|
+
Name | Type | Description | Notes
|
450
|
+
------------- | ------------- | ------------- | -------------
|
451
|
+
**application** | **String**| application |
|
452
|
+
**account** | **String**| account |
|
453
|
+
**cluster_name** | **String**| clusterName |
|
454
|
+
**cloud_provider** | **String**| cloudProvider |
|
455
|
+
**scope** | **String**| scope |
|
456
|
+
**target** | **String**| target |
|
457
|
+
**only_enabled** | **BOOLEAN**| onlyEnabled | [optional]
|
458
|
+
**validate_oldest** | **BOOLEAN**| validateOldest | [optional]
|
459
|
+
**x_rate_limit_app** | **String**| X-RateLimit-App | [optional]
|
460
|
+
|
461
|
+
### Return type
|
462
|
+
|
463
|
+
**Hash<String, Object>**
|
464
|
+
|
465
|
+
### Authorization
|
466
|
+
|
467
|
+
No authorization required
|
468
|
+
|
469
|
+
### HTTP request headers
|
470
|
+
|
471
|
+
- **Content-Type**: application/json
|
472
|
+
- **Accept**: */*
|
473
|
+
|
474
|
+
|
475
|
+
|