fastly 8.8.0 → 8.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +29 -1
  3. data/Gemfile.lock +1 -1
  4. data/README.md +30 -3
  5. data/docs/AclsInComputeApi.md +284 -0
  6. data/docs/Backend.md +2 -2
  7. data/docs/BackendApi.md +8 -8
  8. data/docs/BackendResponse.md +2 -2
  9. data/docs/{OriginInspectorRealtimeEntryRecorded.md → ComputeAclCreateAclsRequest.md} +2 -1
  10. data/docs/ComputeAclCreateAclsResponse.md +11 -0
  11. data/docs/ComputeAclListEntries.md +11 -0
  12. data/docs/ComputeAclListEntriesItem.md +11 -0
  13. data/docs/ComputeAclListEntriesMeta.md +11 -0
  14. data/docs/ComputeAclLookup.md +12 -0
  15. data/docs/ComputeAclUpdateEntry.md +12 -0
  16. data/docs/ConfiguredProductResponse.md +13 -0
  17. data/docs/ConfiguredProductResponseConfiguration.md +11 -0
  18. data/docs/ConfiguredProductResponseLinks.md +11 -0
  19. data/docs/ConfiguredProductResponseProduct.md +11 -0
  20. data/docs/ContactApi.md +1 -1
  21. data/docs/CustomerAddress.md +16 -0
  22. data/docs/CustomerAddressesApi.md +127 -0
  23. data/docs/DomainInspector.md +1 -1
  24. data/docs/DomainInspectorRealtimeEntry.md +1 -1
  25. data/docs/EnabledProductsApi.md +93 -9
  26. data/docs/Environment.md +12 -0
  27. data/docs/{RecordedTimestamp.md → EnvironmentName.md} +1 -1
  28. data/docs/{OriginInspectorSubsequentRequestTimestamp.md → InlineResponse201.md} +2 -1
  29. data/docs/{SubsequentRequestTimestamp.md → ListCustomerAddressesResponse.md} +2 -1
  30. data/docs/OriginInspector.md +1 -1
  31. data/docs/OriginInspectorRealtimeEntry.md +1 -1
  32. data/docs/RealtimeEntryAggregated.md +1 -0
  33. data/docs/RealtimeMeasurements.md +1 -0
  34. data/docs/Results.md +1 -0
  35. data/docs/SchemasVersionResponse.md +1 -0
  36. data/docs/ServiceDetail.md +1 -0
  37. data/docs/ServiceListResponse.md +1 -0
  38. data/docs/ServiceListResponseAllOf.md +1 -0
  39. data/docs/ServiceResponse.md +1 -0
  40. data/docs/ServiceResponseAllOf.md +1 -0
  41. data/docs/ServiceVersionDetail.md +1 -0
  42. data/docs/ServiceVersionDetailOrNull.md +1 -0
  43. data/docs/SetConfiguration.md +11 -0
  44. data/docs/SetWorkspaceId.md +10 -0
  45. data/docs/TlsCertificatesApi.md +2 -2
  46. data/docs/TlsDomainsApi.md +2 -2
  47. data/docs/TlsSubscriptionsApi.md +2 -2
  48. data/docs/VersionApi.md +84 -0
  49. data/docs/VersionResponse.md +1 -0
  50. data/docs/VersionResponseAllOf.md +1 -0
  51. data/lib/fastly/api/acls_in_compute_api.rb +470 -0
  52. data/lib/fastly/api/backend_api.rb +8 -8
  53. data/lib/fastly/api/contact_api.rb +1 -1
  54. data/lib/fastly/api/customer_addresses_api.rb +224 -0
  55. data/lib/fastly/api/enabled_products_api.rb +164 -10
  56. data/lib/fastly/api/tls_certificates_api.rb +7 -7
  57. data/lib/fastly/api/tls_domains_api.rb +7 -7
  58. data/lib/fastly/api/tls_subscriptions_api.rb +7 -7
  59. data/lib/fastly/api/version_api.rb +154 -0
  60. data/lib/fastly/configuration.rb +84 -0
  61. data/lib/fastly/models/backend.rb +2 -2
  62. data/lib/fastly/models/backend_response.rb +2 -2
  63. data/lib/fastly/models/billing_response_line_item.rb +10 -0
  64. data/lib/fastly/models/{origin_inspector_realtime_entry_recorded.rb → compute_acl_create_acls_request.rb} +15 -6
  65. data/lib/fastly/models/compute_acl_create_acls_response.rb +227 -0
  66. data/lib/fastly/models/compute_acl_list_entries.rb +228 -0
  67. data/lib/fastly/models/compute_acl_list_entries_item.rb +227 -0
  68. data/lib/fastly/models/compute_acl_list_entries_meta.rb +227 -0
  69. data/lib/fastly/models/compute_acl_lookup.rb +238 -0
  70. data/lib/fastly/models/compute_acl_update_entry.rb +238 -0
  71. data/lib/fastly/models/configured_product_response.rb +243 -0
  72. data/lib/fastly/models/configured_product_response_configuration.rb +227 -0
  73. data/lib/fastly/models/configured_product_response_links.rb +227 -0
  74. data/lib/fastly/models/configured_product_response_product.rb +227 -0
  75. data/lib/fastly/models/customer_address.rb +294 -0
  76. data/lib/fastly/models/domain_inspector.rb +2 -1
  77. data/lib/fastly/models/domain_inspector_realtime_entry.rb +2 -1
  78. data/lib/fastly/models/environment.rb +235 -0
  79. data/lib/fastly/models/environment_name.rb +34 -0
  80. data/lib/fastly/models/event_attributes.rb +2 -2
  81. data/lib/fastly/models/{recorded_timestamp.rb → inline_response201.rb} +15 -6
  82. data/lib/fastly/models/line_item_data.rb +10 -0
  83. data/lib/fastly/models/{origin_inspector_subsequent_request_timestamp.rb → list_customer_addresses_response.rb} +16 -6
  84. data/lib/fastly/models/origin_inspector.rb +2 -1
  85. data/lib/fastly/models/origin_inspector_realtime_entry.rb +2 -1
  86. data/lib/fastly/models/realtime_entry_aggregated.rb +14 -4
  87. data/lib/fastly/models/realtime_measurements.rb +14 -4
  88. data/lib/fastly/models/results.rb +11 -1
  89. data/lib/fastly/models/schemas_version_response.rb +16 -4
  90. data/lib/fastly/models/service_detail.rb +13 -1
  91. data/lib/fastly/models/service_list_response.rb +16 -4
  92. data/lib/fastly/models/service_list_response_all_of.rb +16 -4
  93. data/lib/fastly/models/service_response.rb +16 -4
  94. data/lib/fastly/models/service_response_all_of.rb +16 -4
  95. data/lib/fastly/models/service_version_detail.rb +13 -1
  96. data/lib/fastly/models/service_version_detail_or_null.rb +13 -1
  97. data/lib/fastly/models/set_configuration.rb +227 -0
  98. data/lib/fastly/models/{subsequent_request_timestamp.rb → set_workspace_id.rb} +15 -6
  99. data/lib/fastly/models/version_response.rb +16 -4
  100. data/lib/fastly/models/version_response_all_of.rb +16 -4
  101. data/lib/fastly/version.rb +1 -1
  102. data/lib/fastly.rb +20 -4
  103. data/sig.json +1 -1
  104. metadata +42 -10
data/docs/VersionApi.md CHANGED
@@ -14,9 +14,11 @@ api_instance = Fastly::VersionApi.new
14
14
  Method | HTTP request | Description
15
15
  ------ | ------------ | -----------
16
16
  [**activate_service_version**](VersionApi.md#activate_service_version) | **PUT** /service/{service_id}/version/{version_id}/activate | Activate a service version
17
+ [**activate_service_version_environment**](VersionApi.md#activate_service_version_environment) | **PUT** /service/{service_id}/version/{version_id}/activate/{environment_name} | Activate a service version on the specified environment
17
18
  [**clone_service_version**](VersionApi.md#clone_service_version) | **PUT** /service/{service_id}/version/{version_id}/clone | Clone a service version
18
19
  [**create_service_version**](VersionApi.md#create_service_version) | **POST** /service/{service_id}/version | Create a service version
19
20
  [**deactivate_service_version**](VersionApi.md#deactivate_service_version) | **PUT** /service/{service_id}/version/{version_id}/deactivate | Deactivate a service version
21
+ [**deactivate_service_version_environment**](VersionApi.md#deactivate_service_version_environment) | **PUT** /service/{service_id}/version/{version_id}/deactivate/{environment_name} | Deactivate a service version on an environment
20
22
  [**get_service_version**](VersionApi.md#get_service_version) | **GET** /service/{service_id}/version/{version_id} | Get a version of a service
21
23
  [**list_service_versions**](VersionApi.md#list_service_versions) | **GET** /service/{service_id}/version | List versions of a service
22
24
  [**lock_service_version**](VersionApi.md#lock_service_version) | **PUT** /service/{service_id}/version/{version_id}/lock | Lock a service version
@@ -61,6 +63,47 @@ end
61
63
 
62
64
  [**VersionResponse**](VersionResponse.md)
63
65
 
66
+ [[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
67
+ [[Back to README]](../../README.md)
68
+ ## `activate_service_version_environment()`
69
+
70
+ ```ruby
71
+ activate_service_version_environment(opts): <VersionResponse> # Activate a service version on the specified environment
72
+ ```
73
+
74
+ Activate a version on a given environment, i.e. \"staging\"
75
+
76
+ ### Examples
77
+
78
+ ```ruby
79
+ api_instance = Fastly::VersionApi.new
80
+ opts = {
81
+ service_id: 'service_id_example', # String | Alphanumeric string identifying the service.
82
+ version_id: 56, # Integer | Integer identifying a service version.
83
+ environment_name: Fastly::EnvironmentName::STAGING, # EnvironmentName |
84
+ }
85
+
86
+ begin
87
+ # Activate a service version on the specified environment
88
+ result = api_instance.activate_service_version_environment(opts)
89
+ p result
90
+ rescue Fastly::ApiError => e
91
+ puts "Error when calling VersionApi->activate_service_version_environment: #{e}"
92
+ end
93
+ ```
94
+
95
+ ### Options
96
+
97
+ | Name | Type | Description | Notes |
98
+ | ---- | ---- | ----------- | ----- |
99
+ | **service_id** | **String** | Alphanumeric string identifying the service. | |
100
+ | **version_id** | **Integer** | Integer identifying a service version. | |
101
+ | **environment_name** | [**EnvironmentName**](.md) | | |
102
+
103
+ ### Return type
104
+
105
+ [**VersionResponse**](VersionResponse.md)
106
+
64
107
  [[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
65
108
  [[Back to README]](../../README.md)
66
109
  ## `clone_service_version()`
@@ -176,6 +219,47 @@ end
176
219
 
177
220
  [**VersionResponse**](VersionResponse.md)
178
221
 
222
+ [[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
223
+ [[Back to README]](../../README.md)
224
+ ## `deactivate_service_version_environment()`
225
+
226
+ ```ruby
227
+ deactivate_service_version_environment(opts): <VersionResponse> # Deactivate a service version on an environment
228
+ ```
229
+
230
+ Deactivate the current version on a given environment, i.e. \"staging\"
231
+
232
+ ### Examples
233
+
234
+ ```ruby
235
+ api_instance = Fastly::VersionApi.new
236
+ opts = {
237
+ service_id: 'service_id_example', # String | Alphanumeric string identifying the service.
238
+ version_id: 56, # Integer | Integer identifying a service version.
239
+ environment_name: Fastly::EnvironmentName::STAGING, # EnvironmentName |
240
+ }
241
+
242
+ begin
243
+ # Deactivate a service version on an environment
244
+ result = api_instance.deactivate_service_version_environment(opts)
245
+ p result
246
+ rescue Fastly::ApiError => e
247
+ puts "Error when calling VersionApi->deactivate_service_version_environment: #{e}"
248
+ end
249
+ ```
250
+
251
+ ### Options
252
+
253
+ | Name | Type | Description | Notes |
254
+ | ---- | ---- | ----------- | ----- |
255
+ | **service_id** | **String** | Alphanumeric string identifying the service. | |
256
+ | **version_id** | **Integer** | Integer identifying a service version. | |
257
+ | **environment_name** | [**EnvironmentName**](.md) | | |
258
+
259
+ ### Return type
260
+
261
+ [**VersionResponse**](VersionResponse.md)
262
+
179
263
  [[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
180
264
  [[Back to README]](../../README.md)
181
265
  ## `get_service_version()`
@@ -15,6 +15,7 @@
15
15
  | **deleted_at** | **Time** | Date and time in ISO 8601 format. | [optional][readonly] |
16
16
  | **updated_at** | **Time** | Date and time in ISO 8601 format. | [optional][readonly] |
17
17
  | **service_id** | **String** | | [optional][readonly] |
18
+ | **environments** | [**Array&lt;Environment&gt;**](Environment.md) | A list of environments where the service has been deployed. | [optional] |
18
19
 
19
20
  [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
20
21
 
@@ -5,6 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **service_id** | **String** | | [optional][readonly] |
8
+ | **environments** | [**Array&lt;Environment&gt;**](Environment.md) | A list of environments where the service has been deployed. | [optional] |
8
9
 
9
10
  [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
10
11
 
@@ -0,0 +1,470 @@
1
+ =begin
2
+ #Fastly API
3
+
4
+ #Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/)
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: oss@fastly.com
8
+
9
+ =end
10
+
11
+ require 'cgi'
12
+
13
+ module Fastly
14
+ class AclsInComputeApi
15
+ attr_accessor :api_client
16
+
17
+ def initialize(api_client = ApiClient.default)
18
+ @api_client = api_client
19
+ end
20
+ # Create a new ACL
21
+ # Create a new ACL.
22
+ # @option opts [ComputeAclCreateAclsRequest] :compute_acl_create_acls_request
23
+ # @return [ComputeAclCreateAclsResponse]
24
+ def compute_acl_create_acls(opts = {})
25
+ data, _status_code, _headers = compute_acl_create_acls_with_http_info(opts)
26
+ data
27
+ end
28
+
29
+ # Create a new ACL
30
+ # Create a new ACL.
31
+ # @option opts [ComputeAclCreateAclsRequest] :compute_acl_create_acls_request
32
+ # @return [Array<(ComputeAclCreateAclsResponse, Integer, Hash)>] ComputeAclCreateAclsResponse data, response status code and response headers
33
+ def compute_acl_create_acls_with_http_info(opts = {})
34
+ if @api_client.config.debugging
35
+ @api_client.config.logger.debug 'Calling API: AclsInComputeApi.compute_acl_create_acls ...'
36
+ end
37
+ # unbox the parameters from the hash
38
+ # resource path
39
+ local_var_path = '/resources/acls'
40
+
41
+ # query parameters
42
+ query_params = opts[:query_params] || {}
43
+
44
+ # header parameters
45
+ header_params = opts[:header_params] || {}
46
+ # HTTP header 'Accept' (if needed)
47
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
48
+ # HTTP header 'Content-Type'
49
+ content_type = @api_client.select_header_content_type(['application/json'])
50
+ if !content_type.nil?
51
+ header_params['Content-Type'] = content_type
52
+ end
53
+
54
+ # form parameters
55
+ form_params = opts[:form_params] || {}
56
+
57
+ # http body (model)
58
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'compute_acl_create_acls_request'])
59
+
60
+ # return_type
61
+ return_type = opts[:debug_return_type] || 'ComputeAclCreateAclsResponse'
62
+
63
+ # auth_names
64
+ auth_names = opts[:debug_auth_names] || ['token']
65
+
66
+ new_options = opts.merge(
67
+ :operation => :"AclsInComputeApi.compute_acl_create_acls",
68
+ :header_params => header_params,
69
+ :query_params => query_params,
70
+ :form_params => form_params,
71
+ :body => post_body,
72
+ :auth_names => auth_names,
73
+ :return_type => return_type
74
+ )
75
+
76
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
77
+ if @api_client.config.debugging
78
+ @api_client.config.logger.debug "API called: AclsInComputeApi#compute_acl_create_acls\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
79
+ end
80
+ return data, status_code, headers
81
+ end
82
+
83
+ # Delete an ACL
84
+ # Delete an ACL.
85
+ # @option opts [String] :acl_id (required)
86
+ # @return [nil]
87
+ def compute_acl_delete_s_acl_id(opts = {})
88
+ compute_acl_delete_s_acl_id_with_http_info(opts)
89
+ nil
90
+ end
91
+
92
+ # Delete an ACL
93
+ # Delete an ACL.
94
+ # @option opts [String] :acl_id (required)
95
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
96
+ def compute_acl_delete_s_acl_id_with_http_info(opts = {})
97
+ if @api_client.config.debugging
98
+ @api_client.config.logger.debug 'Calling API: AclsInComputeApi.compute_acl_delete_s_acl_id ...'
99
+ end
100
+ # unbox the parameters from the hash
101
+ acl_id = opts[:'acl_id']
102
+ # verify the required parameter 'acl_id' is set
103
+ if @api_client.config.client_side_validation && acl_id.nil?
104
+ fail ArgumentError, "Missing the required parameter 'acl_id' when calling AclsInComputeApi.compute_acl_delete_s_acl_id"
105
+ end
106
+ # resource path
107
+ local_var_path = '/resources/acls/{acl_id}'.sub('{' + 'acl_id' + '}', CGI.escape(acl_id.to_s))
108
+
109
+ # query parameters
110
+ query_params = opts[:query_params] || {}
111
+
112
+ # header parameters
113
+ header_params = opts[:header_params] || {}
114
+
115
+ # form parameters
116
+ form_params = opts[:form_params] || {}
117
+
118
+ # http body (model)
119
+ post_body = opts[:debug_body]
120
+
121
+ # return_type
122
+ return_type = opts[:debug_return_type]
123
+
124
+ # auth_names
125
+ auth_names = opts[:debug_auth_names] || ['token']
126
+
127
+ new_options = opts.merge(
128
+ :operation => :"AclsInComputeApi.compute_acl_delete_s_acl_id",
129
+ :header_params => header_params,
130
+ :query_params => query_params,
131
+ :form_params => form_params,
132
+ :body => post_body,
133
+ :auth_names => auth_names,
134
+ :return_type => return_type
135
+ )
136
+
137
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
138
+ if @api_client.config.debugging
139
+ @api_client.config.logger.debug "API called: AclsInComputeApi#compute_acl_delete_s_acl_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
140
+ end
141
+ return data, status_code, headers
142
+ end
143
+
144
+ # List an ACL
145
+ # List an ACL.
146
+ # @option opts [String] :acl_id (required)
147
+ # @option opts [String] :cursor
148
+ # @option opts [Integer] :limit (default to 100)
149
+ # @return [ComputeAclListEntries]
150
+ def compute_acl_list_acl_entries(opts = {})
151
+ data, _status_code, _headers = compute_acl_list_acl_entries_with_http_info(opts)
152
+ data
153
+ end
154
+
155
+ # List an ACL
156
+ # List an ACL.
157
+ # @option opts [String] :acl_id (required)
158
+ # @option opts [String] :cursor
159
+ # @option opts [Integer] :limit (default to 100)
160
+ # @return [Array<(ComputeAclListEntries, Integer, Hash)>] ComputeAclListEntries data, response status code and response headers
161
+ def compute_acl_list_acl_entries_with_http_info(opts = {})
162
+ if @api_client.config.debugging
163
+ @api_client.config.logger.debug 'Calling API: AclsInComputeApi.compute_acl_list_acl_entries ...'
164
+ end
165
+ # unbox the parameters from the hash
166
+ acl_id = opts[:'acl_id']
167
+ # verify the required parameter 'acl_id' is set
168
+ if @api_client.config.client_side_validation && acl_id.nil?
169
+ fail ArgumentError, "Missing the required parameter 'acl_id' when calling AclsInComputeApi.compute_acl_list_acl_entries"
170
+ end
171
+ # resource path
172
+ local_var_path = '/resources/acls/{acl_id}/entries'.sub('{' + 'acl_id' + '}', CGI.escape(acl_id.to_s))
173
+
174
+ # query parameters
175
+ query_params = opts[:query_params] || {}
176
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
177
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
178
+
179
+ # header parameters
180
+ header_params = opts[:header_params] || {}
181
+ # HTTP header 'Accept' (if needed)
182
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
183
+
184
+ # form parameters
185
+ form_params = opts[:form_params] || {}
186
+
187
+ # http body (model)
188
+ post_body = opts[:debug_body]
189
+
190
+ # return_type
191
+ return_type = opts[:debug_return_type] || 'ComputeAclListEntries'
192
+
193
+ # auth_names
194
+ auth_names = opts[:debug_auth_names] || ['token']
195
+
196
+ new_options = opts.merge(
197
+ :operation => :"AclsInComputeApi.compute_acl_list_acl_entries",
198
+ :header_params => header_params,
199
+ :query_params => query_params,
200
+ :form_params => form_params,
201
+ :body => post_body,
202
+ :auth_names => auth_names,
203
+ :return_type => return_type
204
+ )
205
+
206
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
207
+ if @api_client.config.debugging
208
+ @api_client.config.logger.debug "API called: AclsInComputeApi#compute_acl_list_acl_entries\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
209
+ end
210
+ return data, status_code, headers
211
+ end
212
+
213
+ # List ACLs
214
+ # List all ACLs.
215
+ # @return [Array<ComputeAclCreateAclsResponse>]
216
+ def compute_acl_list_acls(opts = {})
217
+ data, _status_code, _headers = compute_acl_list_acls_with_http_info(opts)
218
+ data
219
+ end
220
+
221
+ # List ACLs
222
+ # List all ACLs.
223
+ # @return [Array<(Array<ComputeAclCreateAclsResponse>, Integer, Hash)>] Array<ComputeAclCreateAclsResponse> data, response status code and response headers
224
+ def compute_acl_list_acls_with_http_info(opts = {})
225
+ if @api_client.config.debugging
226
+ @api_client.config.logger.debug 'Calling API: AclsInComputeApi.compute_acl_list_acls ...'
227
+ end
228
+ # unbox the parameters from the hash
229
+ # resource path
230
+ local_var_path = '/resources/acls'
231
+
232
+ # query parameters
233
+ query_params = opts[:query_params] || {}
234
+
235
+ # header parameters
236
+ header_params = opts[:header_params] || {}
237
+ # HTTP header 'Accept' (if needed)
238
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
239
+
240
+ # form parameters
241
+ form_params = opts[:form_params] || {}
242
+
243
+ # http body (model)
244
+ post_body = opts[:debug_body]
245
+
246
+ # return_type
247
+ return_type = opts[:debug_return_type] || 'Array<ComputeAclCreateAclsResponse>'
248
+
249
+ # auth_names
250
+ auth_names = opts[:debug_auth_names] || ['token']
251
+
252
+ new_options = opts.merge(
253
+ :operation => :"AclsInComputeApi.compute_acl_list_acls",
254
+ :header_params => header_params,
255
+ :query_params => query_params,
256
+ :form_params => form_params,
257
+ :body => post_body,
258
+ :auth_names => auth_names,
259
+ :return_type => return_type
260
+ )
261
+
262
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
263
+ if @api_client.config.debugging
264
+ @api_client.config.logger.debug "API called: AclsInComputeApi#compute_acl_list_acls\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
265
+ end
266
+ return data, status_code, headers
267
+ end
268
+
269
+ # Describe an ACL
270
+ # Describe an ACL.
271
+ # @option opts [String] :acl_id (required)
272
+ # @return [ComputeAclCreateAclsResponse]
273
+ def compute_acl_list_acls_s_acl_id(opts = {})
274
+ data, _status_code, _headers = compute_acl_list_acls_s_acl_id_with_http_info(opts)
275
+ data
276
+ end
277
+
278
+ # Describe an ACL
279
+ # Describe an ACL.
280
+ # @option opts [String] :acl_id (required)
281
+ # @return [Array<(ComputeAclCreateAclsResponse, Integer, Hash)>] ComputeAclCreateAclsResponse data, response status code and response headers
282
+ def compute_acl_list_acls_s_acl_id_with_http_info(opts = {})
283
+ if @api_client.config.debugging
284
+ @api_client.config.logger.debug 'Calling API: AclsInComputeApi.compute_acl_list_acls_s_acl_id ...'
285
+ end
286
+ # unbox the parameters from the hash
287
+ acl_id = opts[:'acl_id']
288
+ # verify the required parameter 'acl_id' is set
289
+ if @api_client.config.client_side_validation && acl_id.nil?
290
+ fail ArgumentError, "Missing the required parameter 'acl_id' when calling AclsInComputeApi.compute_acl_list_acls_s_acl_id"
291
+ end
292
+ # resource path
293
+ local_var_path = '/resources/acls/{acl_id}'.sub('{' + 'acl_id' + '}', CGI.escape(acl_id.to_s))
294
+
295
+ # query parameters
296
+ query_params = opts[:query_params] || {}
297
+
298
+ # header parameters
299
+ header_params = opts[:header_params] || {}
300
+ # HTTP header 'Accept' (if needed)
301
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
302
+
303
+ # form parameters
304
+ form_params = opts[:form_params] || {}
305
+
306
+ # http body (model)
307
+ post_body = opts[:debug_body]
308
+
309
+ # return_type
310
+ return_type = opts[:debug_return_type] || 'ComputeAclCreateAclsResponse'
311
+
312
+ # auth_names
313
+ auth_names = opts[:debug_auth_names] || ['token']
314
+
315
+ new_options = opts.merge(
316
+ :operation => :"AclsInComputeApi.compute_acl_list_acls_s_acl_id",
317
+ :header_params => header_params,
318
+ :query_params => query_params,
319
+ :form_params => form_params,
320
+ :body => post_body,
321
+ :auth_names => auth_names,
322
+ :return_type => return_type
323
+ )
324
+
325
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
326
+ if @api_client.config.debugging
327
+ @api_client.config.logger.debug "API called: AclsInComputeApi#compute_acl_list_acls_s_acl_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
328
+ end
329
+ return data, status_code, headers
330
+ end
331
+
332
+ # Lookup an ACL
333
+ # Find a matching ACL entry for an IP address.
334
+ # @option opts [String] :acl_id (required)
335
+ # @option opts [String] :acl_ip (required)
336
+ # @return [ComputeAclLookup]
337
+ def compute_acl_lookup_acls(opts = {})
338
+ data, _status_code, _headers = compute_acl_lookup_acls_with_http_info(opts)
339
+ data
340
+ end
341
+
342
+ # Lookup an ACL
343
+ # Find a matching ACL entry for an IP address.
344
+ # @option opts [String] :acl_id (required)
345
+ # @option opts [String] :acl_ip (required)
346
+ # @return [Array<(ComputeAclLookup, Integer, Hash)>] ComputeAclLookup data, response status code and response headers
347
+ def compute_acl_lookup_acls_with_http_info(opts = {})
348
+ if @api_client.config.debugging
349
+ @api_client.config.logger.debug 'Calling API: AclsInComputeApi.compute_acl_lookup_acls ...'
350
+ end
351
+ # unbox the parameters from the hash
352
+ acl_id = opts[:'acl_id']
353
+ acl_ip = opts[:'acl_ip']
354
+ # verify the required parameter 'acl_id' is set
355
+ if @api_client.config.client_side_validation && acl_id.nil?
356
+ fail ArgumentError, "Missing the required parameter 'acl_id' when calling AclsInComputeApi.compute_acl_lookup_acls"
357
+ end
358
+ # verify the required parameter 'acl_ip' is set
359
+ if @api_client.config.client_side_validation && acl_ip.nil?
360
+ fail ArgumentError, "Missing the required parameter 'acl_ip' when calling AclsInComputeApi.compute_acl_lookup_acls"
361
+ end
362
+ # resource path
363
+ local_var_path = '/resources/acls/{acl_id}/entry/{acl_ip}'.sub('{' + 'acl_id' + '}', CGI.escape(acl_id.to_s)).sub('{' + 'acl_ip' + '}', CGI.escape(acl_ip.to_s))
364
+
365
+ # query parameters
366
+ query_params = opts[:query_params] || {}
367
+
368
+ # header parameters
369
+ header_params = opts[:header_params] || {}
370
+ # HTTP header 'Accept' (if needed)
371
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
372
+
373
+ # form parameters
374
+ form_params = opts[:form_params] || {}
375
+
376
+ # http body (model)
377
+ post_body = opts[:debug_body]
378
+
379
+ # return_type
380
+ return_type = opts[:debug_return_type] || 'ComputeAclLookup'
381
+
382
+ # auth_names
383
+ auth_names = opts[:debug_auth_names] || ['token']
384
+
385
+ new_options = opts.merge(
386
+ :operation => :"AclsInComputeApi.compute_acl_lookup_acls",
387
+ :header_params => header_params,
388
+ :query_params => query_params,
389
+ :form_params => form_params,
390
+ :body => post_body,
391
+ :auth_names => auth_names,
392
+ :return_type => return_type
393
+ )
394
+
395
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
396
+ if @api_client.config.debugging
397
+ @api_client.config.logger.debug "API called: AclsInComputeApi#compute_acl_lookup_acls\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
398
+ end
399
+ return data, status_code, headers
400
+ end
401
+
402
+ # Update an ACL
403
+ # Update an ACL.
404
+ # @option opts [String] :acl_id (required)
405
+ # @option opts [Array<ComputeAclUpdateEntry>] :compute_acl_update_entry
406
+ # @return [nil]
407
+ def compute_acl_update_acls(opts = {})
408
+ compute_acl_update_acls_with_http_info(opts)
409
+ nil
410
+ end
411
+
412
+ # Update an ACL
413
+ # Update an ACL.
414
+ # @option opts [String] :acl_id (required)
415
+ # @option opts [Array<ComputeAclUpdateEntry>] :compute_acl_update_entry
416
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
417
+ def compute_acl_update_acls_with_http_info(opts = {})
418
+ if @api_client.config.debugging
419
+ @api_client.config.logger.debug 'Calling API: AclsInComputeApi.compute_acl_update_acls ...'
420
+ end
421
+ # unbox the parameters from the hash
422
+ acl_id = opts[:'acl_id']
423
+ # verify the required parameter 'acl_id' is set
424
+ if @api_client.config.client_side_validation && acl_id.nil?
425
+ fail ArgumentError, "Missing the required parameter 'acl_id' when calling AclsInComputeApi.compute_acl_update_acls"
426
+ end
427
+ # resource path
428
+ local_var_path = '/resources/acls/{acl_id}/entries'.sub('{' + 'acl_id' + '}', CGI.escape(acl_id.to_s))
429
+
430
+ # query parameters
431
+ query_params = opts[:query_params] || {}
432
+
433
+ # header parameters
434
+ header_params = opts[:header_params] || {}
435
+ # HTTP header 'Content-Type'
436
+ content_type = @api_client.select_header_content_type(['application/json'])
437
+ if !content_type.nil?
438
+ header_params['Content-Type'] = content_type
439
+ end
440
+
441
+ # form parameters
442
+ form_params = opts[:form_params] || {}
443
+
444
+ # http body (model)
445
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'compute_acl_update_entry'])
446
+
447
+ # return_type
448
+ return_type = opts[:debug_return_type]
449
+
450
+ # auth_names
451
+ auth_names = opts[:debug_auth_names] || ['token']
452
+
453
+ new_options = opts.merge(
454
+ :operation => :"AclsInComputeApi.compute_acl_update_acls",
455
+ :header_params => header_params,
456
+ :query_params => query_params,
457
+ :form_params => form_params,
458
+ :body => post_body,
459
+ :auth_names => auth_names,
460
+ :return_type => return_type
461
+ )
462
+
463
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
464
+ if @api_client.config.debugging
465
+ @api_client.config.logger.debug "API called: AclsInComputeApi#compute_acl_update_acls\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
466
+ end
467
+ return data, status_code, headers
468
+ end
469
+ end
470
+ end
@@ -26,8 +26,8 @@ module Fastly
26
26
  # @option opts [Integer] :between_bytes_timeout Maximum duration in milliseconds that Fastly will wait while receiving no data on a download from a backend. If exceeded, the response received so far will be considered complete and the fetch will end. May be set at runtime using &#x60;bereq.between_bytes_timeout&#x60;.
27
27
  # @option opts [String] :client_cert Unused.
28
28
  # @option opts [String] :comment A freeform descriptive note.
29
- # @option opts [Integer] :connect_timeout Maximum duration in milliseconds to wait for a connection to this backend to be established. If exceeded, the connection is aborted and a synthethic &#x60;503&#x60; response will be presented instead. May be set at runtime using &#x60;bereq.connect_timeout&#x60;.
30
- # @option opts [Integer] :first_byte_timeout Maximum duration in milliseconds to wait for the server response to begin after a TCP connection is established and the request has been sent. If exceeded, the connection is aborted and a synthethic &#x60;503&#x60; response will be presented instead. May be set at runtime using &#x60;bereq.first_byte_timeout&#x60;.
29
+ # @option opts [Integer] :connect_timeout Maximum duration in milliseconds to wait for a connection to this backend to be established. If exceeded, the connection is aborted and a synthetic &#x60;503&#x60; response will be presented instead. May be set at runtime using &#x60;bereq.connect_timeout&#x60;.
30
+ # @option opts [Integer] :first_byte_timeout Maximum duration in milliseconds to wait for the server response to begin after a TCP connection is established and the request has been sent. If exceeded, the connection is aborted and a synthetic &#x60;503&#x60; response will be presented instead. May be set at runtime using &#x60;bereq.first_byte_timeout&#x60;.
31
31
  # @option opts [String] :healthcheck The name of the healthcheck to use with this backend.
32
32
  # @option opts [String] :hostname The hostname of the backend. May be used as an alternative to &#x60;address&#x60; to set the backend location.
33
33
  # @option opts [String] :ipv4 IPv4 address of the backend. May be used as an alternative to &#x60;address&#x60; to set the backend location.
@@ -71,8 +71,8 @@ module Fastly
71
71
  # @option opts [Integer] :between_bytes_timeout Maximum duration in milliseconds that Fastly will wait while receiving no data on a download from a backend. If exceeded, the response received so far will be considered complete and the fetch will end. May be set at runtime using &#x60;bereq.between_bytes_timeout&#x60;.
72
72
  # @option opts [String] :client_cert Unused.
73
73
  # @option opts [String] :comment A freeform descriptive note.
74
- # @option opts [Integer] :connect_timeout Maximum duration in milliseconds to wait for a connection to this backend to be established. If exceeded, the connection is aborted and a synthethic &#x60;503&#x60; response will be presented instead. May be set at runtime using &#x60;bereq.connect_timeout&#x60;.
75
- # @option opts [Integer] :first_byte_timeout Maximum duration in milliseconds to wait for the server response to begin after a TCP connection is established and the request has been sent. If exceeded, the connection is aborted and a synthethic &#x60;503&#x60; response will be presented instead. May be set at runtime using &#x60;bereq.first_byte_timeout&#x60;.
74
+ # @option opts [Integer] :connect_timeout Maximum duration in milliseconds to wait for a connection to this backend to be established. If exceeded, the connection is aborted and a synthetic &#x60;503&#x60; response will be presented instead. May be set at runtime using &#x60;bereq.connect_timeout&#x60;.
75
+ # @option opts [Integer] :first_byte_timeout Maximum duration in milliseconds to wait for the server response to begin after a TCP connection is established and the request has been sent. If exceeded, the connection is aborted and a synthetic &#x60;503&#x60; response will be presented instead. May be set at runtime using &#x60;bereq.first_byte_timeout&#x60;.
76
76
  # @option opts [String] :healthcheck The name of the healthcheck to use with this backend.
77
77
  # @option opts [String] :hostname The hostname of the backend. May be used as an alternative to &#x60;address&#x60; to set the backend location.
78
78
  # @option opts [String] :ipv4 IPv4 address of the backend. May be used as an alternative to &#x60;address&#x60; to set the backend location.
@@ -436,8 +436,8 @@ module Fastly
436
436
  # @option opts [Integer] :between_bytes_timeout Maximum duration in milliseconds that Fastly will wait while receiving no data on a download from a backend. If exceeded, the response received so far will be considered complete and the fetch will end. May be set at runtime using &#x60;bereq.between_bytes_timeout&#x60;.
437
437
  # @option opts [String] :client_cert Unused.
438
438
  # @option opts [String] :comment A freeform descriptive note.
439
- # @option opts [Integer] :connect_timeout Maximum duration in milliseconds to wait for a connection to this backend to be established. If exceeded, the connection is aborted and a synthethic &#x60;503&#x60; response will be presented instead. May be set at runtime using &#x60;bereq.connect_timeout&#x60;.
440
- # @option opts [Integer] :first_byte_timeout Maximum duration in milliseconds to wait for the server response to begin after a TCP connection is established and the request has been sent. If exceeded, the connection is aborted and a synthethic &#x60;503&#x60; response will be presented instead. May be set at runtime using &#x60;bereq.first_byte_timeout&#x60;.
439
+ # @option opts [Integer] :connect_timeout Maximum duration in milliseconds to wait for a connection to this backend to be established. If exceeded, the connection is aborted and a synthetic &#x60;503&#x60; response will be presented instead. May be set at runtime using &#x60;bereq.connect_timeout&#x60;.
440
+ # @option opts [Integer] :first_byte_timeout Maximum duration in milliseconds to wait for the server response to begin after a TCP connection is established and the request has been sent. If exceeded, the connection is aborted and a synthetic &#x60;503&#x60; response will be presented instead. May be set at runtime using &#x60;bereq.first_byte_timeout&#x60;.
441
441
  # @option opts [String] :healthcheck The name of the healthcheck to use with this backend.
442
442
  # @option opts [String] :hostname The hostname of the backend. May be used as an alternative to &#x60;address&#x60; to set the backend location.
443
443
  # @option opts [String] :ipv4 IPv4 address of the backend. May be used as an alternative to &#x60;address&#x60; to set the backend location.
@@ -482,8 +482,8 @@ module Fastly
482
482
  # @option opts [Integer] :between_bytes_timeout Maximum duration in milliseconds that Fastly will wait while receiving no data on a download from a backend. If exceeded, the response received so far will be considered complete and the fetch will end. May be set at runtime using &#x60;bereq.between_bytes_timeout&#x60;.
483
483
  # @option opts [String] :client_cert Unused.
484
484
  # @option opts [String] :comment A freeform descriptive note.
485
- # @option opts [Integer] :connect_timeout Maximum duration in milliseconds to wait for a connection to this backend to be established. If exceeded, the connection is aborted and a synthethic &#x60;503&#x60; response will be presented instead. May be set at runtime using &#x60;bereq.connect_timeout&#x60;.
486
- # @option opts [Integer] :first_byte_timeout Maximum duration in milliseconds to wait for the server response to begin after a TCP connection is established and the request has been sent. If exceeded, the connection is aborted and a synthethic &#x60;503&#x60; response will be presented instead. May be set at runtime using &#x60;bereq.first_byte_timeout&#x60;.
485
+ # @option opts [Integer] :connect_timeout Maximum duration in milliseconds to wait for a connection to this backend to be established. If exceeded, the connection is aborted and a synthetic &#x60;503&#x60; response will be presented instead. May be set at runtime using &#x60;bereq.connect_timeout&#x60;.
486
+ # @option opts [Integer] :first_byte_timeout Maximum duration in milliseconds to wait for the server response to begin after a TCP connection is established and the request has been sent. If exceeded, the connection is aborted and a synthetic &#x60;503&#x60; response will be presented instead. May be set at runtime using &#x60;bereq.first_byte_timeout&#x60;.
487
487
  # @option opts [String] :healthcheck The name of the healthcheck to use with this backend.
488
488
  # @option opts [String] :hostname The hostname of the backend. May be used as an alternative to &#x60;address&#x60; to set the backend location.
489
489
  # @option opts [String] :ipv4 IPv4 address of the backend. May be used as an alternative to &#x60;address&#x60; to set the backend location.
@@ -138,7 +138,7 @@ module Fastly
138
138
  fail ArgumentError, "Missing the required parameter 'contact_id' when calling ContactApi.delete_contact"
139
139
  end
140
140
  # resource path
141
- local_var_path = '/customer/{customer_id}/contact/{contact_id}'.sub('{' + 'customer_id' + '}', CGI.escape(customer_id.to_s)).sub('{' + 'contact_id' + '}', CGI.escape(contact_id.to_s))
141
+ local_var_path = '/customer/{customer_id}/contacts/{contact_id}'.sub('{' + 'customer_id' + '}', CGI.escape(customer_id.to_s)).sub('{' + 'contact_id' + '}', CGI.escape(contact_id.to_s))
142
142
 
143
143
  # query parameters
144
144
  query_params = opts[:query_params] || {}