fastly 10.0.0 → 11.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +25 -1
  3. data/Gemfile.lock +1 -1
  4. data/README.md +2 -5
  5. data/docs/AutomationToken.md +1 -1
  6. data/docs/AutomationTokenCreateRequestAttributes.md +1 -1
  7. data/docs/AutomationTokenCreateResponse.md +4 -6
  8. data/docs/AutomationTokenCreateResponseAllOf.md +3 -3
  9. data/docs/AutomationTokenResponse.md +4 -6
  10. data/docs/AutomationTokenResponseAllOf.md +4 -4
  11. data/docs/BillingUsageMetricsApi.md +11 -9
  12. data/docs/ComputeAclListEntriesMeta.md +1 -1
  13. data/docs/Header.md +2 -0
  14. data/docs/HeaderApi.md +8 -8
  15. data/docs/KvStoreItemApi.md +4 -4
  16. data/docs/LoggingAzureblobAdditional.md +1 -1
  17. data/docs/LoggingAzureblobApi.md +4 -4
  18. data/docs/LoggingAzureblobResponse.md +1 -1
  19. data/docs/Results.md +7 -0
  20. data/docs/SnippetApi.md +2 -2
  21. data/docs/{SnippetResponseCommonAllOf.md → SnippetResponseAllOf.md} +1 -1
  22. data/docs/TlsBulkCertificatesApi.md +4 -0
  23. data/lib/fastly/api/automation_tokens_api.rb +6 -6
  24. data/lib/fastly/api/billing_usage_metrics_api.rb +11 -8
  25. data/lib/fastly/api/header_api.rb +8 -8
  26. data/lib/fastly/api/kv_store_item_api.rb +5 -5
  27. data/lib/fastly/api/logging_azureblob_api.rb +4 -4
  28. data/lib/fastly/api/snippet_api.rb +3 -3
  29. data/lib/fastly/api/tls_bulk_certificates_api.rb +6 -0
  30. data/lib/fastly/configuration.rb +0 -18
  31. data/lib/fastly/models/automation_token.rb +1 -1
  32. data/lib/fastly/models/automation_token_create_request_attributes.rb +1 -1
  33. data/lib/fastly/models/automation_token_create_response.rb +21 -43
  34. data/lib/fastly/models/automation_token_create_response_all_of.rb +13 -12
  35. data/lib/fastly/models/automation_token_response.rb +24 -46
  36. data/lib/fastly/models/automation_token_response_all_of.rb +11 -10
  37. data/lib/fastly/models/compute_acl_list_entries_meta.rb +1 -1
  38. data/lib/fastly/models/header.rb +26 -4
  39. data/lib/fastly/models/header_response.rb +0 -1
  40. data/lib/fastly/models/logging_azureblob_additional.rb +1 -1
  41. data/lib/fastly/models/logging_azureblob_response.rb +1 -1
  42. data/lib/fastly/models/results.rb +71 -1
  43. data/lib/fastly/models/schemas_snippet_response.rb +3 -2
  44. data/lib/fastly/models/snippet.rb +0 -8
  45. data/lib/fastly/models/snippet_response.rb +2 -1
  46. data/lib/fastly/models/{snippet_response_common_all_of.rb → snippet_response_all_of.rb} +3 -3
  47. data/lib/fastly/version.rb +1 -1
  48. data/lib/fastly.rb +1 -26
  49. data/sig.json +1 -1
  50. metadata +4 -54
  51. data/docs/Billing.md +0 -16
  52. data/docs/BillingApi.md +0 -139
  53. data/docs/BillingBandwidth.md +0 -11
  54. data/docs/BillingBandwidthTiers.md +0 -14
  55. data/docs/BillingEstimateInvoiceId.md +0 -10
  56. data/docs/BillingEstimateLines.md +0 -10
  57. data/docs/BillingEstimateLinesLineItems.md +0 -18
  58. data/docs/BillingEstimateResponse.md +0 -18
  59. data/docs/BillingInvoiceId.md +0 -10
  60. data/docs/BillingRegions.md +0 -13
  61. data/docs/BillingResponse.md +0 -18
  62. data/docs/BillingResponseItemItemsData.md +0 -10
  63. data/docs/BillingResponseLineItem.md +0 -29
  64. data/docs/BillingStatus.md +0 -11
  65. data/docs/BillingTotal.md +0 -25
  66. data/docs/BillingTotalExtras.md +0 -12
  67. data/docs/HeaderResponseAdditional.md +0 -11
  68. data/docs/LineItemData.md +0 -26
  69. data/docs/SchemasSnippetResponseCommon.md +0 -15
  70. data/docs/SnippetAllOf.md +0 -10
  71. data/docs/SnippetCommon.md +0 -13
  72. data/docs/SnippetResponseCommon.md +0 -15
  73. data/docs/SnippetResponsePost.md +0 -20
  74. data/docs/SnippetWithDynamicNumber.md +0 -14
  75. data/docs/SnippetWithDynamicNumberAllOf.md +0 -10
  76. data/lib/fastly/api/billing_api.rb +0 -229
  77. data/lib/fastly/models/billing.rb +0 -278
  78. data/lib/fastly/models/billing_bandwidth.rb +0 -227
  79. data/lib/fastly/models/billing_bandwidth_tiers.rb +0 -252
  80. data/lib/fastly/models/billing_estimate_invoice_id.rb +0 -216
  81. data/lib/fastly/models/billing_estimate_lines.rb +0 -218
  82. data/lib/fastly/models/billing_estimate_lines_line_items.rb +0 -288
  83. data/lib/fastly/models/billing_estimate_response.rb +0 -307
  84. data/lib/fastly/models/billing_invoice_id.rb +0 -216
  85. data/lib/fastly/models/billing_regions.rb +0 -243
  86. data/lib/fastly/models/billing_response.rb +0 -307
  87. data/lib/fastly/models/billing_response_item_items_data.rb +0 -218
  88. data/lib/fastly/models/billing_response_line_item.rb +0 -418
  89. data/lib/fastly/models/billing_status.rb +0 -262
  90. data/lib/fastly/models/billing_total.rb +0 -371
  91. data/lib/fastly/models/billing_total_extras.rb +0 -237
  92. data/lib/fastly/models/header_response_additional.rb +0 -229
  93. data/lib/fastly/models/line_item_data.rb +0 -377
  94. data/lib/fastly/models/schemas_snippet_response_common.rb +0 -276
  95. data/lib/fastly/models/snippet_all_of.rb +0 -251
  96. data/lib/fastly/models/snippet_common.rb +0 -284
  97. data/lib/fastly/models/snippet_response_common.rb +0 -276
  98. data/lib/fastly/models/snippet_response_post.rb +0 -375
  99. data/lib/fastly/models/snippet_with_dynamic_number.rb +0 -314
  100. data/lib/fastly/models/snippet_with_dynamic_number_all_of.rb +0 -251
@@ -31,8 +31,8 @@ module Fastly
31
31
  # @option opts [String] :src Variable to be used as a source for the header content. Does not apply to `delete` action.
32
32
  # @option opts [String] :substitution Value to substitute in place of regular expression. Only applies to `regex` and `regex_repeat` actions.
33
33
  # @option opts [String] :type Accepts a string value.
34
- # @option opts [Integer] :ignore_if_set Don't add the header if it is added already. Only applies to 'set' action.
35
- # @option opts [Integer] :priority Priority determines execution order. Lower numbers execute first. (default to 100)
34
+ # @option opts [String] :ignore_if_set Don't add the header if it is added already. Only applies to 'set' action. Numerical value (\\\"0\\\" = false, \\\"1\\\" = true)
35
+ # @option opts [String] :priority Priority determines execution order. Lower numbers execute first. (default to '100')
36
36
  # @return [HeaderResponse]
37
37
  def create_header_object(opts = {})
38
38
  data, _status_code, _headers = create_header_object_with_http_info(opts)
@@ -53,8 +53,8 @@ module Fastly
53
53
  # @option opts [String] :src Variable to be used as a source for the header content. Does not apply to `delete` action.
54
54
  # @option opts [String] :substitution Value to substitute in place of regular expression. Only applies to `regex` and `regex_repeat` actions.
55
55
  # @option opts [String] :type Accepts a string value.
56
- # @option opts [Integer] :ignore_if_set Don't add the header if it is added already. Only applies to 'set' action.
57
- # @option opts [Integer] :priority Priority determines execution order. Lower numbers execute first. (default to 100)
56
+ # @option opts [String] :ignore_if_set Don't add the header if it is added already. Only applies to 'set' action. Numerical value (\\\"0\\\" = false, \\\"1\\\" = true)
57
+ # @option opts [String] :priority Priority determines execution order. Lower numbers execute first. (default to '100')
58
58
  # @return [Array<(HeaderResponse, Integer, Hash)>] HeaderResponse data, response status code and response headers
59
59
  def create_header_object_with_http_info(opts = {})
60
60
  if @api_client.config.debugging
@@ -375,8 +375,8 @@ module Fastly
375
375
  # @option opts [String] :src Variable to be used as a source for the header content. Does not apply to &#x60;delete&#x60; action.
376
376
  # @option opts [String] :substitution Value to substitute in place of regular expression. Only applies to &#x60;regex&#x60; and &#x60;regex_repeat&#x60; actions.
377
377
  # @option opts [String] :type Accepts a string value.
378
- # @option opts [Integer] :ignore_if_set Don&#39;t add the header if it is added already. Only applies to &#39;set&#39; action.
379
- # @option opts [Integer] :priority Priority determines execution order. Lower numbers execute first. (default to 100)
378
+ # @option opts [String] :ignore_if_set Don&#39;t add the header if it is added already. Only applies to &#39;set&#39; action. Numerical value (\\\&quot;0\\\&quot; &#x3D; false, \\\&quot;1\\\&quot; &#x3D; true)
379
+ # @option opts [String] :priority Priority determines execution order. Lower numbers execute first. (default to '100')
380
380
  # @return [HeaderResponse]
381
381
  def update_header_object(opts = {})
382
382
  data, _status_code, _headers = update_header_object_with_http_info(opts)
@@ -398,8 +398,8 @@ module Fastly
398
398
  # @option opts [String] :src Variable to be used as a source for the header content. Does not apply to &#x60;delete&#x60; action.
399
399
  # @option opts [String] :substitution Value to substitute in place of regular expression. Only applies to &#x60;regex&#x60; and &#x60;regex_repeat&#x60; actions.
400
400
  # @option opts [String] :type Accepts a string value.
401
- # @option opts [Integer] :ignore_if_set Don&#39;t add the header if it is added already. Only applies to &#39;set&#39; action.
402
- # @option opts [Integer] :priority Priority determines execution order. Lower numbers execute first. (default to 100)
401
+ # @option opts [String] :ignore_if_set Don&#39;t add the header if it is added already. Only applies to &#39;set&#39; action. Numerical value (\\\&quot;0\\\&quot; &#x3D; false, \\\&quot;1\\\&quot; &#x3D; true)
402
+ # @option opts [String] :priority Priority determines execution order. Lower numbers execute first. (default to '100')
403
403
  # @return [Array<(HeaderResponse, Integer, Hash)>] HeaderResponse data, response status code and response headers
404
404
  def update_header_object_with_http_info(opts = {})
405
405
  if @api_client.config.debugging
@@ -95,7 +95,7 @@ module Fastly
95
95
  # Get an item, including its value, metadata (if any), and generation marker.
96
96
  # @option opts [String] :store_id (required)
97
97
  # @option opts [String] :key (required)
98
- # @return [File]
98
+ # @return [String]
99
99
  def kv_store_get_item(opts = {})
100
100
  data, _status_code, _headers = kv_store_get_item_with_http_info(opts)
101
101
  data
@@ -105,7 +105,7 @@ module Fastly
105
105
  # Get an item, including its value, metadata (if any), and generation marker.
106
106
  # @option opts [String] :store_id (required)
107
107
  # @option opts [String] :key (required)
108
- # @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
108
+ # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
109
109
  def kv_store_get_item_with_http_info(opts = {})
110
110
  if @api_client.config.debugging
111
111
  @api_client.config.logger.debug 'Calling API: KvStoreItemApi.kv_store_get_item ...'
@@ -139,7 +139,7 @@ module Fastly
139
139
  post_body = opts[:debug_body]
140
140
 
141
141
  # return_type
142
- return_type = opts[:debug_return_type] || 'File'
142
+ return_type = opts[:debug_return_type] || 'String'
143
143
 
144
144
  # auth_names
145
145
  auth_names = opts[:debug_auth_names] || ['token']
@@ -255,7 +255,7 @@ module Fastly
255
255
  # @option opts [Boolean] :append (default to false)
256
256
  # @option opts [Boolean] :prepend (default to false)
257
257
  # @option opts [Boolean] :background_fetch (default to false)
258
- # @option opts [File] :body
258
+ # @option opts [String] :body
259
259
  # @return [nil]
260
260
  def kv_store_upsert_item(opts = {})
261
261
  kv_store_upsert_item_with_http_info(opts)
@@ -273,7 +273,7 @@ module Fastly
273
273
  # @option opts [Boolean] :append (default to false)
274
274
  # @option opts [Boolean] :prepend (default to false)
275
275
  # @option opts [Boolean] :background_fetch (default to false)
276
- # @option opts [File] :body
276
+ # @option opts [String] :body
277
277
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
278
278
  def kv_store_upsert_item_with_http_info(opts = {})
279
279
  if @api_client.config.debugging
@@ -36,7 +36,7 @@ module Fastly
36
36
  # @option opts [String] :container The name of the Azure Blob Storage container in which to store logs. Required.
37
37
  # @option opts [String] :sas_token The Azure shared access signature providing write access to the blob service objects. Be sure to update your token before it expires or the logging functionality will not work. Required.
38
38
  # @option opts [String] :public_key A PGP public key that Fastly will use to encrypt your log files before writing them to disk. (default to 'null')
39
- # @option opts [Integer] :file_max_bytes The maximum number of bytes for each uploaded file. A value of 0 can be used to indicate there is no limit on the size of uploaded files, otherwise the minimum value is 1048576 bytes (1 MiB.)
39
+ # @option opts [Integer] :file_max_bytes The maximum number of bytes for each uploaded file. A value of 0 can be used to indicate there is no limit on the size of uploaded files, otherwise the minimum value is 1048576 bytes (1 MiB). Note that Microsoft Azure Storage has [block size limits](https://learn.microsoft.com/en-us/rest/api/storageservices/put-block?tabs&#x3D;microsoft-entra-id#remarks).
40
40
  # @return [LoggingAzureblobResponse]
41
41
  def create_log_azure(opts = {})
42
42
  data, _status_code, _headers = create_log_azure_with_http_info(opts)
@@ -62,7 +62,7 @@ module Fastly
62
62
  # @option opts [String] :container The name of the Azure Blob Storage container in which to store logs. Required.
63
63
  # @option opts [String] :sas_token The Azure shared access signature providing write access to the blob service objects. Be sure to update your token before it expires or the logging functionality will not work. Required.
64
64
  # @option opts [String] :public_key A PGP public key that Fastly will use to encrypt your log files before writing them to disk. (default to 'null')
65
- # @option opts [Integer] :file_max_bytes The maximum number of bytes for each uploaded file. A value of 0 can be used to indicate there is no limit on the size of uploaded files, otherwise the minimum value is 1048576 bytes (1 MiB.)
65
+ # @option opts [Integer] :file_max_bytes The maximum number of bytes for each uploaded file. A value of 0 can be used to indicate there is no limit on the size of uploaded files, otherwise the minimum value is 1048576 bytes (1 MiB). Note that Microsoft Azure Storage has [block size limits](https://learn.microsoft.com/en-us/rest/api/storageservices/put-block?tabs&#x3D;microsoft-entra-id#remarks).
66
66
  # @return [Array<(LoggingAzureblobResponse, Integer, Hash)>] LoggingAzureblobResponse data, response status code and response headers
67
67
  def create_log_azure_with_http_info(opts = {})
68
68
  if @api_client.config.debugging
@@ -404,7 +404,7 @@ module Fastly
404
404
  # @option opts [String] :container The name of the Azure Blob Storage container in which to store logs. Required.
405
405
  # @option opts [String] :sas_token The Azure shared access signature providing write access to the blob service objects. Be sure to update your token before it expires or the logging functionality will not work. Required.
406
406
  # @option opts [String] :public_key A PGP public key that Fastly will use to encrypt your log files before writing them to disk. (default to 'null')
407
- # @option opts [Integer] :file_max_bytes The maximum number of bytes for each uploaded file. A value of 0 can be used to indicate there is no limit on the size of uploaded files, otherwise the minimum value is 1048576 bytes (1 MiB.)
407
+ # @option opts [Integer] :file_max_bytes The maximum number of bytes for each uploaded file. A value of 0 can be used to indicate there is no limit on the size of uploaded files, otherwise the minimum value is 1048576 bytes (1 MiB). Note that Microsoft Azure Storage has [block size limits](https://learn.microsoft.com/en-us/rest/api/storageservices/put-block?tabs&#x3D;microsoft-entra-id#remarks).
408
408
  # @return [LoggingAzureblobResponse]
409
409
  def update_log_azure(opts = {})
410
410
  data, _status_code, _headers = update_log_azure_with_http_info(opts)
@@ -431,7 +431,7 @@ module Fastly
431
431
  # @option opts [String] :container The name of the Azure Blob Storage container in which to store logs. Required.
432
432
  # @option opts [String] :sas_token The Azure shared access signature providing write access to the blob service objects. Be sure to update your token before it expires or the logging functionality will not work. Required.
433
433
  # @option opts [String] :public_key A PGP public key that Fastly will use to encrypt your log files before writing them to disk. (default to 'null')
434
- # @option opts [Integer] :file_max_bytes The maximum number of bytes for each uploaded file. A value of 0 can be used to indicate there is no limit on the size of uploaded files, otherwise the minimum value is 1048576 bytes (1 MiB.)
434
+ # @option opts [Integer] :file_max_bytes The maximum number of bytes for each uploaded file. A value of 0 can be used to indicate there is no limit on the size of uploaded files, otherwise the minimum value is 1048576 bytes (1 MiB). Note that Microsoft Azure Storage has [block size limits](https://learn.microsoft.com/en-us/rest/api/storageservices/put-block?tabs&#x3D;microsoft-entra-id#remarks).
435
435
  # @return [Array<(LoggingAzureblobResponse, Integer, Hash)>] LoggingAzureblobResponse data, response status code and response headers
436
436
  def update_log_azure_with_http_info(opts = {})
437
437
  if @api_client.config.debugging
@@ -26,7 +26,7 @@ module Fastly
26
26
  # @option opts [String] :content The VCL code that specifies exactly what the snippet does.
27
27
  # @option opts [String] :priority Priority determines execution order. Lower numbers execute first. (default to '100')
28
28
  # @option opts [String] :dynamic Sets the snippet version.
29
- # @return [SnippetResponsePost]
29
+ # @return [SnippetResponse]
30
30
  def create_snippet(opts = {})
31
31
  data, _status_code, _headers = create_snippet_with_http_info(opts)
32
32
  data
@@ -41,7 +41,7 @@ module Fastly
41
41
  # @option opts [String] :content The VCL code that specifies exactly what the snippet does.
42
42
  # @option opts [String] :priority Priority determines execution order. Lower numbers execute first. (default to '100')
43
43
  # @option opts [String] :dynamic Sets the snippet version.
44
- # @return [Array<(SnippetResponsePost, Integer, Hash)>] SnippetResponsePost data, response status code and response headers
44
+ # @return [Array<(SnippetResponse, Integer, Hash)>] SnippetResponse data, response status code and response headers
45
45
  def create_snippet_with_http_info(opts = {})
46
46
  if @api_client.config.debugging
47
47
  @api_client.config.logger.debug 'Calling API: SnippetApi.create_snippet ...'
@@ -93,7 +93,7 @@ module Fastly
93
93
  post_body = opts[:debug_body]
94
94
 
95
95
  # return_type
96
- return_type = opts[:debug_return_type] || 'SnippetResponsePost'
96
+ return_type = opts[:debug_return_type] || 'SnippetResponse'
97
97
 
98
98
  # auth_names
99
99
  auth_names = opts[:debug_auth_names] || ['token']
@@ -144,6 +144,8 @@ module Fastly
144
144
  # List certificates
145
145
  # List all certificates.
146
146
  # @option opts [String] :filter_tls_domain_id Filter certificates by their matching, fully-qualified domain name.
147
+ # @option opts [String] :filter_not_before Filter the returned certificates by not_before date in UTC. Accepts parameters: lt, lte, gt, gte (e.g., filter[not_before][gte]&#x3D;2020-05-05).
148
+ # @option opts [String] :filter_not_after Filter the returned certificates by expiry date in UTC. Accepts parameters: lt, lte, gt, gte (e.g., filter[not_after][lte]&#x3D;2020-05-05).
147
149
  # @option opts [Integer] :page_number Current page.
148
150
  # @option opts [Integer] :page_size Number of records per page. (default to 20)
149
151
  # @option opts [String] :sort The order in which to list the results by creation date. (default to 'created_at')
@@ -156,6 +158,8 @@ module Fastly
156
158
  # List certificates
157
159
  # List all certificates.
158
160
  # @option opts [String] :filter_tls_domain_id Filter certificates by their matching, fully-qualified domain name.
161
+ # @option opts [String] :filter_not_before Filter the returned certificates by not_before date in UTC. Accepts parameters: lt, lte, gt, gte (e.g., filter[not_before][gte]&#x3D;2020-05-05).
162
+ # @option opts [String] :filter_not_after Filter the returned certificates by expiry date in UTC. Accepts parameters: lt, lte, gt, gte (e.g., filter[not_after][lte]&#x3D;2020-05-05).
159
163
  # @option opts [Integer] :page_number Current page.
160
164
  # @option opts [Integer] :page_size Number of records per page. (default to 20)
161
165
  # @option opts [String] :sort The order in which to list the results by creation date. (default to 'created_at')
@@ -183,6 +187,8 @@ module Fastly
183
187
  # query parameters
184
188
  query_params = opts[:query_params] || {}
185
189
  query_params[:'filter[tls_domain.id]'] = opts[:'filter_tls_domain_id'] if !opts[:'filter_tls_domain_id'].nil?
190
+ query_params[:'filter[not_before]'] = opts[:'filter_not_before'] if !opts[:'filter_not_before'].nil?
191
+ query_params[:'filter[not_after]'] = opts[:'filter_not_after'] if !opts[:'filter_not_after'].nil?
186
192
  query_params[:'page[number]'] = opts[:'page_number'] if !opts[:'page_number'].nil?
187
193
  query_params[:'page[size]'] = opts[:'page_size'] if !opts[:'page_size'].nil?
188
194
  query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
@@ -476,24 +476,6 @@ module Fastly
476
476
  description: "No description provided",
477
477
  }
478
478
  ],
479
- "BillingApi.get_invoice": [
480
- {
481
- url: "https://api.fastly.com",
482
- description: "No description provided",
483
- }
484
- ],
485
- "BillingApi.get_invoice_by_id": [
486
- {
487
- url: "https://api.fastly.com",
488
- description: "No description provided",
489
- }
490
- ],
491
- "BillingApi.get_invoice_mtd": [
492
- {
493
- url: "https://api.fastly.com",
494
- description: "No description provided",
495
- }
496
- ],
497
479
  "BillingAddressApi.add_billing_addr": [
498
480
  {
499
481
  url: "https://api.fastly.com",
@@ -25,7 +25,7 @@ module Fastly
25
25
  # A space-delimited list of authorization scope.
26
26
  attr_accessor :scope
27
27
 
28
- # A UTC time-stamp of when the token expires.
28
+ # A UTC timestamp of when the token expires.
29
29
  attr_accessor :expires_at
30
30
 
31
31
  class EnumAttributeValidator
@@ -23,7 +23,7 @@ module Fastly
23
23
 
24
24
  attr_accessor :scope
25
25
 
26
- # A UTC time-stamp of when the token will expire.
26
+ # A UTC timestamp of when the token will expire.
27
27
  attr_accessor :expires_at
28
28
 
29
29
  # Indicates whether TLS access is enabled for the token.
@@ -25,29 +25,24 @@ module Fastly
25
25
  # A space-delimited list of authorization scope.
26
26
  attr_accessor :scope
27
27
 
28
- # A UTC time-stamp of when the token expires.
28
+ # A UTC timestamp of when the token expires.
29
29
  attr_accessor :expires_at
30
30
 
31
- # A UTC time-stamp of when the token was created.
32
- attr_accessor :created_at
33
-
34
- # Date and time in ISO 8601 format.
35
- attr_accessor :deleted_at
36
-
37
- # Date and time in ISO 8601 format.
38
- attr_accessor :updated_at
39
-
40
31
  attr_accessor :id
41
32
 
42
33
  attr_accessor :user_id
43
34
 
44
35
  attr_accessor :customer_id
45
36
 
46
- attr_accessor :sudo_expires_at
37
+ # A UTC timestamp of when the token was created.
38
+ attr_accessor :created_at
47
39
 
48
40
  attr_accessor :access_token
49
41
 
50
- # A UTC time-stamp of when the token was last used.
42
+ # Indicates whether TLS access is enabled for the token.
43
+ attr_accessor :tls_access
44
+
45
+ # A UTC timestamp of when the token was last used.
51
46
  attr_accessor :last_used_at
52
47
 
53
48
  # The User-Agent header of the client that last used the token.
@@ -83,14 +78,12 @@ module Fastly
83
78
  :'services' => :'services',
84
79
  :'scope' => :'scope',
85
80
  :'expires_at' => :'expires_at',
86
- :'created_at' => :'created_at',
87
- :'deleted_at' => :'deleted_at',
88
- :'updated_at' => :'updated_at',
89
81
  :'id' => :'id',
90
82
  :'user_id' => :'user_id',
91
83
  :'customer_id' => :'customer_id',
92
- :'sudo_expires_at' => :'sudo_expires_at',
84
+ :'created_at' => :'created_at',
93
85
  :'access_token' => :'access_token',
86
+ :'tls_access' => :'tls_access',
94
87
  :'last_used_at' => :'last_used_at',
95
88
  :'user_agent' => :'user_agent'
96
89
  }
@@ -109,14 +102,12 @@ module Fastly
109
102
  :'services' => :'Array<String>',
110
103
  :'scope' => :'String',
111
104
  :'expires_at' => :'String',
112
- :'created_at' => :'Time',
113
- :'deleted_at' => :'Time',
114
- :'updated_at' => :'Time',
115
105
  :'id' => :'ReadOnlyId',
116
106
  :'user_id' => :'ReadOnlyUserId',
117
107
  :'customer_id' => :'ReadOnlyCustomerId',
118
- :'sudo_expires_at' => :'Time',
108
+ :'created_at' => :'Time',
119
109
  :'access_token' => :'String',
110
+ :'tls_access' => :'Boolean',
120
111
  :'last_used_at' => :'Time',
121
112
  :'user_agent' => :'String'
122
113
  }
@@ -125,8 +116,6 @@ module Fastly
125
116
  # List of attributes with nullable: true
126
117
  def self.fastly_nullable
127
118
  Set.new([
128
- :'deleted_at',
129
- :'updated_at',
130
119
  ])
131
120
  end
132
121
 
@@ -134,8 +123,7 @@ module Fastly
134
123
  def self.fastly_all_of
135
124
  [
136
125
  :'AutomationToken',
137
- :'AutomationTokenCreateResponseAllOf',
138
- :'Timestamps'
126
+ :'AutomationTokenCreateResponseAllOf'
139
127
  ]
140
128
  end
141
129
 
@@ -178,18 +166,6 @@ module Fastly
178
166
  self.expires_at = attributes[:'expires_at']
179
167
  end
180
168
 
181
- if attributes.key?(:'created_at')
182
- self.created_at = attributes[:'created_at']
183
- end
184
-
185
- if attributes.key?(:'deleted_at')
186
- self.deleted_at = attributes[:'deleted_at']
187
- end
188
-
189
- if attributes.key?(:'updated_at')
190
- self.updated_at = attributes[:'updated_at']
191
- end
192
-
193
169
  if attributes.key?(:'id')
194
170
  self.id = attributes[:'id']
195
171
  end
@@ -202,14 +178,18 @@ module Fastly
202
178
  self.customer_id = attributes[:'customer_id']
203
179
  end
204
180
 
205
- if attributes.key?(:'sudo_expires_at')
206
- self.sudo_expires_at = attributes[:'sudo_expires_at']
181
+ if attributes.key?(:'created_at')
182
+ self.created_at = attributes[:'created_at']
207
183
  end
208
184
 
209
185
  if attributes.key?(:'access_token')
210
186
  self.access_token = attributes[:'access_token']
211
187
  end
212
188
 
189
+ if attributes.key?(:'tls_access')
190
+ self.tls_access = attributes[:'tls_access']
191
+ end
192
+
213
193
  if attributes.key?(:'last_used_at')
214
194
  self.last_used_at = attributes[:'last_used_at']
215
195
  end
@@ -266,14 +246,12 @@ module Fastly
266
246
  services == o.services &&
267
247
  scope == o.scope &&
268
248
  expires_at == o.expires_at &&
269
- created_at == o.created_at &&
270
- deleted_at == o.deleted_at &&
271
- updated_at == o.updated_at &&
272
249
  id == o.id &&
273
250
  user_id == o.user_id &&
274
251
  customer_id == o.customer_id &&
275
- sudo_expires_at == o.sudo_expires_at &&
252
+ created_at == o.created_at &&
276
253
  access_token == o.access_token &&
254
+ tls_access == o.tls_access &&
277
255
  last_used_at == o.last_used_at &&
278
256
  user_agent == o.user_agent
279
257
  end
@@ -287,7 +265,7 @@ module Fastly
287
265
  # Calculates hash code according to all attributes.
288
266
  # @return [Integer] Hash code
289
267
  def hash
290
- [name, role, services, scope, expires_at, created_at, deleted_at, updated_at, id, user_id, customer_id, sudo_expires_at, access_token, last_used_at, user_agent].hash
268
+ [name, role, services, scope, expires_at, id, user_id, customer_id, created_at, access_token, tls_access, last_used_at, user_agent].hash
291
269
  end
292
270
 
293
271
  # Builds the object from hash
@@ -19,14 +19,15 @@ module Fastly
19
19
 
20
20
  attr_accessor :customer_id
21
21
 
22
- attr_accessor :sudo_expires_at
23
-
24
- # A UTC time-stamp of when the token was created.
22
+ # A UTC timestamp of when the token was created.
25
23
  attr_accessor :created_at
26
24
 
27
25
  attr_accessor :access_token
28
26
 
29
- # A UTC time-stamp of when the token was last used.
27
+ # Indicates whether TLS access is enabled for the token.
28
+ attr_accessor :tls_access
29
+
30
+ # A UTC timestamp of when the token was last used.
30
31
  attr_accessor :last_used_at
31
32
 
32
33
  # The User-Agent header of the client that last used the token.
@@ -38,9 +39,9 @@ module Fastly
38
39
  :'id' => :'id',
39
40
  :'user_id' => :'user_id',
40
41
  :'customer_id' => :'customer_id',
41
- :'sudo_expires_at' => :'sudo_expires_at',
42
42
  :'created_at' => :'created_at',
43
43
  :'access_token' => :'access_token',
44
+ :'tls_access' => :'tls_access',
44
45
  :'last_used_at' => :'last_used_at',
45
46
  :'user_agent' => :'user_agent'
46
47
  }
@@ -57,9 +58,9 @@ module Fastly
57
58
  :'id' => :'ReadOnlyId',
58
59
  :'user_id' => :'ReadOnlyUserId',
59
60
  :'customer_id' => :'ReadOnlyCustomerId',
60
- :'sudo_expires_at' => :'Time',
61
61
  :'created_at' => :'Time',
62
62
  :'access_token' => :'String',
63
+ :'tls_access' => :'Boolean',
63
64
  :'last_used_at' => :'Time',
64
65
  :'user_agent' => :'String'
65
66
  }
@@ -98,10 +99,6 @@ module Fastly
98
99
  self.customer_id = attributes[:'customer_id']
99
100
  end
100
101
 
101
- if attributes.key?(:'sudo_expires_at')
102
- self.sudo_expires_at = attributes[:'sudo_expires_at']
103
- end
104
-
105
102
  if attributes.key?(:'created_at')
106
103
  self.created_at = attributes[:'created_at']
107
104
  end
@@ -110,6 +107,10 @@ module Fastly
110
107
  self.access_token = attributes[:'access_token']
111
108
  end
112
109
 
110
+ if attributes.key?(:'tls_access')
111
+ self.tls_access = attributes[:'tls_access']
112
+ end
113
+
113
114
  if attributes.key?(:'last_used_at')
114
115
  self.last_used_at = attributes[:'last_used_at']
115
116
  end
@@ -140,9 +141,9 @@ module Fastly
140
141
  id == o.id &&
141
142
  user_id == o.user_id &&
142
143
  customer_id == o.customer_id &&
143
- sudo_expires_at == o.sudo_expires_at &&
144
144
  created_at == o.created_at &&
145
145
  access_token == o.access_token &&
146
+ tls_access == o.tls_access &&
146
147
  last_used_at == o.last_used_at &&
147
148
  user_agent == o.user_agent
148
149
  end
@@ -156,7 +157,7 @@ module Fastly
156
157
  # Calculates hash code according to all attributes.
157
158
  # @return [Integer] Hash code
158
159
  def hash
159
- [id, user_id, customer_id, sudo_expires_at, created_at, access_token, last_used_at, user_agent].hash
160
+ [id, user_id, customer_id, created_at, access_token, tls_access, last_used_at, user_agent].hash
160
161
  end
161
162
 
162
163
  # Builds the object from hash
@@ -24,18 +24,9 @@ module Fastly
24
24
  # A space-delimited list of authorization scope.
25
25
  attr_accessor :scope
26
26
 
27
- # (optional) A UTC time-stamp of when the token will expire.
27
+ # (optional) A UTC timestamp of when the token will expire.
28
28
  attr_accessor :expires_at
29
29
 
30
- # A UTC time-stamp of when the token was created.
31
- attr_accessor :created_at
32
-
33
- # Date and time in ISO 8601 format.
34
- attr_accessor :deleted_at
35
-
36
- # Date and time in ISO 8601 format.
37
- attr_accessor :updated_at
38
-
39
30
  attr_accessor :id
40
31
 
41
32
  attr_accessor :customer_id
@@ -46,11 +37,15 @@ module Fastly
46
37
  # The User-Agent header of the client that last used the token.
47
38
  attr_accessor :user_agent
48
39
 
49
- attr_accessor :sudo_expires_at
40
+ # Indicates whether TLS access is enabled for the token.
41
+ attr_accessor :tls_access
50
42
 
51
- # A UTC time-stamp of when the token was last used.
43
+ # A UTC timestamp of when the token was last used.
52
44
  attr_accessor :last_used_at
53
45
 
46
+ # A UTC timestamp of when the token was created.
47
+ attr_accessor :created_at
48
+
54
49
  class EnumAttributeValidator
55
50
  attr_reader :datatype
56
51
  attr_reader :allowable_values
@@ -81,15 +76,13 @@ module Fastly
81
76
  :'services' => :'services',
82
77
  :'scope' => :'scope',
83
78
  :'expires_at' => :'expires_at',
84
- :'created_at' => :'created_at',
85
- :'deleted_at' => :'deleted_at',
86
- :'updated_at' => :'updated_at',
87
79
  :'id' => :'id',
88
80
  :'customer_id' => :'customer_id',
89
81
  :'ip' => :'ip',
90
82
  :'user_agent' => :'user_agent',
91
- :'sudo_expires_at' => :'sudo_expires_at',
92
- :'last_used_at' => :'last_used_at'
83
+ :'tls_access' => :'tls_access',
84
+ :'last_used_at' => :'last_used_at',
85
+ :'created_at' => :'created_at'
93
86
  }
94
87
  end
95
88
 
@@ -106,23 +99,19 @@ module Fastly
106
99
  :'services' => :'Array<String>',
107
100
  :'scope' => :'String',
108
101
  :'expires_at' => :'String',
109
- :'created_at' => :'String',
110
- :'deleted_at' => :'Time',
111
- :'updated_at' => :'Time',
112
102
  :'id' => :'ReadOnlyId',
113
103
  :'customer_id' => :'ReadOnlyCustomerId',
114
104
  :'ip' => :'String',
115
105
  :'user_agent' => :'String',
116
- :'sudo_expires_at' => :'String',
117
- :'last_used_at' => :'Time'
106
+ :'tls_access' => :'Boolean',
107
+ :'last_used_at' => :'Time',
108
+ :'created_at' => :'String'
118
109
  }
119
110
  end
120
111
 
121
112
  # List of attributes with nullable: true
122
113
  def self.fastly_nullable
123
114
  Set.new([
124
- :'deleted_at',
125
- :'updated_at',
126
115
  ])
127
116
  end
128
117
 
@@ -130,8 +119,7 @@ module Fastly
130
119
  def self.fastly_all_of
131
120
  [
132
121
  :'AutomationToken',
133
- :'AutomationTokenResponseAllOf',
134
- :'Timestamps'
122
+ :'AutomationTokenResponseAllOf'
135
123
  ]
136
124
  end
137
125
 
@@ -174,18 +162,6 @@ module Fastly
174
162
  self.expires_at = attributes[:'expires_at']
175
163
  end
176
164
 
177
- if attributes.key?(:'created_at')
178
- self.created_at = attributes[:'created_at']
179
- end
180
-
181
- if attributes.key?(:'deleted_at')
182
- self.deleted_at = attributes[:'deleted_at']
183
- end
184
-
185
- if attributes.key?(:'updated_at')
186
- self.updated_at = attributes[:'updated_at']
187
- end
188
-
189
165
  if attributes.key?(:'id')
190
166
  self.id = attributes[:'id']
191
167
  end
@@ -202,13 +178,17 @@ module Fastly
202
178
  self.user_agent = attributes[:'user_agent']
203
179
  end
204
180
 
205
- if attributes.key?(:'sudo_expires_at')
206
- self.sudo_expires_at = attributes[:'sudo_expires_at']
181
+ if attributes.key?(:'tls_access')
182
+ self.tls_access = attributes[:'tls_access']
207
183
  end
208
184
 
209
185
  if attributes.key?(:'last_used_at')
210
186
  self.last_used_at = attributes[:'last_used_at']
211
187
  end
188
+
189
+ if attributes.key?(:'created_at')
190
+ self.created_at = attributes[:'created_at']
191
+ end
212
192
  end
213
193
 
214
194
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -246,15 +226,13 @@ module Fastly
246
226
  services == o.services &&
247
227
  scope == o.scope &&
248
228
  expires_at == o.expires_at &&
249
- created_at == o.created_at &&
250
- deleted_at == o.deleted_at &&
251
- updated_at == o.updated_at &&
252
229
  id == o.id &&
253
230
  customer_id == o.customer_id &&
254
231
  ip == o.ip &&
255
232
  user_agent == o.user_agent &&
256
- sudo_expires_at == o.sudo_expires_at &&
257
- last_used_at == o.last_used_at
233
+ tls_access == o.tls_access &&
234
+ last_used_at == o.last_used_at &&
235
+ created_at == o.created_at
258
236
  end
259
237
 
260
238
  # @see the `==` method
@@ -266,7 +244,7 @@ module Fastly
266
244
  # Calculates hash code according to all attributes.
267
245
  # @return [Integer] Hash code
268
246
  def hash
269
- [name, role, services, scope, expires_at, created_at, deleted_at, updated_at, id, customer_id, ip, user_agent, sudo_expires_at, last_used_at].hash
247
+ [name, role, services, scope, expires_at, id, customer_id, ip, user_agent, tls_access, last_used_at, created_at].hash
270
248
  end
271
249
 
272
250
  # Builds the object from hash