fastly 14.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +45 -0
- data/Gemfile.lock +1 -1
- data/README.md +22 -13
- data/docs/ApiDiscoveryResponseBodyGetAllServices.md +13 -0
- data/docs/ApiDiscoveryResponseCustomer.md +10 -0
- data/docs/ApiDiscoveryResponseCustomerCustomer.md +11 -0
- data/docs/ApiDiscoveryResponseEnable.md +12 -0
- data/docs/ApiDiscoveryResponseEnabledServices.md +10 -0
- data/docs/ApiDiscoveryResponseLinks.md +10 -0
- data/docs/ApiDiscoveryResponseLinksGetAllServices.md +10 -0
- data/docs/ApiDiscoveryResponseLinksGetAllServicesLinks.md +10 -0
- data/docs/ApiDiscoveryResponseLinksLinks.md +10 -0
- data/docs/ApiDiscoveryResponseProduct.md +10 -0
- data/docs/ApiDiscoveryResponseProductProduct.md +11 -0
- data/docs/ApiDiscoveryResponseService.md +10 -0
- data/docs/{BotManagementResponseServiceService.md → ApiDiscoveryResponseServiceService.md} +1 -1
- data/docs/BotManagementResponseBodyEnable.md +1 -1
- data/docs/BotManagementResponseService.md +1 -1
- data/docs/BrotliCompressionResponseBodyEnable.md +1 -1
- data/docs/BrotliCompressionResponseService.md +1 -1
- data/docs/DdosProtectionApi.md +2 -0
- data/docs/DdosProtectionEvent.md +2 -0
- data/docs/DdosProtectionEventAllOf.md +2 -0
- data/docs/DdosProtectionRequestEnableMode.md +10 -0
- data/docs/DdosProtectionResponseConfigure.md +1 -1
- data/docs/DdosProtectionResponseEnable.md +1 -1
- data/docs/DdosProtectionResponseService.md +1 -1
- data/docs/DdosProtectionRuleWithStats.md +23 -0
- data/docs/DdosProtectionRuleWithStatsAllOf.md +10 -0
- data/docs/DdosProtectionTrafficStats.md +1 -0
- data/docs/DdosProtectionTrafficStatsAllOf.md +1 -0
- data/docs/DmDomainsApi.md +220 -0
- data/docs/DomainInspectorHistoricalApi.md +1 -1
- data/docs/DomainInspectorResponseBodyEnable.md +1 -1
- data/docs/DomainInspectorResponseService.md +1 -1
- data/docs/DomainOwnershipsApi.md +2 -2
- data/docs/DomainResearchApi.md +103 -0
- data/docs/DomainResearchResponseBodyEnable.md +12 -0
- data/docs/DomainResearchResponseCustomer.md +10 -0
- data/docs/DomainResearchResponseLinks.md +10 -0
- data/docs/DomainResearchResponseLinksLinks.md +10 -0
- data/docs/DomainResearchResponseProduct.md +10 -0
- data/docs/DomainResearchResponseProductProduct.md +11 -0
- data/docs/FanoutResponseBodyEnable.md +1 -1
- data/docs/FanoutResponseService.md +1 -1
- data/docs/Healthcheck.md +1 -1
- data/docs/HealthcheckApi.md +4 -4
- data/docs/HealthcheckResponse.md +1 -1
- data/docs/IamRolesApi.md +23 -253
- data/docs/IamV1RoleListResponse.md +12 -0
- data/docs/IamV1RoleResponse.md +14 -0
- data/docs/ImageOptimizerResponseBodyEnable.md +1 -1
- data/docs/ImageOptimizerResponseService.md +1 -1
- data/docs/InlineResponse20010.md +11 -0
- data/docs/InlineResponse20011.md +10 -0
- data/docs/InlineResponse2003.md +2 -2
- data/docs/InlineResponse2004.md +2 -1
- data/docs/InlineResponse2005.md +1 -2
- data/docs/InlineResponse2006.md +1 -2
- data/docs/InlineResponse2007.md +1 -1
- data/docs/InlineResponse2008.md +1 -1
- data/docs/InlineResponse2009.md +2 -1
- data/docs/InvitationDataAttributes.md +1 -0
- data/docs/KvStoreApi.md +43 -4
- data/docs/KvStoreDetails.md +2 -0
- data/docs/KvStoreItemApi.md +2 -2
- data/docs/{KvStoreRequestCreate.md → KvStoreRequestCreateOrUpdate.md} +1 -1
- data/docs/LogExplorerInsightsResponseBodyEnable.md +1 -1
- data/docs/LogExplorerInsightsResponseService.md +1 -1
- data/docs/LoggingHttpsAdditional.md +1 -0
- data/docs/LoggingHttpsApi.md +4 -0
- data/docs/LoggingHttpsResponse.md +1 -0
- data/docs/MetricsPlatformApi.md +75 -0
- data/docs/NgwafRequestEnable.md +1 -0
- data/docs/NgwafResponseConfigure.md +1 -1
- data/docs/NgwafResponseEnable.md +1 -1
- data/docs/NgwafResponseService.md +1 -1
- data/docs/Offer.md +12 -0
- data/docs/OfferAllOf.md +12 -0
- data/docs/OriginInspectorHistoricalApi.md +1 -1
- data/docs/OriginInspectorResponseBodyEnable.md +1 -1
- data/docs/OriginInspectorResponseService.md +1 -1
- data/docs/PlatformMetadata.md +14 -0
- data/docs/PlatformMetricsResponse.md +11 -0
- data/docs/PlatformValues.md +25 -0
- data/docs/ProductApiDiscoveryApi.md +163 -0
- data/docs/ProductDdosProtectionApi.md +3 -1
- data/docs/ProductDomainResearchApi.md +115 -0
- data/docs/RealtimeEntryAggregated.md +5 -0
- data/docs/RealtimeMeasurements.md +5 -0
- data/docs/RequestBodyForCreate.md +12 -0
- data/docs/RequestBodyForUpdate.md +11 -0
- data/docs/Results.md +5 -0
- data/docs/SchemasUserResponse.md +1 -0
- data/docs/SecretStoreApi.md +2 -2
- data/docs/SecretStoreItemApi.md +2 -2
- data/docs/ServiceAuthorizationsApi.md +2 -2
- data/docs/Status.md +15 -0
- data/docs/StatusAllOf.md +15 -0
- data/docs/SuccessfulResponseAsObject.md +17 -0
- data/docs/SuccessfulResponseAsObjectAllOf.md +15 -0
- data/docs/Suggestion.md +13 -0
- data/docs/SuggestionAllOf.md +13 -0
- data/docs/User.md +1 -0
- data/docs/UserApi.md +4 -0
- data/docs/UserResponse.md +1 -0
- data/docs/WebsocketsResponseBodyEnable.md +1 -1
- data/docs/WebsocketsResponseService.md +1 -1
- data/lib/fastly/api/ddos_protection_api.rb +3 -0
- data/lib/fastly/api/dm_domains_api.rb +362 -0
- data/lib/fastly/api/domain_inspector_historical_api.rb +1 -1
- data/lib/fastly/api/domain_ownerships_api.rb +3 -3
- data/lib/fastly/api/domain_research_api.rb +163 -0
- data/lib/fastly/api/healthcheck_api.rb +20 -4
- data/lib/fastly/api/iam_roles_api.rb +43 -435
- data/lib/fastly/api/kv_store_api.rb +74 -6
- data/lib/fastly/api/kv_store_item_api.rb +3 -3
- data/lib/fastly/api/logging_https_api.rb +6 -0
- data/lib/fastly/api/metrics_platform_api.rb +134 -0
- data/lib/fastly/api/origin_inspector_historical_api.rb +1 -1
- data/lib/fastly/api/product_api_discovery_api.rb +263 -0
- data/lib/fastly/api/product_ddos_protection_api.rb +10 -3
- data/lib/fastly/api/product_domain_research_api.rb +186 -0
- data/lib/fastly/api/secret_store_api.rb +3 -3
- data/lib/fastly/api/secret_store_item_api.rb +3 -3
- data/lib/fastly/api/service_authorizations_api.rb +3 -3
- data/lib/fastly/api/user_api.rb +6 -0
- data/lib/fastly/configuration.rb +98 -38
- data/lib/fastly/models/api_discovery_response_body_get_all_services.rb +256 -0
- data/lib/fastly/models/api_discovery_response_customer.rb +216 -0
- data/lib/fastly/models/api_discovery_response_customer_customer.rb +227 -0
- data/lib/fastly/models/api_discovery_response_enable.rb +243 -0
- data/lib/fastly/models/api_discovery_response_enabled_services.rb +219 -0
- data/lib/fastly/models/api_discovery_response_links.rb +216 -0
- data/lib/fastly/models/api_discovery_response_links_get_all_services.rb +216 -0
- data/lib/fastly/models/api_discovery_response_links_get_all_services_links.rb +217 -0
- data/lib/fastly/models/api_discovery_response_links_links.rb +217 -0
- data/lib/fastly/models/api_discovery_response_product.rb +216 -0
- data/lib/fastly/models/api_discovery_response_product_product.rb +227 -0
- data/lib/fastly/models/api_discovery_response_service.rb +216 -0
- data/lib/fastly/models/{bot_management_response_service_service.rb → api_discovery_response_service_service.rb} +3 -3
- data/lib/fastly/models/bot_management_response_body_enable.rb +1 -1
- data/lib/fastly/models/bot_management_response_service.rb +1 -1
- data/lib/fastly/models/brotli_compression_response_body_enable.rb +1 -1
- data/lib/fastly/models/brotli_compression_response_service.rb +1 -1
- data/lib/fastly/models/ddos_protection_event.rb +21 -1
- data/lib/fastly/models/ddos_protection_event_all_of.rb +21 -1
- data/lib/fastly/models/ddos_protection_request_enable_mode.rb +251 -0
- data/lib/fastly/models/ddos_protection_response_configure.rb +1 -1
- data/lib/fastly/models/ddos_protection_response_enable.rb +1 -1
- data/lib/fastly/models/ddos_protection_response_service.rb +1 -1
- data/lib/fastly/models/ddos_protection_rule_with_stats.rb +365 -0
- data/lib/fastly/models/ddos_protection_rule_with_stats_all_of.rb +216 -0
- data/lib/fastly/models/ddos_protection_traffic_stats.rb +20 -4
- data/lib/fastly/models/ddos_protection_traffic_stats_all_of.rb +20 -4
- data/lib/fastly/models/domain_inspector_response_body_enable.rb +1 -1
- data/lib/fastly/models/domain_inspector_response_service.rb +1 -1
- data/lib/fastly/models/domain_research_response_body_enable.rb +243 -0
- data/lib/fastly/models/domain_research_response_customer.rb +216 -0
- data/lib/fastly/models/domain_research_response_links.rb +216 -0
- data/lib/fastly/models/domain_research_response_links_links.rb +217 -0
- data/lib/fastly/models/domain_research_response_product.rb +216 -0
- data/lib/fastly/models/domain_research_response_product_product.rb +227 -0
- data/lib/fastly/models/fanout_response_body_enable.rb +1 -1
- data/lib/fastly/models/fanout_response_service.rb +1 -1
- data/lib/fastly/models/healthcheck.rb +25 -1
- data/lib/fastly/models/healthcheck_response.rb +25 -1
- data/lib/fastly/models/iam_v1_role_list_response.rb +240 -0
- data/lib/fastly/models/{iam_role_all_of.rb → iam_v1_role_response.rb} +23 -34
- data/lib/fastly/models/image_optimizer_response_body_enable.rb +1 -1
- data/lib/fastly/models/image_optimizer_response_service.rb +1 -1
- data/lib/fastly/models/inline_response20010.rb +227 -0
- data/lib/fastly/models/inline_response20011.rb +218 -0
- data/lib/fastly/models/inline_response2003.rb +11 -1
- data/lib/fastly/models/inline_response2004.rb +20 -8
- data/lib/fastly/models/inline_response2005.rb +8 -18
- data/lib/fastly/models/inline_response2006.rb +8 -17
- data/lib/fastly/models/inline_response2007.rb +1 -1
- data/lib/fastly/models/inline_response2008.rb +1 -1
- data/lib/fastly/models/inline_response2009.rb +13 -4
- data/lib/fastly/models/invitation_data_attributes.rb +12 -1
- data/lib/fastly/models/kv_store_details.rb +24 -4
- data/lib/fastly/models/{kv_store_request_create.rb → kv_store_request_create_or_update.rb} +3 -3
- data/lib/fastly/models/log_explorer_insights_response_body_enable.rb +1 -1
- data/lib/fastly/models/log_explorer_insights_response_service.rb +1 -1
- data/lib/fastly/models/logging_https_additional.rb +16 -4
- data/lib/fastly/models/logging_https_response.rb +13 -1
- data/lib/fastly/models/ngwaf_request_enable.rb +14 -4
- data/lib/fastly/models/ngwaf_response_configure.rb +1 -1
- data/lib/fastly/models/ngwaf_response_enable.rb +1 -1
- data/lib/fastly/models/ngwaf_response_service.rb +1 -1
- data/lib/fastly/models/offer.rb +245 -0
- data/lib/fastly/models/offer_all_of.rb +237 -0
- data/lib/fastly/models/origin_inspector_response_body_enable.rb +1 -1
- data/lib/fastly/models/origin_inspector_response_service.rb +1 -1
- data/lib/fastly/models/platform_metadata.rb +258 -0
- data/lib/fastly/models/platform_metrics_response.rb +228 -0
- data/lib/fastly/models/platform_values.rb +368 -0
- data/lib/fastly/models/realtime_entry_aggregated.rb +54 -4
- data/lib/fastly/models/realtime_measurements.rb +54 -4
- data/lib/fastly/models/request_body_for_create.rb +244 -0
- data/lib/fastly/models/request_body_for_update.rb +229 -0
- data/lib/fastly/models/results.rb +51 -1
- data/lib/fastly/models/role_user.rb +2 -0
- data/lib/fastly/models/schemas_user_response.rb +13 -1
- data/lib/fastly/models/status.rb +276 -0
- data/lib/fastly/models/status_all_of.rb +268 -0
- data/lib/fastly/models/{iam_role.rb → successful_response_as_object.rb} +37 -35
- data/lib/fastly/models/successful_response_as_object_all_of.rb +268 -0
- data/lib/fastly/models/suggestion.rb +255 -0
- data/lib/fastly/models/suggestion_all_of.rb +247 -0
- data/lib/fastly/models/user.rb +13 -1
- data/lib/fastly/models/user_response.rb +13 -1
- data/lib/fastly/models/websockets_response_body_enable.rb +1 -1
- data/lib/fastly/models/websockets_response_service.rb +1 -1
- data/lib/fastly/version.rb +1 -1
- data/lib/fastly.rb +45 -4
- data/sig.json +1 -1
- metadata +92 -10
- data/docs/IamRole.md +0 -17
- data/docs/IamRoleAllOf.md +0 -15
data/docs/SecretStoreApi.md
CHANGED
|
@@ -166,7 +166,7 @@ end
|
|
|
166
166
|
## `get_secret_stores()`
|
|
167
167
|
|
|
168
168
|
```ruby
|
|
169
|
-
get_secret_stores(opts): <
|
|
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
|
-
[**
|
|
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)
|
data/docs/SecretStoreItemApi.md
CHANGED
|
@@ -140,7 +140,7 @@ end
|
|
|
140
140
|
## `get_secrets()`
|
|
141
141
|
|
|
142
142
|
```ruby
|
|
143
|
-
get_secrets(opts): <
|
|
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
|
-
[**
|
|
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): <
|
|
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
|
-
[**
|
|
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<Offer>**](Offer.md) | | [optional] |
|
|
13
|
+
|
|
14
|
+
[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
|
|
15
|
+
|
data/docs/StatusAllOf.md
ADDED
|
@@ -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<Offer>**](Offer.md) | | [optional] |
|
|
13
|
+
|
|
14
|
+
[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
|
|
15
|
+
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Fastly::SuccessfulResponseAsObject
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **created_at** | **Time** | Date and time in ISO 8601 format. | [optional][readonly] |
|
|
8
|
+
| **updated_at** | **Time** | Date and time in ISO 8601 format. | [optional][readonly] |
|
|
9
|
+
| **id** | **String** | Domain Identifier (UUID). | [optional] |
|
|
10
|
+
| **fqdn** | **String** | The fully-qualified domain name for your domain. Can be created, but not updated. | [optional] |
|
|
11
|
+
| **service_id** | **String** | The `service_id` associated with your domain or `null` if there is no association. | [optional] |
|
|
12
|
+
| **description** | **String** | A freeform descriptive note. | [optional] |
|
|
13
|
+
| **activated** | **Boolean** | Denotes if the domain has at least one TLS activation or not. | [optional][readonly] |
|
|
14
|
+
| **verified** | **Boolean** | Denotes that the customer has proven ownership over the domain by obtaining a Fastly-managed TLS certificate for it or by providing a their own TLS certificate from a publicly-trusted CA that includes the domain or matching wildcard. | [optional][readonly] |
|
|
15
|
+
|
|
16
|
+
[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
|
|
17
|
+
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Fastly::SuccessfulResponseAsObjectAllOf
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **id** | **String** | Domain Identifier (UUID). | [optional] |
|
|
8
|
+
| **fqdn** | **String** | The fully-qualified domain name for your domain. Can be created, but not updated. | [optional] |
|
|
9
|
+
| **service_id** | **String** | The `service_id` associated with your domain or `null` if there is no association. | [optional] |
|
|
10
|
+
| **description** | **String** | A freeform descriptive note. | [optional] |
|
|
11
|
+
| **activated** | **Boolean** | Denotes if the domain has at least one TLS activation or not. | [optional][readonly] |
|
|
12
|
+
| **verified** | **Boolean** | Denotes that the customer has proven ownership over the domain by obtaining a Fastly-managed TLS certificate for it or by providing a their own TLS certificate from a publicly-trusted CA that includes the domain or matching wildcard. | [optional][readonly] |
|
|
13
|
+
|
|
14
|
+
[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
|
|
15
|
+
|
data/docs/Suggestion.md
ADDED
|
@@ -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
|
+
|
data/docs/User.md
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
| **locked** | **Boolean** | Indicates whether the is account is locked for editing or not. | [optional] |
|
|
11
11
|
| **require_new_password** | **Boolean** | Indicates if a new password is required at next login. | [optional] |
|
|
12
12
|
| **role** | [**RoleUser**](RoleUser.md) | | [optional] |
|
|
13
|
+
| **roles** | **Array<String>** | A list of role IDs assigned to the user. | [optional] |
|
|
13
14
|
| **two_factor_auth_enabled** | **Boolean** | Indicates if 2FA is enabled on the user. | [optional] |
|
|
14
15
|
| **two_factor_setup_required** | **Boolean** | Indicates if 2FA is required by the user's customer account. | [optional] |
|
|
15
16
|
|
data/docs/UserApi.md
CHANGED
|
@@ -41,6 +41,7 @@ opts = {
|
|
|
41
41
|
locked: true, # Boolean | Indicates whether the is account is locked for editing or not.
|
|
42
42
|
require_new_password: true, # Boolean | Indicates if a new password is required at next login.
|
|
43
43
|
role: Fastly::RoleUser::USER, # RoleUser |
|
|
44
|
+
roles: ['6bKsDElwPt8vZXCArszK9x'], # Array<String> | A list of role IDs assigned to the user.
|
|
44
45
|
two_factor_auth_enabled: true, # Boolean | Indicates if 2FA is enabled on the user.
|
|
45
46
|
two_factor_setup_required: true, # Boolean | Indicates if 2FA is required by the user's customer account.
|
|
46
47
|
}
|
|
@@ -64,6 +65,7 @@ end
|
|
|
64
65
|
| **locked** | **Boolean** | Indicates whether the is account is locked for editing or not. | [optional] |
|
|
65
66
|
| **require_new_password** | **Boolean** | Indicates if a new password is required at next login. | [optional] |
|
|
66
67
|
| **role** | [**RoleUser**](RoleUser.md) | | [optional] |
|
|
68
|
+
| **roles** | [**Array<String>**](String.md) | A list of role IDs assigned to the user. | [optional] |
|
|
67
69
|
| **two_factor_auth_enabled** | **Boolean** | Indicates if 2FA is enabled on the user. | [optional] |
|
|
68
70
|
| **two_factor_setup_required** | **Boolean** | Indicates if 2FA is required by the user's customer account. | [optional] |
|
|
69
71
|
|
|
@@ -236,6 +238,7 @@ opts = {
|
|
|
236
238
|
locked: true, # Boolean | Indicates whether the is account is locked for editing or not.
|
|
237
239
|
require_new_password: true, # Boolean | Indicates if a new password is required at next login.
|
|
238
240
|
role: Fastly::RoleUser::USER, # RoleUser |
|
|
241
|
+
roles: ['6bKsDElwPt8vZXCArszK9x'], # Array<String> | A list of role IDs assigned to the user.
|
|
239
242
|
two_factor_auth_enabled: true, # Boolean | Indicates if 2FA is enabled on the user.
|
|
240
243
|
two_factor_setup_required: true, # Boolean | Indicates if 2FA is required by the user's customer account.
|
|
241
244
|
}
|
|
@@ -260,6 +263,7 @@ end
|
|
|
260
263
|
| **locked** | **Boolean** | Indicates whether the is account is locked for editing or not. | [optional] |
|
|
261
264
|
| **require_new_password** | **Boolean** | Indicates if a new password is required at next login. | [optional] |
|
|
262
265
|
| **role** | [**RoleUser**](RoleUser.md) | | [optional] |
|
|
266
|
+
| **roles** | [**Array<String>**](String.md) | A list of role IDs assigned to the user. | [optional] |
|
|
263
267
|
| **two_factor_auth_enabled** | **Boolean** | Indicates if 2FA is enabled on the user. | [optional] |
|
|
264
268
|
| **two_factor_setup_required** | **Boolean** | Indicates if 2FA is required by the user's customer account. | [optional] |
|
|
265
269
|
|
data/docs/UserResponse.md
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
| **locked** | **Boolean** | Indicates whether the is account is locked for editing or not. | [optional] |
|
|
11
11
|
| **require_new_password** | **Boolean** | Indicates if a new password is required at next login. | [optional] |
|
|
12
12
|
| **role** | [**RoleUser**](RoleUser.md) | | [optional] |
|
|
13
|
+
| **roles** | **Array<String>** | A list of role IDs assigned to the user. | [optional] |
|
|
13
14
|
| **two_factor_auth_enabled** | **Boolean** | Indicates if 2FA is enabled on the user. | [optional] |
|
|
14
15
|
| **two_factor_setup_required** | **Boolean** | Indicates if 2FA is required by the user's customer account. | [optional] |
|
|
15
16
|
| **created_at** | **Time** | Date and time in ISO 8601 format. | [optional][readonly] |
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **product** | [**WebsocketsResponseProductProduct**](WebsocketsResponseProductProduct.md) | | [optional] |
|
|
8
|
-
| **service** | [**
|
|
8
|
+
| **service** | [**ApiDiscoveryResponseServiceService**](ApiDiscoveryResponseServiceService.md) | | [optional] |
|
|
9
9
|
| **_links** | [**WebsocketsResponseLinksLinks**](WebsocketsResponseLinksLinks.md) | | [optional] |
|
|
10
10
|
|
|
11
11
|
[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **service** | [**
|
|
7
|
+
| **service** | [**ApiDiscoveryResponseServiceService**](ApiDiscoveryResponseServiceService.md) | | [optional] |
|
|
8
8
|
|
|
9
9
|
[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
|
|
10
10
|
|
|
@@ -163,6 +163,7 @@ module Fastly
|
|
|
163
163
|
# @option opts [String] :event_id Unique ID of the event. (required)
|
|
164
164
|
# @option opts [String] :cursor 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.
|
|
165
165
|
# @option opts [Integer] :limit Limit how many results are returned. (default to 20)
|
|
166
|
+
# @option opts [String] :include Include relationships. Optional. Comma-separated values.
|
|
166
167
|
# @return [InlineResponse2003]
|
|
167
168
|
def ddos_protection_event_rule_list(opts = {})
|
|
168
169
|
data, _status_code, _headers = ddos_protection_event_rule_list_with_http_info(opts)
|
|
@@ -174,6 +175,7 @@ module Fastly
|
|
|
174
175
|
# @option opts [String] :event_id Unique ID of the event. (required)
|
|
175
176
|
# @option opts [String] :cursor 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.
|
|
176
177
|
# @option opts [Integer] :limit Limit how many results are returned. (default to 20)
|
|
178
|
+
# @option opts [String] :include Include relationships. Optional. Comma-separated values.
|
|
177
179
|
# @return [Array<(InlineResponse2003, Integer, Hash)>] InlineResponse2003 data, response status code and response headers
|
|
178
180
|
def ddos_protection_event_rule_list_with_http_info(opts = {})
|
|
179
181
|
if @api_client.config.debugging
|
|
@@ -196,6 +198,7 @@ module Fastly
|
|
|
196
198
|
query_params = opts[:query_params] || {}
|
|
197
199
|
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
198
200
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
201
|
+
query_params[:'include'] = opts[:'include'] if !opts[:'include'].nil?
|
|
199
202
|
|
|
200
203
|
# header parameters
|
|
201
204
|
header_params = opts[:header_params] || {}
|
|
@@ -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 `next_cursor` 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 `next_cursor` 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
|
|
@@ -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 = ["
|
|
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 [
|
|
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<(
|
|
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] || '
|
|
54
|
+
return_type = opts[:debug_return_type] || 'InlineResponse2005'
|
|
55
55
|
|
|
56
56
|
# auth_names
|
|
57
57
|
auth_names = opts[:debug_auth_names] || ['token']
|