spinnaker_gate_ruby_client 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (155) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +8 -0
  3. data/Gemfile.lock +85 -0
  4. data/LICENSE +201 -0
  5. data/README.md +240 -0
  6. data/Rakefile +8 -0
  7. data/docs/Account.md +14 -0
  8. data/docs/AccountDetails.md +19 -0
  9. data/docs/AmazonInfrastructureControllerApi.md +128 -0
  10. data/docs/ApplicationControllerApi.md +754 -0
  11. data/docs/ArtifactControllerApi.md +111 -0
  12. data/docs/AuthControllerApi.md +212 -0
  13. data/docs/BakeControllerApi.md +143 -0
  14. data/docs/BuildControllerApi.md +493 -0
  15. data/docs/ClusterControllerApi.md +475 -0
  16. data/docs/ConcourseControllerApi.md +161 -0
  17. data/docs/CredentialsControllerApi.md +129 -0
  18. data/docs/EcsServerGroupEventsControllerApi.md +66 -0
  19. data/docs/ExecutionsControllerApi.md +133 -0
  20. data/docs/FirewallControllerApi.md +171 -0
  21. data/docs/GrantedAuthority.md +8 -0
  22. data/docs/HashMapstringobject.md +7 -0
  23. data/docs/HttpEntity.md +8 -0
  24. data/docs/ImageControllerApi.md +178 -0
  25. data/docs/InstanceControllerApi.md +122 -0
  26. data/docs/JobControllerApi.md +69 -0
  27. data/docs/LoadBalancerControllerApi.md +217 -0
  28. data/docs/Mapstringstring.md +7 -0
  29. data/docs/NetworkControllerApi.md +105 -0
  30. data/docs/PipelineConfigControllerApi.md +144 -0
  31. data/docs/PipelineControllerApi.md +1074 -0
  32. data/docs/PipelineTemplateDependent.md +10 -0
  33. data/docs/PipelineTemplatesControllerApi.md +350 -0
  34. data/docs/ProjectControllerApi.md +196 -0
  35. data/docs/PubsubSubscriptionControllerApi.md +48 -0
  36. data/docs/ReorderPipelinesCommand.md +9 -0
  37. data/docs/ReorderPipelinesControllerApi.md +54 -0
  38. data/docs/ResponseEntity.md +10 -0
  39. data/docs/SearchControllerApi.md +68 -0
  40. data/docs/SecurityGroupControllerApi.md +171 -0
  41. data/docs/ServerGroupControllerApi.md +125 -0
  42. data/docs/ServerGroupManagerControllerApi.md +54 -0
  43. data/docs/SnapshotControllerApi.md +110 -0
  44. data/docs/SubnetControllerApi.md +58 -0
  45. data/docs/TaskControllerApi.md +291 -0
  46. data/docs/User.md +18 -0
  47. data/docs/V2CanaryConfigControllerApi.md +259 -0
  48. data/docs/V2CanaryControllerApi.md +356 -0
  49. data/docs/V2PipelineTemplatesControllerApi.md +356 -0
  50. data/docs/Version.md +8 -0
  51. data/docs/VersionControllerApi.md +48 -0
  52. data/docs/WebhookControllerApi.md +105 -0
  53. data/git_push.sh +55 -0
  54. data/lib/swagger_client.rb +85 -0
  55. data/lib/swagger_client/api/amazon_infrastructure_controller_api.rb +161 -0
  56. data/lib/swagger_client/api/application_controller_api.rb +868 -0
  57. data/lib/swagger_client/api/artifact_controller_api.rb +141 -0
  58. data/lib/swagger_client/api/auth_controller_api.rb +258 -0
  59. data/lib/swagger_client/api/bake_controller_api.rb +179 -0
  60. data/lib/swagger_client/api/build_controller_api.rb +588 -0
  61. data/lib/swagger_client/api/cluster_controller_api.rb +591 -0
  62. data/lib/swagger_client/api/concourse_controller_api.rb +209 -0
  63. data/lib/swagger_client/api/credentials_controller_api.rb +163 -0
  64. data/lib/swagger_client/api/ecs_server_group_events_controller_api.rb +101 -0
  65. data/lib/swagger_client/api/executions_controller_api.rb +169 -0
  66. data/lib/swagger_client/api/firewall_controller_api.rb +209 -0
  67. data/lib/swagger_client/api/image_controller_api.rb +222 -0
  68. data/lib/swagger_client/api/instance_controller_api.rb +160 -0
  69. data/lib/swagger_client/api/job_controller_api.rb +99 -0
  70. data/lib/swagger_client/api/load_balancer_controller_api.rb +258 -0
  71. data/lib/swagger_client/api/network_controller_api.rb +127 -0
  72. data/lib/swagger_client/api/pipeline_config_controller_api.rb +176 -0
  73. data/lib/swagger_client/api/pipeline_controller_api.rb +1268 -0
  74. data/lib/swagger_client/api/pipeline_templates_controller_api.rb +404 -0
  75. data/lib/swagger_client/api/project_controller_api.rb +234 -0
  76. data/lib/swagger_client/api/pubsub_subscription_controller_api.rb +69 -0
  77. data/lib/swagger_client/api/reorder_pipelines_controller_api.rb +75 -0
  78. data/lib/swagger_client/api/search_controller_api.rb +94 -0
  79. data/lib/swagger_client/api/security_group_controller_api.rb +209 -0
  80. data/lib/swagger_client/api/server_group_controller_api.rb +163 -0
  81. data/lib/swagger_client/api/server_group_manager_controller_api.rb +75 -0
  82. data/lib/swagger_client/api/snapshot_controller_api.rb +142 -0
  83. data/lib/swagger_client/api/subnet_controller_api.rb +78 -0
  84. data/lib/swagger_client/api/task_controller_api.rb +345 -0
  85. data/lib/swagger_client/api/v2_canary_config_controller_api.rb +300 -0
  86. data/lib/swagger_client/api/v2_canary_controller_api.rb +421 -0
  87. data/lib/swagger_client/api/v2_pipeline_templates_controller_api.rb +412 -0
  88. data/lib/swagger_client/api/version_controller_api.rb +69 -0
  89. data/lib/swagger_client/api/webhook_controller_api.rb +135 -0
  90. data/lib/swagger_client/api_client.rb +388 -0
  91. data/lib/swagger_client/api_error.rb +38 -0
  92. data/lib/swagger_client/configuration.rb +202 -0
  93. data/lib/swagger_client/models/account.rb +241 -0
  94. data/lib/swagger_client/models/account_details.rb +286 -0
  95. data/lib/swagger_client/models/granted_authority.rb +183 -0
  96. data/lib/swagger_client/models/hash_mapstringobject.rb +174 -0
  97. data/lib/swagger_client/models/http_entity.rb +183 -0
  98. data/lib/swagger_client/models/mapstringstring.rb +174 -0
  99. data/lib/swagger_client/models/pipeline_template_dependent.rb +201 -0
  100. data/lib/swagger_client/models/reorder_pipelines_command.rb +194 -0
  101. data/lib/swagger_client/models/response_entity.rb +235 -0
  102. data/lib/swagger_client/models/user.rb +279 -0
  103. data/lib/swagger_client/models/version.rb +183 -0
  104. data/lib/swagger_client/version.rb +15 -0
  105. data/spec/api/amazon_infrastructure_controller_api_spec.rb +65 -0
  106. data/spec/api/application_controller_api_spec.rb +218 -0
  107. data/spec/api/artifact_controller_api_spec.rb +60 -0
  108. data/spec/api/auth_controller_api_spec.rb +86 -0
  109. data/spec/api/bake_controller_api_spec.rb +68 -0
  110. data/spec/api/build_controller_api_spec.rb +155 -0
  111. data/spec/api/cluster_controller_api_spec.rb +155 -0
  112. data/spec/api/concourse_controller_api_spec.rb +73 -0
  113. data/spec/api/credentials_controller_api_spec.rb +70 -0
  114. data/spec/api/ecs_server_group_events_controller_api_spec.rb +50 -0
  115. data/spec/api/executions_controller_api_spec.rb +72 -0
  116. data/spec/api/firewall_controller_api_spec.rb +77 -0
  117. data/spec/api/image_controller_api_spec.rb +80 -0
  118. data/spec/api/instance_controller_api_spec.rb +64 -0
  119. data/spec/api/job_controller_api_spec.rb +51 -0
  120. data/spec/api/load_balancer_controller_api_spec.rb +87 -0
  121. data/spec/api/network_controller_api_spec.rb +58 -0
  122. data/spec/api/pipeline_config_controller_api_spec.rb +68 -0
  123. data/spec/api/pipeline_controller_api_spec.rb +296 -0
  124. data/spec/api/pipeline_templates_controller_api_spec.rb +118 -0
  125. data/spec/api/project_controller_api_spec.rb +81 -0
  126. data/spec/api/pubsub_subscription_controller_api_spec.rb +45 -0
  127. data/spec/api/reorder_pipelines_controller_api_spec.rb +46 -0
  128. data/spec/api/search_controller_api_spec.rb +52 -0
  129. data/spec/api/security_group_controller_api_spec.rb +77 -0
  130. data/spec/api/server_group_controller_api_spec.rb +66 -0
  131. data/spec/api/server_group_manager_controller_api_spec.rb +46 -0
  132. data/spec/api/snapshot_controller_api_spec.rb +60 -0
  133. data/spec/api/subnet_controller_api_spec.rb +47 -0
  134. data/spec/api/task_controller_api_spec.rb +103 -0
  135. data/spec/api/v2_canary_config_controller_api_spec.rb +96 -0
  136. data/spec/api/v2_canary_controller_api_spec.rb +123 -0
  137. data/spec/api/v2_pipeline_templates_controller_api_spec.rb +121 -0
  138. data/spec/api/version_controller_api_spec.rb +45 -0
  139. data/spec/api/webhook_controller_api_spec.rb +60 -0
  140. data/spec/api_client_spec.rb +226 -0
  141. data/spec/configuration_spec.rb +42 -0
  142. data/spec/models/account_details_spec.rb +107 -0
  143. data/spec/models/account_spec.rb +77 -0
  144. data/spec/models/granted_authority_spec.rb +41 -0
  145. data/spec/models/hash_mapstringobject_spec.rb +35 -0
  146. data/spec/models/http_entity_spec.rb +41 -0
  147. data/spec/models/mapstringstring_spec.rb +35 -0
  148. data/spec/models/pipeline_template_dependent_spec.rb +53 -0
  149. data/spec/models/reorder_pipelines_command_spec.rb +47 -0
  150. data/spec/models/response_entity_spec.rb +57 -0
  151. data/spec/models/user_spec.rb +101 -0
  152. data/spec/models/version_spec.rb +41 -0
  153. data/spec/spec_helper.rb +111 -0
  154. data/spinnaker_gate_ruby_client.gemspec +45 -0
  155. metadata +426 -0
@@ -0,0 +1,69 @@
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 PubsubSubscriptionControllerApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Retrieve the list of pub/sub subscriptions configured in Echo.
23
+ # @param [Hash] opts the optional parameters
24
+ # @return [Array<Mapstringstring>]
25
+ def all_using_get4(opts = {})
26
+ data, _status_code, _headers = all_using_get4_with_http_info(opts)
27
+ data
28
+ end
29
+
30
+ # Retrieve the list of pub/sub subscriptions configured in Echo.
31
+ # @param [Hash] opts the optional parameters
32
+ # @return [Array<(Array<Mapstringstring>, Fixnum, Hash)>] Array<Mapstringstring> data, response status code and response headers
33
+ def all_using_get4_with_http_info(opts = {})
34
+ if @api_client.config.debugging
35
+ @api_client.config.logger.debug 'Calling API: PubsubSubscriptionControllerApi.all_using_get4 ...'
36
+ end
37
+ # resource path
38
+ local_var_path = '/pubsub/subscriptions'
39
+
40
+ # query parameters
41
+ query_params = {}
42
+
43
+ # header parameters
44
+ header_params = {}
45
+ # HTTP header 'Accept' (if needed)
46
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
47
+ # HTTP header 'Content-Type'
48
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
49
+
50
+ # form parameters
51
+ form_params = {}
52
+
53
+ # http body (model)
54
+ post_body = nil
55
+ auth_names = []
56
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
57
+ :header_params => header_params,
58
+ :query_params => query_params,
59
+ :form_params => form_params,
60
+ :body => post_body,
61
+ :auth_names => auth_names,
62
+ :return_type => 'Array<Mapstringstring>')
63
+ if @api_client.config.debugging
64
+ @api_client.config.logger.debug "API called: PubsubSubscriptionControllerApi#all_using_get4\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
65
+ end
66
+ return data, status_code, headers
67
+ end
68
+ end
69
+ end
@@ -0,0 +1,75 @@
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 ReorderPipelinesControllerApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Re-order pipelines
23
+ # @param reorder_pipelines_command reorderPipelinesCommand
24
+ # @param [Hash] opts the optional parameters
25
+ # @return [Object]
26
+ def reorder_pipelines_using_post(reorder_pipelines_command, opts = {})
27
+ data, _status_code, _headers = reorder_pipelines_using_post_with_http_info(reorder_pipelines_command, opts)
28
+ data
29
+ end
30
+
31
+ # Re-order pipelines
32
+ # @param reorder_pipelines_command reorderPipelinesCommand
33
+ # @param [Hash] opts the optional parameters
34
+ # @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
35
+ def reorder_pipelines_using_post_with_http_info(reorder_pipelines_command, opts = {})
36
+ if @api_client.config.debugging
37
+ @api_client.config.logger.debug 'Calling API: ReorderPipelinesControllerApi.reorder_pipelines_using_post ...'
38
+ end
39
+ # verify the required parameter 'reorder_pipelines_command' is set
40
+ if @api_client.config.client_side_validation && reorder_pipelines_command.nil?
41
+ fail ArgumentError, "Missing the required parameter 'reorder_pipelines_command' when calling ReorderPipelinesControllerApi.reorder_pipelines_using_post"
42
+ end
43
+ # resource path
44
+ local_var_path = '/actions/pipelines/reorder'
45
+
46
+ # query parameters
47
+ query_params = {}
48
+
49
+ # header parameters
50
+ header_params = {}
51
+ # HTTP header 'Accept' (if needed)
52
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
53
+ # HTTP header 'Content-Type'
54
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
55
+
56
+ # form parameters
57
+ form_params = {}
58
+
59
+ # http body (model)
60
+ post_body = @api_client.object_to_http_body(reorder_pipelines_command)
61
+ auth_names = []
62
+ data, status_code, headers = @api_client.call_api(:POST, 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 => 'Object')
69
+ if @api_client.config.debugging
70
+ @api_client.config.logger.debug "API called: ReorderPipelinesControllerApi#reorder_pipelines_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
71
+ end
72
+ return data, status_code, headers
73
+ end
74
+ end
75
+ end
@@ -0,0 +1,94 @@
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 SearchControllerApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Search infrastructure
23
+ # @param type type
24
+ # @param [Hash] opts the optional parameters
25
+ # @option opts [String] :q q
26
+ # @option opts [String] :platform platform
27
+ # @option opts [Integer] :page_size pageSize (default to 10000)
28
+ # @option opts [Integer] :page page (default to 1)
29
+ # @option opts [BOOLEAN] :allow_short_query allowShortQuery (default to false)
30
+ # @option opts [String] :x_rate_limit_app X-RateLimit-App
31
+ # @return [Array<Object>]
32
+ def search_using_get(type, opts = {})
33
+ data, _status_code, _headers = search_using_get_with_http_info(type, opts)
34
+ data
35
+ end
36
+
37
+ # Search infrastructure
38
+ # @param type type
39
+ # @param [Hash] opts the optional parameters
40
+ # @option opts [String] :q q
41
+ # @option opts [String] :platform platform
42
+ # @option opts [Integer] :page_size pageSize
43
+ # @option opts [Integer] :page page
44
+ # @option opts [BOOLEAN] :allow_short_query allowShortQuery
45
+ # @option opts [String] :x_rate_limit_app X-RateLimit-App
46
+ # @return [Array<(Array<Object>, Fixnum, Hash)>] Array<Object> data, response status code and response headers
47
+ def search_using_get_with_http_info(type, opts = {})
48
+ if @api_client.config.debugging
49
+ @api_client.config.logger.debug 'Calling API: SearchControllerApi.search_using_get ...'
50
+ end
51
+ # verify the required parameter 'type' is set
52
+ if @api_client.config.client_side_validation && type.nil?
53
+ fail ArgumentError, "Missing the required parameter 'type' when calling SearchControllerApi.search_using_get"
54
+ end
55
+ # resource path
56
+ local_var_path = '/search'
57
+
58
+ # query parameters
59
+ query_params = {}
60
+ query_params[:'type'] = type
61
+ query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
62
+ query_params[:'platform'] = opts[:'platform'] if !opts[:'platform'].nil?
63
+ query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
64
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
65
+ query_params[:'allowShortQuery'] = opts[:'allow_short_query'] if !opts[:'allow_short_query'].nil?
66
+
67
+ # header parameters
68
+ header_params = {}
69
+ # HTTP header 'Accept' (if needed)
70
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
71
+ # HTTP header 'Content-Type'
72
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
73
+ header_params[:'X-RateLimit-App'] = opts[:'x_rate_limit_app'] if !opts[:'x_rate_limit_app'].nil?
74
+
75
+ # form parameters
76
+ form_params = {}
77
+
78
+ # http body (model)
79
+ post_body = nil
80
+ auth_names = []
81
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
82
+ :header_params => header_params,
83
+ :query_params => query_params,
84
+ :form_params => form_params,
85
+ :body => post_body,
86
+ :auth_names => auth_names,
87
+ :return_type => 'Array<Object>')
88
+ if @api_client.config.debugging
89
+ @api_client.config.logger.debug "API called: SearchControllerApi#search_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
90
+ end
91
+ return data, status_code, headers
92
+ end
93
+ end
94
+ end
@@ -0,0 +1,209 @@
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 SecurityGroupControllerApi
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 security groups for a given account, grouped by region
23
+ # @param account account
24
+ # @param [Hash] opts the optional parameters
25
+ # @option opts [String] :provider provider (default to aws)
26
+ # @option opts [String] :region region
27
+ # @option opts [String] :x_rate_limit_app X-RateLimit-App
28
+ # @return [Object]
29
+ def all_by_account_using_get1(account, opts = {})
30
+ data, _status_code, _headers = all_by_account_using_get1_with_http_info(account, opts)
31
+ data
32
+ end
33
+
34
+ # Retrieve a list of security groups for a given account, grouped by region
35
+ # @param account account
36
+ # @param [Hash] opts the optional parameters
37
+ # @option opts [String] :provider provider
38
+ # @option opts [String] :region region
39
+ # @option opts [String] :x_rate_limit_app X-RateLimit-App
40
+ # @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
41
+ def all_by_account_using_get1_with_http_info(account, opts = {})
42
+ if @api_client.config.debugging
43
+ @api_client.config.logger.debug 'Calling API: SecurityGroupControllerApi.all_by_account_using_get1 ...'
44
+ end
45
+ # verify the required parameter 'account' is set
46
+ if @api_client.config.client_side_validation && account.nil?
47
+ fail ArgumentError, "Missing the required parameter 'account' when calling SecurityGroupControllerApi.all_by_account_using_get1"
48
+ end
49
+ # resource path
50
+ local_var_path = '/securityGroups/{account}'.sub('{' + 'account' + '}', account.to_s)
51
+
52
+ # query parameters
53
+ query_params = {}
54
+ query_params[:'provider'] = opts[:'provider'] if !opts[:'provider'].nil?
55
+ query_params[:'region'] = opts[:'region'] if !opts[:'region'].nil?
56
+
57
+ # header parameters
58
+ header_params = {}
59
+ # HTTP header 'Accept' (if needed)
60
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
61
+ # HTTP header 'Content-Type'
62
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
63
+ header_params[:'X-RateLimit-App'] = opts[:'x_rate_limit_app'] if !opts[:'x_rate_limit_app'].nil?
64
+
65
+ # form parameters
66
+ form_params = {}
67
+
68
+ # http body (model)
69
+ post_body = nil
70
+ auth_names = []
71
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
72
+ :header_params => header_params,
73
+ :query_params => query_params,
74
+ :form_params => form_params,
75
+ :body => post_body,
76
+ :auth_names => auth_names,
77
+ :return_type => 'Object')
78
+ if @api_client.config.debugging
79
+ @api_client.config.logger.debug "API called: SecurityGroupControllerApi#all_by_account_using_get1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
80
+ end
81
+ return data, status_code, headers
82
+ end
83
+ # Retrieve a list of security groups, grouped by account, cloud provider, and region
84
+ # @param [Hash] opts the optional parameters
85
+ # @option opts [String] :id id
86
+ # @option opts [String] :x_rate_limit_app X-RateLimit-App
87
+ # @return [Object]
88
+ def all_using_get5(opts = {})
89
+ data, _status_code, _headers = all_using_get5_with_http_info(opts)
90
+ data
91
+ end
92
+
93
+ # Retrieve a list of security groups, grouped by account, cloud provider, and region
94
+ # @param [Hash] opts the optional parameters
95
+ # @option opts [String] :id id
96
+ # @option opts [String] :x_rate_limit_app X-RateLimit-App
97
+ # @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
98
+ def all_using_get5_with_http_info(opts = {})
99
+ if @api_client.config.debugging
100
+ @api_client.config.logger.debug 'Calling API: SecurityGroupControllerApi.all_using_get5 ...'
101
+ end
102
+ # resource path
103
+ local_var_path = '/securityGroups'
104
+
105
+ # query parameters
106
+ query_params = {}
107
+ query_params[:'id'] = opts[:'id'] if !opts[:'id'].nil?
108
+
109
+ # header parameters
110
+ header_params = {}
111
+ # HTTP header 'Accept' (if needed)
112
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
113
+ # HTTP header 'Content-Type'
114
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
115
+ header_params[:'X-RateLimit-App'] = opts[:'x_rate_limit_app'] if !opts[:'x_rate_limit_app'].nil?
116
+
117
+ # form parameters
118
+ form_params = {}
119
+
120
+ # http body (model)
121
+ post_body = nil
122
+ auth_names = []
123
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
124
+ :header_params => header_params,
125
+ :query_params => query_params,
126
+ :form_params => form_params,
127
+ :body => post_body,
128
+ :auth_names => auth_names,
129
+ :return_type => 'Object')
130
+ if @api_client.config.debugging
131
+ @api_client.config.logger.debug "API called: SecurityGroupControllerApi#all_using_get5\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
132
+ end
133
+ return data, status_code, headers
134
+ end
135
+ # Retrieve a security group's details
136
+ # @param account account
137
+ # @param region region
138
+ # @param name name
139
+ # @param [Hash] opts the optional parameters
140
+ # @option opts [String] :provider provider (default to aws)
141
+ # @option opts [String] :vpc_id vpcId
142
+ # @option opts [String] :x_rate_limit_app X-RateLimit-App
143
+ # @return [Object]
144
+ def get_security_group_using_get1(account, region, name, opts = {})
145
+ data, _status_code, _headers = get_security_group_using_get1_with_http_info(account, region, name, opts)
146
+ data
147
+ end
148
+
149
+ # Retrieve a security group&#39;s details
150
+ # @param account account
151
+ # @param region region
152
+ # @param name name
153
+ # @param [Hash] opts the optional parameters
154
+ # @option opts [String] :provider provider
155
+ # @option opts [String] :vpc_id vpcId
156
+ # @option opts [String] :x_rate_limit_app X-RateLimit-App
157
+ # @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
158
+ def get_security_group_using_get1_with_http_info(account, region, name, opts = {})
159
+ if @api_client.config.debugging
160
+ @api_client.config.logger.debug 'Calling API: SecurityGroupControllerApi.get_security_group_using_get1 ...'
161
+ end
162
+ # verify the required parameter 'account' is set
163
+ if @api_client.config.client_side_validation && account.nil?
164
+ fail ArgumentError, "Missing the required parameter 'account' when calling SecurityGroupControllerApi.get_security_group_using_get1"
165
+ end
166
+ # verify the required parameter 'region' is set
167
+ if @api_client.config.client_side_validation && region.nil?
168
+ fail ArgumentError, "Missing the required parameter 'region' when calling SecurityGroupControllerApi.get_security_group_using_get1"
169
+ end
170
+ # verify the required parameter 'name' is set
171
+ if @api_client.config.client_side_validation && name.nil?
172
+ fail ArgumentError, "Missing the required parameter 'name' when calling SecurityGroupControllerApi.get_security_group_using_get1"
173
+ end
174
+ # resource path
175
+ local_var_path = '/securityGroups/{account}/{region}/{name}'.sub('{' + 'account' + '}', account.to_s).sub('{' + 'region' + '}', region.to_s).sub('{' + 'name' + '}', name.to_s)
176
+
177
+ # query parameters
178
+ query_params = {}
179
+ query_params[:'provider'] = opts[:'provider'] if !opts[:'provider'].nil?
180
+ query_params[:'vpcId'] = opts[:'vpc_id'] if !opts[:'vpc_id'].nil?
181
+
182
+ # header parameters
183
+ header_params = {}
184
+ # HTTP header 'Accept' (if needed)
185
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
186
+ # HTTP header 'Content-Type'
187
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
188
+ header_params[:'X-RateLimit-App'] = opts[:'x_rate_limit_app'] if !opts[:'x_rate_limit_app'].nil?
189
+
190
+ # form parameters
191
+ form_params = {}
192
+
193
+ # http body (model)
194
+ post_body = nil
195
+ auth_names = []
196
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
197
+ :header_params => header_params,
198
+ :query_params => query_params,
199
+ :form_params => form_params,
200
+ :body => post_body,
201
+ :auth_names => auth_names,
202
+ :return_type => 'Object')
203
+ if @api_client.config.debugging
204
+ @api_client.config.logger.debug "API called: SecurityGroupControllerApi#get_security_group_using_get1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
205
+ end
206
+ return data, status_code, headers
207
+ end
208
+ end
209
+ end