fastly 14.0.0 → 15.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (166) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +23 -0
  3. data/Gemfile.lock +1 -1
  4. data/README.md +13 -11
  5. data/docs/ApiDiscoveryResponseBodyGetAllServices.md +13 -0
  6. data/docs/ApiDiscoveryResponseCustomer.md +10 -0
  7. data/docs/ApiDiscoveryResponseCustomerCustomer.md +11 -0
  8. data/docs/ApiDiscoveryResponseEnable.md +12 -0
  9. data/docs/ApiDiscoveryResponseEnabledServices.md +10 -0
  10. data/docs/ApiDiscoveryResponseLinks.md +10 -0
  11. data/docs/ApiDiscoveryResponseLinksGetAllServices.md +10 -0
  12. data/docs/ApiDiscoveryResponseLinksGetAllServicesLinks.md +10 -0
  13. data/docs/ApiDiscoveryResponseLinksLinks.md +10 -0
  14. data/docs/ApiDiscoveryResponseProduct.md +10 -0
  15. data/docs/ApiDiscoveryResponseProductProduct.md +11 -0
  16. data/docs/ApiDiscoveryResponseService.md +10 -0
  17. data/docs/{BotManagementResponseServiceService.md → ApiDiscoveryResponseServiceService.md} +1 -1
  18. data/docs/BotManagementResponseBodyEnable.md +1 -1
  19. data/docs/BotManagementResponseService.md +1 -1
  20. data/docs/BrotliCompressionResponseBodyEnable.md +1 -1
  21. data/docs/BrotliCompressionResponseService.md +1 -1
  22. data/docs/DdosProtectionApi.md +2 -0
  23. data/docs/DdosProtectionResponseConfigure.md +1 -1
  24. data/docs/DdosProtectionResponseEnable.md +1 -1
  25. data/docs/DdosProtectionResponseService.md +1 -1
  26. data/docs/DdosProtectionRuleWithStats.md +23 -0
  27. data/docs/DdosProtectionRuleWithStatsAllOf.md +10 -0
  28. data/docs/DdosProtectionTrafficStats.md +1 -0
  29. data/docs/DdosProtectionTrafficStatsAllOf.md +1 -0
  30. data/docs/DmDomainsApi.md +220 -0
  31. data/docs/DomainInspectorResponseBodyEnable.md +1 -1
  32. data/docs/DomainInspectorResponseService.md +1 -1
  33. data/docs/DomainOwnershipsApi.md +2 -2
  34. data/docs/FanoutResponseBodyEnable.md +1 -1
  35. data/docs/FanoutResponseService.md +1 -1
  36. data/docs/Healthcheck.md +1 -1
  37. data/docs/HealthcheckApi.md +4 -4
  38. data/docs/HealthcheckResponse.md +1 -1
  39. data/docs/IamRolesApi.md +23 -253
  40. data/docs/IamV1RoleListResponse.md +12 -0
  41. data/docs/IamV1RoleResponse.md +13 -0
  42. data/docs/ImageOptimizerResponseBodyEnable.md +1 -1
  43. data/docs/ImageOptimizerResponseService.md +1 -1
  44. data/docs/InlineResponse20010.md +10 -0
  45. data/docs/InlineResponse2003.md +2 -2
  46. data/docs/InlineResponse2004.md +2 -1
  47. data/docs/InlineResponse2005.md +1 -2
  48. data/docs/InlineResponse2006.md +1 -1
  49. data/docs/InlineResponse2007.md +1 -1
  50. data/docs/InlineResponse2008.md +1 -1
  51. data/docs/InlineResponse2009.md +2 -1
  52. data/docs/InvitationDataAttributes.md +1 -0
  53. data/docs/KvStoreApi.md +2 -2
  54. data/docs/KvStoreItemApi.md +2 -2
  55. data/docs/LogExplorerInsightsResponseBodyEnable.md +1 -1
  56. data/docs/LogExplorerInsightsResponseService.md +1 -1
  57. data/docs/LoggingHttpsAdditional.md +1 -0
  58. data/docs/LoggingHttpsApi.md +4 -0
  59. data/docs/LoggingHttpsResponse.md +1 -0
  60. data/docs/NgwafResponseConfigure.md +1 -1
  61. data/docs/NgwafResponseEnable.md +1 -1
  62. data/docs/NgwafResponseService.md +1 -1
  63. data/docs/OriginInspectorResponseBodyEnable.md +1 -1
  64. data/docs/OriginInspectorResponseService.md +1 -1
  65. data/docs/ProductApiDiscoveryApi.md +163 -0
  66. data/docs/RealtimeEntryAggregated.md +1 -0
  67. data/docs/RealtimeMeasurements.md +1 -0
  68. data/docs/RequestBodyForCreate.md +12 -0
  69. data/docs/RequestBodyForUpdate.md +11 -0
  70. data/docs/Results.md +1 -0
  71. data/docs/SchemasUserResponse.md +1 -0
  72. data/docs/SecretStoreApi.md +2 -2
  73. data/docs/SecretStoreItemApi.md +2 -2
  74. data/docs/ServiceAuthorizationsApi.md +2 -2
  75. data/docs/SuccessfulResponseAsObject.md +17 -0
  76. data/docs/SuccessfulResponseAsObjectAllOf.md +15 -0
  77. data/docs/User.md +1 -0
  78. data/docs/UserApi.md +4 -0
  79. data/docs/UserResponse.md +1 -0
  80. data/docs/WebsocketsResponseBodyEnable.md +1 -1
  81. data/docs/WebsocketsResponseService.md +1 -1
  82. data/lib/fastly/api/ddos_protection_api.rb +3 -0
  83. data/lib/fastly/api/dm_domains_api.rb +362 -0
  84. data/lib/fastly/api/domain_ownerships_api.rb +3 -3
  85. data/lib/fastly/api/healthcheck_api.rb +20 -4
  86. data/lib/fastly/api/iam_roles_api.rb +43 -435
  87. data/lib/fastly/api/kv_store_api.rb +3 -3
  88. data/lib/fastly/api/kv_store_item_api.rb +3 -3
  89. data/lib/fastly/api/logging_https_api.rb +6 -0
  90. data/lib/fastly/api/product_api_discovery_api.rb +263 -0
  91. data/lib/fastly/api/secret_store_api.rb +3 -3
  92. data/lib/fastly/api/secret_store_item_api.rb +3 -3
  93. data/lib/fastly/api/service_authorizations_api.rb +3 -3
  94. data/lib/fastly/api/user_api.rb +6 -0
  95. data/lib/fastly/configuration.rb +56 -38
  96. data/lib/fastly/models/api_discovery_response_body_get_all_services.rb +256 -0
  97. data/lib/fastly/models/api_discovery_response_customer.rb +216 -0
  98. data/lib/fastly/models/api_discovery_response_customer_customer.rb +227 -0
  99. data/lib/fastly/models/api_discovery_response_enable.rb +243 -0
  100. data/lib/fastly/models/api_discovery_response_enabled_services.rb +219 -0
  101. data/lib/fastly/models/api_discovery_response_links.rb +216 -0
  102. data/lib/fastly/models/api_discovery_response_links_get_all_services.rb +216 -0
  103. data/lib/fastly/models/api_discovery_response_links_get_all_services_links.rb +217 -0
  104. data/lib/fastly/models/api_discovery_response_links_links.rb +217 -0
  105. data/lib/fastly/models/api_discovery_response_product.rb +216 -0
  106. data/lib/fastly/models/api_discovery_response_product_product.rb +227 -0
  107. data/lib/fastly/models/api_discovery_response_service.rb +216 -0
  108. data/lib/fastly/models/{bot_management_response_service_service.rb → api_discovery_response_service_service.rb} +3 -3
  109. data/lib/fastly/models/bot_management_response_body_enable.rb +1 -1
  110. data/lib/fastly/models/bot_management_response_service.rb +1 -1
  111. data/lib/fastly/models/brotli_compression_response_body_enable.rb +1 -1
  112. data/lib/fastly/models/brotli_compression_response_service.rb +1 -1
  113. data/lib/fastly/models/ddos_protection_response_configure.rb +1 -1
  114. data/lib/fastly/models/ddos_protection_response_enable.rb +1 -1
  115. data/lib/fastly/models/ddos_protection_response_service.rb +1 -1
  116. data/lib/fastly/models/ddos_protection_rule_with_stats.rb +365 -0
  117. data/lib/fastly/models/ddos_protection_rule_with_stats_all_of.rb +216 -0
  118. data/lib/fastly/models/ddos_protection_traffic_stats.rb +20 -4
  119. data/lib/fastly/models/ddos_protection_traffic_stats_all_of.rb +20 -4
  120. data/lib/fastly/models/domain_inspector_response_body_enable.rb +1 -1
  121. data/lib/fastly/models/domain_inspector_response_service.rb +1 -1
  122. data/lib/fastly/models/fanout_response_body_enable.rb +1 -1
  123. data/lib/fastly/models/fanout_response_service.rb +1 -1
  124. data/lib/fastly/models/healthcheck.rb +25 -1
  125. data/lib/fastly/models/healthcheck_response.rb +25 -1
  126. data/lib/fastly/models/iam_v1_role_list_response.rb +240 -0
  127. data/lib/fastly/models/{iam_role_all_of.rb → iam_v1_role_response.rb} +14 -34
  128. data/lib/fastly/models/image_optimizer_response_body_enable.rb +1 -1
  129. data/lib/fastly/models/image_optimizer_response_service.rb +1 -1
  130. data/lib/fastly/models/inline_response20010.rb +218 -0
  131. data/lib/fastly/models/inline_response2003.rb +11 -1
  132. data/lib/fastly/models/inline_response2004.rb +20 -8
  133. data/lib/fastly/models/inline_response2005.rb +8 -18
  134. data/lib/fastly/models/inline_response2006.rb +1 -1
  135. data/lib/fastly/models/inline_response2007.rb +1 -1
  136. data/lib/fastly/models/inline_response2008.rb +1 -1
  137. data/lib/fastly/models/inline_response2009.rb +13 -4
  138. data/lib/fastly/models/invitation_data_attributes.rb +12 -1
  139. data/lib/fastly/models/log_explorer_insights_response_body_enable.rb +1 -1
  140. data/lib/fastly/models/log_explorer_insights_response_service.rb +1 -1
  141. data/lib/fastly/models/logging_https_additional.rb +16 -4
  142. data/lib/fastly/models/logging_https_response.rb +13 -1
  143. data/lib/fastly/models/ngwaf_response_configure.rb +1 -1
  144. data/lib/fastly/models/ngwaf_response_enable.rb +1 -1
  145. data/lib/fastly/models/ngwaf_response_service.rb +1 -1
  146. data/lib/fastly/models/origin_inspector_response_body_enable.rb +1 -1
  147. data/lib/fastly/models/origin_inspector_response_service.rb +1 -1
  148. data/lib/fastly/models/realtime_entry_aggregated.rb +14 -4
  149. data/lib/fastly/models/realtime_measurements.rb +14 -4
  150. data/lib/fastly/models/request_body_for_create.rb +244 -0
  151. data/lib/fastly/models/request_body_for_update.rb +229 -0
  152. data/lib/fastly/models/results.rb +11 -1
  153. data/lib/fastly/models/role_user.rb +2 -0
  154. data/lib/fastly/models/schemas_user_response.rb +13 -1
  155. data/lib/fastly/models/{iam_role.rb → successful_response_as_object.rb} +37 -35
  156. data/lib/fastly/models/successful_response_as_object_all_of.rb +268 -0
  157. data/lib/fastly/models/user.rb +13 -1
  158. data/lib/fastly/models/user_response.rb +13 -1
  159. data/lib/fastly/models/websockets_response_body_enable.rb +1 -1
  160. data/lib/fastly/models/websockets_response_service.rb +1 -1
  161. data/lib/fastly/version.rb +1 -1
  162. data/lib/fastly.rb +24 -3
  163. data/sig.json +1 -1
  164. metadata +50 -8
  165. data/docs/IamRole.md +0 -17
  166. data/docs/IamRoleAllOf.md +0 -15
@@ -0,0 +1,218 @@
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 InlineResponse20010
16
+ attr_accessor :data
17
+
18
+ # Attribute mapping from ruby-style variable name to JSON key.
19
+ def self.attribute_map
20
+ {
21
+ :'data' => :'data'
22
+ }
23
+ end
24
+
25
+ # Returns all the JSON keys this model knows about
26
+ def self.acceptable_attributes
27
+ attribute_map.values
28
+ end
29
+
30
+ # Attribute type mapping.
31
+ def self.fastly_types
32
+ {
33
+ :'data' => :'Array<ServiceAuthorizationResponseData>'
34
+ }
35
+ end
36
+
37
+ # List of attributes with nullable: true
38
+ def self.fastly_nullable
39
+ Set.new([
40
+ ])
41
+ end
42
+
43
+ # Initializes the object
44
+ # @param [Hash] attributes Model attributes in the form of hash
45
+ def initialize(attributes = {})
46
+ if (!attributes.is_a?(Hash))
47
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::InlineResponse20010` initialize method"
48
+ end
49
+
50
+ # check to see if the attribute exists and convert string to symbol for hash key
51
+ attributes = attributes.each_with_object({}) { |(k, v), h|
52
+ if (!self.class.attribute_map.key?(k.to_sym))
53
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::InlineResponse20010`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
54
+ end
55
+ h[k.to_sym] = v
56
+ }
57
+
58
+ if attributes.key?(:'data')
59
+ if (value = attributes[:'data']).is_a?(Array)
60
+ self.data = value
61
+ end
62
+ end
63
+ end
64
+
65
+ # Show invalid properties with the reasons. Usually used together with valid?
66
+ # @return Array for valid properties with the reasons
67
+ def list_invalid_properties
68
+ invalid_properties = Array.new
69
+ invalid_properties
70
+ end
71
+
72
+ # Check to see if the all the properties in the model are valid
73
+ # @return true if the model is valid
74
+ def valid?
75
+ true
76
+ end
77
+
78
+ # Checks equality by comparing each attribute.
79
+ # @param [Object] Object to be compared
80
+ def ==(o)
81
+ return true if self.equal?(o)
82
+ self.class == o.class &&
83
+ data == o.data
84
+ end
85
+
86
+ # @see the `==` method
87
+ # @param [Object] Object to be compared
88
+ def eql?(o)
89
+ self == o
90
+ end
91
+
92
+ # Calculates hash code according to all attributes.
93
+ # @return [Integer] Hash code
94
+ def hash
95
+ [data].hash
96
+ end
97
+
98
+ # Builds the object from hash
99
+ # @param [Hash] attributes Model attributes in the form of hash
100
+ # @return [Object] Returns the model itself
101
+ def self.build_from_hash(attributes)
102
+ new.build_from_hash(attributes)
103
+ end
104
+
105
+ # Builds the object from hash
106
+ # @param [Hash] attributes Model attributes in the form of hash
107
+ # @return [Object] Returns the model itself
108
+ def build_from_hash(attributes)
109
+ return nil unless attributes.is_a?(Hash)
110
+ self.class.fastly_types.each_pair do |key, type|
111
+ if attributes[self.class.attribute_map[key]].nil? && self.class.fastly_nullable.include?(key)
112
+ self.send("#{key}=", nil)
113
+ elsif type =~ /\AArray<(.*)>/i
114
+ # check to ensure the input is an array given that the attribute
115
+ # is documented as an array but the input is not
116
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
117
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
118
+ end
119
+ elsif !attributes[self.class.attribute_map[key]].nil?
120
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
121
+ end
122
+ end
123
+
124
+ self
125
+ end
126
+
127
+ # Deserializes the data based on type
128
+ # @param string type Data type
129
+ # @param string value Value to be deserialized
130
+ # @return [Object] Deserialized data
131
+ def _deserialize(type, value)
132
+ case type.to_sym
133
+ when :Time
134
+ Time.parse(value)
135
+ when :Date
136
+ Date.parse(value)
137
+ when :String
138
+ value.to_s
139
+ when :Integer
140
+ value.to_i
141
+ when :Float
142
+ value.to_f
143
+ when :Boolean
144
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
145
+ true
146
+ else
147
+ false
148
+ end
149
+ when :Object
150
+ # generic object (usually a Hash), return directly
151
+ value
152
+ when /\AArray<(?<inner_type>.+)>\z/
153
+ inner_type = Regexp.last_match[:inner_type]
154
+ value.map { |v| _deserialize(inner_type, v) }
155
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
156
+ k_type = Regexp.last_match[:k_type]
157
+ v_type = Regexp.last_match[:v_type]
158
+ {}.tap do |hash|
159
+ value.each do |k, v|
160
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
161
+ end
162
+ end
163
+ else # model
164
+ # models (e.g. Pet) or oneOf
165
+ klass = Fastly.const_get(type)
166
+ klass.respond_to?(:fastly_one_of) ? klass.build(value) : klass.build_from_hash(value)
167
+ end
168
+ end
169
+
170
+ # Returns the string representation of the object
171
+ # @return [String] String presentation of the object
172
+ def to_s
173
+ to_hash.to_s
174
+ end
175
+
176
+ # to_body is an alias to to_hash (backward compatibility)
177
+ # @return [Hash] Returns the object in the form of hash
178
+ def to_body
179
+ to_hash
180
+ end
181
+
182
+ # Returns the object in the form of hash
183
+ # @return [Hash] Returns the object in the form of hash
184
+ def to_hash
185
+ hash = {}
186
+ self.class.attribute_map.each_pair do |attr, param|
187
+ value = self.send(attr)
188
+ if value.nil?
189
+ is_nullable = self.class.fastly_nullable.include?(attr)
190
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
191
+ end
192
+
193
+ hash[param] = _to_hash(value)
194
+ end
195
+ hash
196
+ end
197
+
198
+ # Outputs non-array value in the form of hash
199
+ # For object, use to_hash. Otherwise, just return the value
200
+ # @param [Object] value Any valid value
201
+ # @return [Hash] Returns the value in the form of hash
202
+ def _to_hash(value)
203
+ if value.is_a?(Array)
204
+ value.compact.map { |v| _to_hash(v) }
205
+ elsif value.is_a?(Hash)
206
+ {}.tap do |hash|
207
+ value.each { |k, v| hash[k] = _to_hash(v) }
208
+ end
209
+ elsif value.respond_to? :to_hash
210
+ value.to_hash
211
+ else
212
+ value
213
+ end
214
+ end
215
+
216
+ end
217
+
218
+ end
@@ -33,7 +33,7 @@ module Fastly
33
33
  # Attribute type mapping.
34
34
  def self.fastly_types
35
35
  {
36
- :'data' => :'Array<DdosProtectionRule>',
36
+ :'data' => :'Array<DdosProtectionRuleWithStats>',
37
37
  :'meta' => :'PaginationCursorMeta'
38
38
  }
39
39
  end
@@ -74,12 +74,22 @@ module Fastly
74
74
  # @return Array for valid properties with the reasons
75
75
  def list_invalid_properties
76
76
  invalid_properties = Array.new
77
+ if @data.nil?
78
+ invalid_properties.push('invalid value for "data", data cannot be nil.')
79
+ end
80
+
81
+ if @meta.nil?
82
+ invalid_properties.push('invalid value for "meta", meta cannot be nil.')
83
+ end
84
+
77
85
  invalid_properties
78
86
  end
79
87
 
80
88
  # Check to see if the all the properties in the model are valid
81
89
  # @return true if the model is valid
82
90
  def valid?
91
+ return false if @data.nil?
92
+ return false if @meta.nil?
83
93
  true
84
94
  end
85
95
 
@@ -13,13 +13,16 @@ require 'time'
13
13
 
14
14
  module Fastly
15
15
  class InlineResponse2004
16
- # Time-stamp (GMT) when the domain_ownership validation will expire.
17
- attr_accessor :expires_at
16
+ attr_accessor :data
17
+
18
+ # Meta for the pagination.
19
+ attr_accessor :meta
18
20
 
19
21
  # Attribute mapping from ruby-style variable name to JSON key.
20
22
  def self.attribute_map
21
23
  {
22
- :'expires_at' => :'expires_at'
24
+ :'data' => :'data',
25
+ :'meta' => :'meta'
23
26
  }
24
27
  end
25
28
 
@@ -31,13 +34,15 @@ module Fastly
31
34
  # Attribute type mapping.
32
35
  def self.fastly_types
33
36
  {
34
- :'expires_at' => :'String'
37
+ :'data' => :'Array<SuccessfulResponseAsObject>',
38
+ :'meta' => :'Object'
35
39
  }
36
40
  end
37
41
 
38
42
  # List of attributes with nullable: true
39
43
  def self.fastly_nullable
40
44
  Set.new([
45
+ :'meta'
41
46
  ])
42
47
  end
43
48
 
@@ -56,8 +61,14 @@ module Fastly
56
61
  h[k.to_sym] = v
57
62
  }
58
63
 
59
- if attributes.key?(:'expires_at')
60
- self.expires_at = attributes[:'expires_at']
64
+ if attributes.key?(:'data')
65
+ if (value = attributes[:'data']).is_a?(Array)
66
+ self.data = value
67
+ end
68
+ end
69
+
70
+ if attributes.key?(:'meta')
71
+ self.meta = attributes[:'meta']
61
72
  end
62
73
  end
63
74
 
@@ -79,7 +90,8 @@ module Fastly
79
90
  def ==(o)
80
91
  return true if self.equal?(o)
81
92
  self.class == o.class &&
82
- expires_at == o.expires_at
93
+ data == o.data &&
94
+ meta == o.meta
83
95
  end
84
96
 
85
97
  # @see the `==` method
@@ -91,7 +103,7 @@ module Fastly
91
103
  # Calculates hash code according to all attributes.
92
104
  # @return [Integer] Hash code
93
105
  def hash
94
- [expires_at].hash
106
+ [data, meta].hash
95
107
  end
96
108
 
97
109
  # Builds the object from hash
@@ -13,15 +13,13 @@ require 'time'
13
13
 
14
14
  module Fastly
15
15
  class InlineResponse2005
16
- attr_accessor :data
17
-
18
- attr_accessor :meta
16
+ # Time-stamp (GMT) when the domain_ownership validation will expire.
17
+ attr_accessor :expires_at
19
18
 
20
19
  # Attribute mapping from ruby-style variable name to JSON key.
21
20
  def self.attribute_map
22
21
  {
23
- :'data' => :'data',
24
- :'meta' => :'meta'
22
+ :'expires_at' => :'expires_at'
25
23
  }
26
24
  end
27
25
 
@@ -33,8 +31,7 @@ module Fastly
33
31
  # Attribute type mapping.
34
32
  def self.fastly_types
35
33
  {
36
- :'data' => :'Array<KvStoreDetails>',
37
- :'meta' => :'PaginationCursorMeta'
34
+ :'expires_at' => :'String'
38
35
  }
39
36
  end
40
37
 
@@ -59,14 +56,8 @@ module Fastly
59
56
  h[k.to_sym] = v
60
57
  }
61
58
 
62
- if attributes.key?(:'data')
63
- if (value = attributes[:'data']).is_a?(Array)
64
- self.data = value
65
- end
66
- end
67
-
68
- if attributes.key?(:'meta')
69
- self.meta = attributes[:'meta']
59
+ if attributes.key?(:'expires_at')
60
+ self.expires_at = attributes[:'expires_at']
70
61
  end
71
62
  end
72
63
 
@@ -88,8 +79,7 @@ module Fastly
88
79
  def ==(o)
89
80
  return true if self.equal?(o)
90
81
  self.class == o.class &&
91
- data == o.data &&
92
- meta == o.meta
82
+ expires_at == o.expires_at
93
83
  end
94
84
 
95
85
  # @see the `==` method
@@ -101,7 +91,7 @@ module Fastly
101
91
  # Calculates hash code according to all attributes.
102
92
  # @return [Integer] Hash code
103
93
  def hash
104
- [data, meta].hash
94
+ [expires_at].hash
105
95
  end
106
96
 
107
97
  # Builds the object from hash
@@ -33,7 +33,7 @@ module Fastly
33
33
  # Attribute type mapping.
34
34
  def self.fastly_types
35
35
  {
36
- :'data' => :'Array<String>',
36
+ :'data' => :'Array<KvStoreDetails>',
37
37
  :'meta' => :'PaginationCursorMeta'
38
38
  }
39
39
  end
@@ -33,7 +33,7 @@ module Fastly
33
33
  # Attribute type mapping.
34
34
  def self.fastly_types
35
35
  {
36
- :'data' => :'Array<SecretStoreResponse>',
36
+ :'data' => :'Array<String>',
37
37
  :'meta' => :'PaginationCursorMeta'
38
38
  }
39
39
  end
@@ -33,7 +33,7 @@ module Fastly
33
33
  # Attribute type mapping.
34
34
  def self.fastly_types
35
35
  {
36
- :'data' => :'Array<SecretResponse>',
36
+ :'data' => :'Array<SecretStoreResponse>',
37
37
  :'meta' => :'PaginationCursorMeta'
38
38
  }
39
39
  end
@@ -15,10 +15,13 @@ module Fastly
15
15
  class InlineResponse2009
16
16
  attr_accessor :data
17
17
 
18
+ attr_accessor :meta
19
+
18
20
  # Attribute mapping from ruby-style variable name to JSON key.
19
21
  def self.attribute_map
20
22
  {
21
- :'data' => :'data'
23
+ :'data' => :'data',
24
+ :'meta' => :'meta'
22
25
  }
23
26
  end
24
27
 
@@ -30,7 +33,8 @@ module Fastly
30
33
  # Attribute type mapping.
31
34
  def self.fastly_types
32
35
  {
33
- :'data' => :'Array<ServiceAuthorizationResponseData>'
36
+ :'data' => :'Array<SecretResponse>',
37
+ :'meta' => :'PaginationCursorMeta'
34
38
  }
35
39
  end
36
40
 
@@ -60,6 +64,10 @@ module Fastly
60
64
  self.data = value
61
65
  end
62
66
  end
67
+
68
+ if attributes.key?(:'meta')
69
+ self.meta = attributes[:'meta']
70
+ end
63
71
  end
64
72
 
65
73
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -80,7 +88,8 @@ module Fastly
80
88
  def ==(o)
81
89
  return true if self.equal?(o)
82
90
  self.class == o.class &&
83
- data == o.data
91
+ data == o.data &&
92
+ meta == o.meta
84
93
  end
85
94
 
86
95
  # @see the `==` method
@@ -92,7 +101,7 @@ module Fastly
92
101
  # Calculates hash code according to all attributes.
93
102
  # @return [Integer] Hash code
94
103
  def hash
95
- [data].hash
104
+ [data, meta].hash
96
105
  end
97
106
 
98
107
  # Builds the object from hash
@@ -21,6 +21,8 @@ module Fastly
21
21
 
22
22
  attr_accessor :role
23
23
 
24
+ attr_accessor :roles
25
+
24
26
  # Indicates whether or not the invitation is active.
25
27
  attr_accessor :status_code
26
28
 
@@ -52,6 +54,7 @@ module Fastly
52
54
  :'email' => :'email',
53
55
  :'limit_services' => :'limit_services',
54
56
  :'role' => :'role',
57
+ :'roles' => :'roles',
55
58
  :'status_code' => :'status_code'
56
59
  }
57
60
  end
@@ -67,6 +70,7 @@ module Fastly
67
70
  :'email' => :'String',
68
71
  :'limit_services' => :'Boolean',
69
72
  :'role' => :'RoleUser',
73
+ :'roles' => :'Array<String>',
70
74
  :'status_code' => :'Integer'
71
75
  }
72
76
  end
@@ -104,6 +108,12 @@ module Fastly
104
108
  self.role = attributes[:'role']
105
109
  end
106
110
 
111
+ if attributes.key?(:'roles')
112
+ if (value = attributes[:'roles']).is_a?(Array)
113
+ self.roles = value
114
+ end
115
+ end
116
+
107
117
  if attributes.key?(:'status_code')
108
118
  self.status_code = attributes[:'status_code']
109
119
  end
@@ -142,6 +152,7 @@ module Fastly
142
152
  email == o.email &&
143
153
  limit_services == o.limit_services &&
144
154
  role == o.role &&
155
+ roles == o.roles &&
145
156
  status_code == o.status_code
146
157
  end
147
158
 
@@ -154,7 +165,7 @@ module Fastly
154
165
  # Calculates hash code according to all attributes.
155
166
  # @return [Integer] Hash code
156
167
  def hash
157
- [email, limit_services, role, status_code].hash
168
+ [email, limit_services, role, roles, status_code].hash
158
169
  end
159
170
 
160
171
  # Builds the object from hash
@@ -37,7 +37,7 @@ module Fastly
37
37
  def self.fastly_types
38
38
  {
39
39
  :'product' => :'LogExplorerInsightsResponseProductProduct',
40
- :'service' => :'BotManagementResponseServiceService',
40
+ :'service' => :'ApiDiscoveryResponseServiceService',
41
41
  :'_links' => :'LogExplorerInsightsResponseLinksLinks'
42
42
  }
43
43
  end
@@ -30,7 +30,7 @@ module Fastly
30
30
  # Attribute type mapping.
31
31
  def self.fastly_types
32
32
  {
33
- :'service' => :'BotManagementResponseServiceService'
33
+ :'service' => :'ApiDiscoveryResponseServiceService'
34
34
  }
35
35
  end
36
36
 
@@ -42,6 +42,9 @@ module Fastly
42
42
  # A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/).
43
43
  attr_accessor :format
44
44
 
45
+ # How frequently, in seconds, batches of log data are sent to the HTTPS endpoint. A value of `0` sends logs at the same interval as the default, which is `5` seconds.
46
+ attr_accessor :period
47
+
45
48
  class EnumAttributeValidator
46
49
  attr_reader :datatype
47
50
  attr_reader :allowable_values
@@ -76,7 +79,8 @@ module Fastly
76
79
  :'header_value' => :'header_value',
77
80
  :'method' => :'method',
78
81
  :'json_format' => :'json_format',
79
- :'format' => :'format'
82
+ :'format' => :'format',
83
+ :'period' => :'period'
80
84
  }
81
85
  end
82
86
 
@@ -97,7 +101,8 @@ module Fastly
97
101
  :'header_value' => :'String',
98
102
  :'method' => :'String',
99
103
  :'json_format' => :'String',
100
- :'format' => :'String'
104
+ :'format' => :'String',
105
+ :'period' => :'Integer'
101
106
  }
102
107
  end
103
108
 
@@ -180,6 +185,12 @@ module Fastly
180
185
  else
181
186
  self.format = '%h %l %u %t \"%r\" %&gt;s %b'
182
187
  end
188
+
189
+ if attributes.key?(:'period')
190
+ self.period = attributes[:'period']
191
+ else
192
+ self.period = 5
193
+ end
183
194
  end
184
195
 
185
196
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -233,7 +244,8 @@ module Fastly
233
244
  header_value == o.header_value &&
234
245
  method == o.method &&
235
246
  json_format == o.json_format &&
236
- format == o.format
247
+ format == o.format &&
248
+ period == o.period
237
249
  end
238
250
 
239
251
  # @see the `==` method
@@ -245,7 +257,7 @@ module Fastly
245
257
  # Calculates hash code according to all attributes.
246
258
  # @return [Integer] Hash code
247
259
  def hash
248
- [url, request_max_entries, request_max_bytes, content_type, header_name, message_type, header_value, method, json_format, format].hash
260
+ [url, request_max_entries, request_max_bytes, content_type, header_name, message_type, header_value, method, json_format, format, period].hash
249
261
  end
250
262
 
251
263
  # Builds the object from hash
@@ -69,6 +69,9 @@ module Fastly
69
69
  # Enforces valid JSON formatting for log entries.
70
70
  attr_accessor :json_format
71
71
 
72
+ # How frequently, in seconds, batches of log data are sent to the HTTPS endpoint. A value of `0` sends logs at the same interval as the default, which is `5` seconds.
73
+ attr_accessor :period
74
+
72
75
  # Date and time in ISO 8601 format.
73
76
  attr_accessor :created_at
74
77
 
@@ -126,6 +129,7 @@ module Fastly
126
129
  :'header_value' => :'header_value',
127
130
  :'method' => :'method',
128
131
  :'json_format' => :'json_format',
132
+ :'period' => :'period',
129
133
  :'created_at' => :'created_at',
130
134
  :'deleted_at' => :'deleted_at',
131
135
  :'updated_at' => :'updated_at',
@@ -161,6 +165,7 @@ module Fastly
161
165
  :'header_value' => :'String',
162
166
  :'method' => :'String',
163
167
  :'json_format' => :'String',
168
+ :'period' => :'Integer',
164
169
  :'created_at' => :'Time',
165
170
  :'deleted_at' => :'Time',
166
171
  :'updated_at' => :'Time',
@@ -318,6 +323,12 @@ module Fastly
318
323
  self.json_format = attributes[:'json_format']
319
324
  end
320
325
 
326
+ if attributes.key?(:'period')
327
+ self.period = attributes[:'period']
328
+ else
329
+ self.period = 5
330
+ end
331
+
321
332
  if attributes.key?(:'created_at')
322
333
  self.created_at = attributes[:'created_at']
323
334
  end
@@ -436,6 +447,7 @@ module Fastly
436
447
  header_value == o.header_value &&
437
448
  method == o.method &&
438
449
  json_format == o.json_format &&
450
+ period == o.period &&
439
451
  created_at == o.created_at &&
440
452
  deleted_at == o.deleted_at &&
441
453
  updated_at == o.updated_at &&
@@ -452,7 +464,7 @@ module Fastly
452
464
  # Calculates hash code according to all attributes.
453
465
  # @return [Integer] Hash code
454
466
  def hash
455
- [name, placement, response_condition, format, log_processing_region, format_version, tls_ca_cert, tls_client_cert, tls_client_key, tls_hostname, request_max_entries, request_max_bytes, url, content_type, header_name, message_type, header_value, method, json_format, created_at, deleted_at, updated_at, service_id, version].hash
467
+ [name, placement, response_condition, format, log_processing_region, format_version, tls_ca_cert, tls_client_cert, tls_client_key, tls_hostname, request_max_entries, request_max_bytes, url, content_type, header_name, message_type, header_value, method, json_format, period, created_at, deleted_at, updated_at, service_id, version].hash
456
468
  end
457
469
 
458
470
  # Builds the object from hash
@@ -40,7 +40,7 @@ module Fastly
40
40
  def self.fastly_types
41
41
  {
42
42
  :'product' => :'NgwafResponseProductProduct',
43
- :'service' => :'BotManagementResponseServiceService',
43
+ :'service' => :'ApiDiscoveryResponseServiceService',
44
44
  :'configuration' => :'NgwafResponseConfigurationConfiguration',
45
45
  :'_links' => :'NgwafResponseLinksLinks'
46
46
  }
@@ -37,7 +37,7 @@ module Fastly
37
37
  def self.fastly_types
38
38
  {
39
39
  :'product' => :'NgwafResponseProductProduct',
40
- :'service' => :'BotManagementResponseServiceService',
40
+ :'service' => :'ApiDiscoveryResponseServiceService',
41
41
  :'_links' => :'NgwafResponseLinksLinks'
42
42
  }
43
43
  end
@@ -30,7 +30,7 @@ module Fastly
30
30
  # Attribute type mapping.
31
31
  def self.fastly_types
32
32
  {
33
- :'service' => :'BotManagementResponseServiceService'
33
+ :'service' => :'ApiDiscoveryResponseServiceService'
34
34
  }
35
35
  end
36
36