fastly 15.0.0 → 15.1.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 (93) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +22 -0
  3. data/Gemfile.lock +1 -1
  4. data/README.md +10 -3
  5. data/docs/DdosProtectionEvent.md +2 -0
  6. data/docs/DdosProtectionEventAllOf.md +2 -0
  7. data/docs/DdosProtectionRequestEnableMode.md +10 -0
  8. data/docs/DomainInspectorHistoricalApi.md +1 -1
  9. data/docs/DomainResearchApi.md +103 -0
  10. data/docs/DomainResearchResponseBodyEnable.md +12 -0
  11. data/docs/DomainResearchResponseCustomer.md +10 -0
  12. data/docs/DomainResearchResponseLinks.md +10 -0
  13. data/docs/DomainResearchResponseLinksLinks.md +10 -0
  14. data/docs/DomainResearchResponseProduct.md +10 -0
  15. data/docs/DomainResearchResponseProductProduct.md +11 -0
  16. data/docs/IamV1RoleResponse.md +1 -0
  17. data/docs/InlineResponse20010.md +2 -1
  18. data/docs/InlineResponse20011.md +10 -0
  19. data/docs/InlineResponse2006.md +1 -2
  20. data/docs/InlineResponse2007.md +1 -1
  21. data/docs/InlineResponse2008.md +1 -1
  22. data/docs/InlineResponse2009.md +1 -1
  23. data/docs/KvStoreApi.md +43 -4
  24. data/docs/KvStoreDetails.md +2 -0
  25. data/docs/KvStoreItemApi.md +2 -2
  26. data/docs/{KvStoreRequestCreate.md → KvStoreRequestCreateOrUpdate.md} +1 -1
  27. data/docs/MetricsPlatformApi.md +75 -0
  28. data/docs/NgwafRequestEnable.md +1 -0
  29. data/docs/Offer.md +12 -0
  30. data/docs/OfferAllOf.md +12 -0
  31. data/docs/OriginInspectorHistoricalApi.md +1 -1
  32. data/docs/PlatformMetadata.md +14 -0
  33. data/docs/PlatformMetricsResponse.md +11 -0
  34. data/docs/PlatformValues.md +25 -0
  35. data/docs/ProductDdosProtectionApi.md +3 -1
  36. data/docs/ProductDomainResearchApi.md +115 -0
  37. data/docs/RealtimeEntryAggregated.md +4 -0
  38. data/docs/RealtimeMeasurements.md +4 -0
  39. data/docs/Results.md +4 -0
  40. data/docs/SecretStoreApi.md +2 -2
  41. data/docs/SecretStoreItemApi.md +2 -2
  42. data/docs/ServiceAuthorizationsApi.md +2 -2
  43. data/docs/Status.md +15 -0
  44. data/docs/StatusAllOf.md +15 -0
  45. data/docs/Suggestion.md +13 -0
  46. data/docs/SuggestionAllOf.md +13 -0
  47. data/lib/fastly/api/domain_inspector_historical_api.rb +1 -1
  48. data/lib/fastly/api/domain_research_api.rb +163 -0
  49. data/lib/fastly/api/kv_store_api.rb +74 -6
  50. data/lib/fastly/api/kv_store_item_api.rb +3 -3
  51. data/lib/fastly/api/metrics_platform_api.rb +134 -0
  52. data/lib/fastly/api/origin_inspector_historical_api.rb +1 -1
  53. data/lib/fastly/api/product_ddos_protection_api.rb +10 -3
  54. data/lib/fastly/api/product_domain_research_api.rb +186 -0
  55. data/lib/fastly/api/secret_store_api.rb +3 -3
  56. data/lib/fastly/api/secret_store_item_api.rb +3 -3
  57. data/lib/fastly/api/service_authorizations_api.rb +3 -3
  58. data/lib/fastly/configuration.rb +42 -0
  59. data/lib/fastly/models/ddos_protection_event.rb +21 -1
  60. data/lib/fastly/models/ddos_protection_event_all_of.rb +21 -1
  61. data/lib/fastly/models/ddos_protection_request_enable_mode.rb +251 -0
  62. data/lib/fastly/models/domain_research_response_body_enable.rb +243 -0
  63. data/lib/fastly/models/domain_research_response_customer.rb +216 -0
  64. data/lib/fastly/models/domain_research_response_links.rb +216 -0
  65. data/lib/fastly/models/domain_research_response_links_links.rb +217 -0
  66. data/lib/fastly/models/domain_research_response_product.rb +216 -0
  67. data/lib/fastly/models/domain_research_response_product_product.rb +227 -0
  68. data/lib/fastly/models/iam_v1_role_response.rb +10 -1
  69. data/lib/fastly/models/inline_response20010.rb +13 -4
  70. data/lib/fastly/models/inline_response20011.rb +218 -0
  71. data/lib/fastly/models/inline_response2006.rb +8 -17
  72. data/lib/fastly/models/inline_response2007.rb +1 -1
  73. data/lib/fastly/models/inline_response2008.rb +1 -1
  74. data/lib/fastly/models/inline_response2009.rb +1 -1
  75. data/lib/fastly/models/kv_store_details.rb +24 -4
  76. data/lib/fastly/models/{kv_store_request_create.rb → kv_store_request_create_or_update.rb} +3 -3
  77. data/lib/fastly/models/ngwaf_request_enable.rb +14 -4
  78. data/lib/fastly/models/offer.rb +245 -0
  79. data/lib/fastly/models/offer_all_of.rb +237 -0
  80. data/lib/fastly/models/platform_metadata.rb +258 -0
  81. data/lib/fastly/models/platform_metrics_response.rb +228 -0
  82. data/lib/fastly/models/platform_values.rb +368 -0
  83. data/lib/fastly/models/realtime_entry_aggregated.rb +44 -4
  84. data/lib/fastly/models/realtime_measurements.rb +44 -4
  85. data/lib/fastly/models/results.rb +41 -1
  86. data/lib/fastly/models/status.rb +276 -0
  87. data/lib/fastly/models/status_all_of.rb +268 -0
  88. data/lib/fastly/models/suggestion.rb +255 -0
  89. data/lib/fastly/models/suggestion_all_of.rb +247 -0
  90. data/lib/fastly/version.rb +1 -1
  91. data/lib/fastly.rb +21 -1
  92. data/sig.json +1 -1
  93. metadata +44 -4
@@ -37,7 +37,7 @@ opts = {
37
37
  group_by: 'host', # String | Dimensions to return in the query. Multiple dimensions may be separated by commas. For example, `group_by=host` will return one timeseries for every origin host, as a total across all POPs.
38
38
  limit: 'limit_example', # String | Number of results per page. The maximum is 200.
39
39
  cursor: 'cursor_example', # String | Cursor value from the `next_cursor` field of a previous response, used to retrieve the next page. To request the first page, this should be empty.
40
- region: 'usa', # String | Limit query to one or more specific geographic regions. Values should be comma-separated.
40
+ region: 'africa_std', # String | Limit query to one or more specific geographic regions. Values should be comma-separated.
41
41
  datacenter: 'SJC,STP', # String | Limit query to one or more specific POPs. Values should be comma-separated.
42
42
  host: 'origin_1,origin_2', # String | Limit query to one or more specific origin hosts. Values should be comma-separated.
43
43
  }
@@ -0,0 +1,14 @@
1
+ # Fastly::PlatformMetadata
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **from** | **Time** | An RFC-8339-formatted date and time indicating the inclusive start of the query time range. | [optional] |
8
+ | **to** | **Time** | An RFC-8339-formatted date and time indicating the exclusive end of the query time range. | [optional] |
9
+ | **next_cursor** | **String** | A string that can be used to request the next page of results, if any. | [optional] |
10
+ | **group_by** | **String** | A comma-separated list of fields used to group and order the results. | [optional] |
11
+ | **limit** | **Integer** | The maximum number of results to return. | [optional] |
12
+
13
+ [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
14
+
@@ -0,0 +1,11 @@
1
+ # Fastly::PlatformMetricsResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **meta** | [**PlatformMetadata**](PlatformMetadata.md) | | [optional] |
8
+ | **data** | [**Array<PlatformValues>**](PlatformValues.md) | An array of values representing the metric values at each point in time. Note that this dataset is sparse: only the keys with non-zero values will be included in the record. | [optional] |
9
+
10
+ [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
11
+
@@ -0,0 +1,25 @@
1
+ # Fastly::PlatformValues
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **timestamp** | **Time** | Timestamp of the metrics data point. | [optional] |
8
+ | **ttfb_origin_p25_us** | **Float** | 25th percentile of time to first byte from origin, in microseconds. | [optional] |
9
+ | **ttfb_origin_p50_us** | **Float** | 50th percentile of time to first byte from origin, in microseconds. | [optional] |
10
+ | **ttfb_origin_p75_us** | **Float** | 75th percentile of time to first byte from origin, in microseconds. | [optional] |
11
+ | **ttfb_origin_p95_us** | **Float** | 95th percentile of time to first byte from origin, in microseconds. | [optional] |
12
+ | **ttfb_origin_p99_us** | **Float** | 99th percentile of time to first byte from origin, in microseconds. | [optional] |
13
+ | **ttfb_shield_p25_us** | **Float** | 25th percentile of time to first byte from shield, in microseconds. | [optional] |
14
+ | **ttfb_shield_p50_us** | **Float** | 50th percentile of time to first byte from shield, in microseconds. | [optional] |
15
+ | **ttfb_shield_p75_us** | **Float** | 75th percentile of time to first byte from shield, in microseconds. | [optional] |
16
+ | **ttfb_shield_p95_us** | **Float** | 95th percentile of time to first byte from shield, in microseconds. | [optional] |
17
+ | **ttfb_shield_p99_us** | **Float** | 99th percentile of time to first byte from shield, in microseconds. | [optional] |
18
+ | **ttfb_edge_p25_us** | **Float** | 25th percentile of time to first byte from edge, in microseconds. | [optional] |
19
+ | **ttfb_edge_p50_us** | **Float** | 50th percentile of time to first byte from edge, in microseconds. | [optional] |
20
+ | **ttfb_edge_p75_us** | **Float** | 75th percentile of time to first byte from edge, in microseconds. | [optional] |
21
+ | **ttfb_edge_p95_us** | **Float** | 95th percentile of time to first byte from edge, in microseconds. | [optional] |
22
+ | **ttfb_edge_p99_us** | **Float** | 99th percentile of time to first byte from edge, in microseconds. | [optional] |
23
+
24
+ [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
25
+
@@ -63,7 +63,7 @@ nil (empty response body)
63
63
  enable_product_ddos_protection(opts): <DdosProtectionResponseEnable> # Enable product
64
64
  ```
65
65
 
66
- Enable the DDoS Protection product on a service in 'log' mode.
66
+ Enable the DDoS Protection product on a service in default 'log' mode unless otherwise specified in the request body.
67
67
 
68
68
  ### Examples
69
69
 
@@ -71,6 +71,7 @@ Enable the DDoS Protection product on a service in 'log' mode.
71
71
  api_instance = Fastly::ProductDdosProtectionApi.new
72
72
  opts = {
73
73
  service_id: 'service_id_example', # String | Alphanumeric string identifying the service.
74
+ ddos_protection_request_enable_mode: Fastly::DdosProtectionRequestEnableMode.new, # DdosProtectionRequestEnableMode |
74
75
  }
75
76
 
76
77
  begin
@@ -87,6 +88,7 @@ end
87
88
  | Name | Type | Description | Notes |
88
89
  | ---- | ---- | ----------- | ----- |
89
90
  | **service_id** | **String** | Alphanumeric string identifying the service. | |
91
+ | **ddos_protection_request_enable_mode** | [**DdosProtectionRequestEnableMode**](DdosProtectionRequestEnableMode.md) | | [optional] |
90
92
 
91
93
  ### Return type
92
94
 
@@ -0,0 +1,115 @@
1
+ # Fastly::ProductDomainResearchApi
2
+
3
+
4
+ ```ruby
5
+ require 'fastly'
6
+ api_instance = Fastly::ProductDomainResearchApi.new
7
+ ```
8
+
9
+ ## Methods
10
+
11
+ > [!NOTE]
12
+ > All URIs are relative to `https://api.fastly.com`
13
+
14
+ Method | HTTP request | Description
15
+ ------ | ------------ | -----------
16
+ [**disable_product_domain_research**](ProductDomainResearchApi.md#disable_product_domain_research) | **DELETE** /enabled-products/v1/domain_research | Disable product
17
+ [**enable_domain_research**](ProductDomainResearchApi.md#enable_domain_research) | **PUT** /enabled-products/v1/domain_research | Enable product
18
+ [**get_domain_research**](ProductDomainResearchApi.md#get_domain_research) | **GET** /enabled-products/v1/domain_research | Get product enablement status
19
+
20
+
21
+ ## `disable_product_domain_research()`
22
+
23
+ ```ruby
24
+ disable_product_domain_research # Disable product
25
+ ```
26
+
27
+ Disable the Domain Research product.
28
+
29
+ ### Examples
30
+
31
+ ```ruby
32
+ api_instance = Fastly::ProductDomainResearchApi.new
33
+
34
+ begin
35
+ # Disable product
36
+ api_instance.disable_product_domain_research
37
+ rescue Fastly::ApiError => e
38
+ puts "Error when calling ProductDomainResearchApi->disable_product_domain_research: #{e}"
39
+ end
40
+ ```
41
+
42
+ ### Options
43
+
44
+ This endpoint does not need any parameter.
45
+
46
+ ### Return type
47
+
48
+ nil (empty response body)
49
+
50
+ [[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
51
+ [[Back to README]](../../README.md)
52
+ ## `enable_domain_research()`
53
+
54
+ ```ruby
55
+ enable_domain_research: <DomainResearchResponseBodyEnable> # Enable product
56
+ ```
57
+
58
+ Enable the Domain Research product.
59
+
60
+ ### Examples
61
+
62
+ ```ruby
63
+ api_instance = Fastly::ProductDomainResearchApi.new
64
+
65
+ begin
66
+ # Enable product
67
+ result = api_instance.enable_domain_research
68
+ p result
69
+ rescue Fastly::ApiError => e
70
+ puts "Error when calling ProductDomainResearchApi->enable_domain_research: #{e}"
71
+ end
72
+ ```
73
+
74
+ ### Options
75
+
76
+ This endpoint does not need any parameter.
77
+
78
+ ### Return type
79
+
80
+ [**DomainResearchResponseBodyEnable**](DomainResearchResponseBodyEnable.md)
81
+
82
+ [[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
83
+ [[Back to README]](../../README.md)
84
+ ## `get_domain_research()`
85
+
86
+ ```ruby
87
+ get_domain_research: <DomainResearchResponseBodyEnable> # Get product enablement status
88
+ ```
89
+
90
+ Get the enablement status of the Domain Research product.
91
+
92
+ ### Examples
93
+
94
+ ```ruby
95
+ api_instance = Fastly::ProductDomainResearchApi.new
96
+
97
+ begin
98
+ # Get product enablement status
99
+ result = api_instance.get_domain_research
100
+ p result
101
+ rescue Fastly::ApiError => e
102
+ puts "Error when calling ProductDomainResearchApi->get_domain_research: #{e}"
103
+ end
104
+ ```
105
+
106
+ ### Options
107
+
108
+ This endpoint does not need any parameter.
109
+
110
+ ### Return type
111
+
112
+ [**DomainResearchResponseBodyEnable**](DomainResearchResponseBodyEnable.md)
113
+
114
+ [[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
115
+ [[Back to README]](../../README.md)
@@ -266,6 +266,10 @@
266
266
  | **request_collapse_unusable_count** | **Integer** | Number of requests that were collapsed and unable to be satisfied by the resulting cache object. | [optional] |
267
267
  | **compute_cache_operations_count** | **Integer** | Number of cache operations executed by the Compute platform. | [optional] |
268
268
  | **api_discovery_requests_count** | **Integer** | Number of requests processed by the API Discovery engine. | [optional] |
269
+ | **imgopto_compute_requests** | **Integer** | The number of Image Optimizer requests made from Compute services. | [optional] |
270
+ | **dns_billable_responses_count** | **Integer** | Number of billable DNS responses (e.g., A, CNAME). | [optional] |
271
+ | **dns_nonbillable_responses_count** | **Integer** | Number of non-billable DNS responses (e.g., NODATA, NXDOMAIN). | [optional] |
272
+ | **upgrade** | **Integer** | Number of requests that resulted in a WebSocket upgrade. | [optional] |
269
273
 
270
274
  [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
271
275
 
@@ -266,6 +266,10 @@
266
266
  | **request_collapse_unusable_count** | **Integer** | Number of requests that were collapsed and unable to be satisfied by the resulting cache object. | [optional] |
267
267
  | **compute_cache_operations_count** | **Integer** | Number of cache operations executed by the Compute platform. | [optional] |
268
268
  | **api_discovery_requests_count** | **Integer** | Number of requests processed by the API Discovery engine. | [optional] |
269
+ | **imgopto_compute_requests** | **Integer** | The number of Image Optimizer requests made from Compute services. | [optional] |
270
+ | **dns_billable_responses_count** | **Integer** | Number of billable DNS responses (e.g., A, CNAME). | [optional] |
271
+ | **dns_nonbillable_responses_count** | **Integer** | Number of non-billable DNS responses (e.g., NODATA, NXDOMAIN). | [optional] |
272
+ | **upgrade** | **Integer** | Number of requests that resulted in a WebSocket upgrade. | [optional] |
269
273
 
270
274
  [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
271
275
 
data/docs/Results.md CHANGED
@@ -273,6 +273,10 @@
273
273
  | **ngwaf_requests_timeout_count** | **Integer** | Count of Edge WAF requests timed outcome. | [optional] |
274
274
  | **ngwaf_requests_challenged_count** | **Integer** | Count of Edge WAF requests challenged. | [optional] |
275
275
  | **api_discovery_requests_count** | **Integer** | Number of requests processed by the API Discovery engine. | [optional] |
276
+ | **imgopto_compute_requests** | **Integer** | The number of Image Optimizer requests made from Compute services. | [optional] |
277
+ | **dns_billable_responses_count** | **Integer** | Number of billable DNS responses (e.g., A, CNAME). | [optional] |
278
+ | **dns_nonbillable_responses_count** | **Integer** | Number of non-billable DNS responses (e.g., NODATA, NXDOMAIN). | [optional] |
279
+ | **upgrade** | **Integer** | Number of requests that resulted in a WebSocket upgrade. | [optional] |
276
280
  | **service_id** | **String** | | [optional][readonly] |
277
281
  | **start_time** | **Integer** | Timestamp for the start of the time period being reported | [optional] |
278
282
 
@@ -166,7 +166,7 @@ end
166
166
  ## `get_secret_stores()`
167
167
 
168
168
  ```ruby
169
- get_secret_stores(opts): <InlineResponse2008> # Get all secret stores
169
+ get_secret_stores(opts): <InlineResponse2009> # Get all secret stores
170
170
  ```
171
171
 
172
172
  Get all secret stores.
@@ -200,7 +200,7 @@ end
200
200
 
201
201
  ### Return type
202
202
 
203
- [**InlineResponse2008**](InlineResponse2008.md)
203
+ [**InlineResponse2009**](InlineResponse2009.md)
204
204
 
205
205
  [[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
206
206
  [[Back to README]](../../README.md)
@@ -140,7 +140,7 @@ end
140
140
  ## `get_secrets()`
141
141
 
142
142
  ```ruby
143
- get_secrets(opts): <InlineResponse2009> # List secrets within a store.
143
+ get_secrets(opts): <InlineResponse20010> # List secrets within a store.
144
144
  ```
145
145
 
146
146
  List all secrets within a store.
@@ -174,7 +174,7 @@ end
174
174
 
175
175
  ### Return type
176
176
 
177
- [**InlineResponse2009**](InlineResponse2009.md)
177
+ [**InlineResponse20010**](InlineResponse20010.md)
178
178
 
179
179
  [[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
180
180
  [[Back to README]](../../README.md)
@@ -98,7 +98,7 @@ nil (empty response body)
98
98
  ## `delete_service_authorization2()`
99
99
 
100
100
  ```ruby
101
- delete_service_authorization2(opts): <InlineResponse20010> # Delete service authorizations
101
+ delete_service_authorization2(opts): <InlineResponse20011> # Delete service authorizations
102
102
  ```
103
103
 
104
104
  Delete service authorizations.
@@ -128,7 +128,7 @@ end
128
128
 
129
129
  ### Return type
130
130
 
131
- [**InlineResponse20010**](InlineResponse20010.md)
131
+ [**InlineResponse20011**](InlineResponse20011.md)
132
132
 
133
133
  [[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
134
134
  [[Back to README]](../../README.md)
data/docs/Status.md ADDED
@@ -0,0 +1,15 @@
1
+ # Fastly::Status
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **scope** | **String** | The scope provided in the status request. | [optional] |
8
+ | **domain** | **String** | The domain provided in the status request. | [optional] |
9
+ | **zone** | **String** | The zone of the domain provided of the status request. | [optional] |
10
+ | **status** | **String** | A space-delimited string of the varying statuses associated with the domain provided. | [optional] |
11
+ | **tags** | **String** | A space-delimited string of the varying tags associated with the domain provided. | [optional] |
12
+ | **offers** | [**Array&lt;Offer&gt;**](Offer.md) | | [optional] |
13
+
14
+ [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
15
+
@@ -0,0 +1,15 @@
1
+ # Fastly::StatusAllOf
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **scope** | **String** | The scope provided in the status request. | [optional] |
8
+ | **domain** | **String** | The domain provided in the status request. | [optional] |
9
+ | **zone** | **String** | The zone of the domain provided of the status request. | [optional] |
10
+ | **status** | **String** | A space-delimited string of the varying statuses associated with the domain provided. | [optional] |
11
+ | **tags** | **String** | A space-delimited string of the varying tags associated with the domain provided. | [optional] |
12
+ | **offers** | [**Array&lt;Offer&gt;**](Offer.md) | | [optional] |
13
+
14
+ [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
15
+
@@ -0,0 +1,13 @@
1
+ # Fastly::Suggestion
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **domain** | **String** | The suggested domain, consisting of a subdomain and zone. | [optional] |
8
+ | **subdomain** | **String** | The subdomain of the suggested domain. | [optional] |
9
+ | **zone** | **String** | The zone of the suggested domain. | [optional] |
10
+ | **path** | **String** | If present, the path is to be appended to the domain to complete the suggestion. | [optional] |
11
+
12
+ [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
13
+
@@ -0,0 +1,13 @@
1
+ # Fastly::SuggestionAllOf
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **domain** | **String** | The suggested domain, consisting of a subdomain and zone. | [optional] |
8
+ | **subdomain** | **String** | The subdomain of the suggested domain. | [optional] |
9
+ | **zone** | **String** | The zone of the suggested domain. | [optional] |
10
+ | **path** | **String** | If present, the path is to be appended to the domain to complete the suggestion. | [optional] |
11
+
12
+ [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
13
+
@@ -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
@@ -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 [InlineResponse2006]
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<(InlineResponse2006, Integer, Hash)>] InlineResponse2006 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] || 'InlineResponse2006'
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
@@ -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 [InlineResponse2007]
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<(InlineResponse2007, Integer, Hash)>] InlineResponse2007 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] || 'InlineResponse2007'
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