fastly 4.1.0 → 4.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +25 -0
  3. data/Gemfile.lock +1 -1
  4. data/README.md +7 -11
  5. data/docs/Backend.md +1 -1
  6. data/docs/BackendApi.md +4 -4
  7. data/docs/BackendResponse.md +1 -1
  8. data/docs/EnabledProductResponse.md +12 -0
  9. data/docs/{EnabledProductProduct.md → EnabledProductResponseLinks.md} +3 -3
  10. data/docs/{ResourceCreateAllOf.md → EnabledProductResponseProduct.md} +3 -2
  11. data/docs/{EnabledProductLinks.md → EnabledProductResponseService.md} +3 -3
  12. data/docs/EnabledProductsApi.md +7 -7
  13. data/docs/EventsApi.md +2 -0
  14. data/docs/HistoricalApi.md +10 -10
  15. data/docs/{GetStoresResponse.md → InlineResponse2002.md} +2 -2
  16. data/docs/{GetStoresResponseMeta.md → InlineResponse2002Meta.md} +1 -1
  17. data/docs/ObjectStoreApi.md +3 -166
  18. data/docs/Pop.md +7 -4
  19. data/docs/PopCoordinates.md +2 -4
  20. data/docs/RealtimeMeasurements.md +4 -2
  21. data/docs/Resource.md +2 -1
  22. data/docs/ResourceApi.md +34 -32
  23. data/docs/ResourceResponse.md +3 -3
  24. data/docs/ResourceResponseAllOf.md +1 -1
  25. data/docs/Results.md +5 -3
  26. data/docs/TlsSubscriptionResponseAttributes.md +1 -1
  27. data/docs/TlsSubscriptionResponseAttributesAllOf.md +1 -1
  28. data/docs/TlsSubscriptionsApi.md +3 -3
  29. data/lib/fastly/api/backend_api.rb +4 -4
  30. data/lib/fastly/api/enabled_products_api.rb +12 -12
  31. data/lib/fastly/api/events_api.rb +3 -0
  32. data/lib/fastly/api/historical_api.rb +10 -10
  33. data/lib/fastly/api/object_store_api.rb +5 -289
  34. data/lib/fastly/api/purge_api.rb +1 -1
  35. data/lib/fastly/api/resource_api.rb +51 -48
  36. data/lib/fastly/api/tls_subscriptions_api.rb +4 -4
  37. data/lib/fastly/models/backend.rb +1 -1
  38. data/lib/fastly/models/backend_response.rb +1 -1
  39. data/lib/fastly/models/{enabled_product.rb → enabled_product_response.rb} +6 -6
  40. data/lib/fastly/models/{enabled_product_links.rb → enabled_product_response_links.rb} +5 -3
  41. data/lib/fastly/models/{enabled_product_product.rb → enabled_product_response_product.rb} +5 -3
  42. data/lib/fastly/models/{key_response.rb → enabled_product_response_service.rb} +18 -18
  43. data/lib/fastly/models/{get_stores_response.rb → inline_response2002.rb} +4 -4
  44. data/lib/fastly/models/{get_stores_response_meta.rb → inline_response2002_meta.rb} +3 -3
  45. data/lib/fastly/models/pop.rb +121 -1
  46. data/lib/fastly/models/pop_coordinates.rb +12 -19
  47. data/lib/fastly/models/realtime_measurements.rb +23 -3
  48. data/lib/fastly/models/resource.rb +12 -2
  49. data/lib/fastly/models/resource_response.rb +23 -23
  50. data/lib/fastly/models/resource_response_all_of.rb +1 -1
  51. data/lib/fastly/models/results.rb +24 -4
  52. data/lib/fastly/models/tls_subscription_response_attributes.rb +2 -2
  53. data/lib/fastly/models/tls_subscription_response_attributes_all_of.rb +2 -2
  54. data/lib/fastly/models/type_resource.rb +2 -0
  55. data/lib/fastly/version.rb +1 -1
  56. data/lib/fastly.rb +6 -8
  57. data/sig.json +1 -1
  58. metadata +14 -18
  59. data/docs/EnabledProduct.md +0 -12
  60. data/docs/KeyResponse.md +0 -11
  61. data/docs/ResourceCreate.md +0 -11
  62. data/lib/fastly/models/resource_create.rb +0 -235
  63. data/lib/fastly/models/resource_create_all_of.rb +0 -217
@@ -80,76 +80,8 @@ module Fastly
80
80
  return data, status_code, headers
81
81
  end
82
82
 
83
- # Delete object store key.
84
- # Delete a key from a customer store.
85
- # @option opts [String] :store_id (required)
86
- # @option opts [String] :key_name (required)
87
- # @return [nil]
88
- def delete_key_from_store(opts = {})
89
- delete_key_from_store_with_http_info(opts)
90
- nil
91
- end
92
-
93
- # Delete object store key.
94
- # Delete a key from a customer store.
95
- # @option opts [String] :store_id (required)
96
- # @option opts [String] :key_name (required)
97
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
98
- def delete_key_from_store_with_http_info(opts = {})
99
- if @api_client.config.debugging
100
- @api_client.config.logger.debug 'Calling API: ObjectStoreApi.delete_key_from_store ...'
101
- end
102
- # unbox the parameters from the hash
103
- store_id = opts[:'store_id']
104
- key_name = opts[:'key_name']
105
- # verify the required parameter 'store_id' is set
106
- if @api_client.config.client_side_validation && store_id.nil?
107
- fail ArgumentError, "Missing the required parameter 'store_id' when calling ObjectStoreApi.delete_key_from_store"
108
- end
109
- # verify the required parameter 'key_name' is set
110
- if @api_client.config.client_side_validation && key_name.nil?
111
- fail ArgumentError, "Missing the required parameter 'key_name' when calling ObjectStoreApi.delete_key_from_store"
112
- end
113
- # resource path
114
- local_var_path = '/resources/stores/object/{store_id}/keys/{key_name}'.sub('{' + 'store_id' + '}', CGI.escape(store_id.to_s)).sub('{' + 'key_name' + '}', CGI.escape(key_name.to_s))
115
-
116
- # query parameters
117
- query_params = opts[:query_params] || {}
118
-
119
- # header parameters
120
- header_params = opts[:header_params] || {}
121
-
122
- # form parameters
123
- form_params = opts[:form_params] || {}
124
-
125
- # http body (model)
126
- post_body = opts[:debug_body]
127
-
128
- # return_type
129
- return_type = opts[:debug_return_type]
130
-
131
- # auth_names
132
- auth_names = opts[:debug_auth_names] || ['token']
133
-
134
- new_options = opts.merge(
135
- :operation => :"ObjectStoreApi.delete_key_from_store",
136
- :header_params => header_params,
137
- :query_params => query_params,
138
- :form_params => form_params,
139
- :body => post_body,
140
- :auth_names => auth_names,
141
- :return_type => return_type
142
- )
143
-
144
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
145
- if @api_client.config.debugging
146
- @api_client.config.logger.debug "API called: ObjectStoreApi#delete_key_from_store\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
147
- end
148
- return data, status_code, headers
149
- end
150
-
151
83
  # Delete an object store.
152
- # An object store must be empty before it can be deleted. Deleting an object store that still contains keys will result in a 409 Conflict.
84
+ # An object store must be empty before it can be deleted. Deleting an object store that still contains keys will result in a `409` (Conflict).
153
85
  # @option opts [String] :store_id (required)
154
86
  # @return [nil]
155
87
  def delete_store(opts = {})
@@ -158,7 +90,7 @@ module Fastly
158
90
  end
159
91
 
160
92
  # Delete an object store.
161
- # An object store must be empty before it can be deleted. Deleting an object store that still contains keys will result in a 409 Conflict.
93
+ # An object store must be empty before it can be deleted. Deleting an object store that still contains keys will result in a &#x60;409&#x60; (Conflict).
162
94
  # @option opts [String] :store_id (required)
163
95
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
164
96
  def delete_store_with_http_info(opts = {})
@@ -209,75 +141,6 @@ module Fastly
209
141
  return data, status_code, headers
210
142
  end
211
143
 
212
- # List object store keys.
213
- # List all keys within an object store.
214
- # @option opts [String] :store_id (required)
215
- # @option opts [String] :cursor
216
- # @option opts [Integer] :limit (default to 100)
217
- # @return [KeyResponse]
218
- def get_keys(opts = {})
219
- data, _status_code, _headers = get_keys_with_http_info(opts)
220
- data
221
- end
222
-
223
- # List object store keys.
224
- # List all keys within an object store.
225
- # @option opts [String] :store_id (required)
226
- # @option opts [String] :cursor
227
- # @option opts [Integer] :limit (default to 100)
228
- # @return [Array<(KeyResponse, Integer, Hash)>] KeyResponse data, response status code and response headers
229
- def get_keys_with_http_info(opts = {})
230
- if @api_client.config.debugging
231
- @api_client.config.logger.debug 'Calling API: ObjectStoreApi.get_keys ...'
232
- end
233
- # unbox the parameters from the hash
234
- store_id = opts[:'store_id']
235
- # verify the required parameter 'store_id' is set
236
- if @api_client.config.client_side_validation && store_id.nil?
237
- fail ArgumentError, "Missing the required parameter 'store_id' when calling ObjectStoreApi.get_keys"
238
- end
239
- # resource path
240
- local_var_path = '/resources/stores/object/{store_id}/keys'.sub('{' + 'store_id' + '}', CGI.escape(store_id.to_s))
241
-
242
- # query parameters
243
- query_params = opts[:query_params] || {}
244
- query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
245
- query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
246
-
247
- # header parameters
248
- header_params = opts[:header_params] || {}
249
- # HTTP header 'Accept' (if needed)
250
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
251
-
252
- # form parameters
253
- form_params = opts[:form_params] || {}
254
-
255
- # http body (model)
256
- post_body = opts[:debug_body]
257
-
258
- # return_type
259
- return_type = opts[:debug_return_type] || 'KeyResponse'
260
-
261
- # auth_names
262
- auth_names = opts[:debug_auth_names] || ['token']
263
-
264
- new_options = opts.merge(
265
- :operation => :"ObjectStoreApi.get_keys",
266
- :header_params => header_params,
267
- :query_params => query_params,
268
- :form_params => form_params,
269
- :body => post_body,
270
- :auth_names => auth_names,
271
- :return_type => return_type
272
- )
273
-
274
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
275
- if @api_client.config.debugging
276
- @api_client.config.logger.debug "API called: ObjectStoreApi#get_keys\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
277
- end
278
- return data, status_code, headers
279
- end
280
-
281
144
  # Describe an object store.
282
145
  # Get an object store by ID.
283
146
  # @option opts [String] :store_id (required)
@@ -345,7 +208,7 @@ module Fastly
345
208
  # Get all stores for a given customer.
346
209
  # @option opts [String] :cursor
347
210
  # @option opts [Integer] :limit (default to 100)
348
- # @return [GetStoresResponse]
211
+ # @return [InlineResponse2002]
349
212
  def get_stores(opts = {})
350
213
  data, _status_code, _headers = get_stores_with_http_info(opts)
351
214
  data
@@ -355,7 +218,7 @@ module Fastly
355
218
  # Get all stores for a given customer.
356
219
  # @option opts [String] :cursor
357
220
  # @option opts [Integer] :limit (default to 100)
358
- # @return [Array<(GetStoresResponse, Integer, Hash)>] GetStoresResponse data, response status code and response headers
221
+ # @return [Array<(InlineResponse2002, Integer, Hash)>] InlineResponse2002 data, response status code and response headers
359
222
  def get_stores_with_http_info(opts = {})
360
223
  if @api_client.config.debugging
361
224
  @api_client.config.logger.debug 'Calling API: ObjectStoreApi.get_stores ...'
@@ -381,7 +244,7 @@ module Fastly
381
244
  post_body = opts[:debug_body]
382
245
 
383
246
  # return_type
384
- return_type = opts[:debug_return_type] || 'GetStoresResponse'
247
+ return_type = opts[:debug_return_type] || 'InlineResponse2002'
385
248
 
386
249
  # auth_names
387
250
  auth_names = opts[:debug_auth_names] || ['token']
@@ -402,152 +265,5 @@ module Fastly
402
265
  end
403
266
  return data, status_code, headers
404
267
  end
405
-
406
- # Get object store key value.
407
- # Get the value associated with a key.
408
- # @option opts [String] :store_id (required)
409
- # @option opts [String] :key_name (required)
410
- # @return [File]
411
- def get_value_for_key(opts = {})
412
- data, _status_code, _headers = get_value_for_key_with_http_info(opts)
413
- data
414
- end
415
-
416
- # Get object store key value.
417
- # Get the value associated with a key.
418
- # @option opts [String] :store_id (required)
419
- # @option opts [String] :key_name (required)
420
- # @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
421
- def get_value_for_key_with_http_info(opts = {})
422
- if @api_client.config.debugging
423
- @api_client.config.logger.debug 'Calling API: ObjectStoreApi.get_value_for_key ...'
424
- end
425
- # unbox the parameters from the hash
426
- store_id = opts[:'store_id']
427
- key_name = opts[:'key_name']
428
- # verify the required parameter 'store_id' is set
429
- if @api_client.config.client_side_validation && store_id.nil?
430
- fail ArgumentError, "Missing the required parameter 'store_id' when calling ObjectStoreApi.get_value_for_key"
431
- end
432
- # verify the required parameter 'key_name' is set
433
- if @api_client.config.client_side_validation && key_name.nil?
434
- fail ArgumentError, "Missing the required parameter 'key_name' when calling ObjectStoreApi.get_value_for_key"
435
- end
436
- # resource path
437
- local_var_path = '/resources/stores/object/{store_id}/keys/{key_name}'.sub('{' + 'store_id' + '}', CGI.escape(store_id.to_s)).sub('{' + 'key_name' + '}', CGI.escape(key_name.to_s))
438
-
439
- # query parameters
440
- query_params = opts[:query_params] || {}
441
-
442
- # header parameters
443
- header_params = opts[:header_params] || {}
444
- # HTTP header 'Accept' (if needed)
445
- header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
446
-
447
- # form parameters
448
- form_params = opts[:form_params] || {}
449
-
450
- # http body (model)
451
- post_body = opts[:debug_body]
452
-
453
- # return_type
454
- return_type = opts[:debug_return_type] || 'File'
455
-
456
- # auth_names
457
- auth_names = opts[:debug_auth_names] || ['token']
458
-
459
- new_options = opts.merge(
460
- :operation => :"ObjectStoreApi.get_value_for_key",
461
- :header_params => header_params,
462
- :query_params => query_params,
463
- :form_params => form_params,
464
- :body => post_body,
465
- :auth_names => auth_names,
466
- :return_type => return_type
467
- )
468
-
469
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
470
- if @api_client.config.debugging
471
- @api_client.config.logger.debug "API called: ObjectStoreApi#get_value_for_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
472
- end
473
- return data, status_code, headers
474
- end
475
-
476
- # Insert object store key-value.
477
- # Insert a new key-value pair into an object store.
478
- # @option opts [String] :store_id (required)
479
- # @option opts [String] :key_name (required)
480
- # @option opts [File] :body
481
- # @return [File]
482
- def set_value_for_key(opts = {})
483
- data, _status_code, _headers = set_value_for_key_with_http_info(opts)
484
- data
485
- end
486
-
487
- # Insert object store key-value.
488
- # Insert a new key-value pair into an object store.
489
- # @option opts [String] :store_id (required)
490
- # @option opts [String] :key_name (required)
491
- # @option opts [File] :body
492
- # @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
493
- def set_value_for_key_with_http_info(opts = {})
494
- if @api_client.config.debugging
495
- @api_client.config.logger.debug 'Calling API: ObjectStoreApi.set_value_for_key ...'
496
- end
497
- # unbox the parameters from the hash
498
- store_id = opts[:'store_id']
499
- key_name = opts[:'key_name']
500
- # verify the required parameter 'store_id' is set
501
- if @api_client.config.client_side_validation && store_id.nil?
502
- fail ArgumentError, "Missing the required parameter 'store_id' when calling ObjectStoreApi.set_value_for_key"
503
- end
504
- # verify the required parameter 'key_name' is set
505
- if @api_client.config.client_side_validation && key_name.nil?
506
- fail ArgumentError, "Missing the required parameter 'key_name' when calling ObjectStoreApi.set_value_for_key"
507
- end
508
- # resource path
509
- local_var_path = '/resources/stores/object/{store_id}/keys/{key_name}'.sub('{' + 'store_id' + '}', CGI.escape(store_id.to_s)).sub('{' + 'key_name' + '}', CGI.escape(key_name.to_s))
510
-
511
- # query parameters
512
- query_params = opts[:query_params] || {}
513
-
514
- # header parameters
515
- header_params = opts[:header_params] || {}
516
- # HTTP header 'Accept' (if needed)
517
- header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
518
- # HTTP header 'Content-Type'
519
- content_type = @api_client.select_header_content_type(['application/octet-stream'])
520
- if !content_type.nil?
521
- header_params['Content-Type'] = content_type
522
- end
523
-
524
- # form parameters
525
- form_params = opts[:form_params] || {}
526
-
527
- # http body (model)
528
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
529
-
530
- # return_type
531
- return_type = opts[:debug_return_type] || 'File'
532
-
533
- # auth_names
534
- auth_names = opts[:debug_auth_names] || ['token']
535
-
536
- new_options = opts.merge(
537
- :operation => :"ObjectStoreApi.set_value_for_key",
538
- :header_params => header_params,
539
- :query_params => query_params,
540
- :form_params => form_params,
541
- :body => post_body,
542
- :auth_names => auth_names,
543
- :return_type => return_type
544
- )
545
-
546
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
547
- if @api_client.config.debugging
548
- @api_client.config.logger.debug "API called: ObjectStoreApi#set_value_for_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
549
- end
550
- return data, status_code, headers
551
- end
552
268
  end
553
269
  end
@@ -203,7 +203,7 @@ module Fastly
203
203
  return_type = opts[:debug_return_type] || 'PurgeResponse'
204
204
 
205
205
  # auth_names
206
- auth_names = opts[:debug_auth_names] || ['url_purge']
206
+ auth_names = opts[:debug_auth_names] || ['token']
207
207
 
208
208
  new_options = opts.merge(
209
209
  :operation => :"PurgeApi.purge_single_url",
@@ -17,24 +17,24 @@ module Fastly
17
17
  def initialize(api_client = ApiClient.default)
18
18
  @api_client = api_client
19
19
  end
20
- # Create a resource
21
- # Create a resource.
20
+ # Create a resource link
21
+ # Create a link between a resource and a service version.
22
22
  # @option opts [String] :service_id Alphanumeric string identifying the service. (required)
23
23
  # @option opts [Integer] :version_id Integer identifying a service version. (required)
24
- # @option opts [String] :name The name of the resource.
25
- # @option opts [String] :resource_id The ID of the linked resource.
24
+ # @option opts [String] :resource_id The ID of the underlying linked resource.
25
+ # @option opts [String] :name The name of the resource link.
26
26
  # @return [ResourceResponse]
27
27
  def create_resource(opts = {})
28
28
  data, _status_code, _headers = create_resource_with_http_info(opts)
29
29
  data
30
30
  end
31
31
 
32
- # Create a resource
33
- # Create a resource.
32
+ # Create a resource link
33
+ # Create a link between a resource and a service version.
34
34
  # @option opts [String] :service_id Alphanumeric string identifying the service. (required)
35
35
  # @option opts [Integer] :version_id Integer identifying a service version. (required)
36
- # @option opts [String] :name The name of the resource.
37
- # @option opts [String] :resource_id The ID of the linked resource.
36
+ # @option opts [String] :resource_id The ID of the underlying linked resource.
37
+ # @option opts [String] :name The name of the resource link.
38
38
  # @return [Array<(ResourceResponse, Integer, Hash)>] ResourceResponse data, response status code and response headers
39
39
  def create_resource_with_http_info(opts = {})
40
40
  if @api_client.config.debugging
@@ -69,8 +69,8 @@ module Fastly
69
69
 
70
70
  # form parameters
71
71
  form_params = opts[:form_params] || {}
72
- form_params['name'] = opts[:'name'] if !opts[:'name'].nil?
73
72
  form_params['resource_id'] = opts[:'resource_id'] if !opts[:'resource_id'].nil?
73
+ form_params['name'] = opts[:'name'] if !opts[:'name'].nil?
74
74
 
75
75
  # http body (model)
76
76
  post_body = opts[:debug_body]
@@ -98,22 +98,22 @@ module Fastly
98
98
  return data, status_code, headers
99
99
  end
100
100
 
101
- # Delete a resource
102
- # Delete a resource.
101
+ # Delete a resource link
102
+ # Delete a link between a resource and a service version.
103
103
  # @option opts [String] :service_id Alphanumeric string identifying the service. (required)
104
104
  # @option opts [Integer] :version_id Integer identifying a service version. (required)
105
- # @option opts [String] :resource_id An alphanumeric string identifying the resource. (required)
105
+ # @option opts [String] :id An alphanumeric string identifying the resource link. (required)
106
106
  # @return [InlineResponse200]
107
107
  def delete_resource(opts = {})
108
108
  data, _status_code, _headers = delete_resource_with_http_info(opts)
109
109
  data
110
110
  end
111
111
 
112
- # Delete a resource
113
- # Delete a resource.
112
+ # Delete a resource link
113
+ # Delete a link between a resource and a service version.
114
114
  # @option opts [String] :service_id Alphanumeric string identifying the service. (required)
115
115
  # @option opts [Integer] :version_id Integer identifying a service version. (required)
116
- # @option opts [String] :resource_id An alphanumeric string identifying the resource. (required)
116
+ # @option opts [String] :id An alphanumeric string identifying the resource link. (required)
117
117
  # @return [Array<(InlineResponse200, Integer, Hash)>] InlineResponse200 data, response status code and response headers
118
118
  def delete_resource_with_http_info(opts = {})
119
119
  if @api_client.config.debugging
@@ -122,7 +122,7 @@ module Fastly
122
122
  # unbox the parameters from the hash
123
123
  service_id = opts[:'service_id']
124
124
  version_id = opts[:'version_id']
125
- resource_id = opts[:'resource_id']
125
+ id = opts[:'id']
126
126
  # verify the required parameter 'service_id' is set
127
127
  if @api_client.config.client_side_validation && service_id.nil?
128
128
  fail ArgumentError, "Missing the required parameter 'service_id' when calling ResourceApi.delete_resource"
@@ -131,12 +131,12 @@ module Fastly
131
131
  if @api_client.config.client_side_validation && version_id.nil?
132
132
  fail ArgumentError, "Missing the required parameter 'version_id' when calling ResourceApi.delete_resource"
133
133
  end
134
- # verify the required parameter 'resource_id' is set
135
- if @api_client.config.client_side_validation && resource_id.nil?
136
- fail ArgumentError, "Missing the required parameter 'resource_id' when calling ResourceApi.delete_resource"
134
+ # verify the required parameter 'id' is set
135
+ if @api_client.config.client_side_validation && id.nil?
136
+ fail ArgumentError, "Missing the required parameter 'id' when calling ResourceApi.delete_resource"
137
137
  end
138
138
  # resource path
139
- local_var_path = '/service/{service_id}/version/{version_id}/resource/{resource_id}'.sub('{' + 'service_id' + '}', CGI.escape(service_id.to_s)).sub('{' + 'version_id' + '}', CGI.escape(version_id.to_s)).sub('{' + 'resource_id' + '}', CGI.escape(resource_id.to_s))
139
+ local_var_path = '/service/{service_id}/version/{version_id}/resource/{id}'.sub('{' + 'service_id' + '}', CGI.escape(service_id.to_s)).sub('{' + 'version_id' + '}', CGI.escape(version_id.to_s)).sub('{' + 'id' + '}', CGI.escape(id.to_s))
140
140
 
141
141
  # query parameters
142
142
  query_params = opts[:query_params] || {}
@@ -175,22 +175,22 @@ module Fastly
175
175
  return data, status_code, headers
176
176
  end
177
177
 
178
- # Display a resource
179
- # Display a resource by its identifier.
178
+ # Display a resource link
179
+ # Display a resource link by its identifier.
180
180
  # @option opts [String] :service_id Alphanumeric string identifying the service. (required)
181
181
  # @option opts [Integer] :version_id Integer identifying a service version. (required)
182
- # @option opts [String] :resource_id An alphanumeric string identifying the resource. (required)
182
+ # @option opts [String] :id An alphanumeric string identifying the resource link. (required)
183
183
  # @return [ResourceResponse]
184
184
  def get_resource(opts = {})
185
185
  data, _status_code, _headers = get_resource_with_http_info(opts)
186
186
  data
187
187
  end
188
188
 
189
- # Display a resource
190
- # Display a resource by its identifier.
189
+ # Display a resource link
190
+ # Display a resource link by its identifier.
191
191
  # @option opts [String] :service_id Alphanumeric string identifying the service. (required)
192
192
  # @option opts [Integer] :version_id Integer identifying a service version. (required)
193
- # @option opts [String] :resource_id An alphanumeric string identifying the resource. (required)
193
+ # @option opts [String] :id An alphanumeric string identifying the resource link. (required)
194
194
  # @return [Array<(ResourceResponse, Integer, Hash)>] ResourceResponse data, response status code and response headers
195
195
  def get_resource_with_http_info(opts = {})
196
196
  if @api_client.config.debugging
@@ -199,7 +199,7 @@ module Fastly
199
199
  # unbox the parameters from the hash
200
200
  service_id = opts[:'service_id']
201
201
  version_id = opts[:'version_id']
202
- resource_id = opts[:'resource_id']
202
+ id = opts[:'id']
203
203
  # verify the required parameter 'service_id' is set
204
204
  if @api_client.config.client_side_validation && service_id.nil?
205
205
  fail ArgumentError, "Missing the required parameter 'service_id' when calling ResourceApi.get_resource"
@@ -208,12 +208,12 @@ module Fastly
208
208
  if @api_client.config.client_side_validation && version_id.nil?
209
209
  fail ArgumentError, "Missing the required parameter 'version_id' when calling ResourceApi.get_resource"
210
210
  end
211
- # verify the required parameter 'resource_id' is set
212
- if @api_client.config.client_side_validation && resource_id.nil?
213
- fail ArgumentError, "Missing the required parameter 'resource_id' when calling ResourceApi.get_resource"
211
+ # verify the required parameter 'id' is set
212
+ if @api_client.config.client_side_validation && id.nil?
213
+ fail ArgumentError, "Missing the required parameter 'id' when calling ResourceApi.get_resource"
214
214
  end
215
215
  # resource path
216
- local_var_path = '/service/{service_id}/version/{version_id}/resource/{resource_id}'.sub('{' + 'service_id' + '}', CGI.escape(service_id.to_s)).sub('{' + 'version_id' + '}', CGI.escape(version_id.to_s)).sub('{' + 'resource_id' + '}', CGI.escape(resource_id.to_s))
216
+ local_var_path = '/service/{service_id}/version/{version_id}/resource/{id}'.sub('{' + 'service_id' + '}', CGI.escape(service_id.to_s)).sub('{' + 'version_id' + '}', CGI.escape(version_id.to_s)).sub('{' + 'id' + '}', CGI.escape(id.to_s))
217
217
 
218
218
  # query parameters
219
219
  query_params = opts[:query_params] || {}
@@ -252,8 +252,8 @@ module Fastly
252
252
  return data, status_code, headers
253
253
  end
254
254
 
255
- # List resources
256
- # List resources.
255
+ # List resource links
256
+ # List links between resources and services
257
257
  # @option opts [String] :service_id Alphanumeric string identifying the service. (required)
258
258
  # @option opts [Integer] :version_id Integer identifying a service version. (required)
259
259
  # @return [Array<ResourceResponse>]
@@ -262,8 +262,8 @@ module Fastly
262
262
  data
263
263
  end
264
264
 
265
- # List resources
266
- # List resources.
265
+ # List resource links
266
+ # List links between resources and services
267
267
  # @option opts [String] :service_id Alphanumeric string identifying the service. (required)
268
268
  # @option opts [Integer] :version_id Integer identifying a service version. (required)
269
269
  # @return [Array<(Array<ResourceResponse>, Integer, Hash)>] Array<ResourceResponse> data, response status code and response headers
@@ -322,24 +322,26 @@ module Fastly
322
322
  return data, status_code, headers
323
323
  end
324
324
 
325
- # Update a resource
326
- # Update a resource.
325
+ # Update a resource link
326
+ # Update a link between a resource and a service version.
327
327
  # @option opts [String] :service_id Alphanumeric string identifying the service. (required)
328
328
  # @option opts [Integer] :version_id Integer identifying a service version. (required)
329
- # @option opts [String] :resource_id An alphanumeric string identifying the resource. (required)
330
- # @option opts [String] :name The name of the resource.
329
+ # @option opts [String] :id An alphanumeric string identifying the resource link. (required)
330
+ # @option opts [String] :resource_id The ID of the underlying linked resource.
331
+ # @option opts [String] :name The name of the resource link.
331
332
  # @return [ResourceResponse]
332
333
  def update_resource(opts = {})
333
334
  data, _status_code, _headers = update_resource_with_http_info(opts)
334
335
  data
335
336
  end
336
337
 
337
- # Update a resource
338
- # Update a resource.
338
+ # Update a resource link
339
+ # Update a link between a resource and a service version.
339
340
  # @option opts [String] :service_id Alphanumeric string identifying the service. (required)
340
341
  # @option opts [Integer] :version_id Integer identifying a service version. (required)
341
- # @option opts [String] :resource_id An alphanumeric string identifying the resource. (required)
342
- # @option opts [String] :name The name of the resource.
342
+ # @option opts [String] :id An alphanumeric string identifying the resource link. (required)
343
+ # @option opts [String] :resource_id The ID of the underlying linked resource.
344
+ # @option opts [String] :name The name of the resource link.
343
345
  # @return [Array<(ResourceResponse, Integer, Hash)>] ResourceResponse data, response status code and response headers
344
346
  def update_resource_with_http_info(opts = {})
345
347
  if @api_client.config.debugging
@@ -348,7 +350,7 @@ module Fastly
348
350
  # unbox the parameters from the hash
349
351
  service_id = opts[:'service_id']
350
352
  version_id = opts[:'version_id']
351
- resource_id = opts[:'resource_id']
353
+ id = opts[:'id']
352
354
  # verify the required parameter 'service_id' is set
353
355
  if @api_client.config.client_side_validation && service_id.nil?
354
356
  fail ArgumentError, "Missing the required parameter 'service_id' when calling ResourceApi.update_resource"
@@ -357,12 +359,12 @@ module Fastly
357
359
  if @api_client.config.client_side_validation && version_id.nil?
358
360
  fail ArgumentError, "Missing the required parameter 'version_id' when calling ResourceApi.update_resource"
359
361
  end
360
- # verify the required parameter 'resource_id' is set
361
- if @api_client.config.client_side_validation && resource_id.nil?
362
- fail ArgumentError, "Missing the required parameter 'resource_id' when calling ResourceApi.update_resource"
362
+ # verify the required parameter 'id' is set
363
+ if @api_client.config.client_side_validation && id.nil?
364
+ fail ArgumentError, "Missing the required parameter 'id' when calling ResourceApi.update_resource"
363
365
  end
364
366
  # resource path
365
- local_var_path = '/service/{service_id}/version/{version_id}/resource/{resource_id}'.sub('{' + 'service_id' + '}', CGI.escape(service_id.to_s)).sub('{' + 'version_id' + '}', CGI.escape(version_id.to_s)).sub('{' + 'resource_id' + '}', CGI.escape(resource_id.to_s))
367
+ local_var_path = '/service/{service_id}/version/{version_id}/resource/{id}'.sub('{' + 'service_id' + '}', CGI.escape(service_id.to_s)).sub('{' + 'version_id' + '}', CGI.escape(version_id.to_s)).sub('{' + 'id' + '}', CGI.escape(id.to_s))
366
368
 
367
369
  # query parameters
368
370
  query_params = opts[:query_params] || {}
@@ -379,6 +381,7 @@ module Fastly
379
381
 
380
382
  # form parameters
381
383
  form_params = opts[:form_params] || {}
384
+ form_params['resource_id'] = opts[:'resource_id'] if !opts[:'resource_id'].nil?
382
385
  form_params['name'] = opts[:'name'] if !opts[:'name'].nil?
383
386
 
384
387
  # http body (model)
@@ -364,7 +364,7 @@ module Fastly
364
364
 
365
365
  # List TLS subscriptions
366
366
  # List all TLS subscriptions.
367
- # @option opts [String] :filter_state Limit the returned subscriptions by state. Valid values are &#x60;pending&#x60;, &#x60;processing&#x60;, &#x60;issued&#x60;, and &#x60;renewing&#x60;. Accepts parameters: &#x60;not&#x60; (e.g., &#x60;filter[state][not]&#x3D;renewing&#x60;).
367
+ # @option opts [String] :filter_state Limit the returned subscriptions by state. Valid values are &#x60;pending&#x60;, &#x60;processing&#x60;, &#x60;issued&#x60;, &#x60;renewing&#x60;, and &#x60;failed&#x60;. Accepts parameters: &#x60;not&#x60; (e.g., &#x60;filter[state][not]&#x3D;renewing&#x60;).
368
368
  # @option opts [String] :filter_tls_domains_id Limit the returned subscriptions to those that include the specific domain.
369
369
  # @option opts [Boolean] :filter_has_active_order Limit the returned subscriptions to those that have currently active orders. Permitted values: &#x60;true&#x60;.
370
370
  # @option opts [String] :include Include related objects. Optional, comma-separated values. Permitted values: &#x60;tls_authorizations&#x60; and &#x60;tls_authorizations.globalsign_email_challenge&#x60;.
@@ -379,7 +379,7 @@ module Fastly
379
379
 
380
380
  # List TLS subscriptions
381
381
  # List all TLS subscriptions.
382
- # @option opts [String] :filter_state Limit the returned subscriptions by state. Valid values are &#x60;pending&#x60;, &#x60;processing&#x60;, &#x60;issued&#x60;, and &#x60;renewing&#x60;. Accepts parameters: &#x60;not&#x60; (e.g., &#x60;filter[state][not]&#x3D;renewing&#x60;).
382
+ # @option opts [String] :filter_state Limit the returned subscriptions by state. Valid values are &#x60;pending&#x60;, &#x60;processing&#x60;, &#x60;issued&#x60;, &#x60;renewing&#x60;, and &#x60;failed&#x60;. Accepts parameters: &#x60;not&#x60; (e.g., &#x60;filter[state][not]&#x3D;renewing&#x60;).
383
383
  # @option opts [String] :filter_tls_domains_id Limit the returned subscriptions to those that include the specific domain.
384
384
  # @option opts [Boolean] :filter_has_active_order Limit the returned subscriptions to those that have currently active orders. Permitted values: &#x60;true&#x60;.
385
385
  # @option opts [String] :include Include related objects. Optional, comma-separated values. Permitted values: &#x60;tls_authorizations&#x60; and &#x60;tls_authorizations.globalsign_email_challenge&#x60;.
@@ -452,7 +452,7 @@ module Fastly
452
452
  end
453
453
 
454
454
  # Update a TLS subscription
455
- # Change the TLS domains or common name associated with this subscription, or update the TLS configuration for this set of domains.
455
+ # Change the TLS domains or common name associated with this subscription, update the TLS configuration for this set of domains, or retry a subscription with state `failed` by setting the state to `retry`.
456
456
  # @option opts [String] :tls_subscription_id Alphanumeric string identifying a TLS subscription. (required)
457
457
  # @option opts [Boolean] :force A flag that allows you to edit and delete a subscription with active domains. Valid to use on PATCH and DELETE actions. As a warning, removing an active domain from a subscription or forcing the deletion of a subscription may result in breaking TLS termination to that domain.
458
458
  # @option opts [TlsSubscription] :tls_subscription
@@ -463,7 +463,7 @@ module Fastly
463
463
  end
464
464
 
465
465
  # Update a TLS subscription
466
- # Change the TLS domains or common name associated with this subscription, or update the TLS configuration for this set of domains.
466
+ # Change the TLS domains or common name associated with this subscription, update the TLS configuration for this set of domains, or retry a subscription with state &#x60;failed&#x60; by setting the state to &#x60;retry&#x60;.
467
467
  # @option opts [String] :tls_subscription_id Alphanumeric string identifying a TLS subscription. (required)
468
468
  # @option opts [Boolean] :force A flag that allows you to edit and delete a subscription with active domains. Valid to use on PATCH and DELETE actions. As a warning, removing an active domain from a subscription or forcing the deletion of a subscription may result in breaking TLS termination to that domain.
469
469
  # @option opts [TlsSubscription] :tls_subscription
@@ -46,7 +46,7 @@ module Fastly
46
46
  # IPv6 address of the backend. May be used as an alternative to `address` to set the backend location.
47
47
  attr_accessor :ipv6
48
48
 
49
- # How long to keep a persistent connection to the backend between requests.
49
+ # How long in seconds to keep a persistent connection to the backend between requests.
50
50
  attr_accessor :keepalive_time
51
51
 
52
52
  # Maximum number of concurrent connections this backend will accept.
@@ -46,7 +46,7 @@ module Fastly
46
46
  # IPv6 address of the backend. May be used as an alternative to `address` to set the backend location.
47
47
  attr_accessor :ipv6
48
48
 
49
- # How long to keep a persistent connection to the backend between requests.
49
+ # How long in seconds to keep a persistent connection to the backend between requests.
50
50
  attr_accessor :keepalive_time
51
51
 
52
52
  # Maximum number of concurrent connections this backend will accept.