fastly 14.0.0 → 15.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 (166) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +23 -0
  3. data/Gemfile.lock +1 -1
  4. data/README.md +13 -11
  5. data/docs/ApiDiscoveryResponseBodyGetAllServices.md +13 -0
  6. data/docs/ApiDiscoveryResponseCustomer.md +10 -0
  7. data/docs/ApiDiscoveryResponseCustomerCustomer.md +11 -0
  8. data/docs/ApiDiscoveryResponseEnable.md +12 -0
  9. data/docs/ApiDiscoveryResponseEnabledServices.md +10 -0
  10. data/docs/ApiDiscoveryResponseLinks.md +10 -0
  11. data/docs/ApiDiscoveryResponseLinksGetAllServices.md +10 -0
  12. data/docs/ApiDiscoveryResponseLinksGetAllServicesLinks.md +10 -0
  13. data/docs/ApiDiscoveryResponseLinksLinks.md +10 -0
  14. data/docs/ApiDiscoveryResponseProduct.md +10 -0
  15. data/docs/ApiDiscoveryResponseProductProduct.md +11 -0
  16. data/docs/ApiDiscoveryResponseService.md +10 -0
  17. data/docs/{BotManagementResponseServiceService.md → ApiDiscoveryResponseServiceService.md} +1 -1
  18. data/docs/BotManagementResponseBodyEnable.md +1 -1
  19. data/docs/BotManagementResponseService.md +1 -1
  20. data/docs/BrotliCompressionResponseBodyEnable.md +1 -1
  21. data/docs/BrotliCompressionResponseService.md +1 -1
  22. data/docs/DdosProtectionApi.md +2 -0
  23. data/docs/DdosProtectionResponseConfigure.md +1 -1
  24. data/docs/DdosProtectionResponseEnable.md +1 -1
  25. data/docs/DdosProtectionResponseService.md +1 -1
  26. data/docs/DdosProtectionRuleWithStats.md +23 -0
  27. data/docs/DdosProtectionRuleWithStatsAllOf.md +10 -0
  28. data/docs/DdosProtectionTrafficStats.md +1 -0
  29. data/docs/DdosProtectionTrafficStatsAllOf.md +1 -0
  30. data/docs/DmDomainsApi.md +220 -0
  31. data/docs/DomainInspectorResponseBodyEnable.md +1 -1
  32. data/docs/DomainInspectorResponseService.md +1 -1
  33. data/docs/DomainOwnershipsApi.md +2 -2
  34. data/docs/FanoutResponseBodyEnable.md +1 -1
  35. data/docs/FanoutResponseService.md +1 -1
  36. data/docs/Healthcheck.md +1 -1
  37. data/docs/HealthcheckApi.md +4 -4
  38. data/docs/HealthcheckResponse.md +1 -1
  39. data/docs/IamRolesApi.md +23 -253
  40. data/docs/IamV1RoleListResponse.md +12 -0
  41. data/docs/IamV1RoleResponse.md +13 -0
  42. data/docs/ImageOptimizerResponseBodyEnable.md +1 -1
  43. data/docs/ImageOptimizerResponseService.md +1 -1
  44. data/docs/InlineResponse20010.md +10 -0
  45. data/docs/InlineResponse2003.md +2 -2
  46. data/docs/InlineResponse2004.md +2 -1
  47. data/docs/InlineResponse2005.md +1 -2
  48. data/docs/InlineResponse2006.md +1 -1
  49. data/docs/InlineResponse2007.md +1 -1
  50. data/docs/InlineResponse2008.md +1 -1
  51. data/docs/InlineResponse2009.md +2 -1
  52. data/docs/InvitationDataAttributes.md +1 -0
  53. data/docs/KvStoreApi.md +2 -2
  54. data/docs/KvStoreItemApi.md +2 -2
  55. data/docs/LogExplorerInsightsResponseBodyEnable.md +1 -1
  56. data/docs/LogExplorerInsightsResponseService.md +1 -1
  57. data/docs/LoggingHttpsAdditional.md +1 -0
  58. data/docs/LoggingHttpsApi.md +4 -0
  59. data/docs/LoggingHttpsResponse.md +1 -0
  60. data/docs/NgwafResponseConfigure.md +1 -1
  61. data/docs/NgwafResponseEnable.md +1 -1
  62. data/docs/NgwafResponseService.md +1 -1
  63. data/docs/OriginInspectorResponseBodyEnable.md +1 -1
  64. data/docs/OriginInspectorResponseService.md +1 -1
  65. data/docs/ProductApiDiscoveryApi.md +163 -0
  66. data/docs/RealtimeEntryAggregated.md +1 -0
  67. data/docs/RealtimeMeasurements.md +1 -0
  68. data/docs/RequestBodyForCreate.md +12 -0
  69. data/docs/RequestBodyForUpdate.md +11 -0
  70. data/docs/Results.md +1 -0
  71. data/docs/SchemasUserResponse.md +1 -0
  72. data/docs/SecretStoreApi.md +2 -2
  73. data/docs/SecretStoreItemApi.md +2 -2
  74. data/docs/ServiceAuthorizationsApi.md +2 -2
  75. data/docs/SuccessfulResponseAsObject.md +17 -0
  76. data/docs/SuccessfulResponseAsObjectAllOf.md +15 -0
  77. data/docs/User.md +1 -0
  78. data/docs/UserApi.md +4 -0
  79. data/docs/UserResponse.md +1 -0
  80. data/docs/WebsocketsResponseBodyEnable.md +1 -1
  81. data/docs/WebsocketsResponseService.md +1 -1
  82. data/lib/fastly/api/ddos_protection_api.rb +3 -0
  83. data/lib/fastly/api/dm_domains_api.rb +362 -0
  84. data/lib/fastly/api/domain_ownerships_api.rb +3 -3
  85. data/lib/fastly/api/healthcheck_api.rb +20 -4
  86. data/lib/fastly/api/iam_roles_api.rb +43 -435
  87. data/lib/fastly/api/kv_store_api.rb +3 -3
  88. data/lib/fastly/api/kv_store_item_api.rb +3 -3
  89. data/lib/fastly/api/logging_https_api.rb +6 -0
  90. data/lib/fastly/api/product_api_discovery_api.rb +263 -0
  91. data/lib/fastly/api/secret_store_api.rb +3 -3
  92. data/lib/fastly/api/secret_store_item_api.rb +3 -3
  93. data/lib/fastly/api/service_authorizations_api.rb +3 -3
  94. data/lib/fastly/api/user_api.rb +6 -0
  95. data/lib/fastly/configuration.rb +56 -38
  96. data/lib/fastly/models/api_discovery_response_body_get_all_services.rb +256 -0
  97. data/lib/fastly/models/api_discovery_response_customer.rb +216 -0
  98. data/lib/fastly/models/api_discovery_response_customer_customer.rb +227 -0
  99. data/lib/fastly/models/api_discovery_response_enable.rb +243 -0
  100. data/lib/fastly/models/api_discovery_response_enabled_services.rb +219 -0
  101. data/lib/fastly/models/api_discovery_response_links.rb +216 -0
  102. data/lib/fastly/models/api_discovery_response_links_get_all_services.rb +216 -0
  103. data/lib/fastly/models/api_discovery_response_links_get_all_services_links.rb +217 -0
  104. data/lib/fastly/models/api_discovery_response_links_links.rb +217 -0
  105. data/lib/fastly/models/api_discovery_response_product.rb +216 -0
  106. data/lib/fastly/models/api_discovery_response_product_product.rb +227 -0
  107. data/lib/fastly/models/api_discovery_response_service.rb +216 -0
  108. data/lib/fastly/models/{bot_management_response_service_service.rb → api_discovery_response_service_service.rb} +3 -3
  109. data/lib/fastly/models/bot_management_response_body_enable.rb +1 -1
  110. data/lib/fastly/models/bot_management_response_service.rb +1 -1
  111. data/lib/fastly/models/brotli_compression_response_body_enable.rb +1 -1
  112. data/lib/fastly/models/brotli_compression_response_service.rb +1 -1
  113. data/lib/fastly/models/ddos_protection_response_configure.rb +1 -1
  114. data/lib/fastly/models/ddos_protection_response_enable.rb +1 -1
  115. data/lib/fastly/models/ddos_protection_response_service.rb +1 -1
  116. data/lib/fastly/models/ddos_protection_rule_with_stats.rb +365 -0
  117. data/lib/fastly/models/ddos_protection_rule_with_stats_all_of.rb +216 -0
  118. data/lib/fastly/models/ddos_protection_traffic_stats.rb +20 -4
  119. data/lib/fastly/models/ddos_protection_traffic_stats_all_of.rb +20 -4
  120. data/lib/fastly/models/domain_inspector_response_body_enable.rb +1 -1
  121. data/lib/fastly/models/domain_inspector_response_service.rb +1 -1
  122. data/lib/fastly/models/fanout_response_body_enable.rb +1 -1
  123. data/lib/fastly/models/fanout_response_service.rb +1 -1
  124. data/lib/fastly/models/healthcheck.rb +25 -1
  125. data/lib/fastly/models/healthcheck_response.rb +25 -1
  126. data/lib/fastly/models/iam_v1_role_list_response.rb +240 -0
  127. data/lib/fastly/models/{iam_role_all_of.rb → iam_v1_role_response.rb} +14 -34
  128. data/lib/fastly/models/image_optimizer_response_body_enable.rb +1 -1
  129. data/lib/fastly/models/image_optimizer_response_service.rb +1 -1
  130. data/lib/fastly/models/inline_response20010.rb +218 -0
  131. data/lib/fastly/models/inline_response2003.rb +11 -1
  132. data/lib/fastly/models/inline_response2004.rb +20 -8
  133. data/lib/fastly/models/inline_response2005.rb +8 -18
  134. data/lib/fastly/models/inline_response2006.rb +1 -1
  135. data/lib/fastly/models/inline_response2007.rb +1 -1
  136. data/lib/fastly/models/inline_response2008.rb +1 -1
  137. data/lib/fastly/models/inline_response2009.rb +13 -4
  138. data/lib/fastly/models/invitation_data_attributes.rb +12 -1
  139. data/lib/fastly/models/log_explorer_insights_response_body_enable.rb +1 -1
  140. data/lib/fastly/models/log_explorer_insights_response_service.rb +1 -1
  141. data/lib/fastly/models/logging_https_additional.rb +16 -4
  142. data/lib/fastly/models/logging_https_response.rb +13 -1
  143. data/lib/fastly/models/ngwaf_response_configure.rb +1 -1
  144. data/lib/fastly/models/ngwaf_response_enable.rb +1 -1
  145. data/lib/fastly/models/ngwaf_response_service.rb +1 -1
  146. data/lib/fastly/models/origin_inspector_response_body_enable.rb +1 -1
  147. data/lib/fastly/models/origin_inspector_response_service.rb +1 -1
  148. data/lib/fastly/models/realtime_entry_aggregated.rb +14 -4
  149. data/lib/fastly/models/realtime_measurements.rb +14 -4
  150. data/lib/fastly/models/request_body_for_create.rb +244 -0
  151. data/lib/fastly/models/request_body_for_update.rb +229 -0
  152. data/lib/fastly/models/results.rb +11 -1
  153. data/lib/fastly/models/role_user.rb +2 -0
  154. data/lib/fastly/models/schemas_user_response.rb +13 -1
  155. data/lib/fastly/models/{iam_role.rb → successful_response_as_object.rb} +37 -35
  156. data/lib/fastly/models/successful_response_as_object_all_of.rb +268 -0
  157. data/lib/fastly/models/user.rb +13 -1
  158. data/lib/fastly/models/user_response.rb +13 -1
  159. data/lib/fastly/models/websockets_response_body_enable.rb +1 -1
  160. data/lib/fastly/models/websockets_response_service.rb +1 -1
  161. data/lib/fastly/version.rb +1 -1
  162. data/lib/fastly.rb +24 -3
  163. data/sig.json +1 -1
  164. metadata +50 -8
  165. data/docs/IamRole.md +0 -17
  166. data/docs/IamRoleAllOf.md +0 -15
@@ -0,0 +1,362 @@
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 DmDomainsApi
15
+ attr_accessor :api_client
16
+
17
+ def initialize(api_client = ApiClient.default)
18
+ @api_client = api_client
19
+ end
20
+ # Create a domain
21
+ # Create a domain
22
+ # @option opts [RequestBodyForCreate] :request_body_for_create
23
+ # @return [SuccessfulResponseAsObject]
24
+ def create_dm_domain(opts = {})
25
+ data, _status_code, _headers = create_dm_domain_with_http_info(opts)
26
+ data
27
+ end
28
+
29
+ # Create a domain
30
+ # Create a domain
31
+ # @option opts [RequestBodyForCreate] :request_body_for_create
32
+ # @return [Array<(SuccessfulResponseAsObject, Integer, Hash)>] SuccessfulResponseAsObject data, response status code and response headers
33
+ def create_dm_domain_with_http_info(opts = {})
34
+ if @api_client.config.debugging
35
+ @api_client.config.logger.debug 'Calling API: DmDomainsApi.create_dm_domain ...'
36
+ end
37
+ # unbox the parameters from the hash
38
+ # resource path
39
+ local_var_path = '/domain-management/v1/domains'
40
+
41
+ # query parameters
42
+ query_params = opts[:query_params] || {}
43
+
44
+ # header parameters
45
+ header_params = opts[:header_params] || {}
46
+ # HTTP header 'Accept' (if needed)
47
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
48
+ # HTTP header 'Content-Type'
49
+ content_type = @api_client.select_header_content_type(['application/json'])
50
+ if !content_type.nil?
51
+ header_params['Content-Type'] = content_type
52
+ end
53
+
54
+ # form parameters
55
+ form_params = opts[:form_params] || {}
56
+
57
+ # http body (model)
58
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'request_body_for_create'])
59
+
60
+ # return_type
61
+ return_type = opts[:debug_return_type] || 'SuccessfulResponseAsObject'
62
+
63
+ # auth_names
64
+ auth_names = opts[:debug_auth_names] || ['token']
65
+
66
+ new_options = opts.merge(
67
+ :operation => :"DmDomainsApi.create_dm_domain",
68
+ :header_params => header_params,
69
+ :query_params => query_params,
70
+ :form_params => form_params,
71
+ :body => post_body,
72
+ :auth_names => auth_names,
73
+ :return_type => return_type
74
+ )
75
+
76
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
77
+ if @api_client.config.debugging
78
+ @api_client.config.logger.debug "API called: DmDomainsApi#create_dm_domain\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
79
+ end
80
+ return data, status_code, headers
81
+ end
82
+
83
+ # Delete a domain
84
+ # Delete a domain
85
+ # @option opts [String] :domain_id (required)
86
+ # @return [nil]
87
+ def delete_dm_domain(opts = {})
88
+ delete_dm_domain_with_http_info(opts)
89
+ nil
90
+ end
91
+
92
+ # Delete a domain
93
+ # Delete a domain
94
+ # @option opts [String] :domain_id (required)
95
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
96
+ def delete_dm_domain_with_http_info(opts = {})
97
+ if @api_client.config.debugging
98
+ @api_client.config.logger.debug 'Calling API: DmDomainsApi.delete_dm_domain ...'
99
+ end
100
+ # unbox the parameters from the hash
101
+ domain_id = opts[:'domain_id']
102
+ # verify the required parameter 'domain_id' is set
103
+ if @api_client.config.client_side_validation && domain_id.nil?
104
+ fail ArgumentError, "Missing the required parameter 'domain_id' when calling DmDomainsApi.delete_dm_domain"
105
+ end
106
+ # resource path
107
+ local_var_path = '/domain-management/v1/domains/{domain_id}'.sub('{' + 'domain_id' + '}', CGI.escape(domain_id.to_s))
108
+
109
+ # query parameters
110
+ query_params = opts[:query_params] || {}
111
+
112
+ # header parameters
113
+ header_params = opts[:header_params] || {}
114
+
115
+ # form parameters
116
+ form_params = opts[:form_params] || {}
117
+
118
+ # http body (model)
119
+ post_body = opts[:debug_body]
120
+
121
+ # return_type
122
+ return_type = opts[:debug_return_type]
123
+
124
+ # auth_names
125
+ auth_names = opts[:debug_auth_names] || ['token']
126
+
127
+ new_options = opts.merge(
128
+ :operation => :"DmDomainsApi.delete_dm_domain",
129
+ :header_params => header_params,
130
+ :query_params => query_params,
131
+ :form_params => form_params,
132
+ :body => post_body,
133
+ :auth_names => auth_names,
134
+ :return_type => return_type
135
+ )
136
+
137
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
138
+ if @api_client.config.debugging
139
+ @api_client.config.logger.debug "API called: DmDomainsApi#delete_dm_domain\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
140
+ end
141
+ return data, status_code, headers
142
+ end
143
+
144
+ # Get a domain
145
+ # Show a domain
146
+ # @option opts [String] :domain_id (required)
147
+ # @return [SuccessfulResponseAsObject]
148
+ def get_dm_domain(opts = {})
149
+ data, _status_code, _headers = get_dm_domain_with_http_info(opts)
150
+ data
151
+ end
152
+
153
+ # Get a domain
154
+ # Show a domain
155
+ # @option opts [String] :domain_id (required)
156
+ # @return [Array<(SuccessfulResponseAsObject, Integer, Hash)>] SuccessfulResponseAsObject data, response status code and response headers
157
+ def get_dm_domain_with_http_info(opts = {})
158
+ if @api_client.config.debugging
159
+ @api_client.config.logger.debug 'Calling API: DmDomainsApi.get_dm_domain ...'
160
+ end
161
+ # unbox the parameters from the hash
162
+ domain_id = opts[:'domain_id']
163
+ # verify the required parameter 'domain_id' is set
164
+ if @api_client.config.client_side_validation && domain_id.nil?
165
+ fail ArgumentError, "Missing the required parameter 'domain_id' when calling DmDomainsApi.get_dm_domain"
166
+ end
167
+ # resource path
168
+ local_var_path = '/domain-management/v1/domains/{domain_id}'.sub('{' + 'domain_id' + '}', CGI.escape(domain_id.to_s))
169
+
170
+ # query parameters
171
+ query_params = opts[:query_params] || {}
172
+
173
+ # header parameters
174
+ header_params = opts[:header_params] || {}
175
+ # HTTP header 'Accept' (if needed)
176
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
177
+
178
+ # form parameters
179
+ form_params = opts[:form_params] || {}
180
+
181
+ # http body (model)
182
+ post_body = opts[:debug_body]
183
+
184
+ # return_type
185
+ return_type = opts[:debug_return_type] || 'SuccessfulResponseAsObject'
186
+
187
+ # auth_names
188
+ auth_names = opts[:debug_auth_names] || ['token']
189
+
190
+ new_options = opts.merge(
191
+ :operation => :"DmDomainsApi.get_dm_domain",
192
+ :header_params => header_params,
193
+ :query_params => query_params,
194
+ :form_params => form_params,
195
+ :body => post_body,
196
+ :auth_names => auth_names,
197
+ :return_type => return_type
198
+ )
199
+
200
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
201
+ if @api_client.config.debugging
202
+ @api_client.config.logger.debug "API called: DmDomainsApi#get_dm_domain\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
203
+ end
204
+ return data, status_code, headers
205
+ end
206
+
207
+ # List domains
208
+ # List all domains
209
+ # @option opts [String] :fqdn
210
+ # @option opts [String] :service_id Filter results based on a service_id.
211
+ # @option opts [String] :sort The order in which to list the results. (default to 'fqdn')
212
+ # @option opts [Boolean] :activated
213
+ # @option opts [Boolean] :verified
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
+ # @option opts [Integer] :limit Limit how many results are returned. (default to 20)
216
+ # @return [InlineResponse2004]
217
+ def list_dm_domains(opts = {})
218
+ data, _status_code, _headers = list_dm_domains_with_http_info(opts)
219
+ data
220
+ end
221
+
222
+ # List domains
223
+ # List all domains
224
+ # @option opts [String] :fqdn
225
+ # @option opts [String] :service_id Filter results based on a service_id.
226
+ # @option opts [String] :sort The order in which to list the results. (default to 'fqdn')
227
+ # @option opts [Boolean] :activated
228
+ # @option opts [Boolean] :verified
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
+ # @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
232
+ def list_dm_domains_with_http_info(opts = {})
233
+ if @api_client.config.debugging
234
+ @api_client.config.logger.debug 'Calling API: DmDomainsApi.list_dm_domains ...'
235
+ end
236
+ # unbox the parameters from the hash
237
+ allowable_values = ["fqdn", "-fqdn"]
238
+ if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
239
+ fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
240
+ end
241
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
242
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DmDomainsApi.list_dm_domains, must be smaller than or equal to 100.'
243
+ end
244
+
245
+ # resource path
246
+ local_var_path = '/domain-management/v1/domains'
247
+
248
+ # query parameters
249
+ query_params = opts[:query_params] || {}
250
+ query_params[:'fqdn'] = opts[:'fqdn'] if !opts[:'fqdn'].nil?
251
+ query_params[:'service_id'] = opts[:'service_id'] if !opts[:'service_id'].nil?
252
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
253
+ query_params[:'activated'] = opts[:'activated'] if !opts[:'activated'].nil?
254
+ query_params[:'verified'] = opts[:'verified'] if !opts[:'verified'].nil?
255
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
256
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
257
+
258
+ # header parameters
259
+ header_params = opts[:header_params] || {}
260
+ # HTTP header 'Accept' (if needed)
261
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
262
+
263
+ # form parameters
264
+ form_params = opts[:form_params] || {}
265
+
266
+ # http body (model)
267
+ post_body = opts[:debug_body]
268
+
269
+ # return_type
270
+ return_type = opts[:debug_return_type] || 'InlineResponse2004'
271
+
272
+ # auth_names
273
+ auth_names = opts[:debug_auth_names] || ['token']
274
+
275
+ new_options = opts.merge(
276
+ :operation => :"DmDomainsApi.list_dm_domains",
277
+ :header_params => header_params,
278
+ :query_params => query_params,
279
+ :form_params => form_params,
280
+ :body => post_body,
281
+ :auth_names => auth_names,
282
+ :return_type => return_type
283
+ )
284
+
285
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
286
+ if @api_client.config.debugging
287
+ @api_client.config.logger.debug "API called: DmDomainsApi#list_dm_domains\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
288
+ end
289
+ return data, status_code, headers
290
+ end
291
+
292
+ # Update a domain
293
+ # Update a domain
294
+ # @option opts [String] :domain_id (required)
295
+ # @option opts [RequestBodyForUpdate] :request_body_for_update
296
+ # @return [SuccessfulResponseAsObject]
297
+ def update_dm_domain(opts = {})
298
+ data, _status_code, _headers = update_dm_domain_with_http_info(opts)
299
+ data
300
+ end
301
+
302
+ # Update a domain
303
+ # Update a domain
304
+ # @option opts [String] :domain_id (required)
305
+ # @option opts [RequestBodyForUpdate] :request_body_for_update
306
+ # @return [Array<(SuccessfulResponseAsObject, Integer, Hash)>] SuccessfulResponseAsObject data, response status code and response headers
307
+ def update_dm_domain_with_http_info(opts = {})
308
+ if @api_client.config.debugging
309
+ @api_client.config.logger.debug 'Calling API: DmDomainsApi.update_dm_domain ...'
310
+ end
311
+ # unbox the parameters from the hash
312
+ domain_id = opts[:'domain_id']
313
+ # verify the required parameter 'domain_id' is set
314
+ if @api_client.config.client_side_validation && domain_id.nil?
315
+ fail ArgumentError, "Missing the required parameter 'domain_id' when calling DmDomainsApi.update_dm_domain"
316
+ end
317
+ # resource path
318
+ local_var_path = '/domain-management/v1/domains/{domain_id}'.sub('{' + 'domain_id' + '}', CGI.escape(domain_id.to_s))
319
+
320
+ # query parameters
321
+ query_params = opts[:query_params] || {}
322
+
323
+ # header parameters
324
+ header_params = opts[:header_params] || {}
325
+ # HTTP header 'Accept' (if needed)
326
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
327
+ # HTTP header 'Content-Type'
328
+ content_type = @api_client.select_header_content_type(['application/json'])
329
+ if !content_type.nil?
330
+ header_params['Content-Type'] = content_type
331
+ end
332
+
333
+ # form parameters
334
+ form_params = opts[:form_params] || {}
335
+
336
+ # http body (model)
337
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'request_body_for_update'])
338
+
339
+ # return_type
340
+ return_type = opts[:debug_return_type] || 'SuccessfulResponseAsObject'
341
+
342
+ # auth_names
343
+ auth_names = opts[:debug_auth_names] || ['token']
344
+
345
+ new_options = opts.merge(
346
+ :operation => :"DmDomainsApi.update_dm_domain",
347
+ :header_params => header_params,
348
+ :query_params => query_params,
349
+ :form_params => form_params,
350
+ :body => post_body,
351
+ :auth_names => auth_names,
352
+ :return_type => return_type
353
+ )
354
+
355
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
356
+ if @api_client.config.debugging
357
+ @api_client.config.logger.debug "API called: DmDomainsApi#update_dm_domain\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
358
+ end
359
+ return data, status_code, headers
360
+ end
361
+ end
362
+ end
@@ -19,7 +19,7 @@ module Fastly
19
19
  end
20
20
  # List domain-ownerships
21
21
  # List all domain-ownerships.
22
- # @return [InlineResponse2004]
22
+ # @return [InlineResponse2005]
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<(InlineResponse2004, Integer, Hash)>] InlineResponse2004 data, response status code and response headers
30
+ # @return [Array<(InlineResponse2005, Integer, Hash)>] InlineResponse2005 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] || 'InlineResponse2004'
54
+ return_type = opts[:debug_return_type] || 'InlineResponse2005'
55
55
 
56
56
  # auth_names
57
57
  auth_names = opts[:debug_auth_names] || ['token']
@@ -21,7 +21,7 @@ module Fastly
21
21
  # Create a health check for a particular service and 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 [Integer] :check_interval How often to run the health check in milliseconds.
24
+ # @option opts [Integer] :check_interval How often to run the health check in milliseconds. Minimum 1 second, maximum 1 hour.
25
25
  # @option opts [String] :comment A freeform descriptive note.
26
26
  # @option opts [Integer] :expected_response The status code expected from the host.
27
27
  # @option opts [Array<String>] :headers Array of custom headers that will be added to the health check probes.
@@ -44,7 +44,7 @@ module Fastly
44
44
  # Create a health check for a particular service and version.
45
45
  # @option opts [String] :service_id Alphanumeric string identifying the service. (required)
46
46
  # @option opts [Integer] :version_id Integer identifying a service version. (required)
47
- # @option opts [Integer] :check_interval How often to run the health check in milliseconds.
47
+ # @option opts [Integer] :check_interval How often to run the health check in milliseconds. Minimum 1 second, maximum 1 hour.
48
48
  # @option opts [String] :comment A freeform descriptive note.
49
49
  # @option opts [Integer] :expected_response The status code expected from the host.
50
50
  # @option opts [Array<String>] :headers Array of custom headers that will be added to the health check probes.
@@ -73,6 +73,14 @@ module Fastly
73
73
  if @api_client.config.client_side_validation && version_id.nil?
74
74
  fail ArgumentError, "Missing the required parameter 'version_id' when calling HealthcheckApi.create_healthcheck"
75
75
  end
76
+ if @api_client.config.client_side_validation && !opts[:'check_interval'].nil? && opts[:'check_interval'] > 3600000
77
+ fail ArgumentError, 'invalid value for "opts[:"check_interval"]" when calling HealthcheckApi.create_healthcheck, must be smaller than or equal to 3600000.'
78
+ end
79
+
80
+ if @api_client.config.client_side_validation && !opts[:'check_interval'].nil? && opts[:'check_interval'] < 1000
81
+ fail ArgumentError, 'invalid value for "opts[:"check_interval"]" when calling HealthcheckApi.create_healthcheck, must be greater than or equal to 1000.'
82
+ end
83
+
76
84
  # resource path
77
85
  local_var_path = '/service/{service_id}/version/{version_id}/healthcheck'.sub('{' + 'service_id' + '}', CGI.escape(service_id.to_s)).sub('{' + 'version_id' + '}', CGI.escape(version_id.to_s))
78
86
 
@@ -360,7 +368,7 @@ module Fastly
360
368
  # @option opts [String] :service_id Alphanumeric string identifying the service. (required)
361
369
  # @option opts [Integer] :version_id Integer identifying a service version. (required)
362
370
  # @option opts [String] :healthcheck_name The name of the health check. (required)
363
- # @option opts [Integer] :check_interval How often to run the health check in milliseconds.
371
+ # @option opts [Integer] :check_interval How often to run the health check in milliseconds. Minimum 1 second, maximum 1 hour.
364
372
  # @option opts [String] :comment A freeform descriptive note.
365
373
  # @option opts [Integer] :expected_response The status code expected from the host.
366
374
  # @option opts [Array<String>] :headers Array of custom headers that will be added to the health check probes.
@@ -384,7 +392,7 @@ module Fastly
384
392
  # @option opts [String] :service_id Alphanumeric string identifying the service. (required)
385
393
  # @option opts [Integer] :version_id Integer identifying a service version. (required)
386
394
  # @option opts [String] :healthcheck_name The name of the health check. (required)
387
- # @option opts [Integer] :check_interval How often to run the health check in milliseconds.
395
+ # @option opts [Integer] :check_interval How often to run the health check in milliseconds. Minimum 1 second, maximum 1 hour.
388
396
  # @option opts [String] :comment A freeform descriptive note.
389
397
  # @option opts [Integer] :expected_response The status code expected from the host.
390
398
  # @option opts [Array<String>] :headers Array of custom headers that will be added to the health check probes.
@@ -418,6 +426,14 @@ module Fastly
418
426
  if @api_client.config.client_side_validation && healthcheck_name.nil?
419
427
  fail ArgumentError, "Missing the required parameter 'healthcheck_name' when calling HealthcheckApi.update_healthcheck"
420
428
  end
429
+ if @api_client.config.client_side_validation && !opts[:'check_interval'].nil? && opts[:'check_interval'] > 3600000
430
+ fail ArgumentError, 'invalid value for "opts[:"check_interval"]" when calling HealthcheckApi.update_healthcheck, must be smaller than or equal to 3600000.'
431
+ end
432
+
433
+ if @api_client.config.client_side_validation && !opts[:'check_interval'].nil? && opts[:'check_interval'] < 1000
434
+ fail ArgumentError, 'invalid value for "opts[:"check_interval"]" when calling HealthcheckApi.update_healthcheck, must be greater than or equal to 1000.'
435
+ end
436
+
421
437
  # resource path
422
438
  local_var_path = '/service/{service_id}/version/{version_id}/healthcheck/{healthcheck_name}'.sub('{' + 'service_id' + '}', CGI.escape(service_id.to_s)).sub('{' + 'version_id' + '}', CGI.escape(version_id.to_s)).sub('{' + 'healthcheck_name' + '}', CGI.escape(healthcheck_name.to_s))
423
439