fastly 15.0.0 → 16.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +40 -1
- data/Gemfile.lock +3 -3
- data/README.md +32 -3
- data/docs/ApisecurityOperationsApi.md +465 -0
- data/docs/AutomationTokensApi.md +2 -2
- data/docs/Backend.md +1 -0
- data/docs/BackendApi.md +4 -0
- data/docs/BackendResponse.md +1 -0
- data/docs/DdosProtectionApi.md +4 -4
- data/docs/DdosProtectionEvent.md +2 -0
- data/docs/DdosProtectionEventAllOf.md +2 -0
- data/docs/DdosProtectionRequestEnableMode.md +10 -0
- data/docs/DiscoveredOperationBase.md +12 -0
- data/docs/DiscoveredOperationGet.md +15 -0
- data/docs/DiscoveredOperationGetExtra.md +12 -0
- data/docs/DmDomainsApi.md +2 -2
- data/docs/DomainInspectorHistoricalApi.md +1 -1
- data/docs/DomainInspectorMeasurements.md +63 -0
- 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/HistoricalApi.md +8 -0
- data/docs/HistoricalMeta.md +1 -0
- data/docs/IamV1RoleResponse.md +1 -0
- data/docs/InlineResponse2001.md +2 -1
- data/docs/InlineResponse20010.md +2 -1
- data/docs/InlineResponse20011.md +11 -0
- data/docs/InlineResponse20012.md +11 -0
- data/docs/InlineResponse20013.md +11 -0
- data/docs/InlineResponse20014.md +10 -0
- data/docs/InlineResponse2002.md +2 -2
- data/docs/InlineResponse2003.md +2 -2
- data/docs/InlineResponse2004.md +1 -2
- data/docs/InlineResponse2005.md +2 -1
- data/docs/InlineResponse2006.md +2 -2
- data/docs/InlineResponse2007.md +2 -2
- data/docs/InlineResponse2008.md +1 -2
- data/docs/InlineResponse2009.md +1 -2
- data/docs/InsightsApi.md +3 -3
- 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/LogInsights.md +1 -1
- data/docs/Meta.md +11 -0
- data/docs/MetricsPlatformApi.md +75 -0
- data/docs/NgwafRequestEnable.md +1 -0
- data/docs/Offer.md +12 -0
- data/docs/OfferAllOf.md +12 -0
- data/docs/OperationBase.md +14 -0
- data/docs/OperationCreate.md +14 -0
- data/docs/OperationGet.md +18 -0
- data/docs/OperationGetExtra.md +13 -0
- data/docs/OperationUpdate.md +14 -0
- data/docs/OriginInspectorHistoricalApi.md +1 -1
- data/docs/PackageMetadata.md +2 -2
- data/docs/PlatformMetadata.md +14 -0
- data/docs/PlatformMetricsResponse.md +11 -0
- data/docs/PlatformValues.md +25 -0
- data/docs/ProductDdosProtectionApi.md +3 -1
- data/docs/ProductDomainResearchApi.md +115 -0
- data/docs/RealtimeEntryAggregated.md +25 -0
- data/docs/RealtimeMeasurements.md +25 -0
- data/docs/Results.md +25 -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/Suggestion.md +13 -0
- data/docs/SuggestionAllOf.md +13 -0
- data/docs/TagBase.md +11 -0
- data/docs/TagCreate.md +11 -0
- data/docs/TagGet.md +15 -0
- data/docs/TagGetExtra.md +13 -0
- data/docs/Values.md +63 -0
- data/lib/fastly/api/apisecurity_operations_api.rb +829 -0
- data/lib/fastly/api/automation_tokens_api.rb +3 -3
- data/lib/fastly/api/backend_api.rb +6 -0
- data/lib/fastly/api/ddos_protection_api.rb +6 -6
- data/lib/fastly/api/dm_domains_api.rb +3 -3
- 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/historical_api.rb +12 -0
- 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/metrics_platform_api.rb +134 -0
- data/lib/fastly/api/origin_inspector_historical_api.rb +1 -1
- 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/configuration.rb +108 -0
- data/lib/fastly/models/backend.rb +11 -1
- data/lib/fastly/models/backend_response.rb +11 -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/discovered_operation_base.rb +271 -0
- data/lib/fastly/models/discovered_operation_get.rb +336 -0
- data/lib/fastly/models/discovered_operation_get_extra.rb +271 -0
- data/lib/fastly/models/domain_inspector_measurements.rb +634 -4
- 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/historical_meta.rb +13 -4
- data/lib/fastly/models/iam_v1_role_response.rb +10 -1
- data/lib/fastly/models/inline_response2001.rb +12 -3
- data/lib/fastly/models/inline_response20010.rb +13 -4
- data/lib/fastly/models/inline_response20011.rb +227 -0
- data/lib/fastly/models/inline_response20012.rb +227 -0
- data/lib/fastly/models/inline_response20013.rb +227 -0
- data/lib/fastly/models/inline_response20014.rb +218 -0
- data/lib/fastly/models/inline_response2002.rb +14 -13
- data/lib/fastly/models/inline_response2003.rb +14 -23
- data/lib/fastly/models/inline_response2004.rb +5 -15
- data/lib/fastly/models/inline_response2005.rb +18 -8
- data/lib/fastly/models/inline_response2006.rb +11 -1
- data/lib/fastly/models/inline_response2007.rb +4 -2
- data/lib/fastly/models/inline_response2008.rb +8 -18
- data/lib/fastly/models/inline_response2009.rb +8 -17
- 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_insights.rb +4 -2
- data/lib/fastly/models/meta.rb +266 -0
- data/lib/fastly/models/ngwaf_request_enable.rb +14 -4
- data/lib/fastly/models/offer.rb +245 -0
- data/lib/fastly/models/offer_all_of.rb +237 -0
- data/lib/fastly/models/operation_base.rb +308 -0
- data/lib/fastly/models/operation_create.rb +315 -0
- data/lib/fastly/models/operation_get.rb +381 -0
- data/lib/fastly/models/operation_get_extra.rb +257 -0
- data/lib/fastly/models/operation_update.rb +308 -0
- data/lib/fastly/models/package_metadata.rb +2 -2
- 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 +254 -4
- data/lib/fastly/models/realtime_measurements.rb +254 -4
- data/lib/fastly/models/results.rb +251 -1
- data/lib/fastly/models/status.rb +276 -0
- data/lib/fastly/models/status_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/tag_base.rb +275 -0
- data/lib/fastly/models/tag_create.rb +282 -0
- data/lib/fastly/models/tag_get.rb +352 -0
- data/lib/fastly/models/tag_get_extra.rb +267 -0
- data/lib/fastly/models/values.rb +634 -4
- data/lib/fastly/version.rb +1 -1
- data/lib/fastly.rb +38 -1
- data/sig.json +1 -1
- metadata +78 -4
|
@@ -821,6 +821,81 @@ module Fastly
|
|
|
821
821
|
# Number of requests processed by the API Discovery engine.
|
|
822
822
|
attr_accessor :api_discovery_requests_count
|
|
823
823
|
|
|
824
|
+
# Number of responses delivered with status code 103 (Early Hints) by the Compute platform.
|
|
825
|
+
attr_accessor :compute_resp_status_103
|
|
826
|
+
|
|
827
|
+
# Number of responses delivered with status code 200 (Success) by the Compute platform.
|
|
828
|
+
attr_accessor :compute_resp_status_200
|
|
829
|
+
|
|
830
|
+
# Number of responses delivered with status code 204 (No Content) by the Compute platform.
|
|
831
|
+
attr_accessor :compute_resp_status_204
|
|
832
|
+
|
|
833
|
+
# Number of responses delivered with status code 206 (Partial Content) by the Compute platform.
|
|
834
|
+
attr_accessor :compute_resp_status_206
|
|
835
|
+
|
|
836
|
+
# Number of responses delivered with status code 301 (Moved Permanently) by the Compute platform.
|
|
837
|
+
attr_accessor :compute_resp_status_301
|
|
838
|
+
|
|
839
|
+
# Number of responses delivered with status code 302 (Found) by the Compute platform.
|
|
840
|
+
attr_accessor :compute_resp_status_302
|
|
841
|
+
|
|
842
|
+
# Number of responses delivered with status code 304 (Not Modified) by the Compute platform.
|
|
843
|
+
attr_accessor :compute_resp_status_304
|
|
844
|
+
|
|
845
|
+
# Number of responses delivered with status code 400 (Bad Request) by the Compute platform.
|
|
846
|
+
attr_accessor :compute_resp_status_400
|
|
847
|
+
|
|
848
|
+
# Number of responses delivered with status code 401 (Unauthorized) by the Compute platform.
|
|
849
|
+
attr_accessor :compute_resp_status_401
|
|
850
|
+
|
|
851
|
+
# Number of responses delivered with status code 403 (Forbidden) by the Compute platform.
|
|
852
|
+
attr_accessor :compute_resp_status_403
|
|
853
|
+
|
|
854
|
+
# Number of responses delivered with status code 404 (Not Found) by the Compute platform.
|
|
855
|
+
attr_accessor :compute_resp_status_404
|
|
856
|
+
|
|
857
|
+
# Number of responses delivered with status code 416 (Range Not Satisfiable) by the Compute platform.
|
|
858
|
+
attr_accessor :compute_resp_status_416
|
|
859
|
+
|
|
860
|
+
# Number of responses delivered with status code 429 (Too Many Requests) by the Compute platform.
|
|
861
|
+
attr_accessor :compute_resp_status_429
|
|
862
|
+
|
|
863
|
+
# Number of responses delivered with status code 500 (Internal Server Error) by the Compute platform.
|
|
864
|
+
attr_accessor :compute_resp_status_500
|
|
865
|
+
|
|
866
|
+
# Number of responses delivered with status code 501 (Not Implemented) by the Compute platform.
|
|
867
|
+
attr_accessor :compute_resp_status_501
|
|
868
|
+
|
|
869
|
+
# Number of responses delivered with status code 502 (Bad Gateway) by the Compute platform.
|
|
870
|
+
attr_accessor :compute_resp_status_502
|
|
871
|
+
|
|
872
|
+
# Number of responses delivered with status code 503 (Service Unavailable) by the Compute platform.
|
|
873
|
+
attr_accessor :compute_resp_status_503
|
|
874
|
+
|
|
875
|
+
# Number of responses delivered with status code 504 (Gateway Timeout) by the Compute platform.
|
|
876
|
+
attr_accessor :compute_resp_status_504
|
|
877
|
+
|
|
878
|
+
# Number of responses delivered with status code 505 (HTTP Version Not Supported) by the Compute platform.
|
|
879
|
+
attr_accessor :compute_resp_status_505
|
|
880
|
+
|
|
881
|
+
# Number of responses delivered with status code 530 by the Compute platform.
|
|
882
|
+
attr_accessor :compute_resp_status_530
|
|
883
|
+
|
|
884
|
+
# The number of Image Optimizer requests made from Compute services.
|
|
885
|
+
attr_accessor :imgopto_compute_requests
|
|
886
|
+
|
|
887
|
+
# Number of billable DNS responses (e.g., A, CNAME).
|
|
888
|
+
attr_accessor :dns_billable_responses_count
|
|
889
|
+
|
|
890
|
+
# Number of non-billable DNS responses (e.g., NODATA, NXDOMAIN).
|
|
891
|
+
attr_accessor :dns_nonbillable_responses_count
|
|
892
|
+
|
|
893
|
+
# Number of requests that resulted in a WebSocket upgrade.
|
|
894
|
+
attr_accessor :upgrade
|
|
895
|
+
|
|
896
|
+
# Count of Next-Gen WAF Bot Management requests.
|
|
897
|
+
attr_accessor :ngwaf_bot_analysis_request_count
|
|
898
|
+
|
|
824
899
|
attr_accessor :service_id
|
|
825
900
|
|
|
826
901
|
# Timestamp for the start of the time period being reported
|
|
@@ -1098,6 +1173,31 @@ module Fastly
|
|
|
1098
1173
|
:'ngwaf_requests_timeout_count' => :'ngwaf_requests_timeout_count',
|
|
1099
1174
|
:'ngwaf_requests_challenged_count' => :'ngwaf_requests_challenged_count',
|
|
1100
1175
|
:'api_discovery_requests_count' => :'api_discovery_requests_count',
|
|
1176
|
+
:'compute_resp_status_103' => :'compute_resp_status_103',
|
|
1177
|
+
:'compute_resp_status_200' => :'compute_resp_status_200',
|
|
1178
|
+
:'compute_resp_status_204' => :'compute_resp_status_204',
|
|
1179
|
+
:'compute_resp_status_206' => :'compute_resp_status_206',
|
|
1180
|
+
:'compute_resp_status_301' => :'compute_resp_status_301',
|
|
1181
|
+
:'compute_resp_status_302' => :'compute_resp_status_302',
|
|
1182
|
+
:'compute_resp_status_304' => :'compute_resp_status_304',
|
|
1183
|
+
:'compute_resp_status_400' => :'compute_resp_status_400',
|
|
1184
|
+
:'compute_resp_status_401' => :'compute_resp_status_401',
|
|
1185
|
+
:'compute_resp_status_403' => :'compute_resp_status_403',
|
|
1186
|
+
:'compute_resp_status_404' => :'compute_resp_status_404',
|
|
1187
|
+
:'compute_resp_status_416' => :'compute_resp_status_416',
|
|
1188
|
+
:'compute_resp_status_429' => :'compute_resp_status_429',
|
|
1189
|
+
:'compute_resp_status_500' => :'compute_resp_status_500',
|
|
1190
|
+
:'compute_resp_status_501' => :'compute_resp_status_501',
|
|
1191
|
+
:'compute_resp_status_502' => :'compute_resp_status_502',
|
|
1192
|
+
:'compute_resp_status_503' => :'compute_resp_status_503',
|
|
1193
|
+
:'compute_resp_status_504' => :'compute_resp_status_504',
|
|
1194
|
+
:'compute_resp_status_505' => :'compute_resp_status_505',
|
|
1195
|
+
:'compute_resp_status_530' => :'compute_resp_status_530',
|
|
1196
|
+
:'imgopto_compute_requests' => :'imgopto_compute_requests',
|
|
1197
|
+
:'dns_billable_responses_count' => :'dns_billable_responses_count',
|
|
1198
|
+
:'dns_nonbillable_responses_count' => :'dns_nonbillable_responses_count',
|
|
1199
|
+
:'upgrade' => :'upgrade',
|
|
1200
|
+
:'ngwaf_bot_analysis_request_count' => :'ngwaf_bot_analysis_request_count',
|
|
1101
1201
|
:'service_id' => :'service_id',
|
|
1102
1202
|
:'start_time' => :'start_time'
|
|
1103
1203
|
}
|
|
@@ -1380,6 +1480,31 @@ module Fastly
|
|
|
1380
1480
|
:'ngwaf_requests_timeout_count' => :'Integer',
|
|
1381
1481
|
:'ngwaf_requests_challenged_count' => :'Integer',
|
|
1382
1482
|
:'api_discovery_requests_count' => :'Integer',
|
|
1483
|
+
:'compute_resp_status_103' => :'Integer',
|
|
1484
|
+
:'compute_resp_status_200' => :'Integer',
|
|
1485
|
+
:'compute_resp_status_204' => :'Integer',
|
|
1486
|
+
:'compute_resp_status_206' => :'Integer',
|
|
1487
|
+
:'compute_resp_status_301' => :'Integer',
|
|
1488
|
+
:'compute_resp_status_302' => :'Integer',
|
|
1489
|
+
:'compute_resp_status_304' => :'Integer',
|
|
1490
|
+
:'compute_resp_status_400' => :'Integer',
|
|
1491
|
+
:'compute_resp_status_401' => :'Integer',
|
|
1492
|
+
:'compute_resp_status_403' => :'Integer',
|
|
1493
|
+
:'compute_resp_status_404' => :'Integer',
|
|
1494
|
+
:'compute_resp_status_416' => :'Integer',
|
|
1495
|
+
:'compute_resp_status_429' => :'Integer',
|
|
1496
|
+
:'compute_resp_status_500' => :'Integer',
|
|
1497
|
+
:'compute_resp_status_501' => :'Integer',
|
|
1498
|
+
:'compute_resp_status_502' => :'Integer',
|
|
1499
|
+
:'compute_resp_status_503' => :'Integer',
|
|
1500
|
+
:'compute_resp_status_504' => :'Integer',
|
|
1501
|
+
:'compute_resp_status_505' => :'Integer',
|
|
1502
|
+
:'compute_resp_status_530' => :'Integer',
|
|
1503
|
+
:'imgopto_compute_requests' => :'Integer',
|
|
1504
|
+
:'dns_billable_responses_count' => :'Integer',
|
|
1505
|
+
:'dns_nonbillable_responses_count' => :'Integer',
|
|
1506
|
+
:'upgrade' => :'Integer',
|
|
1507
|
+
:'ngwaf_bot_analysis_request_count' => :'Integer',
|
|
1383
1508
|
:'service_id' => :'String',
|
|
1384
1509
|
:'start_time' => :'Integer'
|
|
1385
1510
|
}
|
|
@@ -2483,6 +2608,106 @@ module Fastly
|
|
|
2483
2608
|
self.api_discovery_requests_count = attributes[:'api_discovery_requests_count']
|
|
2484
2609
|
end
|
|
2485
2610
|
|
|
2611
|
+
if attributes.key?(:'compute_resp_status_103')
|
|
2612
|
+
self.compute_resp_status_103 = attributes[:'compute_resp_status_103']
|
|
2613
|
+
end
|
|
2614
|
+
|
|
2615
|
+
if attributes.key?(:'compute_resp_status_200')
|
|
2616
|
+
self.compute_resp_status_200 = attributes[:'compute_resp_status_200']
|
|
2617
|
+
end
|
|
2618
|
+
|
|
2619
|
+
if attributes.key?(:'compute_resp_status_204')
|
|
2620
|
+
self.compute_resp_status_204 = attributes[:'compute_resp_status_204']
|
|
2621
|
+
end
|
|
2622
|
+
|
|
2623
|
+
if attributes.key?(:'compute_resp_status_206')
|
|
2624
|
+
self.compute_resp_status_206 = attributes[:'compute_resp_status_206']
|
|
2625
|
+
end
|
|
2626
|
+
|
|
2627
|
+
if attributes.key?(:'compute_resp_status_301')
|
|
2628
|
+
self.compute_resp_status_301 = attributes[:'compute_resp_status_301']
|
|
2629
|
+
end
|
|
2630
|
+
|
|
2631
|
+
if attributes.key?(:'compute_resp_status_302')
|
|
2632
|
+
self.compute_resp_status_302 = attributes[:'compute_resp_status_302']
|
|
2633
|
+
end
|
|
2634
|
+
|
|
2635
|
+
if attributes.key?(:'compute_resp_status_304')
|
|
2636
|
+
self.compute_resp_status_304 = attributes[:'compute_resp_status_304']
|
|
2637
|
+
end
|
|
2638
|
+
|
|
2639
|
+
if attributes.key?(:'compute_resp_status_400')
|
|
2640
|
+
self.compute_resp_status_400 = attributes[:'compute_resp_status_400']
|
|
2641
|
+
end
|
|
2642
|
+
|
|
2643
|
+
if attributes.key?(:'compute_resp_status_401')
|
|
2644
|
+
self.compute_resp_status_401 = attributes[:'compute_resp_status_401']
|
|
2645
|
+
end
|
|
2646
|
+
|
|
2647
|
+
if attributes.key?(:'compute_resp_status_403')
|
|
2648
|
+
self.compute_resp_status_403 = attributes[:'compute_resp_status_403']
|
|
2649
|
+
end
|
|
2650
|
+
|
|
2651
|
+
if attributes.key?(:'compute_resp_status_404')
|
|
2652
|
+
self.compute_resp_status_404 = attributes[:'compute_resp_status_404']
|
|
2653
|
+
end
|
|
2654
|
+
|
|
2655
|
+
if attributes.key?(:'compute_resp_status_416')
|
|
2656
|
+
self.compute_resp_status_416 = attributes[:'compute_resp_status_416']
|
|
2657
|
+
end
|
|
2658
|
+
|
|
2659
|
+
if attributes.key?(:'compute_resp_status_429')
|
|
2660
|
+
self.compute_resp_status_429 = attributes[:'compute_resp_status_429']
|
|
2661
|
+
end
|
|
2662
|
+
|
|
2663
|
+
if attributes.key?(:'compute_resp_status_500')
|
|
2664
|
+
self.compute_resp_status_500 = attributes[:'compute_resp_status_500']
|
|
2665
|
+
end
|
|
2666
|
+
|
|
2667
|
+
if attributes.key?(:'compute_resp_status_501')
|
|
2668
|
+
self.compute_resp_status_501 = attributes[:'compute_resp_status_501']
|
|
2669
|
+
end
|
|
2670
|
+
|
|
2671
|
+
if attributes.key?(:'compute_resp_status_502')
|
|
2672
|
+
self.compute_resp_status_502 = attributes[:'compute_resp_status_502']
|
|
2673
|
+
end
|
|
2674
|
+
|
|
2675
|
+
if attributes.key?(:'compute_resp_status_503')
|
|
2676
|
+
self.compute_resp_status_503 = attributes[:'compute_resp_status_503']
|
|
2677
|
+
end
|
|
2678
|
+
|
|
2679
|
+
if attributes.key?(:'compute_resp_status_504')
|
|
2680
|
+
self.compute_resp_status_504 = attributes[:'compute_resp_status_504']
|
|
2681
|
+
end
|
|
2682
|
+
|
|
2683
|
+
if attributes.key?(:'compute_resp_status_505')
|
|
2684
|
+
self.compute_resp_status_505 = attributes[:'compute_resp_status_505']
|
|
2685
|
+
end
|
|
2686
|
+
|
|
2687
|
+
if attributes.key?(:'compute_resp_status_530')
|
|
2688
|
+
self.compute_resp_status_530 = attributes[:'compute_resp_status_530']
|
|
2689
|
+
end
|
|
2690
|
+
|
|
2691
|
+
if attributes.key?(:'imgopto_compute_requests')
|
|
2692
|
+
self.imgopto_compute_requests = attributes[:'imgopto_compute_requests']
|
|
2693
|
+
end
|
|
2694
|
+
|
|
2695
|
+
if attributes.key?(:'dns_billable_responses_count')
|
|
2696
|
+
self.dns_billable_responses_count = attributes[:'dns_billable_responses_count']
|
|
2697
|
+
end
|
|
2698
|
+
|
|
2699
|
+
if attributes.key?(:'dns_nonbillable_responses_count')
|
|
2700
|
+
self.dns_nonbillable_responses_count = attributes[:'dns_nonbillable_responses_count']
|
|
2701
|
+
end
|
|
2702
|
+
|
|
2703
|
+
if attributes.key?(:'upgrade')
|
|
2704
|
+
self.upgrade = attributes[:'upgrade']
|
|
2705
|
+
end
|
|
2706
|
+
|
|
2707
|
+
if attributes.key?(:'ngwaf_bot_analysis_request_count')
|
|
2708
|
+
self.ngwaf_bot_analysis_request_count = attributes[:'ngwaf_bot_analysis_request_count']
|
|
2709
|
+
end
|
|
2710
|
+
|
|
2486
2711
|
if attributes.key?(:'service_id')
|
|
2487
2712
|
self.service_id = attributes[:'service_id']
|
|
2488
2713
|
end
|
|
@@ -2779,6 +3004,31 @@ module Fastly
|
|
|
2779
3004
|
ngwaf_requests_timeout_count == o.ngwaf_requests_timeout_count &&
|
|
2780
3005
|
ngwaf_requests_challenged_count == o.ngwaf_requests_challenged_count &&
|
|
2781
3006
|
api_discovery_requests_count == o.api_discovery_requests_count &&
|
|
3007
|
+
compute_resp_status_103 == o.compute_resp_status_103 &&
|
|
3008
|
+
compute_resp_status_200 == o.compute_resp_status_200 &&
|
|
3009
|
+
compute_resp_status_204 == o.compute_resp_status_204 &&
|
|
3010
|
+
compute_resp_status_206 == o.compute_resp_status_206 &&
|
|
3011
|
+
compute_resp_status_301 == o.compute_resp_status_301 &&
|
|
3012
|
+
compute_resp_status_302 == o.compute_resp_status_302 &&
|
|
3013
|
+
compute_resp_status_304 == o.compute_resp_status_304 &&
|
|
3014
|
+
compute_resp_status_400 == o.compute_resp_status_400 &&
|
|
3015
|
+
compute_resp_status_401 == o.compute_resp_status_401 &&
|
|
3016
|
+
compute_resp_status_403 == o.compute_resp_status_403 &&
|
|
3017
|
+
compute_resp_status_404 == o.compute_resp_status_404 &&
|
|
3018
|
+
compute_resp_status_416 == o.compute_resp_status_416 &&
|
|
3019
|
+
compute_resp_status_429 == o.compute_resp_status_429 &&
|
|
3020
|
+
compute_resp_status_500 == o.compute_resp_status_500 &&
|
|
3021
|
+
compute_resp_status_501 == o.compute_resp_status_501 &&
|
|
3022
|
+
compute_resp_status_502 == o.compute_resp_status_502 &&
|
|
3023
|
+
compute_resp_status_503 == o.compute_resp_status_503 &&
|
|
3024
|
+
compute_resp_status_504 == o.compute_resp_status_504 &&
|
|
3025
|
+
compute_resp_status_505 == o.compute_resp_status_505 &&
|
|
3026
|
+
compute_resp_status_530 == o.compute_resp_status_530 &&
|
|
3027
|
+
imgopto_compute_requests == o.imgopto_compute_requests &&
|
|
3028
|
+
dns_billable_responses_count == o.dns_billable_responses_count &&
|
|
3029
|
+
dns_nonbillable_responses_count == o.dns_nonbillable_responses_count &&
|
|
3030
|
+
upgrade == o.upgrade &&
|
|
3031
|
+
ngwaf_bot_analysis_request_count == o.ngwaf_bot_analysis_request_count &&
|
|
2782
3032
|
service_id == o.service_id &&
|
|
2783
3033
|
start_time == o.start_time
|
|
2784
3034
|
end
|
|
@@ -2792,7 +3042,7 @@ module Fastly
|
|
|
2792
3042
|
# Calculates hash code according to all attributes.
|
|
2793
3043
|
# @return [Integer] Hash code
|
|
2794
3044
|
def hash
|
|
2795
|
-
[requests, hits, hits_time, miss, miss_time, pass, pass_time, errors, restarts, hit_ratio, bandwidth, body_size, header_size, req_body_bytes, req_header_bytes, resp_body_bytes, resp_header_bytes, bereq_body_bytes, bereq_header_bytes, uncacheable, pipe, synth, tls, tls_v10, tls_v11, tls_v12, tls_v13, edge_requests, edge_resp_header_bytes, edge_resp_body_bytes, edge_hit_requests, edge_miss_requests, origin_fetches, origin_fetch_header_bytes, origin_fetch_body_bytes, origin_fetch_resp_header_bytes, origin_fetch_resp_body_bytes, origin_revalidations, origin_cache_fetches, shield, shield_resp_body_bytes, shield_resp_header_bytes, shield_fetches, shield_fetch_header_bytes, shield_fetch_body_bytes, shield_fetch_resp_header_bytes, shield_fetch_resp_body_bytes, shield_revalidations, shield_cache_fetches, ipv6, otfp, otfp_resp_body_bytes, otfp_resp_header_bytes, otfp_shield_resp_body_bytes, otfp_shield_resp_header_bytes, otfp_manifests, otfp_deliver_time, otfp_shield_time, video, pci, log, log_bytes, http2, http3, waf_logged, waf_blocked, waf_passed, attack_req_body_bytes, attack_req_header_bytes, attack_logged_req_body_bytes, attack_logged_req_header_bytes, attack_blocked_req_body_bytes, attack_blocked_req_header_bytes, attack_passed_req_body_bytes, attack_passed_req_header_bytes, attack_resp_synth_bytes, imgopto, imgopto_resp_body_bytes, imgopto_resp_header_bytes, imgopto_shield, imgopto_shield_resp_body_bytes, imgopto_shield_resp_header_bytes, imgopto_transforms, imgvideo, imgvideo_frames, imgvideo_resp_header_bytes, imgvideo_resp_body_bytes, imgvideo_shield_resp_header_bytes, imgvideo_shield_resp_body_bytes, imgvideo_shield, imgvideo_shield_frames, status_200, status_204, status_206, status_301, status_302, status_304, status_400, status_401, status_403, status_404, status_406, status_416, status_429, status_500, status_501, status_502, status_503, status_504, status_505, status_530, status_1xx, status_2xx, status_3xx, status_4xx, status_5xx, object_size_1k, object_size_10k, object_size_100k, object_size_1m, object_size_10m, object_size_100m, object_size_1g, recv_sub_time, recv_sub_count, hash_sub_time, hash_sub_count, miss_sub_time, miss_sub_count, fetch_sub_time, fetch_sub_count, pass_sub_time, pass_sub_count, pipe_sub_time, pipe_sub_count, deliver_sub_time, deliver_sub_count, error_sub_time, error_sub_count, hit_sub_time, hit_sub_count, prehash_sub_time, prehash_sub_count, predeliver_sub_time, predeliver_sub_count, tls_handshake_sent_bytes, hit_resp_body_bytes, miss_resp_body_bytes, pass_resp_body_bytes, segblock_origin_fetches, segblock_shield_fetches, compute_requests, compute_request_time_ms, compute_request_time_billed_ms, compute_ram_used, compute_execution_time_ms, compute_req_header_bytes, compute_req_body_bytes, compute_resp_header_bytes, compute_resp_body_bytes, compute_resp_status_1xx, compute_resp_status_2xx, compute_resp_status_3xx, compute_resp_status_4xx, compute_resp_status_5xx, compute_bereq_header_bytes, compute_bereq_body_bytes, compute_beresp_header_bytes, compute_beresp_body_bytes, compute_bereqs, compute_bereq_errors, compute_resource_limit_exceeded, compute_heap_limit_exceeded, compute_stack_limit_exceeded, compute_globals_limit_exceeded, compute_guest_errors, compute_runtime_errors, edge_hit_resp_body_bytes, edge_hit_resp_header_bytes, edge_miss_resp_body_bytes, edge_miss_resp_header_bytes, origin_cache_fetch_resp_body_bytes, origin_cache_fetch_resp_header_bytes, shield_hit_requests, shield_miss_requests, shield_hit_resp_header_bytes, shield_hit_resp_body_bytes, shield_miss_resp_header_bytes, shield_miss_resp_body_bytes, websocket_req_header_bytes, websocket_req_body_bytes, websocket_resp_header_bytes, websocket_resp_body_bytes, websocket_bereq_header_bytes, websocket_bereq_body_bytes, websocket_beresp_header_bytes, websocket_beresp_body_bytes, websocket_conn_time_ms, fanout_recv_publishes, fanout_send_publishes, kv_store_class_a_operations, kv_store_class_b_operations, object_store_class_a_operations, object_store_class_b_operations, fanout_req_header_bytes, fanout_req_body_bytes, fanout_resp_header_bytes, fanout_resp_body_bytes, fanout_bereq_header_bytes, fanout_bereq_body_bytes, fanout_beresp_header_bytes, fanout_beresp_body_bytes, fanout_conn_time_ms, ddos_action_limit_streams_connections, ddos_action_limit_streams_requests, ddos_action_tarpit_accept, ddos_action_tarpit, ddos_action_close, ddos_action_blackhole, bot_challenge_starts, bot_challenge_complete_tokens_passed, bot_challenge_complete_tokens_failed, bot_challenge_complete_tokens_checked, bot_challenge_complete_tokens_disabled, bot_challenge_complete_tokens_issued, bot_challenges_issued, bot_challenges_succeeded, bot_challenges_failed, ddos_action_downgrade, ddos_action_downgraded_connections, all_hit_requests, all_miss_requests, all_pass_requests, all_error_requests, all_synth_requests, all_edge_hit_requests, all_edge_miss_requests, all_status_1xx, all_status_2xx, all_status_3xx, all_status_4xx, all_status_5xx, origin_offload, request_denied_get_head_body, ddos_protection_requests_detect_count, ddos_protection_requests_mitigate_count, ddos_protection_requests_allow_count, object_storage_class_a_operations_count, object_storage_class_b_operations_count, aia_requests, aia_status_1xx, aia_status_2xx, aia_status_3xx, aia_status_4xx, aia_status_5xx, aia_response_usage_tokens, aia_origin_usage_tokens, aia_estimated_time_saved_ms, request_collapse_usable_count, request_collapse_unusable_count, compute_cache_operations_count, ngwaf_requests_total_count, ngwaf_requests_unknown_count, ngwaf_requests_allowed_count, ngwaf_requests_logged_count, ngwaf_requests_blocked_count, ngwaf_requests_timeout_count, ngwaf_requests_challenged_count, api_discovery_requests_count, service_id, start_time].hash
|
|
3045
|
+
[requests, hits, hits_time, miss, miss_time, pass, pass_time, errors, restarts, hit_ratio, bandwidth, body_size, header_size, req_body_bytes, req_header_bytes, resp_body_bytes, resp_header_bytes, bereq_body_bytes, bereq_header_bytes, uncacheable, pipe, synth, tls, tls_v10, tls_v11, tls_v12, tls_v13, edge_requests, edge_resp_header_bytes, edge_resp_body_bytes, edge_hit_requests, edge_miss_requests, origin_fetches, origin_fetch_header_bytes, origin_fetch_body_bytes, origin_fetch_resp_header_bytes, origin_fetch_resp_body_bytes, origin_revalidations, origin_cache_fetches, shield, shield_resp_body_bytes, shield_resp_header_bytes, shield_fetches, shield_fetch_header_bytes, shield_fetch_body_bytes, shield_fetch_resp_header_bytes, shield_fetch_resp_body_bytes, shield_revalidations, shield_cache_fetches, ipv6, otfp, otfp_resp_body_bytes, otfp_resp_header_bytes, otfp_shield_resp_body_bytes, otfp_shield_resp_header_bytes, otfp_manifests, otfp_deliver_time, otfp_shield_time, video, pci, log, log_bytes, http2, http3, waf_logged, waf_blocked, waf_passed, attack_req_body_bytes, attack_req_header_bytes, attack_logged_req_body_bytes, attack_logged_req_header_bytes, attack_blocked_req_body_bytes, attack_blocked_req_header_bytes, attack_passed_req_body_bytes, attack_passed_req_header_bytes, attack_resp_synth_bytes, imgopto, imgopto_resp_body_bytes, imgopto_resp_header_bytes, imgopto_shield, imgopto_shield_resp_body_bytes, imgopto_shield_resp_header_bytes, imgopto_transforms, imgvideo, imgvideo_frames, imgvideo_resp_header_bytes, imgvideo_resp_body_bytes, imgvideo_shield_resp_header_bytes, imgvideo_shield_resp_body_bytes, imgvideo_shield, imgvideo_shield_frames, status_200, status_204, status_206, status_301, status_302, status_304, status_400, status_401, status_403, status_404, status_406, status_416, status_429, status_500, status_501, status_502, status_503, status_504, status_505, status_530, status_1xx, status_2xx, status_3xx, status_4xx, status_5xx, object_size_1k, object_size_10k, object_size_100k, object_size_1m, object_size_10m, object_size_100m, object_size_1g, recv_sub_time, recv_sub_count, hash_sub_time, hash_sub_count, miss_sub_time, miss_sub_count, fetch_sub_time, fetch_sub_count, pass_sub_time, pass_sub_count, pipe_sub_time, pipe_sub_count, deliver_sub_time, deliver_sub_count, error_sub_time, error_sub_count, hit_sub_time, hit_sub_count, prehash_sub_time, prehash_sub_count, predeliver_sub_time, predeliver_sub_count, tls_handshake_sent_bytes, hit_resp_body_bytes, miss_resp_body_bytes, pass_resp_body_bytes, segblock_origin_fetches, segblock_shield_fetches, compute_requests, compute_request_time_ms, compute_request_time_billed_ms, compute_ram_used, compute_execution_time_ms, compute_req_header_bytes, compute_req_body_bytes, compute_resp_header_bytes, compute_resp_body_bytes, compute_resp_status_1xx, compute_resp_status_2xx, compute_resp_status_3xx, compute_resp_status_4xx, compute_resp_status_5xx, compute_bereq_header_bytes, compute_bereq_body_bytes, compute_beresp_header_bytes, compute_beresp_body_bytes, compute_bereqs, compute_bereq_errors, compute_resource_limit_exceeded, compute_heap_limit_exceeded, compute_stack_limit_exceeded, compute_globals_limit_exceeded, compute_guest_errors, compute_runtime_errors, edge_hit_resp_body_bytes, edge_hit_resp_header_bytes, edge_miss_resp_body_bytes, edge_miss_resp_header_bytes, origin_cache_fetch_resp_body_bytes, origin_cache_fetch_resp_header_bytes, shield_hit_requests, shield_miss_requests, shield_hit_resp_header_bytes, shield_hit_resp_body_bytes, shield_miss_resp_header_bytes, shield_miss_resp_body_bytes, websocket_req_header_bytes, websocket_req_body_bytes, websocket_resp_header_bytes, websocket_resp_body_bytes, websocket_bereq_header_bytes, websocket_bereq_body_bytes, websocket_beresp_header_bytes, websocket_beresp_body_bytes, websocket_conn_time_ms, fanout_recv_publishes, fanout_send_publishes, kv_store_class_a_operations, kv_store_class_b_operations, object_store_class_a_operations, object_store_class_b_operations, fanout_req_header_bytes, fanout_req_body_bytes, fanout_resp_header_bytes, fanout_resp_body_bytes, fanout_bereq_header_bytes, fanout_bereq_body_bytes, fanout_beresp_header_bytes, fanout_beresp_body_bytes, fanout_conn_time_ms, ddos_action_limit_streams_connections, ddos_action_limit_streams_requests, ddos_action_tarpit_accept, ddos_action_tarpit, ddos_action_close, ddos_action_blackhole, bot_challenge_starts, bot_challenge_complete_tokens_passed, bot_challenge_complete_tokens_failed, bot_challenge_complete_tokens_checked, bot_challenge_complete_tokens_disabled, bot_challenge_complete_tokens_issued, bot_challenges_issued, bot_challenges_succeeded, bot_challenges_failed, ddos_action_downgrade, ddos_action_downgraded_connections, all_hit_requests, all_miss_requests, all_pass_requests, all_error_requests, all_synth_requests, all_edge_hit_requests, all_edge_miss_requests, all_status_1xx, all_status_2xx, all_status_3xx, all_status_4xx, all_status_5xx, origin_offload, request_denied_get_head_body, ddos_protection_requests_detect_count, ddos_protection_requests_mitigate_count, ddos_protection_requests_allow_count, object_storage_class_a_operations_count, object_storage_class_b_operations_count, aia_requests, aia_status_1xx, aia_status_2xx, aia_status_3xx, aia_status_4xx, aia_status_5xx, aia_response_usage_tokens, aia_origin_usage_tokens, aia_estimated_time_saved_ms, request_collapse_usable_count, request_collapse_unusable_count, compute_cache_operations_count, ngwaf_requests_total_count, ngwaf_requests_unknown_count, ngwaf_requests_allowed_count, ngwaf_requests_logged_count, ngwaf_requests_blocked_count, ngwaf_requests_timeout_count, ngwaf_requests_challenged_count, api_discovery_requests_count, compute_resp_status_103, compute_resp_status_200, compute_resp_status_204, compute_resp_status_206, compute_resp_status_301, compute_resp_status_302, compute_resp_status_304, compute_resp_status_400, compute_resp_status_401, compute_resp_status_403, compute_resp_status_404, compute_resp_status_416, compute_resp_status_429, compute_resp_status_500, compute_resp_status_501, compute_resp_status_502, compute_resp_status_503, compute_resp_status_504, compute_resp_status_505, compute_resp_status_530, imgopto_compute_requests, dns_billable_responses_count, dns_nonbillable_responses_count, upgrade, ngwaf_bot_analysis_request_count, service_id, start_time].hash
|
|
2796
3046
|
end
|
|
2797
3047
|
|
|
2798
3048
|
# Builds the object from hash
|
|
@@ -0,0 +1,276 @@
|
|
|
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 'date'
|
|
12
|
+
require 'time'
|
|
13
|
+
|
|
14
|
+
module Fastly
|
|
15
|
+
# All attributes for a domain status.
|
|
16
|
+
class Status
|
|
17
|
+
# The scope provided in the status request.
|
|
18
|
+
attr_accessor :scope
|
|
19
|
+
|
|
20
|
+
# The domain provided in the status request.
|
|
21
|
+
attr_accessor :domain
|
|
22
|
+
|
|
23
|
+
# The zone of the domain provided of the status request.
|
|
24
|
+
attr_accessor :zone
|
|
25
|
+
|
|
26
|
+
# A space-delimited string of the varying statuses associated with the domain provided.
|
|
27
|
+
attr_accessor :status
|
|
28
|
+
|
|
29
|
+
# A space-delimited string of the varying tags associated with the domain provided.
|
|
30
|
+
attr_accessor :tags
|
|
31
|
+
|
|
32
|
+
attr_accessor :offers
|
|
33
|
+
|
|
34
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
35
|
+
def self.attribute_map
|
|
36
|
+
{
|
|
37
|
+
:'scope' => :'scope',
|
|
38
|
+
:'domain' => :'domain',
|
|
39
|
+
:'zone' => :'zone',
|
|
40
|
+
:'status' => :'status',
|
|
41
|
+
:'tags' => :'tags',
|
|
42
|
+
:'offers' => :'offers'
|
|
43
|
+
}
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# Returns all the JSON keys this model knows about
|
|
47
|
+
def self.acceptable_attributes
|
|
48
|
+
attribute_map.values
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# Attribute type mapping.
|
|
52
|
+
def self.fastly_types
|
|
53
|
+
{
|
|
54
|
+
:'scope' => :'String',
|
|
55
|
+
:'domain' => :'String',
|
|
56
|
+
:'zone' => :'String',
|
|
57
|
+
:'status' => :'String',
|
|
58
|
+
:'tags' => :'String',
|
|
59
|
+
:'offers' => :'Array<Offer>'
|
|
60
|
+
}
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# List of attributes with nullable: true
|
|
64
|
+
def self.fastly_nullable
|
|
65
|
+
Set.new([
|
|
66
|
+
])
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# List of class defined in allOf (OpenAPI v3)
|
|
70
|
+
def self.fastly_all_of
|
|
71
|
+
[
|
|
72
|
+
:'StatusAllOf'
|
|
73
|
+
]
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# Initializes the object
|
|
77
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
78
|
+
def initialize(attributes = {})
|
|
79
|
+
if (!attributes.is_a?(Hash))
|
|
80
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::Status` initialize method"
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
84
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
85
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
86
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::Status`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
87
|
+
end
|
|
88
|
+
h[k.to_sym] = v
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
if attributes.key?(:'scope')
|
|
92
|
+
self.scope = attributes[:'scope']
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
if attributes.key?(:'domain')
|
|
96
|
+
self.domain = attributes[:'domain']
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
if attributes.key?(:'zone')
|
|
100
|
+
self.zone = attributes[:'zone']
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
if attributes.key?(:'status')
|
|
104
|
+
self.status = attributes[:'status']
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
if attributes.key?(:'tags')
|
|
108
|
+
self.tags = attributes[:'tags']
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
if attributes.key?(:'offers')
|
|
112
|
+
if (value = attributes[:'offers']).is_a?(Array)
|
|
113
|
+
self.offers = value
|
|
114
|
+
end
|
|
115
|
+
end
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
119
|
+
# @return Array for valid properties with the reasons
|
|
120
|
+
def list_invalid_properties
|
|
121
|
+
invalid_properties = Array.new
|
|
122
|
+
invalid_properties
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
# Check to see if the all the properties in the model are valid
|
|
126
|
+
# @return true if the model is valid
|
|
127
|
+
def valid?
|
|
128
|
+
true
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
# Checks equality by comparing each attribute.
|
|
132
|
+
# @param [Object] Object to be compared
|
|
133
|
+
def ==(o)
|
|
134
|
+
return true if self.equal?(o)
|
|
135
|
+
self.class == o.class &&
|
|
136
|
+
scope == o.scope &&
|
|
137
|
+
domain == o.domain &&
|
|
138
|
+
zone == o.zone &&
|
|
139
|
+
status == o.status &&
|
|
140
|
+
tags == o.tags &&
|
|
141
|
+
offers == o.offers
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
# @see the `==` method
|
|
145
|
+
# @param [Object] Object to be compared
|
|
146
|
+
def eql?(o)
|
|
147
|
+
self == o
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
# Calculates hash code according to all attributes.
|
|
151
|
+
# @return [Integer] Hash code
|
|
152
|
+
def hash
|
|
153
|
+
[scope, domain, zone, status, tags, offers].hash
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
# Builds the object from hash
|
|
157
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
158
|
+
# @return [Object] Returns the model itself
|
|
159
|
+
def self.build_from_hash(attributes)
|
|
160
|
+
new.build_from_hash(attributes)
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
# Builds the object from hash
|
|
164
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
165
|
+
# @return [Object] Returns the model itself
|
|
166
|
+
def build_from_hash(attributes)
|
|
167
|
+
return nil unless attributes.is_a?(Hash)
|
|
168
|
+
self.class.fastly_types.each_pair do |key, type|
|
|
169
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.fastly_nullable.include?(key)
|
|
170
|
+
self.send("#{key}=", nil)
|
|
171
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
172
|
+
# check to ensure the input is an array given that the attribute
|
|
173
|
+
# is documented as an array but the input is not
|
|
174
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
175
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
176
|
+
end
|
|
177
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
178
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
179
|
+
end
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
self
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
# Deserializes the data based on type
|
|
186
|
+
# @param string type Data type
|
|
187
|
+
# @param string value Value to be deserialized
|
|
188
|
+
# @return [Object] Deserialized data
|
|
189
|
+
def _deserialize(type, value)
|
|
190
|
+
case type.to_sym
|
|
191
|
+
when :Time
|
|
192
|
+
Time.parse(value)
|
|
193
|
+
when :Date
|
|
194
|
+
Date.parse(value)
|
|
195
|
+
when :String
|
|
196
|
+
value.to_s
|
|
197
|
+
when :Integer
|
|
198
|
+
value.to_i
|
|
199
|
+
when :Float
|
|
200
|
+
value.to_f
|
|
201
|
+
when :Boolean
|
|
202
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
203
|
+
true
|
|
204
|
+
else
|
|
205
|
+
false
|
|
206
|
+
end
|
|
207
|
+
when :Object
|
|
208
|
+
# generic object (usually a Hash), return directly
|
|
209
|
+
value
|
|
210
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
211
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
212
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
213
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
214
|
+
k_type = Regexp.last_match[:k_type]
|
|
215
|
+
v_type = Regexp.last_match[:v_type]
|
|
216
|
+
{}.tap do |hash|
|
|
217
|
+
value.each do |k, v|
|
|
218
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
219
|
+
end
|
|
220
|
+
end
|
|
221
|
+
else # model
|
|
222
|
+
# models (e.g. Pet) or oneOf
|
|
223
|
+
klass = Fastly.const_get(type)
|
|
224
|
+
klass.respond_to?(:fastly_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
225
|
+
end
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
# Returns the string representation of the object
|
|
229
|
+
# @return [String] String presentation of the object
|
|
230
|
+
def to_s
|
|
231
|
+
to_hash.to_s
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
235
|
+
# @return [Hash] Returns the object in the form of hash
|
|
236
|
+
def to_body
|
|
237
|
+
to_hash
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
# Returns the object in the form of hash
|
|
241
|
+
# @return [Hash] Returns the object in the form of hash
|
|
242
|
+
def to_hash
|
|
243
|
+
hash = {}
|
|
244
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
245
|
+
value = self.send(attr)
|
|
246
|
+
if value.nil?
|
|
247
|
+
is_nullable = self.class.fastly_nullable.include?(attr)
|
|
248
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
249
|
+
end
|
|
250
|
+
|
|
251
|
+
hash[param] = _to_hash(value)
|
|
252
|
+
end
|
|
253
|
+
hash
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
# Outputs non-array value in the form of hash
|
|
257
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
258
|
+
# @param [Object] value Any valid value
|
|
259
|
+
# @return [Hash] Returns the value in the form of hash
|
|
260
|
+
def _to_hash(value)
|
|
261
|
+
if value.is_a?(Array)
|
|
262
|
+
value.compact.map { |v| _to_hash(v) }
|
|
263
|
+
elsif value.is_a?(Hash)
|
|
264
|
+
{}.tap do |hash|
|
|
265
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
266
|
+
end
|
|
267
|
+
elsif value.respond_to? :to_hash
|
|
268
|
+
value.to_hash
|
|
269
|
+
else
|
|
270
|
+
value
|
|
271
|
+
end
|
|
272
|
+
end
|
|
273
|
+
|
|
274
|
+
end
|
|
275
|
+
|
|
276
|
+
end
|