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
|
@@ -0,0 +1,247 @@
|
|
|
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
|
+
class SuggestionAllOf
|
|
16
|
+
# The suggested domain, consisting of a subdomain and zone.
|
|
17
|
+
attr_accessor :domain
|
|
18
|
+
|
|
19
|
+
# The subdomain of the suggested domain.
|
|
20
|
+
attr_accessor :subdomain
|
|
21
|
+
|
|
22
|
+
# The zone of the suggested domain.
|
|
23
|
+
attr_accessor :zone
|
|
24
|
+
|
|
25
|
+
# If present, the path is to be appended to the domain to complete the suggestion.
|
|
26
|
+
attr_accessor :path
|
|
27
|
+
|
|
28
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
29
|
+
def self.attribute_map
|
|
30
|
+
{
|
|
31
|
+
:'domain' => :'domain',
|
|
32
|
+
:'subdomain' => :'subdomain',
|
|
33
|
+
:'zone' => :'zone',
|
|
34
|
+
:'path' => :'path'
|
|
35
|
+
}
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# Returns all the JSON keys this model knows about
|
|
39
|
+
def self.acceptable_attributes
|
|
40
|
+
attribute_map.values
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# Attribute type mapping.
|
|
44
|
+
def self.fastly_types
|
|
45
|
+
{
|
|
46
|
+
:'domain' => :'String',
|
|
47
|
+
:'subdomain' => :'String',
|
|
48
|
+
:'zone' => :'String',
|
|
49
|
+
:'path' => :'String'
|
|
50
|
+
}
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# List of attributes with nullable: true
|
|
54
|
+
def self.fastly_nullable
|
|
55
|
+
Set.new([
|
|
56
|
+
])
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# Initializes the object
|
|
60
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
61
|
+
def initialize(attributes = {})
|
|
62
|
+
if (!attributes.is_a?(Hash))
|
|
63
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::SuggestionAllOf` initialize method"
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
67
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
68
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
69
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::SuggestionAllOf`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
70
|
+
end
|
|
71
|
+
h[k.to_sym] = v
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
if attributes.key?(:'domain')
|
|
75
|
+
self.domain = attributes[:'domain']
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
if attributes.key?(:'subdomain')
|
|
79
|
+
self.subdomain = attributes[:'subdomain']
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
if attributes.key?(:'zone')
|
|
83
|
+
self.zone = attributes[:'zone']
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
if attributes.key?(:'path')
|
|
87
|
+
self.path = attributes[:'path']
|
|
88
|
+
end
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
92
|
+
# @return Array for valid properties with the reasons
|
|
93
|
+
def list_invalid_properties
|
|
94
|
+
invalid_properties = Array.new
|
|
95
|
+
invalid_properties
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# Check to see if the all the properties in the model are valid
|
|
99
|
+
# @return true if the model is valid
|
|
100
|
+
def valid?
|
|
101
|
+
true
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# Checks equality by comparing each attribute.
|
|
105
|
+
# @param [Object] Object to be compared
|
|
106
|
+
def ==(o)
|
|
107
|
+
return true if self.equal?(o)
|
|
108
|
+
self.class == o.class &&
|
|
109
|
+
domain == o.domain &&
|
|
110
|
+
subdomain == o.subdomain &&
|
|
111
|
+
zone == o.zone &&
|
|
112
|
+
path == o.path
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# @see the `==` method
|
|
116
|
+
# @param [Object] Object to be compared
|
|
117
|
+
def eql?(o)
|
|
118
|
+
self == o
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
# Calculates hash code according to all attributes.
|
|
122
|
+
# @return [Integer] Hash code
|
|
123
|
+
def hash
|
|
124
|
+
[domain, subdomain, zone, path].hash
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
# Builds the object from hash
|
|
128
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
129
|
+
# @return [Object] Returns the model itself
|
|
130
|
+
def self.build_from_hash(attributes)
|
|
131
|
+
new.build_from_hash(attributes)
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
# Builds the object from hash
|
|
135
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
136
|
+
# @return [Object] Returns the model itself
|
|
137
|
+
def build_from_hash(attributes)
|
|
138
|
+
return nil unless attributes.is_a?(Hash)
|
|
139
|
+
self.class.fastly_types.each_pair do |key, type|
|
|
140
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.fastly_nullable.include?(key)
|
|
141
|
+
self.send("#{key}=", nil)
|
|
142
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
143
|
+
# check to ensure the input is an array given that the attribute
|
|
144
|
+
# is documented as an array but the input is not
|
|
145
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
146
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
147
|
+
end
|
|
148
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
149
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
150
|
+
end
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
self
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
# Deserializes the data based on type
|
|
157
|
+
# @param string type Data type
|
|
158
|
+
# @param string value Value to be deserialized
|
|
159
|
+
# @return [Object] Deserialized data
|
|
160
|
+
def _deserialize(type, value)
|
|
161
|
+
case type.to_sym
|
|
162
|
+
when :Time
|
|
163
|
+
Time.parse(value)
|
|
164
|
+
when :Date
|
|
165
|
+
Date.parse(value)
|
|
166
|
+
when :String
|
|
167
|
+
value.to_s
|
|
168
|
+
when :Integer
|
|
169
|
+
value.to_i
|
|
170
|
+
when :Float
|
|
171
|
+
value.to_f
|
|
172
|
+
when :Boolean
|
|
173
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
174
|
+
true
|
|
175
|
+
else
|
|
176
|
+
false
|
|
177
|
+
end
|
|
178
|
+
when :Object
|
|
179
|
+
# generic object (usually a Hash), return directly
|
|
180
|
+
value
|
|
181
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
182
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
183
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
184
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
185
|
+
k_type = Regexp.last_match[:k_type]
|
|
186
|
+
v_type = Regexp.last_match[:v_type]
|
|
187
|
+
{}.tap do |hash|
|
|
188
|
+
value.each do |k, v|
|
|
189
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
190
|
+
end
|
|
191
|
+
end
|
|
192
|
+
else # model
|
|
193
|
+
# models (e.g. Pet) or oneOf
|
|
194
|
+
klass = Fastly.const_get(type)
|
|
195
|
+
klass.respond_to?(:fastly_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
196
|
+
end
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
# Returns the string representation of the object
|
|
200
|
+
# @return [String] String presentation of the object
|
|
201
|
+
def to_s
|
|
202
|
+
to_hash.to_s
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
206
|
+
# @return [Hash] Returns the object in the form of hash
|
|
207
|
+
def to_body
|
|
208
|
+
to_hash
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
# Returns the object in the form of hash
|
|
212
|
+
# @return [Hash] Returns the object in the form of hash
|
|
213
|
+
def to_hash
|
|
214
|
+
hash = {}
|
|
215
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
216
|
+
value = self.send(attr)
|
|
217
|
+
if value.nil?
|
|
218
|
+
is_nullable = self.class.fastly_nullable.include?(attr)
|
|
219
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
hash[param] = _to_hash(value)
|
|
223
|
+
end
|
|
224
|
+
hash
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
# Outputs non-array value in the form of hash
|
|
228
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
229
|
+
# @param [Object] value Any valid value
|
|
230
|
+
# @return [Hash] Returns the value in the form of hash
|
|
231
|
+
def _to_hash(value)
|
|
232
|
+
if value.is_a?(Array)
|
|
233
|
+
value.compact.map { |v| _to_hash(v) }
|
|
234
|
+
elsif value.is_a?(Hash)
|
|
235
|
+
{}.tap do |hash|
|
|
236
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
237
|
+
end
|
|
238
|
+
elsif value.respond_to? :to_hash
|
|
239
|
+
value.to_hash
|
|
240
|
+
else
|
|
241
|
+
value
|
|
242
|
+
end
|
|
243
|
+
end
|
|
244
|
+
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
end
|
data/lib/fastly/models/user.rb
CHANGED
|
@@ -29,6 +29,9 @@ module Fastly
|
|
|
29
29
|
|
|
30
30
|
attr_accessor :role
|
|
31
31
|
|
|
32
|
+
# A list of role IDs assigned to the user.
|
|
33
|
+
attr_accessor :roles
|
|
34
|
+
|
|
32
35
|
# Indicates if 2FA is enabled on the user.
|
|
33
36
|
attr_accessor :two_factor_auth_enabled
|
|
34
37
|
|
|
@@ -44,6 +47,7 @@ module Fastly
|
|
|
44
47
|
:'locked' => :'locked',
|
|
45
48
|
:'require_new_password' => :'require_new_password',
|
|
46
49
|
:'role' => :'role',
|
|
50
|
+
:'roles' => :'roles',
|
|
47
51
|
:'two_factor_auth_enabled' => :'two_factor_auth_enabled',
|
|
48
52
|
:'two_factor_setup_required' => :'two_factor_setup_required'
|
|
49
53
|
}
|
|
@@ -63,6 +67,7 @@ module Fastly
|
|
|
63
67
|
:'locked' => :'Boolean',
|
|
64
68
|
:'require_new_password' => :'Boolean',
|
|
65
69
|
:'role' => :'RoleUser',
|
|
70
|
+
:'roles' => :'Array<String>',
|
|
66
71
|
:'two_factor_auth_enabled' => :'Boolean',
|
|
67
72
|
:'two_factor_setup_required' => :'Boolean'
|
|
68
73
|
}
|
|
@@ -116,6 +121,12 @@ module Fastly
|
|
|
116
121
|
self.role = attributes[:'role']
|
|
117
122
|
end
|
|
118
123
|
|
|
124
|
+
if attributes.key?(:'roles')
|
|
125
|
+
if (value = attributes[:'roles']).is_a?(Array)
|
|
126
|
+
self.roles = value
|
|
127
|
+
end
|
|
128
|
+
end
|
|
129
|
+
|
|
119
130
|
if attributes.key?(:'two_factor_auth_enabled')
|
|
120
131
|
self.two_factor_auth_enabled = attributes[:'two_factor_auth_enabled']
|
|
121
132
|
end
|
|
@@ -149,6 +160,7 @@ module Fastly
|
|
|
149
160
|
locked == o.locked &&
|
|
150
161
|
require_new_password == o.require_new_password &&
|
|
151
162
|
role == o.role &&
|
|
163
|
+
roles == o.roles &&
|
|
152
164
|
two_factor_auth_enabled == o.two_factor_auth_enabled &&
|
|
153
165
|
two_factor_setup_required == o.two_factor_setup_required
|
|
154
166
|
end
|
|
@@ -162,7 +174,7 @@ module Fastly
|
|
|
162
174
|
# Calculates hash code according to all attributes.
|
|
163
175
|
# @return [Integer] Hash code
|
|
164
176
|
def hash
|
|
165
|
-
[login, name, limit_services, locked, require_new_password, role, two_factor_auth_enabled, two_factor_setup_required].hash
|
|
177
|
+
[login, name, limit_services, locked, require_new_password, role, roles, two_factor_auth_enabled, two_factor_setup_required].hash
|
|
166
178
|
end
|
|
167
179
|
|
|
168
180
|
# Builds the object from hash
|
|
@@ -29,6 +29,9 @@ module Fastly
|
|
|
29
29
|
|
|
30
30
|
attr_accessor :role
|
|
31
31
|
|
|
32
|
+
# A list of role IDs assigned to the user.
|
|
33
|
+
attr_accessor :roles
|
|
34
|
+
|
|
32
35
|
# Indicates if 2FA is enabled on the user.
|
|
33
36
|
attr_accessor :two_factor_auth_enabled
|
|
34
37
|
|
|
@@ -60,6 +63,7 @@ module Fastly
|
|
|
60
63
|
:'locked' => :'locked',
|
|
61
64
|
:'require_new_password' => :'require_new_password',
|
|
62
65
|
:'role' => :'role',
|
|
66
|
+
:'roles' => :'roles',
|
|
63
67
|
:'two_factor_auth_enabled' => :'two_factor_auth_enabled',
|
|
64
68
|
:'two_factor_setup_required' => :'two_factor_setup_required',
|
|
65
69
|
:'created_at' => :'created_at',
|
|
@@ -85,6 +89,7 @@ module Fastly
|
|
|
85
89
|
:'locked' => :'Boolean',
|
|
86
90
|
:'require_new_password' => :'Boolean',
|
|
87
91
|
:'role' => :'RoleUser',
|
|
92
|
+
:'roles' => :'Array<String>',
|
|
88
93
|
:'two_factor_auth_enabled' => :'Boolean',
|
|
89
94
|
:'two_factor_setup_required' => :'Boolean',
|
|
90
95
|
:'created_at' => :'Time',
|
|
@@ -156,6 +161,12 @@ module Fastly
|
|
|
156
161
|
self.role = attributes[:'role']
|
|
157
162
|
end
|
|
158
163
|
|
|
164
|
+
if attributes.key?(:'roles')
|
|
165
|
+
if (value = attributes[:'roles']).is_a?(Array)
|
|
166
|
+
self.roles = value
|
|
167
|
+
end
|
|
168
|
+
end
|
|
169
|
+
|
|
159
170
|
if attributes.key?(:'two_factor_auth_enabled')
|
|
160
171
|
self.two_factor_auth_enabled = attributes[:'two_factor_auth_enabled']
|
|
161
172
|
end
|
|
@@ -213,6 +224,7 @@ module Fastly
|
|
|
213
224
|
locked == o.locked &&
|
|
214
225
|
require_new_password == o.require_new_password &&
|
|
215
226
|
role == o.role &&
|
|
227
|
+
roles == o.roles &&
|
|
216
228
|
two_factor_auth_enabled == o.two_factor_auth_enabled &&
|
|
217
229
|
two_factor_setup_required == o.two_factor_setup_required &&
|
|
218
230
|
created_at == o.created_at &&
|
|
@@ -232,7 +244,7 @@ module Fastly
|
|
|
232
244
|
# Calculates hash code according to all attributes.
|
|
233
245
|
# @return [Integer] Hash code
|
|
234
246
|
def hash
|
|
235
|
-
[login, name, limit_services, locked, require_new_password, role, two_factor_auth_enabled, two_factor_setup_required, created_at, deleted_at, updated_at, id, email_hash, customer_id].hash
|
|
247
|
+
[login, name, limit_services, locked, require_new_password, role, roles, two_factor_auth_enabled, two_factor_setup_required, created_at, deleted_at, updated_at, id, email_hash, customer_id].hash
|
|
236
248
|
end
|
|
237
249
|
|
|
238
250
|
# Builds the object from hash
|
|
@@ -37,7 +37,7 @@ module Fastly
|
|
|
37
37
|
def self.fastly_types
|
|
38
38
|
{
|
|
39
39
|
:'product' => :'WebsocketsResponseProductProduct',
|
|
40
|
-
:'service' => :'
|
|
40
|
+
:'service' => :'ApiDiscoveryResponseServiceService',
|
|
41
41
|
:'_links' => :'WebsocketsResponseLinksLinks'
|
|
42
42
|
}
|
|
43
43
|
end
|
data/lib/fastly/version.rb
CHANGED
data/lib/fastly.rb
CHANGED
|
@@ -32,6 +32,19 @@ require 'fastly/models/ai_accelerator_response_product'
|
|
|
32
32
|
require 'fastly/models/ai_accelerator_response_product_product'
|
|
33
33
|
require 'fastly/models/apex_redirect'
|
|
34
34
|
require 'fastly/models/apex_redirect_all_of'
|
|
35
|
+
require 'fastly/models/api_discovery_response_body_get_all_services'
|
|
36
|
+
require 'fastly/models/api_discovery_response_customer'
|
|
37
|
+
require 'fastly/models/api_discovery_response_customer_customer'
|
|
38
|
+
require 'fastly/models/api_discovery_response_enable'
|
|
39
|
+
require 'fastly/models/api_discovery_response_enabled_services'
|
|
40
|
+
require 'fastly/models/api_discovery_response_links'
|
|
41
|
+
require 'fastly/models/api_discovery_response_links_get_all_services'
|
|
42
|
+
require 'fastly/models/api_discovery_response_links_get_all_services_links'
|
|
43
|
+
require 'fastly/models/api_discovery_response_links_links'
|
|
44
|
+
require 'fastly/models/api_discovery_response_product'
|
|
45
|
+
require 'fastly/models/api_discovery_response_product_product'
|
|
46
|
+
require 'fastly/models/api_discovery_response_service'
|
|
47
|
+
require 'fastly/models/api_discovery_response_service_service'
|
|
35
48
|
require 'fastly/models/async_response'
|
|
36
49
|
require 'fastly/models/attack_report'
|
|
37
50
|
require 'fastly/models/attack_signal'
|
|
@@ -67,7 +80,6 @@ require 'fastly/models/bot_management_response_links_links'
|
|
|
67
80
|
require 'fastly/models/bot_management_response_product'
|
|
68
81
|
require 'fastly/models/bot_management_response_product_product'
|
|
69
82
|
require 'fastly/models/bot_management_response_service'
|
|
70
|
-
require 'fastly/models/bot_management_response_service_service'
|
|
71
83
|
require 'fastly/models/brotli_compression_response_body_enable'
|
|
72
84
|
require 'fastly/models/brotli_compression_response_body_get_all_services'
|
|
73
85
|
require 'fastly/models/brotli_compression_response_customer'
|
|
@@ -137,6 +149,7 @@ require 'fastly/models/ddos_protection_invalid_request'
|
|
|
137
149
|
require 'fastly/models/ddos_protection_not_authenticated'
|
|
138
150
|
require 'fastly/models/ddos_protection_not_authorized'
|
|
139
151
|
require 'fastly/models/ddos_protection_not_found'
|
|
152
|
+
require 'fastly/models/ddos_protection_request_enable_mode'
|
|
140
153
|
require 'fastly/models/ddos_protection_request_update_configuration'
|
|
141
154
|
require 'fastly/models/ddos_protection_response_body_get_all_services'
|
|
142
155
|
require 'fastly/models/ddos_protection_response_configuration'
|
|
@@ -155,6 +168,8 @@ require 'fastly/models/ddos_protection_response_service'
|
|
|
155
168
|
require 'fastly/models/ddos_protection_rule'
|
|
156
169
|
require 'fastly/models/ddos_protection_rule_all_of'
|
|
157
170
|
require 'fastly/models/ddos_protection_rule_patch'
|
|
171
|
+
require 'fastly/models/ddos_protection_rule_with_stats'
|
|
172
|
+
require 'fastly/models/ddos_protection_rule_with_stats_all_of'
|
|
158
173
|
require 'fastly/models/ddos_protection_traffic_stats'
|
|
159
174
|
require 'fastly/models/ddos_protection_traffic_stats_all_of'
|
|
160
175
|
require 'fastly/models/default_settings'
|
|
@@ -199,6 +214,12 @@ require 'fastly/models/domain_inspector_response_links_links'
|
|
|
199
214
|
require 'fastly/models/domain_inspector_response_product'
|
|
200
215
|
require 'fastly/models/domain_inspector_response_product_product'
|
|
201
216
|
require 'fastly/models/domain_inspector_response_service'
|
|
217
|
+
require 'fastly/models/domain_research_response_body_enable'
|
|
218
|
+
require 'fastly/models/domain_research_response_customer'
|
|
219
|
+
require 'fastly/models/domain_research_response_links'
|
|
220
|
+
require 'fastly/models/domain_research_response_links_links'
|
|
221
|
+
require 'fastly/models/domain_research_response_product'
|
|
222
|
+
require 'fastly/models/domain_research_response_product_product'
|
|
202
223
|
require 'fastly/models/domain_response'
|
|
203
224
|
require 'fastly/models/environment'
|
|
204
225
|
require 'fastly/models/environment_name'
|
|
@@ -267,12 +288,12 @@ require 'fastly/models/http3_all_of'
|
|
|
267
288
|
require 'fastly/models/http_response_format'
|
|
268
289
|
require 'fastly/models/http_stream_format'
|
|
269
290
|
require 'fastly/models/iam_permission'
|
|
270
|
-
require 'fastly/models/iam_role'
|
|
271
|
-
require 'fastly/models/iam_role_all_of'
|
|
272
291
|
require 'fastly/models/iam_service_group'
|
|
273
292
|
require 'fastly/models/iam_service_group_all_of'
|
|
274
293
|
require 'fastly/models/iam_user_group'
|
|
275
294
|
require 'fastly/models/iam_user_group_all_of'
|
|
295
|
+
require 'fastly/models/iam_v1_role_list_response'
|
|
296
|
+
require 'fastly/models/iam_v1_role_response'
|
|
276
297
|
require 'fastly/models/image_optimizer_response_body_enable'
|
|
277
298
|
require 'fastly/models/image_optimizer_response_body_get_all_services'
|
|
278
299
|
require 'fastly/models/image_optimizer_response_customer'
|
|
@@ -290,6 +311,8 @@ require 'fastly/models/inline_object'
|
|
|
290
311
|
require 'fastly/models/inline_object1'
|
|
291
312
|
require 'fastly/models/inline_response200'
|
|
292
313
|
require 'fastly/models/inline_response2001'
|
|
314
|
+
require 'fastly/models/inline_response20010'
|
|
315
|
+
require 'fastly/models/inline_response20011'
|
|
293
316
|
require 'fastly/models/inline_response2002'
|
|
294
317
|
require 'fastly/models/inline_response2003'
|
|
295
318
|
require 'fastly/models/inline_response2004'
|
|
@@ -316,7 +339,7 @@ require 'fastly/models/invoicelineitems'
|
|
|
316
339
|
require 'fastly/models/kv_store_batch_response'
|
|
317
340
|
require 'fastly/models/kv_store_batch_response_errors'
|
|
318
341
|
require 'fastly/models/kv_store_details'
|
|
319
|
-
require 'fastly/models/
|
|
342
|
+
require 'fastly/models/kv_store_request_create_or_update'
|
|
320
343
|
require 'fastly/models/kv_store_upsert_batch'
|
|
321
344
|
require 'fastly/models/list_attack_report'
|
|
322
345
|
require 'fastly/models/list_attack_report_meta'
|
|
@@ -461,6 +484,8 @@ require 'fastly/models/object_storage_response_links'
|
|
|
461
484
|
require 'fastly/models/object_storage_response_links_links'
|
|
462
485
|
require 'fastly/models/object_storage_response_product'
|
|
463
486
|
require 'fastly/models/object_storage_response_product_product'
|
|
487
|
+
require 'fastly/models/offer'
|
|
488
|
+
require 'fastly/models/offer_all_of'
|
|
464
489
|
require 'fastly/models/origin_inspector'
|
|
465
490
|
require 'fastly/models/origin_inspector_dimensions'
|
|
466
491
|
require 'fastly/models/origin_inspector_entry'
|
|
@@ -495,6 +520,9 @@ require 'fastly/models/platform_ddos_data_items'
|
|
|
495
520
|
require 'fastly/models/platform_ddos_entry'
|
|
496
521
|
require 'fastly/models/platform_ddos_response'
|
|
497
522
|
require 'fastly/models/platform_ddos_response_all_of'
|
|
523
|
+
require 'fastly/models/platform_metadata'
|
|
524
|
+
require 'fastly/models/platform_metrics_response'
|
|
525
|
+
require 'fastly/models/platform_values'
|
|
498
526
|
require 'fastly/models/pool_additional'
|
|
499
527
|
require 'fastly/models/pool_response'
|
|
500
528
|
require 'fastly/models/pool_response_all_of'
|
|
@@ -594,6 +622,8 @@ require 'fastly/models/relationships_for_tls_configuration'
|
|
|
594
622
|
require 'fastly/models/relationships_for_tls_domain'
|
|
595
623
|
require 'fastly/models/relationships_for_tls_private_key'
|
|
596
624
|
require 'fastly/models/relationships_for_tls_subscription'
|
|
625
|
+
require 'fastly/models/request_body_for_create'
|
|
626
|
+
require 'fastly/models/request_body_for_update'
|
|
597
627
|
require 'fastly/models/request_settings_additional'
|
|
598
628
|
require 'fastly/models/request_settings_response'
|
|
599
629
|
require 'fastly/models/request_settings_response_all_of'
|
|
@@ -666,9 +696,15 @@ require 'fastly/models/star_data'
|
|
|
666
696
|
require 'fastly/models/star_response'
|
|
667
697
|
require 'fastly/models/star_response_all_of'
|
|
668
698
|
require 'fastly/models/stats'
|
|
699
|
+
require 'fastly/models/status'
|
|
700
|
+
require 'fastly/models/status_all_of'
|
|
701
|
+
require 'fastly/models/successful_response_as_object'
|
|
702
|
+
require 'fastly/models/successful_response_as_object_all_of'
|
|
669
703
|
require 'fastly/models/sudo_generic_token_error'
|
|
670
704
|
require 'fastly/models/sudo_request'
|
|
671
705
|
require 'fastly/models/sudo_response'
|
|
706
|
+
require 'fastly/models/suggestion'
|
|
707
|
+
require 'fastly/models/suggestion_all_of'
|
|
672
708
|
require 'fastly/models/timeseries_get_response'
|
|
673
709
|
require 'fastly/models/timeseries_meta'
|
|
674
710
|
require 'fastly/models/timeseries_result'
|
|
@@ -845,10 +881,12 @@ require 'fastly/api/dictionary_item_api'
|
|
|
845
881
|
require 'fastly/api/diff_api'
|
|
846
882
|
require 'fastly/api/director_api'
|
|
847
883
|
require 'fastly/api/director_backend_api'
|
|
884
|
+
require 'fastly/api/dm_domains_api'
|
|
848
885
|
require 'fastly/api/domain_api'
|
|
849
886
|
require 'fastly/api/domain_inspector_historical_api'
|
|
850
887
|
require 'fastly/api/domain_inspector_realtime_api'
|
|
851
888
|
require 'fastly/api/domain_ownerships_api'
|
|
889
|
+
require 'fastly/api/domain_research_api'
|
|
852
890
|
require 'fastly/api/events_api'
|
|
853
891
|
require 'fastly/api/gzip_api'
|
|
854
892
|
require 'fastly/api/header_api'
|
|
@@ -893,6 +931,7 @@ require 'fastly/api/logging_sftp_api'
|
|
|
893
931
|
require 'fastly/api/logging_splunk_api'
|
|
894
932
|
require 'fastly/api/logging_sumologic_api'
|
|
895
933
|
require 'fastly/api/logging_syslog_api'
|
|
934
|
+
require 'fastly/api/metrics_platform_api'
|
|
896
935
|
require 'fastly/api/mutual_authentication_api'
|
|
897
936
|
require 'fastly/api/ngwaf_reports_api'
|
|
898
937
|
require 'fastly/api/object_storage_access_keys_api'
|
|
@@ -905,10 +944,12 @@ require 'fastly/api/package_api'
|
|
|
905
944
|
require 'fastly/api/pool_api'
|
|
906
945
|
require 'fastly/api/pop_api'
|
|
907
946
|
require 'fastly/api/product_ai_accelerator_api'
|
|
947
|
+
require 'fastly/api/product_api_discovery_api'
|
|
908
948
|
require 'fastly/api/product_bot_management_api'
|
|
909
949
|
require 'fastly/api/product_brotli_compression_api'
|
|
910
950
|
require 'fastly/api/product_ddos_protection_api'
|
|
911
951
|
require 'fastly/api/product_domain_inspector_api'
|
|
952
|
+
require 'fastly/api/product_domain_research_api'
|
|
912
953
|
require 'fastly/api/product_fanout_api'
|
|
913
954
|
require 'fastly/api/product_image_optimizer_api'
|
|
914
955
|
require 'fastly/api/product_log_explorer_insights_api'
|
data/sig.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"G": "
|
|
1
|
+
{"G": "bc5e590d", "D": "0d6bf445"}
|