fastly 15.0.0 → 16.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 (164) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +40 -1
  3. data/Gemfile.lock +3 -3
  4. data/README.md +32 -3
  5. data/docs/ApisecurityOperationsApi.md +465 -0
  6. data/docs/AutomationTokensApi.md +2 -2
  7. data/docs/Backend.md +1 -0
  8. data/docs/BackendApi.md +4 -0
  9. data/docs/BackendResponse.md +1 -0
  10. data/docs/DdosProtectionApi.md +4 -4
  11. data/docs/DdosProtectionEvent.md +2 -0
  12. data/docs/DdosProtectionEventAllOf.md +2 -0
  13. data/docs/DdosProtectionRequestEnableMode.md +10 -0
  14. data/docs/DiscoveredOperationBase.md +12 -0
  15. data/docs/DiscoveredOperationGet.md +15 -0
  16. data/docs/DiscoveredOperationGetExtra.md +12 -0
  17. data/docs/DmDomainsApi.md +2 -2
  18. data/docs/DomainInspectorHistoricalApi.md +1 -1
  19. data/docs/DomainInspectorMeasurements.md +63 -0
  20. data/docs/DomainOwnershipsApi.md +2 -2
  21. data/docs/DomainResearchApi.md +103 -0
  22. data/docs/DomainResearchResponseBodyEnable.md +12 -0
  23. data/docs/DomainResearchResponseCustomer.md +10 -0
  24. data/docs/DomainResearchResponseLinks.md +10 -0
  25. data/docs/DomainResearchResponseLinksLinks.md +10 -0
  26. data/docs/DomainResearchResponseProduct.md +10 -0
  27. data/docs/DomainResearchResponseProductProduct.md +11 -0
  28. data/docs/HistoricalApi.md +8 -0
  29. data/docs/HistoricalMeta.md +1 -0
  30. data/docs/IamV1RoleResponse.md +1 -0
  31. data/docs/InlineResponse2001.md +2 -1
  32. data/docs/InlineResponse20010.md +2 -1
  33. data/docs/InlineResponse20011.md +11 -0
  34. data/docs/InlineResponse20012.md +11 -0
  35. data/docs/InlineResponse20013.md +11 -0
  36. data/docs/InlineResponse20014.md +10 -0
  37. data/docs/InlineResponse2002.md +2 -2
  38. data/docs/InlineResponse2003.md +2 -2
  39. data/docs/InlineResponse2004.md +1 -2
  40. data/docs/InlineResponse2005.md +2 -1
  41. data/docs/InlineResponse2006.md +2 -2
  42. data/docs/InlineResponse2007.md +2 -2
  43. data/docs/InlineResponse2008.md +1 -2
  44. data/docs/InlineResponse2009.md +1 -2
  45. data/docs/InsightsApi.md +3 -3
  46. data/docs/KvStoreApi.md +43 -4
  47. data/docs/KvStoreDetails.md +2 -0
  48. data/docs/KvStoreItemApi.md +2 -2
  49. data/docs/{KvStoreRequestCreate.md → KvStoreRequestCreateOrUpdate.md} +1 -1
  50. data/docs/LogInsights.md +1 -1
  51. data/docs/Meta.md +11 -0
  52. data/docs/MetricsPlatformApi.md +75 -0
  53. data/docs/NgwafRequestEnable.md +1 -0
  54. data/docs/Offer.md +12 -0
  55. data/docs/OfferAllOf.md +12 -0
  56. data/docs/OperationBase.md +14 -0
  57. data/docs/OperationCreate.md +14 -0
  58. data/docs/OperationGet.md +18 -0
  59. data/docs/OperationGetExtra.md +13 -0
  60. data/docs/OperationUpdate.md +14 -0
  61. data/docs/OriginInspectorHistoricalApi.md +1 -1
  62. data/docs/PackageMetadata.md +2 -2
  63. data/docs/PlatformMetadata.md +14 -0
  64. data/docs/PlatformMetricsResponse.md +11 -0
  65. data/docs/PlatformValues.md +25 -0
  66. data/docs/ProductDdosProtectionApi.md +3 -1
  67. data/docs/ProductDomainResearchApi.md +115 -0
  68. data/docs/RealtimeEntryAggregated.md +25 -0
  69. data/docs/RealtimeMeasurements.md +25 -0
  70. data/docs/Results.md +25 -0
  71. data/docs/SecretStoreApi.md +2 -2
  72. data/docs/SecretStoreItemApi.md +2 -2
  73. data/docs/ServiceAuthorizationsApi.md +2 -2
  74. data/docs/Status.md +15 -0
  75. data/docs/StatusAllOf.md +15 -0
  76. data/docs/Suggestion.md +13 -0
  77. data/docs/SuggestionAllOf.md +13 -0
  78. data/docs/TagBase.md +11 -0
  79. data/docs/TagCreate.md +11 -0
  80. data/docs/TagGet.md +15 -0
  81. data/docs/TagGetExtra.md +13 -0
  82. data/docs/Values.md +63 -0
  83. data/lib/fastly/api/apisecurity_operations_api.rb +829 -0
  84. data/lib/fastly/api/automation_tokens_api.rb +3 -3
  85. data/lib/fastly/api/backend_api.rb +6 -0
  86. data/lib/fastly/api/ddos_protection_api.rb +6 -6
  87. data/lib/fastly/api/dm_domains_api.rb +3 -3
  88. data/lib/fastly/api/domain_inspector_historical_api.rb +1 -1
  89. data/lib/fastly/api/domain_ownerships_api.rb +3 -3
  90. data/lib/fastly/api/domain_research_api.rb +163 -0
  91. data/lib/fastly/api/historical_api.rb +12 -0
  92. data/lib/fastly/api/kv_store_api.rb +74 -6
  93. data/lib/fastly/api/kv_store_item_api.rb +3 -3
  94. data/lib/fastly/api/metrics_platform_api.rb +134 -0
  95. data/lib/fastly/api/origin_inspector_historical_api.rb +1 -1
  96. data/lib/fastly/api/product_ddos_protection_api.rb +10 -3
  97. data/lib/fastly/api/product_domain_research_api.rb +186 -0
  98. data/lib/fastly/api/secret_store_api.rb +3 -3
  99. data/lib/fastly/api/secret_store_item_api.rb +3 -3
  100. data/lib/fastly/api/service_authorizations_api.rb +3 -3
  101. data/lib/fastly/configuration.rb +108 -0
  102. data/lib/fastly/models/backend.rb +11 -1
  103. data/lib/fastly/models/backend_response.rb +11 -1
  104. data/lib/fastly/models/ddos_protection_event.rb +21 -1
  105. data/lib/fastly/models/ddos_protection_event_all_of.rb +21 -1
  106. data/lib/fastly/models/ddos_protection_request_enable_mode.rb +251 -0
  107. data/lib/fastly/models/discovered_operation_base.rb +271 -0
  108. data/lib/fastly/models/discovered_operation_get.rb +336 -0
  109. data/lib/fastly/models/discovered_operation_get_extra.rb +271 -0
  110. data/lib/fastly/models/domain_inspector_measurements.rb +634 -4
  111. data/lib/fastly/models/domain_research_response_body_enable.rb +243 -0
  112. data/lib/fastly/models/domain_research_response_customer.rb +216 -0
  113. data/lib/fastly/models/domain_research_response_links.rb +216 -0
  114. data/lib/fastly/models/domain_research_response_links_links.rb +217 -0
  115. data/lib/fastly/models/domain_research_response_product.rb +216 -0
  116. data/lib/fastly/models/domain_research_response_product_product.rb +227 -0
  117. data/lib/fastly/models/historical_meta.rb +13 -4
  118. data/lib/fastly/models/iam_v1_role_response.rb +10 -1
  119. data/lib/fastly/models/inline_response2001.rb +12 -3
  120. data/lib/fastly/models/inline_response20010.rb +13 -4
  121. data/lib/fastly/models/inline_response20011.rb +227 -0
  122. data/lib/fastly/models/inline_response20012.rb +227 -0
  123. data/lib/fastly/models/inline_response20013.rb +227 -0
  124. data/lib/fastly/models/inline_response20014.rb +218 -0
  125. data/lib/fastly/models/inline_response2002.rb +14 -13
  126. data/lib/fastly/models/inline_response2003.rb +14 -23
  127. data/lib/fastly/models/inline_response2004.rb +5 -15
  128. data/lib/fastly/models/inline_response2005.rb +18 -8
  129. data/lib/fastly/models/inline_response2006.rb +11 -1
  130. data/lib/fastly/models/inline_response2007.rb +4 -2
  131. data/lib/fastly/models/inline_response2008.rb +8 -18
  132. data/lib/fastly/models/inline_response2009.rb +8 -17
  133. data/lib/fastly/models/kv_store_details.rb +24 -4
  134. data/lib/fastly/models/{kv_store_request_create.rb → kv_store_request_create_or_update.rb} +3 -3
  135. data/lib/fastly/models/log_insights.rb +4 -2
  136. data/lib/fastly/models/meta.rb +266 -0
  137. data/lib/fastly/models/ngwaf_request_enable.rb +14 -4
  138. data/lib/fastly/models/offer.rb +245 -0
  139. data/lib/fastly/models/offer_all_of.rb +237 -0
  140. data/lib/fastly/models/operation_base.rb +308 -0
  141. data/lib/fastly/models/operation_create.rb +315 -0
  142. data/lib/fastly/models/operation_get.rb +381 -0
  143. data/lib/fastly/models/operation_get_extra.rb +257 -0
  144. data/lib/fastly/models/operation_update.rb +308 -0
  145. data/lib/fastly/models/package_metadata.rb +2 -2
  146. data/lib/fastly/models/platform_metadata.rb +258 -0
  147. data/lib/fastly/models/platform_metrics_response.rb +228 -0
  148. data/lib/fastly/models/platform_values.rb +368 -0
  149. data/lib/fastly/models/realtime_entry_aggregated.rb +254 -4
  150. data/lib/fastly/models/realtime_measurements.rb +254 -4
  151. data/lib/fastly/models/results.rb +251 -1
  152. data/lib/fastly/models/status.rb +276 -0
  153. data/lib/fastly/models/status_all_of.rb +268 -0
  154. data/lib/fastly/models/suggestion.rb +255 -0
  155. data/lib/fastly/models/suggestion_all_of.rb +247 -0
  156. data/lib/fastly/models/tag_base.rb +275 -0
  157. data/lib/fastly/models/tag_create.rb +282 -0
  158. data/lib/fastly/models/tag_get.rb +352 -0
  159. data/lib/fastly/models/tag_get_extra.rb +267 -0
  160. data/lib/fastly/models/values.rb +634 -4
  161. data/lib/fastly/version.rb +1 -1
  162. data/lib/fastly.rb +38 -1
  163. data/sig.json +1 -1
  164. metadata +78 -4
@@ -148,7 +148,7 @@ module Fastly
148
148
  # @option opts [String] :id (required)
149
149
  # @option opts [Integer] :per_page
150
150
  # @option opts [Integer] :page
151
- # @return [InlineResponse2001]
151
+ # @return [InlineResponse2004]
152
152
  def get_automation_tokens_id_services(opts = {})
153
153
  data, _status_code, _headers = get_automation_tokens_id_services_with_http_info(opts)
154
154
  data
@@ -159,7 +159,7 @@ module Fastly
159
159
  # @option opts [String] :id (required)
160
160
  # @option opts [Integer] :per_page
161
161
  # @option opts [Integer] :page
162
- # @return [Array<(InlineResponse2001, Integer, Hash)>] InlineResponse2001 data, response status code and response headers
162
+ # @return [Array<(InlineResponse2004, Integer, Hash)>] InlineResponse2004 data, response status code and response headers
163
163
  def get_automation_tokens_id_services_with_http_info(opts = {})
164
164
  if @api_client.config.debugging
165
165
  @api_client.config.logger.debug 'Calling API: AutomationTokensApi.get_automation_tokens_id_services ...'
@@ -190,7 +190,7 @@ module Fastly
190
190
  post_body = opts[:debug_body]
191
191
 
192
192
  # return_type
193
- return_type = opts[:debug_return_type] || 'InlineResponse2001'
193
+ return_type = opts[:debug_return_type] || 'InlineResponse2004'
194
194
 
195
195
  # auth_names
196
196
  auth_names = opts[:debug_auth_names] || ['token']
@@ -28,6 +28,7 @@ module Fastly
28
28
  # @option opts [String] :comment A freeform descriptive note.
29
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
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
+ # @option opts [Integer] :fetch_timeout Maximum duration in milliseconds to wait for the entire response to be received 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.fetch_timeout&#x60;.
31
32
  # @option opts [String] :healthcheck The name of the healthcheck to use with this backend.
32
33
  # @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
34
  # @option opts [String] :ipv4 IPv4 address of the backend. May be used as an alternative to &#x60;address&#x60; to set the backend location.
@@ -74,6 +75,7 @@ module Fastly
74
75
  # @option opts [String] :comment A freeform descriptive note.
75
76
  # @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;.
76
77
  # @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;.
78
+ # @option opts [Integer] :fetch_timeout Maximum duration in milliseconds to wait for the entire response to be received 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.fetch_timeout&#x60;.
77
79
  # @option opts [String] :healthcheck The name of the healthcheck to use with this backend.
78
80
  # @option opts [String] :hostname The hostname of the backend. May be used as an alternative to &#x60;address&#x60; to set the backend location.
79
81
  # @option opts [String] :ipv4 IPv4 address of the backend. May be used as an alternative to &#x60;address&#x60; to set the backend location.
@@ -149,6 +151,7 @@ module Fastly
149
151
  form_params['comment'] = opts[:'comment'] if !opts[:'comment'].nil?
150
152
  form_params['connect_timeout'] = opts[:'connect_timeout'] if !opts[:'connect_timeout'].nil?
151
153
  form_params['first_byte_timeout'] = opts[:'first_byte_timeout'] if !opts[:'first_byte_timeout'].nil?
154
+ form_params['fetch_timeout'] = opts[:'fetch_timeout'] if !opts[:'fetch_timeout'].nil?
152
155
  form_params['healthcheck'] = opts[:'healthcheck'] if !opts[:'healthcheck'].nil?
153
156
  form_params['hostname'] = opts[:'hostname'] if !opts[:'hostname'].nil?
154
157
  form_params['ipv4'] = opts[:'ipv4'] if !opts[:'ipv4'].nil?
@@ -441,6 +444,7 @@ module Fastly
441
444
  # @option opts [String] :comment A freeform descriptive note.
442
445
  # @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;.
443
446
  # @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;.
447
+ # @option opts [Integer] :fetch_timeout Maximum duration in milliseconds to wait for the entire response to be received 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.fetch_timeout&#x60;.
444
448
  # @option opts [String] :healthcheck The name of the healthcheck to use with this backend.
445
449
  # @option opts [String] :hostname The hostname of the backend. May be used as an alternative to &#x60;address&#x60; to set the backend location.
446
450
  # @option opts [String] :ipv4 IPv4 address of the backend. May be used as an alternative to &#x60;address&#x60; to set the backend location.
@@ -488,6 +492,7 @@ module Fastly
488
492
  # @option opts [String] :comment A freeform descriptive note.
489
493
  # @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;.
490
494
  # @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;.
495
+ # @option opts [Integer] :fetch_timeout Maximum duration in milliseconds to wait for the entire response to be received 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.fetch_timeout&#x60;.
491
496
  # @option opts [String] :healthcheck The name of the healthcheck to use with this backend.
492
497
  # @option opts [String] :hostname The hostname of the backend. May be used as an alternative to &#x60;address&#x60; to set the backend location.
493
498
  # @option opts [String] :ipv4 IPv4 address of the backend. May be used as an alternative to &#x60;address&#x60; to set the backend location.
@@ -568,6 +573,7 @@ module Fastly
568
573
  form_params['comment'] = opts[:'comment'] if !opts[:'comment'].nil?
569
574
  form_params['connect_timeout'] = opts[:'connect_timeout'] if !opts[:'connect_timeout'].nil?
570
575
  form_params['first_byte_timeout'] = opts[:'first_byte_timeout'] if !opts[:'first_byte_timeout'].nil?
576
+ form_params['fetch_timeout'] = opts[:'fetch_timeout'] if !opts[:'fetch_timeout'].nil?
571
577
  form_params['healthcheck'] = opts[:'healthcheck'] if !opts[:'healthcheck'].nil?
572
578
  form_params['hostname'] = opts[:'hostname'] if !opts[:'hostname'].nil?
573
579
  form_params['ipv4'] = opts[:'ipv4'] if !opts[:'ipv4'].nil?
@@ -88,7 +88,7 @@ module Fastly
88
88
  # @option opts [Time] :from Represents the start of a date-time range expressed in RFC 3339 format.
89
89
  # @option opts [Time] :to Represents the end of a date-time range expressed in RFC 3339 format.
90
90
  # @option opts [String] :name
91
- # @return [InlineResponse2002]
91
+ # @return [InlineResponse2005]
92
92
  def ddos_protection_event_list(opts = {})
93
93
  data, _status_code, _headers = ddos_protection_event_list_with_http_info(opts)
94
94
  data
@@ -102,7 +102,7 @@ module Fastly
102
102
  # @option opts [Time] :from Represents the start of a date-time range expressed in RFC 3339 format.
103
103
  # @option opts [Time] :to Represents the end of a date-time range expressed in RFC 3339 format.
104
104
  # @option opts [String] :name
105
- # @return [Array<(InlineResponse2002, Integer, Hash)>] InlineResponse2002 data, response status code and response headers
105
+ # @return [Array<(InlineResponse2005, Integer, Hash)>] InlineResponse2005 data, response status code and response headers
106
106
  def ddos_protection_event_list_with_http_info(opts = {})
107
107
  if @api_client.config.debugging
108
108
  @api_client.config.logger.debug 'Calling API: DdosProtectionApi.ddos_protection_event_list ...'
@@ -136,7 +136,7 @@ module Fastly
136
136
  post_body = opts[:debug_body]
137
137
 
138
138
  # return_type
139
- return_type = opts[:debug_return_type] || 'InlineResponse2002'
139
+ return_type = opts[:debug_return_type] || 'InlineResponse2005'
140
140
 
141
141
  # auth_names
142
142
  auth_names = opts[:debug_auth_names] || ['token']
@@ -164,7 +164,7 @@ module Fastly
164
164
  # @option opts [String] :cursor Cursor value from the &#x60;next_cursor&#x60; field of a previous response, used to retrieve the next page. To request the first page, this should be empty.
165
165
  # @option opts [Integer] :limit Limit how many results are returned. (default to 20)
166
166
  # @option opts [String] :include Include relationships. Optional. Comma-separated values.
167
- # @return [InlineResponse2003]
167
+ # @return [InlineResponse2006]
168
168
  def ddos_protection_event_rule_list(opts = {})
169
169
  data, _status_code, _headers = ddos_protection_event_rule_list_with_http_info(opts)
170
170
  data
@@ -176,7 +176,7 @@ module Fastly
176
176
  # @option opts [String] :cursor Cursor value from the &#x60;next_cursor&#x60; field of a previous response, used to retrieve the next page. To request the first page, this should be empty.
177
177
  # @option opts [Integer] :limit Limit how many results are returned. (default to 20)
178
178
  # @option opts [String] :include Include relationships. Optional. Comma-separated values.
179
- # @return [Array<(InlineResponse2003, Integer, Hash)>] InlineResponse2003 data, response status code and response headers
179
+ # @return [Array<(InlineResponse2006, Integer, Hash)>] InlineResponse2006 data, response status code and response headers
180
180
  def ddos_protection_event_rule_list_with_http_info(opts = {})
181
181
  if @api_client.config.debugging
182
182
  @api_client.config.logger.debug 'Calling API: DdosProtectionApi.ddos_protection_event_rule_list ...'
@@ -212,7 +212,7 @@ module Fastly
212
212
  post_body = opts[:debug_body]
213
213
 
214
214
  # return_type
215
- return_type = opts[:debug_return_type] || 'InlineResponse2003'
215
+ return_type = opts[:debug_return_type] || 'InlineResponse2006'
216
216
 
217
217
  # auth_names
218
218
  auth_names = opts[:debug_auth_names] || ['token']
@@ -213,7 +213,7 @@ module Fastly
213
213
  # @option opts [Boolean] :verified
214
214
  # @option opts [String] :cursor Cursor value from the &#x60;next_cursor&#x60; field of a previous response, used to retrieve the next page. To request the first page, this should be empty.
215
215
  # @option opts [Integer] :limit Limit how many results are returned. (default to 20)
216
- # @return [InlineResponse2004]
216
+ # @return [InlineResponse2007]
217
217
  def list_dm_domains(opts = {})
218
218
  data, _status_code, _headers = list_dm_domains_with_http_info(opts)
219
219
  data
@@ -228,7 +228,7 @@ module Fastly
228
228
  # @option opts [Boolean] :verified
229
229
  # @option opts [String] :cursor Cursor value from the &#x60;next_cursor&#x60; field of a previous response, used to retrieve the next page. To request the first page, this should be empty.
230
230
  # @option opts [Integer] :limit Limit how many results are returned. (default to 20)
231
- # @return [Array<(InlineResponse2004, Integer, Hash)>] InlineResponse2004 data, response status code and response headers
231
+ # @return [Array<(InlineResponse2007, Integer, Hash)>] InlineResponse2007 data, response status code and response headers
232
232
  def list_dm_domains_with_http_info(opts = {})
233
233
  if @api_client.config.debugging
234
234
  @api_client.config.logger.debug 'Calling API: DmDomainsApi.list_dm_domains ...'
@@ -267,7 +267,7 @@ module Fastly
267
267
  post_body = opts[:debug_body]
268
268
 
269
269
  # return_type
270
- return_type = opts[:debug_return_type] || 'InlineResponse2004'
270
+ return_type = opts[:debug_return_type] || 'InlineResponse2007'
271
271
 
272
272
  # auth_names
273
273
  auth_names = opts[:debug_auth_names] || ['token']
@@ -68,7 +68,7 @@ module Fastly
68
68
  if @api_client.config.client_side_validation && opts[:'group_by'] && !allowable_values.include?(opts[:'group_by'])
69
69
  fail ArgumentError, "invalid value for \"group_by\", must be one of #{allowable_values}"
70
70
  end
71
- allowable_values = ["usa", "europe", "asia", "asia_india", "asia_southkorea", "africa_std", "southamerica_std"]
71
+ allowable_values = ["africa_std", "anzac", "asia", "asia_india", "asia_southkorea", "europe", "mexico", "southamerica_std", "usa"]
72
72
  if @api_client.config.client_side_validation && opts[:'region'] && !allowable_values.include?(opts[:'region'])
73
73
  fail ArgumentError, "invalid value for \"region\", must be one of #{allowable_values}"
74
74
  end
@@ -19,7 +19,7 @@ module Fastly
19
19
  end
20
20
  # List domain-ownerships
21
21
  # List all domain-ownerships.
22
- # @return [InlineResponse2005]
22
+ # @return [InlineResponse2008]
23
23
  def list_domain_ownerships(opts = {})
24
24
  data, _status_code, _headers = list_domain_ownerships_with_http_info(opts)
25
25
  data
@@ -27,7 +27,7 @@ module Fastly
27
27
 
28
28
  # List domain-ownerships
29
29
  # List all domain-ownerships.
30
- # @return [Array<(InlineResponse2005, Integer, Hash)>] InlineResponse2005 data, response status code and response headers
30
+ # @return [Array<(InlineResponse2008, Integer, Hash)>] InlineResponse2008 data, response status code and response headers
31
31
  def list_domain_ownerships_with_http_info(opts = {})
32
32
  if @api_client.config.debugging
33
33
  @api_client.config.logger.debug 'Calling API: DomainOwnershipsApi.list_domain_ownerships ...'
@@ -51,7 +51,7 @@ module Fastly
51
51
  post_body = opts[:debug_body]
52
52
 
53
53
  # return_type
54
- return_type = opts[:debug_return_type] || 'InlineResponse2005'
54
+ return_type = opts[:debug_return_type] || 'InlineResponse2008'
55
55
 
56
56
  # auth_names
57
57
  auth_names = opts[:debug_auth_names] || ['token']
@@ -0,0 +1,163 @@
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 DomainResearchApi
15
+ attr_accessor :api_client
16
+
17
+ def initialize(api_client = ApiClient.default)
18
+ @api_client = api_client
19
+ end
20
+ # Domain status
21
+ # The `Status` method checks the availability status of a single domain name.
22
+ # @option opts [String] :domain (required)
23
+ # @option opts [String] :scope
24
+ # @return [Status]
25
+ def domain_status(opts = {})
26
+ data, _status_code, _headers = domain_status_with_http_info(opts)
27
+ data
28
+ end
29
+
30
+ # Domain status
31
+ # The &#x60;Status&#x60; method checks the availability status of a single domain name.
32
+ # @option opts [String] :domain (required)
33
+ # @option opts [String] :scope
34
+ # @return [Array<(Status, Integer, Hash)>] Status data, response status code and response headers
35
+ def domain_status_with_http_info(opts = {})
36
+ if @api_client.config.debugging
37
+ @api_client.config.logger.debug 'Calling API: DomainResearchApi.domain_status ...'
38
+ end
39
+ # unbox the parameters from the hash
40
+ domain = opts[:'domain']
41
+ # verify the required parameter 'domain' is set
42
+ if @api_client.config.client_side_validation && domain.nil?
43
+ fail ArgumentError, "Missing the required parameter 'domain' when calling DomainResearchApi.domain_status"
44
+ end
45
+ # resource path
46
+ local_var_path = '/domain-management/v1/tools/status'
47
+
48
+ # query parameters
49
+ query_params = opts[:query_params] || {}
50
+ query_params[:'domain'] = domain
51
+ query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
52
+
53
+ # header parameters
54
+ header_params = opts[:header_params] || {}
55
+ # HTTP header 'Accept' (if needed)
56
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
57
+
58
+ # form parameters
59
+ form_params = opts[:form_params] || {}
60
+
61
+ # http body (model)
62
+ post_body = opts[:debug_body]
63
+
64
+ # return_type
65
+ return_type = opts[:debug_return_type] || 'Status'
66
+
67
+ # auth_names
68
+ auth_names = opts[:debug_auth_names] || ['token']
69
+
70
+ new_options = opts.merge(
71
+ :operation => :"DomainResearchApi.domain_status",
72
+ :header_params => header_params,
73
+ :query_params => query_params,
74
+ :form_params => form_params,
75
+ :body => post_body,
76
+ :auth_names => auth_names,
77
+ :return_type => return_type
78
+ )
79
+
80
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
81
+ if @api_client.config.debugging
82
+ @api_client.config.logger.debug "API called: DomainResearchApi#domain_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
83
+ end
84
+ return data, status_code, headers
85
+ end
86
+
87
+ # Suggest domains
88
+ # The `Suggest` method performs a real-time query of the search term(s) against the [known zone database](http://zonedb.org), making recommendations, stemming, and applying Unicode folding, IDN normalization, registrar supported-zone restrictions, and other refinements. **Note:** `Suggest` method responses do not include domain availability status.
89
+ # @option opts [String] :query (required)
90
+ # @option opts [String] :defaults
91
+ # @option opts [String] :keywords
92
+ # @option opts [String] :location
93
+ # @option opts [String] :vendor
94
+ # @return [InlineResponse2009]
95
+ def suggest_domains(opts = {})
96
+ data, _status_code, _headers = suggest_domains_with_http_info(opts)
97
+ data
98
+ end
99
+
100
+ # Suggest domains
101
+ # The &#x60;Suggest&#x60; method performs a real-time query of the search term(s) against the [known zone database](http://zonedb.org), making recommendations, stemming, and applying Unicode folding, IDN normalization, registrar supported-zone restrictions, and other refinements. **Note:** &#x60;Suggest&#x60; method responses do not include domain availability status.
102
+ # @option opts [String] :query (required)
103
+ # @option opts [String] :defaults
104
+ # @option opts [String] :keywords
105
+ # @option opts [String] :location
106
+ # @option opts [String] :vendor
107
+ # @return [Array<(InlineResponse2009, Integer, Hash)>] InlineResponse2009 data, response status code and response headers
108
+ def suggest_domains_with_http_info(opts = {})
109
+ if @api_client.config.debugging
110
+ @api_client.config.logger.debug 'Calling API: DomainResearchApi.suggest_domains ...'
111
+ end
112
+ # unbox the parameters from the hash
113
+ query = opts[:'query']
114
+ # verify the required parameter 'query' is set
115
+ if @api_client.config.client_side_validation && query.nil?
116
+ fail ArgumentError, "Missing the required parameter 'query' when calling DomainResearchApi.suggest_domains"
117
+ end
118
+ # resource path
119
+ local_var_path = '/domain-management/v1/tools/suggest'
120
+
121
+ # query parameters
122
+ query_params = opts[:query_params] || {}
123
+ query_params[:'query'] = query
124
+ query_params[:'defaults'] = opts[:'defaults'] if !opts[:'defaults'].nil?
125
+ query_params[:'keywords'] = opts[:'keywords'] if !opts[:'keywords'].nil?
126
+ query_params[:'location'] = opts[:'location'] if !opts[:'location'].nil?
127
+ query_params[:'vendor'] = opts[:'vendor'] if !opts[:'vendor'].nil?
128
+
129
+ # header parameters
130
+ header_params = opts[:header_params] || {}
131
+ # HTTP header 'Accept' (if needed)
132
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
133
+
134
+ # form parameters
135
+ form_params = opts[:form_params] || {}
136
+
137
+ # http body (model)
138
+ post_body = opts[:debug_body]
139
+
140
+ # return_type
141
+ return_type = opts[:debug_return_type] || 'InlineResponse2009'
142
+
143
+ # auth_names
144
+ auth_names = opts[:debug_auth_names] || ['token']
145
+
146
+ new_options = opts.merge(
147
+ :operation => :"DomainResearchApi.suggest_domains",
148
+ :header_params => header_params,
149
+ :query_params => query_params,
150
+ :form_params => form_params,
151
+ :body => post_body,
152
+ :auth_names => auth_names,
153
+ :return_type => return_type
154
+ )
155
+
156
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
157
+ if @api_client.config.debugging
158
+ @api_client.config.logger.debug "API called: DomainResearchApi#suggest_domains\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
159
+ end
160
+ return data, status_code, headers
161
+ end
162
+ end
163
+ end
@@ -23,6 +23,7 @@ module Fastly
23
23
  # @option opts [String] :to Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as &#x60;from&#x60;. (default to 'now')
24
24
  # @option opts [String] :by Duration of sample windows. One of: * &#x60;hour&#x60; - Group data by hour. * &#x60;minute&#x60; - Group data by minute. * &#x60;day&#x60; - Group data by day. (default to 'day')
25
25
  # @option opts [String] :region Limit query to a specific geographic region. One of: * &#x60;usa&#x60; - North America. * &#x60;europe&#x60; - Europe. * &#x60;anzac&#x60; - Australia and New Zealand. * &#x60;asia&#x60; - Asia. * &#x60;asia_india&#x60; - India. * &#x60;asia_southkorea&#x60; - South Korea. * &#x60;africa_std&#x60; - Africa. * &#x60;mexico&#x60; - Mexico. * &#x60;southamerica_std&#x60; - South America.
26
+ # @option opts [String] :datacenter Limit query to one or more Fastly POPs. For multiple POPs use a comma-seperated list of POPs. These must be all uppercase and be valid codes. A full list of POPs can be obtained from the [POPs endpoint](https://www.fastly.com/documentation/reference/api/utils/pops/).
26
27
  # @option opts [String] :services Limit the query to only the specified, comma-separated list of services.
27
28
  # @return [HistoricalStatsByServiceResponse]
28
29
  def get_hist_stats(opts = {})
@@ -36,6 +37,7 @@ module Fastly
36
37
  # @option opts [String] :to Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as &#x60;from&#x60;. (default to 'now')
37
38
  # @option opts [String] :by Duration of sample windows. One of: * &#x60;hour&#x60; - Group data by hour. * &#x60;minute&#x60; - Group data by minute. * &#x60;day&#x60; - Group data by day. (default to 'day')
38
39
  # @option opts [String] :region Limit query to a specific geographic region. One of: * &#x60;usa&#x60; - North America. * &#x60;europe&#x60; - Europe. * &#x60;anzac&#x60; - Australia and New Zealand. * &#x60;asia&#x60; - Asia. * &#x60;asia_india&#x60; - India. * &#x60;asia_southkorea&#x60; - South Korea. * &#x60;africa_std&#x60; - Africa. * &#x60;mexico&#x60; - Mexico. * &#x60;southamerica_std&#x60; - South America.
40
+ # @option opts [String] :datacenter Limit query to one or more Fastly POPs. For multiple POPs use a comma-seperated list of POPs. These must be all uppercase and be valid codes. A full list of POPs can be obtained from the [POPs endpoint](https://www.fastly.com/documentation/reference/api/utils/pops/).
39
41
  # @option opts [String] :services Limit the query to only the specified, comma-separated list of services.
40
42
  # @return [Array<(HistoricalStatsByServiceResponse, Integer, Hash)>] HistoricalStatsByServiceResponse data, response status code and response headers
41
43
  def get_hist_stats_with_http_info(opts = {})
@@ -60,6 +62,7 @@ module Fastly
60
62
  query_params[:'to'] = opts[:'to'] if !opts[:'to'].nil?
61
63
  query_params[:'by'] = opts[:'by'] if !opts[:'by'].nil?
62
64
  query_params[:'region'] = opts[:'region'] if !opts[:'region'].nil?
65
+ query_params[:'datacenter'] = opts[:'datacenter'] if !opts[:'datacenter'].nil?
63
66
  query_params[:'services'] = opts[:'services'] if !opts[:'services'].nil?
64
67
 
65
68
  # header parameters
@@ -179,6 +182,7 @@ module Fastly
179
182
  # @option opts [String] :to Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as &#x60;from&#x60;. (default to 'now')
180
183
  # @option opts [String] :by Duration of sample windows. One of: * &#x60;hour&#x60; - Group data by hour. * &#x60;minute&#x60; - Group data by minute. * &#x60;day&#x60; - Group data by day. (default to 'day')
181
184
  # @option opts [String] :region Limit query to a specific geographic region. One of: * &#x60;usa&#x60; - North America. * &#x60;europe&#x60; - Europe. * &#x60;anzac&#x60; - Australia and New Zealand. * &#x60;asia&#x60; - Asia. * &#x60;asia_india&#x60; - India. * &#x60;asia_southkorea&#x60; - South Korea. * &#x60;africa_std&#x60; - Africa. * &#x60;mexico&#x60; - Mexico. * &#x60;southamerica_std&#x60; - South America.
185
+ # @option opts [String] :datacenter Limit query to one or more Fastly POPs. For multiple POPs use a comma-seperated list of POPs. These must be all uppercase and be valid codes. A full list of POPs can be obtained from the [POPs endpoint](https://www.fastly.com/documentation/reference/api/utils/pops/).
182
186
  # @return [HistoricalStatsByServiceResponse]
183
187
  def get_hist_stats_field(opts = {})
184
188
  data, _status_code, _headers = get_hist_stats_field_with_http_info(opts)
@@ -192,6 +196,7 @@ module Fastly
192
196
  # @option opts [String] :to Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as &#x60;from&#x60;. (default to 'now')
193
197
  # @option opts [String] :by Duration of sample windows. One of: * &#x60;hour&#x60; - Group data by hour. * &#x60;minute&#x60; - Group data by minute. * &#x60;day&#x60; - Group data by day. (default to 'day')
194
198
  # @option opts [String] :region Limit query to a specific geographic region. One of: * &#x60;usa&#x60; - North America. * &#x60;europe&#x60; - Europe. * &#x60;anzac&#x60; - Australia and New Zealand. * &#x60;asia&#x60; - Asia. * &#x60;asia_india&#x60; - India. * &#x60;asia_southkorea&#x60; - South Korea. * &#x60;africa_std&#x60; - Africa. * &#x60;mexico&#x60; - Mexico. * &#x60;southamerica_std&#x60; - South America.
199
+ # @option opts [String] :datacenter Limit query to one or more Fastly POPs. For multiple POPs use a comma-seperated list of POPs. These must be all uppercase and be valid codes. A full list of POPs can be obtained from the [POPs endpoint](https://www.fastly.com/documentation/reference/api/utils/pops/).
195
200
  # @return [Array<(HistoricalStatsByServiceResponse, Integer, Hash)>] HistoricalStatsByServiceResponse data, response status code and response headers
196
201
  def get_hist_stats_field_with_http_info(opts = {})
197
202
  if @api_client.config.debugging
@@ -220,6 +225,7 @@ module Fastly
220
225
  query_params[:'to'] = opts[:'to'] if !opts[:'to'].nil?
221
226
  query_params[:'by'] = opts[:'by'] if !opts[:'by'].nil?
222
227
  query_params[:'region'] = opts[:'region'] if !opts[:'region'].nil?
228
+ query_params[:'datacenter'] = opts[:'datacenter'] if !opts[:'datacenter'].nil?
223
229
 
224
230
  # header parameters
225
231
  header_params = opts[:header_params] || {}
@@ -262,6 +268,7 @@ module Fastly
262
268
  # @option opts [String] :to Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as &#x60;from&#x60;. (default to 'now')
263
269
  # @option opts [String] :by Duration of sample windows. One of: * &#x60;hour&#x60; - Group data by hour. * &#x60;minute&#x60; - Group data by minute. * &#x60;day&#x60; - Group data by day. (default to 'day')
264
270
  # @option opts [String] :region Limit query to a specific geographic region. One of: * &#x60;usa&#x60; - North America. * &#x60;europe&#x60; - Europe. * &#x60;anzac&#x60; - Australia and New Zealand. * &#x60;asia&#x60; - Asia. * &#x60;asia_india&#x60; - India. * &#x60;asia_southkorea&#x60; - South Korea. * &#x60;africa_std&#x60; - Africa. * &#x60;mexico&#x60; - Mexico. * &#x60;southamerica_std&#x60; - South America.
271
+ # @option opts [String] :datacenter Limit query to one or more Fastly POPs. For multiple POPs use a comma-seperated list of POPs. These must be all uppercase and be valid codes. A full list of POPs can be obtained from the [POPs endpoint](https://www.fastly.com/documentation/reference/api/utils/pops/).
265
272
  # @return [HistoricalStatsAggregatedResponse]
266
273
  def get_hist_stats_service(opts = {})
267
274
  data, _status_code, _headers = get_hist_stats_service_with_http_info(opts)
@@ -275,6 +282,7 @@ module Fastly
275
282
  # @option opts [String] :to Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as &#x60;from&#x60;. (default to 'now')
276
283
  # @option opts [String] :by Duration of sample windows. One of: * &#x60;hour&#x60; - Group data by hour. * &#x60;minute&#x60; - Group data by minute. * &#x60;day&#x60; - Group data by day. (default to 'day')
277
284
  # @option opts [String] :region Limit query to a specific geographic region. One of: * &#x60;usa&#x60; - North America. * &#x60;europe&#x60; - Europe. * &#x60;anzac&#x60; - Australia and New Zealand. * &#x60;asia&#x60; - Asia. * &#x60;asia_india&#x60; - India. * &#x60;asia_southkorea&#x60; - South Korea. * &#x60;africa_std&#x60; - Africa. * &#x60;mexico&#x60; - Mexico. * &#x60;southamerica_std&#x60; - South America.
285
+ # @option opts [String] :datacenter Limit query to one or more Fastly POPs. For multiple POPs use a comma-seperated list of POPs. These must be all uppercase and be valid codes. A full list of POPs can be obtained from the [POPs endpoint](https://www.fastly.com/documentation/reference/api/utils/pops/).
278
286
  # @return [Array<(HistoricalStatsAggregatedResponse, Integer, Hash)>] HistoricalStatsAggregatedResponse data, response status code and response headers
279
287
  def get_hist_stats_service_with_http_info(opts = {})
280
288
  if @api_client.config.debugging
@@ -303,6 +311,7 @@ module Fastly
303
311
  query_params[:'to'] = opts[:'to'] if !opts[:'to'].nil?
304
312
  query_params[:'by'] = opts[:'by'] if !opts[:'by'].nil?
305
313
  query_params[:'region'] = opts[:'region'] if !opts[:'region'].nil?
314
+ query_params[:'datacenter'] = opts[:'datacenter'] if !opts[:'datacenter'].nil?
306
315
 
307
316
  # header parameters
308
317
  header_params = opts[:header_params] || {}
@@ -346,6 +355,7 @@ module Fastly
346
355
  # @option opts [String] :to Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as &#x60;from&#x60;. (default to 'now')
347
356
  # @option opts [String] :by Duration of sample windows. One of: * &#x60;hour&#x60; - Group data by hour. * &#x60;minute&#x60; - Group data by minute. * &#x60;day&#x60; - Group data by day. (default to 'day')
348
357
  # @option opts [String] :region Limit query to a specific geographic region. One of: * &#x60;usa&#x60; - North America. * &#x60;europe&#x60; - Europe. * &#x60;anzac&#x60; - Australia and New Zealand. * &#x60;asia&#x60; - Asia. * &#x60;asia_india&#x60; - India. * &#x60;asia_southkorea&#x60; - South Korea. * &#x60;africa_std&#x60; - Africa. * &#x60;mexico&#x60; - Mexico. * &#x60;southamerica_std&#x60; - South America.
358
+ # @option opts [String] :datacenter Limit query to one or more Fastly POPs. For multiple POPs use a comma-seperated list of POPs. These must be all uppercase and be valid codes. A full list of POPs can be obtained from the [POPs endpoint](https://www.fastly.com/documentation/reference/api/utils/pops/).
349
359
  # @return [HistoricalStatsAggregatedResponse]
350
360
  def get_hist_stats_service_field(opts = {})
351
361
  data, _status_code, _headers = get_hist_stats_service_field_with_http_info(opts)
@@ -360,6 +370,7 @@ module Fastly
360
370
  # @option opts [String] :to Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as &#x60;from&#x60;. (default to 'now')
361
371
  # @option opts [String] :by Duration of sample windows. One of: * &#x60;hour&#x60; - Group data by hour. * &#x60;minute&#x60; - Group data by minute. * &#x60;day&#x60; - Group data by day. (default to 'day')
362
372
  # @option opts [String] :region Limit query to a specific geographic region. One of: * &#x60;usa&#x60; - North America. * &#x60;europe&#x60; - Europe. * &#x60;anzac&#x60; - Australia and New Zealand. * &#x60;asia&#x60; - Asia. * &#x60;asia_india&#x60; - India. * &#x60;asia_southkorea&#x60; - South Korea. * &#x60;africa_std&#x60; - Africa. * &#x60;mexico&#x60; - Mexico. * &#x60;southamerica_std&#x60; - South America.
373
+ # @option opts [String] :datacenter Limit query to one or more Fastly POPs. For multiple POPs use a comma-seperated list of POPs. These must be all uppercase and be valid codes. A full list of POPs can be obtained from the [POPs endpoint](https://www.fastly.com/documentation/reference/api/utils/pops/).
363
374
  # @return [Array<(HistoricalStatsAggregatedResponse, Integer, Hash)>] HistoricalStatsAggregatedResponse data, response status code and response headers
364
375
  def get_hist_stats_service_field_with_http_info(opts = {})
365
376
  if @api_client.config.debugging
@@ -393,6 +404,7 @@ module Fastly
393
404
  query_params[:'to'] = opts[:'to'] if !opts[:'to'].nil?
394
405
  query_params[:'by'] = opts[:'by'] if !opts[:'by'].nil?
395
406
  query_params[:'region'] = opts[:'region'] if !opts[:'region'].nil?
407
+ query_params[:'datacenter'] = opts[:'datacenter'] if !opts[:'datacenter'].nil?
396
408
 
397
409
  # header parameters
398
410
  header_params = opts[:header_params] || {}
@@ -20,7 +20,7 @@ module Fastly
20
20
  # Create a KV store.
21
21
  # Create a KV store.
22
22
  # @option opts [String] :location
23
- # @option opts [KvStoreRequestCreate] :kv_store_request_create
23
+ # @option opts [KvStoreRequestCreateOrUpdate] :kv_store_request_create_or_update
24
24
  # @return [KvStoreDetails]
25
25
  def kv_store_create(opts = {})
26
26
  data, _status_code, _headers = kv_store_create_with_http_info(opts)
@@ -30,7 +30,7 @@ module Fastly
30
30
  # Create a KV store.
31
31
  # Create a KV store.
32
32
  # @option opts [String] :location
33
- # @option opts [KvStoreRequestCreate] :kv_store_request_create
33
+ # @option opts [KvStoreRequestCreateOrUpdate] :kv_store_request_create_or_update
34
34
  # @return [Array<(KvStoreDetails, Integer, Hash)>] KvStoreDetails data, response status code and response headers
35
35
  def kv_store_create_with_http_info(opts = {})
36
36
  if @api_client.config.debugging
@@ -62,7 +62,7 @@ module Fastly
62
62
  form_params = opts[:form_params] || {}
63
63
 
64
64
  # http body (model)
65
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'kv_store_request_create'])
65
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'kv_store_request_create_or_update'])
66
66
 
67
67
  # return_type
68
68
  return_type = opts[:debug_return_type] || 'KvStoreDetails'
@@ -216,7 +216,7 @@ module Fastly
216
216
  # @option opts [String] :cursor
217
217
  # @option opts [Integer] :limit (default to 1000)
218
218
  # @option opts [String] :name Returns a one-element array containing the details for the named KV store.
219
- # @return [InlineResponse2006]
219
+ # @return [InlineResponse20010]
220
220
  def kv_store_list(opts = {})
221
221
  data, _status_code, _headers = kv_store_list_with_http_info(opts)
222
222
  data
@@ -227,7 +227,7 @@ module Fastly
227
227
  # @option opts [String] :cursor
228
228
  # @option opts [Integer] :limit (default to 1000)
229
229
  # @option opts [String] :name Returns a one-element array containing the details for the named KV store.
230
- # @return [Array<(InlineResponse2006, Integer, Hash)>] InlineResponse2006 data, response status code and response headers
230
+ # @return [Array<(InlineResponse20010, Integer, Hash)>] InlineResponse20010 data, response status code and response headers
231
231
  def kv_store_list_with_http_info(opts = {})
232
232
  if @api_client.config.debugging
233
233
  @api_client.config.logger.debug 'Calling API: KvStoreApi.kv_store_list ...'
@@ -258,7 +258,7 @@ module Fastly
258
258
  post_body = opts[:debug_body]
259
259
 
260
260
  # return_type
261
- return_type = opts[:debug_return_type] || 'InlineResponse2006'
261
+ return_type = opts[:debug_return_type] || 'InlineResponse20010'
262
262
 
263
263
  # auth_names
264
264
  auth_names = opts[:debug_auth_names] || ['token']
@@ -279,5 +279,73 @@ module Fastly
279
279
  end
280
280
  return data, status_code, headers
281
281
  end
282
+
283
+ # Update a KV store.
284
+ # Update the name of a KV store.
285
+ # @option opts [String] :store_id (required)
286
+ # @option opts [KvStoreRequestCreateOrUpdate] :kv_store_request_create_or_update
287
+ # @return [nil]
288
+ def kv_store_put(opts = {})
289
+ kv_store_put_with_http_info(opts)
290
+ nil
291
+ end
292
+
293
+ # Update a KV store.
294
+ # Update the name of a KV store.
295
+ # @option opts [String] :store_id (required)
296
+ # @option opts [KvStoreRequestCreateOrUpdate] :kv_store_request_create_or_update
297
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
298
+ def kv_store_put_with_http_info(opts = {})
299
+ if @api_client.config.debugging
300
+ @api_client.config.logger.debug 'Calling API: KvStoreApi.kv_store_put ...'
301
+ end
302
+ # unbox the parameters from the hash
303
+ store_id = opts[:'store_id']
304
+ # verify the required parameter 'store_id' is set
305
+ if @api_client.config.client_side_validation && store_id.nil?
306
+ fail ArgumentError, "Missing the required parameter 'store_id' when calling KvStoreApi.kv_store_put"
307
+ end
308
+ # resource path
309
+ local_var_path = '/resources/stores/kv/{store_id}'.sub('{' + 'store_id' + '}', CGI.escape(store_id.to_s))
310
+
311
+ # query parameters
312
+ query_params = opts[:query_params] || {}
313
+
314
+ # header parameters
315
+ header_params = opts[:header_params] || {}
316
+ # HTTP header 'Content-Type'
317
+ content_type = @api_client.select_header_content_type(['application/json'])
318
+ if !content_type.nil?
319
+ header_params['Content-Type'] = content_type
320
+ end
321
+
322
+ # form parameters
323
+ form_params = opts[:form_params] || {}
324
+
325
+ # http body (model)
326
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'kv_store_request_create_or_update'])
327
+
328
+ # return_type
329
+ return_type = opts[:debug_return_type]
330
+
331
+ # auth_names
332
+ auth_names = opts[:debug_auth_names] || ['token']
333
+
334
+ new_options = opts.merge(
335
+ :operation => :"KvStoreApi.kv_store_put",
336
+ :header_params => header_params,
337
+ :query_params => query_params,
338
+ :form_params => form_params,
339
+ :body => post_body,
340
+ :auth_names => auth_names,
341
+ :return_type => return_type
342
+ )
343
+
344
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
345
+ if @api_client.config.debugging
346
+ @api_client.config.logger.debug "API called: KvStoreApi#kv_store_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
347
+ end
348
+ return data, status_code, headers
349
+ end
282
350
  end
283
351
  end
@@ -168,7 +168,7 @@ module Fastly
168
168
  # @option opts [Integer] :limit (default to 100)
169
169
  # @option opts [String] :prefix
170
170
  # @option opts [String] :consistency (default to 'strong')
171
- # @return [InlineResponse2007]
171
+ # @return [InlineResponse20011]
172
172
  def kv_store_list_item_keys(opts = {})
173
173
  data, _status_code, _headers = kv_store_list_item_keys_with_http_info(opts)
174
174
  data
@@ -181,7 +181,7 @@ module Fastly
181
181
  # @option opts [Integer] :limit (default to 100)
182
182
  # @option opts [String] :prefix
183
183
  # @option opts [String] :consistency (default to 'strong')
184
- # @return [Array<(InlineResponse2007, Integer, Hash)>] InlineResponse2007 data, response status code and response headers
184
+ # @return [Array<(InlineResponse20011, Integer, Hash)>] InlineResponse20011 data, response status code and response headers
185
185
  def kv_store_list_item_keys_with_http_info(opts = {})
186
186
  if @api_client.config.debugging
187
187
  @api_client.config.logger.debug 'Calling API: KvStoreItemApi.kv_store_list_item_keys ...'
@@ -222,7 +222,7 @@ module Fastly
222
222
  post_body = opts[:debug_body]
223
223
 
224
224
  # return_type
225
- return_type = opts[:debug_return_type] || 'InlineResponse2007'
225
+ return_type = opts[:debug_return_type] || 'InlineResponse20011'
226
226
 
227
227
  # auth_names
228
228
  auth_names = opts[:debug_auth_names] || ['token']