fastly 12.0.0 → 13.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 +46 -0
- data/Gemfile.lock +1 -1
- data/README.md +30 -14
- data/docs/Backend.md +2 -2
- data/docs/BackendApi.md +8 -8
- data/docs/BackendResponse.md +2 -2
- data/docs/Invitation.md +1 -1
- data/docs/InvitationCreateData.md +12 -0
- data/docs/InvitationCreateDataAllOf.md +10 -0
- data/docs/{InvitationResponse.md → InvitationCreateResponse.md} +1 -1
- data/docs/{InvitationResponseAllOf.md → InvitationCreateResponseAllOf.md} +1 -1
- data/docs/InvitationData.md +0 -1
- data/docs/InvitationResponseData.md +1 -1
- data/docs/InvitationsApi.md +2 -2
- data/docs/LoggingAzureblobApi.md +8 -4
- data/docs/LoggingAzureblobResponse.md +2 -1
- data/docs/LoggingBigqueryAdditional.md +1 -1
- data/docs/LoggingBigqueryApi.md +8 -4
- data/docs/LoggingBigqueryResponse.md +2 -1
- data/docs/LoggingCloudfilesApi.md +8 -4
- data/docs/LoggingCloudfilesResponse.md +2 -1
- data/docs/LoggingCommon.md +2 -1
- data/docs/LoggingCommonResponse.md +2 -1
- data/docs/LoggingCommonResponseAllOf.md +2 -1
- data/docs/LoggingDatadogAdditional.md +1 -1
- data/docs/LoggingDatadogApi.md +8 -4
- data/docs/LoggingDatadogResponse.md +2 -1
- data/docs/LoggingDigitaloceanApi.md +8 -4
- data/docs/LoggingDigitaloceanResponse.md +2 -1
- data/docs/LoggingElasticsearchAdditional.md +1 -1
- data/docs/LoggingElasticsearchApi.md +8 -4
- data/docs/LoggingElasticsearchResponse.md +2 -1
- data/docs/LoggingFtpApi.md +8 -4
- data/docs/LoggingFtpResponse.md +2 -1
- data/docs/LoggingGcsApi.md +8 -4
- data/docs/LoggingGcsResponse.md +2 -1
- data/docs/LoggingGooglePubsubAdditional.md +1 -1
- data/docs/LoggingGooglePubsubResponse.md +2 -1
- data/docs/LoggingGrafanacloudlogsAdditional.md +1 -1
- data/docs/LoggingGrafanacloudlogsApi.md +8 -4
- data/docs/LoggingGrafanacloudlogsResponse.md +2 -1
- data/docs/LoggingHerokuApi.md +8 -4
- data/docs/LoggingHerokuResponse.md +2 -1
- data/docs/LoggingHoneycombAdditional.md +1 -1
- data/docs/LoggingHoneycombApi.md +8 -4
- data/docs/LoggingHoneycombResponse.md +2 -1
- data/docs/LoggingHttpsAdditional.md +1 -1
- data/docs/LoggingHttpsApi.md +8 -4
- data/docs/LoggingHttpsResponse.md +2 -1
- data/docs/LoggingKafkaApi.md +4 -2
- data/docs/LoggingKafkaResponse.md +2 -1
- data/docs/LoggingKafkaResponsePost.md +2 -1
- data/docs/LoggingKinesisAdditional.md +1 -1
- data/docs/LoggingKinesisApi.md +2 -2
- data/docs/LoggingKinesisResponse.md +1 -1
- data/docs/LoggingLogentriesApi.md +8 -4
- data/docs/LoggingLogentriesResponse.md +2 -1
- data/docs/LoggingLogglyApi.md +8 -4
- data/docs/LoggingLogglyResponse.md +2 -1
- data/docs/LoggingLogshuttleApi.md +8 -4
- data/docs/LoggingLogshuttleResponse.md +2 -1
- data/docs/LoggingNewrelicAdditional.md +1 -1
- data/docs/LoggingNewrelicApi.md +8 -4
- data/docs/LoggingNewrelicResponse.md +2 -1
- data/docs/LoggingNewrelicotlpAdditional.md +1 -1
- data/docs/LoggingNewrelicotlpApi.md +8 -4
- data/docs/LoggingNewrelicotlpResponse.md +2 -1
- data/docs/LoggingOpenstackApi.md +8 -4
- data/docs/LoggingOpenstackResponse.md +2 -1
- data/docs/LoggingPapertrailApi.md +8 -4
- data/docs/LoggingPapertrailResponse.md +2 -1
- data/docs/LoggingPubsubApi.md +8 -4
- data/docs/LoggingS3Api.md +8 -4
- data/docs/LoggingS3Response.md +2 -1
- data/docs/LoggingScalyrApi.md +8 -4
- data/docs/LoggingScalyrResponse.md +2 -1
- data/docs/LoggingSftpApi.md +8 -4
- data/docs/LoggingSftpResponse.md +2 -1
- data/docs/LoggingSplunkApi.md +8 -4
- data/docs/LoggingSplunkResponse.md +2 -1
- data/docs/LoggingSumologicApi.md +8 -4
- data/docs/LoggingSumologicResponse.md +2 -1
- data/docs/LoggingSyslogApi.md +8 -4
- data/docs/LoggingSyslogResponse.md +2 -1
- data/docs/PoolAdditional.md +1 -1
- data/docs/PoolApi.md +4 -4
- data/docs/PoolResponse.md +1 -1
- data/docs/PoolResponsePost.md +1 -1
- data/docs/PurgeApi.md +1 -1
- data/docs/Results.md +2 -2
- data/docs/ServiceApi.md +2 -0
- data/docs/TlsCertificateDataAttributes.md +1 -0
- data/docs/TlsCsrData.md +0 -1
- data/docs/TlsCsrDataAttributes.md +1 -0
- data/lib/fastly/api/backend_api.rb +8 -8
- data/lib/fastly/api/invitations_api.rb +3 -3
- data/lib/fastly/api/logging_azureblob_api.rb +20 -6
- data/lib/fastly/api/logging_bigquery_api.rb +20 -6
- data/lib/fastly/api/logging_cloudfiles_api.rb +20 -6
- data/lib/fastly/api/logging_datadog_api.rb +20 -6
- data/lib/fastly/api/logging_digitalocean_api.rb +20 -6
- data/lib/fastly/api/logging_elasticsearch_api.rb +20 -6
- data/lib/fastly/api/logging_ftp_api.rb +20 -6
- data/lib/fastly/api/logging_gcs_api.rb +20 -6
- data/lib/fastly/api/logging_grafanacloudlogs_api.rb +20 -6
- data/lib/fastly/api/logging_heroku_api.rb +20 -6
- data/lib/fastly/api/logging_honeycomb_api.rb +20 -6
- data/lib/fastly/api/logging_https_api.rb +20 -6
- data/lib/fastly/api/logging_kafka_api.rb +10 -3
- data/lib/fastly/api/logging_kinesis_api.rb +2 -2
- data/lib/fastly/api/logging_logentries_api.rb +20 -6
- data/lib/fastly/api/logging_loggly_api.rb +20 -6
- data/lib/fastly/api/logging_logshuttle_api.rb +20 -6
- data/lib/fastly/api/logging_newrelic_api.rb +20 -6
- data/lib/fastly/api/logging_newrelicotlp_api.rb +20 -6
- data/lib/fastly/api/logging_openstack_api.rb +20 -6
- data/lib/fastly/api/logging_papertrail_api.rb +20 -6
- data/lib/fastly/api/logging_pubsub_api.rb +20 -6
- data/lib/fastly/api/logging_s3_api.rb +20 -6
- data/lib/fastly/api/logging_scalyr_api.rb +20 -6
- data/lib/fastly/api/logging_sftp_api.rb +20 -6
- data/lib/fastly/api/logging_splunk_api.rb +20 -6
- data/lib/fastly/api/logging_sumologic_api.rb +20 -6
- data/lib/fastly/api/logging_syslog_api.rb +20 -6
- data/lib/fastly/api/pool_api.rb +4 -4
- data/lib/fastly/api/purge_api.rb +2 -2
- data/lib/fastly/api/service_api.rb +3 -0
- data/lib/fastly/models/backend.rb +2 -2
- data/lib/fastly/models/backend_response.rb +2 -2
- data/lib/fastly/models/invitation.rb +1 -1
- data/lib/fastly/models/invitation_create_data.rb +244 -0
- data/lib/fastly/models/invitation_create_data_all_of.rb +216 -0
- data/lib/fastly/models/{invitation_response.rb → invitation_create_response.rb} +4 -4
- data/lib/fastly/models/{invitation_response_all_of.rb → invitation_create_response_all_of.rb} +3 -3
- data/lib/fastly/models/invitation_data.rb +4 -13
- data/lib/fastly/models/invitation_response_data.rb +13 -13
- data/lib/fastly/models/logging_azureblob_response.rb +28 -4
- data/lib/fastly/models/logging_bigquery_additional.rb +1 -1
- data/lib/fastly/models/logging_bigquery_response.rb +28 -4
- data/lib/fastly/models/logging_cloudfiles_response.rb +28 -4
- data/lib/fastly/models/logging_common.rb +31 -7
- data/lib/fastly/models/logging_common_response.rb +28 -4
- data/lib/fastly/models/logging_common_response_all_of.rb +31 -7
- data/lib/fastly/models/logging_datadog_additional.rb +1 -1
- data/lib/fastly/models/logging_datadog_response.rb +28 -4
- data/lib/fastly/models/logging_digitalocean_response.rb +28 -4
- data/lib/fastly/models/logging_elasticsearch_additional.rb +1 -1
- data/lib/fastly/models/logging_elasticsearch_response.rb +28 -4
- data/lib/fastly/models/logging_ftp_response.rb +28 -4
- data/lib/fastly/models/logging_gcs_response.rb +28 -4
- data/lib/fastly/models/logging_google_pubsub_additional.rb +1 -1
- data/lib/fastly/models/logging_google_pubsub_response.rb +28 -4
- data/lib/fastly/models/logging_grafanacloudlogs_additional.rb +1 -1
- data/lib/fastly/models/logging_grafanacloudlogs_response.rb +28 -4
- data/lib/fastly/models/logging_heroku_response.rb +28 -4
- data/lib/fastly/models/logging_honeycomb_additional.rb +1 -1
- data/lib/fastly/models/logging_honeycomb_response.rb +28 -4
- data/lib/fastly/models/logging_https_additional.rb +1 -1
- data/lib/fastly/models/logging_https_response.rb +28 -4
- data/lib/fastly/models/logging_kafka_response.rb +28 -4
- data/lib/fastly/models/logging_kafka_response_post.rb +28 -4
- data/lib/fastly/models/logging_kinesis_additional.rb +1 -1
- data/lib/fastly/models/logging_kinesis_response.rb +1 -1
- data/lib/fastly/models/logging_logentries_response.rb +28 -4
- data/lib/fastly/models/logging_loggly_response.rb +28 -4
- data/lib/fastly/models/logging_logshuttle_response.rb +28 -4
- data/lib/fastly/models/logging_newrelic_additional.rb +1 -1
- data/lib/fastly/models/logging_newrelic_response.rb +28 -4
- data/lib/fastly/models/logging_newrelicotlp_additional.rb +1 -1
- data/lib/fastly/models/logging_newrelicotlp_response.rb +28 -4
- data/lib/fastly/models/logging_openstack_response.rb +28 -4
- data/lib/fastly/models/logging_papertrail_response.rb +28 -4
- data/lib/fastly/models/logging_placement.rb +0 -1
- data/lib/fastly/models/logging_s3_response.rb +28 -4
- data/lib/fastly/models/logging_scalyr_response.rb +28 -4
- data/lib/fastly/models/logging_sftp_response.rb +28 -4
- data/lib/fastly/models/logging_splunk_response.rb +28 -4
- data/lib/fastly/models/logging_sumologic_response.rb +28 -4
- data/lib/fastly/models/logging_syslog_response.rb +28 -4
- data/lib/fastly/models/pool_additional.rb +1 -1
- data/lib/fastly/models/pool_response.rb +1 -1
- data/lib/fastly/models/pool_response_post.rb +1 -1
- data/lib/fastly/models/relationship_service_invitations.rb +1 -0
- data/lib/fastly/models/relationship_service_invitations_service_invitations.rb +1 -0
- data/lib/fastly/models/relationships_for_invitation.rb +1 -0
- data/lib/fastly/models/results.rb +2 -2
- data/lib/fastly/models/tls_certificate_data_attributes.rb +14 -4
- data/lib/fastly/models/tls_csr_data.rb +4 -13
- data/lib/fastly/models/tls_csr_data_attributes.rb +14 -4
- data/lib/fastly/version.rb +1 -1
- data/lib/fastly.rb +4 -2
- data/sig.json +1 -1
- metadata +10 -6
@@ -0,0 +1,216 @@
|
|
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 InvitationCreateDataAllOf
|
16
|
+
attr_accessor :relationships
|
17
|
+
|
18
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
19
|
+
def self.attribute_map
|
20
|
+
{
|
21
|
+
:'relationships' => :'relationships'
|
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
|
+
:'relationships' => :'RelationshipServiceInvitationsCreate'
|
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::InvitationCreateDataAllOf` 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::InvitationCreateDataAllOf`. 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?(:'relationships')
|
59
|
+
self.relationships = attributes[:'relationships']
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
64
|
+
# @return Array for valid properties with the reasons
|
65
|
+
def list_invalid_properties
|
66
|
+
invalid_properties = Array.new
|
67
|
+
invalid_properties
|
68
|
+
end
|
69
|
+
|
70
|
+
# Check to see if the all the properties in the model are valid
|
71
|
+
# @return true if the model is valid
|
72
|
+
def valid?
|
73
|
+
true
|
74
|
+
end
|
75
|
+
|
76
|
+
# Checks equality by comparing each attribute.
|
77
|
+
# @param [Object] Object to be compared
|
78
|
+
def ==(o)
|
79
|
+
return true if self.equal?(o)
|
80
|
+
self.class == o.class &&
|
81
|
+
relationships == o.relationships
|
82
|
+
end
|
83
|
+
|
84
|
+
# @see the `==` method
|
85
|
+
# @param [Object] Object to be compared
|
86
|
+
def eql?(o)
|
87
|
+
self == o
|
88
|
+
end
|
89
|
+
|
90
|
+
# Calculates hash code according to all attributes.
|
91
|
+
# @return [Integer] Hash code
|
92
|
+
def hash
|
93
|
+
[relationships].hash
|
94
|
+
end
|
95
|
+
|
96
|
+
# Builds the object from hash
|
97
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
98
|
+
# @return [Object] Returns the model itself
|
99
|
+
def self.build_from_hash(attributes)
|
100
|
+
new.build_from_hash(attributes)
|
101
|
+
end
|
102
|
+
|
103
|
+
# Builds the object from hash
|
104
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
105
|
+
# @return [Object] Returns the model itself
|
106
|
+
def build_from_hash(attributes)
|
107
|
+
return nil unless attributes.is_a?(Hash)
|
108
|
+
self.class.fastly_types.each_pair do |key, type|
|
109
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.fastly_nullable.include?(key)
|
110
|
+
self.send("#{key}=", nil)
|
111
|
+
elsif type =~ /\AArray<(.*)>/i
|
112
|
+
# check to ensure the input is an array given that the attribute
|
113
|
+
# is documented as an array but the input is not
|
114
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
115
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
116
|
+
end
|
117
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
118
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
119
|
+
end
|
120
|
+
end
|
121
|
+
|
122
|
+
self
|
123
|
+
end
|
124
|
+
|
125
|
+
# Deserializes the data based on type
|
126
|
+
# @param string type Data type
|
127
|
+
# @param string value Value to be deserialized
|
128
|
+
# @return [Object] Deserialized data
|
129
|
+
def _deserialize(type, value)
|
130
|
+
case type.to_sym
|
131
|
+
when :Time
|
132
|
+
Time.parse(value)
|
133
|
+
when :Date
|
134
|
+
Date.parse(value)
|
135
|
+
when :String
|
136
|
+
value.to_s
|
137
|
+
when :Integer
|
138
|
+
value.to_i
|
139
|
+
when :Float
|
140
|
+
value.to_f
|
141
|
+
when :Boolean
|
142
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
143
|
+
true
|
144
|
+
else
|
145
|
+
false
|
146
|
+
end
|
147
|
+
when :Object
|
148
|
+
# generic object (usually a Hash), return directly
|
149
|
+
value
|
150
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
151
|
+
inner_type = Regexp.last_match[:inner_type]
|
152
|
+
value.map { |v| _deserialize(inner_type, v) }
|
153
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
154
|
+
k_type = Regexp.last_match[:k_type]
|
155
|
+
v_type = Regexp.last_match[:v_type]
|
156
|
+
{}.tap do |hash|
|
157
|
+
value.each do |k, v|
|
158
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
159
|
+
end
|
160
|
+
end
|
161
|
+
else # model
|
162
|
+
# models (e.g. Pet) or oneOf
|
163
|
+
klass = Fastly.const_get(type)
|
164
|
+
klass.respond_to?(:fastly_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
165
|
+
end
|
166
|
+
end
|
167
|
+
|
168
|
+
# Returns the string representation of the object
|
169
|
+
# @return [String] String presentation of the object
|
170
|
+
def to_s
|
171
|
+
to_hash.to_s
|
172
|
+
end
|
173
|
+
|
174
|
+
# to_body is an alias to to_hash (backward compatibility)
|
175
|
+
# @return [Hash] Returns the object in the form of hash
|
176
|
+
def to_body
|
177
|
+
to_hash
|
178
|
+
end
|
179
|
+
|
180
|
+
# Returns the object in the form of hash
|
181
|
+
# @return [Hash] Returns the object in the form of hash
|
182
|
+
def to_hash
|
183
|
+
hash = {}
|
184
|
+
self.class.attribute_map.each_pair do |attr, param|
|
185
|
+
value = self.send(attr)
|
186
|
+
if value.nil?
|
187
|
+
is_nullable = self.class.fastly_nullable.include?(attr)
|
188
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
189
|
+
end
|
190
|
+
|
191
|
+
hash[param] = _to_hash(value)
|
192
|
+
end
|
193
|
+
hash
|
194
|
+
end
|
195
|
+
|
196
|
+
# Outputs non-array value in the form of hash
|
197
|
+
# For object, use to_hash. Otherwise, just return the value
|
198
|
+
# @param [Object] value Any valid value
|
199
|
+
# @return [Hash] Returns the value in the form of hash
|
200
|
+
def _to_hash(value)
|
201
|
+
if value.is_a?(Array)
|
202
|
+
value.compact.map { |v| _to_hash(v) }
|
203
|
+
elsif value.is_a?(Hash)
|
204
|
+
{}.tap do |hash|
|
205
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
206
|
+
end
|
207
|
+
elsif value.respond_to? :to_hash
|
208
|
+
value.to_hash
|
209
|
+
else
|
210
|
+
value
|
211
|
+
end
|
212
|
+
end
|
213
|
+
|
214
|
+
end
|
215
|
+
|
216
|
+
end
|
@@ -12,7 +12,7 @@ require 'date'
|
|
12
12
|
require 'time'
|
13
13
|
|
14
14
|
module Fastly
|
15
|
-
class
|
15
|
+
class InvitationCreateResponse
|
16
16
|
attr_accessor :data
|
17
17
|
|
18
18
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -44,7 +44,7 @@ module Fastly
|
|
44
44
|
def self.fastly_all_of
|
45
45
|
[
|
46
46
|
:'Invitation',
|
47
|
-
:'
|
47
|
+
:'InvitationCreateResponseAllOf'
|
48
48
|
]
|
49
49
|
end
|
50
50
|
|
@@ -52,13 +52,13 @@ module Fastly
|
|
52
52
|
# @param [Hash] attributes Model attributes in the form of hash
|
53
53
|
def initialize(attributes = {})
|
54
54
|
if (!attributes.is_a?(Hash))
|
55
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::
|
55
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::InvitationCreateResponse` initialize method"
|
56
56
|
end
|
57
57
|
|
58
58
|
# check to see if the attribute exists and convert string to symbol for hash key
|
59
59
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
60
60
|
if (!self.class.attribute_map.key?(k.to_sym))
|
61
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::
|
61
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::InvitationCreateResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
62
62
|
end
|
63
63
|
h[k.to_sym] = v
|
64
64
|
}
|
data/lib/fastly/models/{invitation_response_all_of.rb → invitation_create_response_all_of.rb}
RENAMED
@@ -12,7 +12,7 @@ require 'date'
|
|
12
12
|
require 'time'
|
13
13
|
|
14
14
|
module Fastly
|
15
|
-
class
|
15
|
+
class InvitationCreateResponseAllOf
|
16
16
|
attr_accessor :data
|
17
17
|
|
18
18
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -44,13 +44,13 @@ module Fastly
|
|
44
44
|
# @param [Hash] attributes Model attributes in the form of hash
|
45
45
|
def initialize(attributes = {})
|
46
46
|
if (!attributes.is_a?(Hash))
|
47
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::
|
47
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::InvitationCreateResponseAllOf` initialize method"
|
48
48
|
end
|
49
49
|
|
50
50
|
# check to see if the attribute exists and convert string to symbol for hash key
|
51
51
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
52
52
|
if (!self.class.attribute_map.key?(k.to_sym))
|
53
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::
|
53
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::InvitationCreateResponseAllOf`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
54
54
|
end
|
55
55
|
h[k.to_sym] = v
|
56
56
|
}
|
@@ -17,14 +17,11 @@ module Fastly
|
|
17
17
|
|
18
18
|
attr_accessor :attributes
|
19
19
|
|
20
|
-
attr_accessor :relationships
|
21
|
-
|
22
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
23
21
|
def self.attribute_map
|
24
22
|
{
|
25
23
|
:'type' => :'type',
|
26
|
-
:'attributes' => :'attributes'
|
27
|
-
:'relationships' => :'relationships'
|
24
|
+
:'attributes' => :'attributes'
|
28
25
|
}
|
29
26
|
end
|
30
27
|
|
@@ -37,8 +34,7 @@ module Fastly
|
|
37
34
|
def self.fastly_types
|
38
35
|
{
|
39
36
|
:'type' => :'TypeInvitation',
|
40
|
-
:'attributes' => :'InvitationDataAttributes'
|
41
|
-
:'relationships' => :'RelationshipServiceInvitationsCreate'
|
37
|
+
:'attributes' => :'InvitationDataAttributes'
|
42
38
|
}
|
43
39
|
end
|
44
40
|
|
@@ -72,10 +68,6 @@ module Fastly
|
|
72
68
|
if attributes.key?(:'attributes')
|
73
69
|
self.attributes = attributes[:'attributes']
|
74
70
|
end
|
75
|
-
|
76
|
-
if attributes.key?(:'relationships')
|
77
|
-
self.relationships = attributes[:'relationships']
|
78
|
-
end
|
79
71
|
end
|
80
72
|
|
81
73
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -97,8 +89,7 @@ module Fastly
|
|
97
89
|
return true if self.equal?(o)
|
98
90
|
self.class == o.class &&
|
99
91
|
type == o.type &&
|
100
|
-
attributes == o.attributes
|
101
|
-
relationships == o.relationships
|
92
|
+
attributes == o.attributes
|
102
93
|
end
|
103
94
|
|
104
95
|
# @see the `==` method
|
@@ -110,7 +101,7 @@ module Fastly
|
|
110
101
|
# Calculates hash code according to all attributes.
|
111
102
|
# @return [Integer] Hash code
|
112
103
|
def hash
|
113
|
-
[type, attributes
|
104
|
+
[type, attributes].hash
|
114
105
|
end
|
115
106
|
|
116
107
|
# Builds the object from hash
|
@@ -17,17 +17,17 @@ module Fastly
|
|
17
17
|
|
18
18
|
attr_accessor :attributes
|
19
19
|
|
20
|
-
attr_accessor :relationships
|
21
|
-
|
22
20
|
attr_accessor :id
|
23
21
|
|
22
|
+
attr_accessor :relationships
|
23
|
+
|
24
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
25
25
|
def self.attribute_map
|
26
26
|
{
|
27
27
|
:'type' => :'type',
|
28
28
|
:'attributes' => :'attributes',
|
29
|
-
:'
|
30
|
-
:'
|
29
|
+
:'id' => :'id',
|
30
|
+
:'relationships' => :'relationships'
|
31
31
|
}
|
32
32
|
end
|
33
33
|
|
@@ -41,8 +41,8 @@ module Fastly
|
|
41
41
|
{
|
42
42
|
:'type' => :'TypeInvitation',
|
43
43
|
:'attributes' => :'Timestamps',
|
44
|
-
:'
|
45
|
-
:'
|
44
|
+
:'id' => :'String',
|
45
|
+
:'relationships' => :'RelationshipsForInvitation'
|
46
46
|
}
|
47
47
|
end
|
48
48
|
|
@@ -85,13 +85,13 @@ module Fastly
|
|
85
85
|
self.attributes = attributes[:'attributes']
|
86
86
|
end
|
87
87
|
|
88
|
-
if attributes.key?(:'relationships')
|
89
|
-
self.relationships = attributes[:'relationships']
|
90
|
-
end
|
91
|
-
|
92
88
|
if attributes.key?(:'id')
|
93
89
|
self.id = attributes[:'id']
|
94
90
|
end
|
91
|
+
|
92
|
+
if attributes.key?(:'relationships')
|
93
|
+
self.relationships = attributes[:'relationships']
|
94
|
+
end
|
95
95
|
end
|
96
96
|
|
97
97
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -114,8 +114,8 @@ module Fastly
|
|
114
114
|
self.class == o.class &&
|
115
115
|
type == o.type &&
|
116
116
|
attributes == o.attributes &&
|
117
|
-
|
118
|
-
|
117
|
+
id == o.id &&
|
118
|
+
relationships == o.relationships
|
119
119
|
end
|
120
120
|
|
121
121
|
# @see the `==` method
|
@@ -127,7 +127,7 @@ module Fastly
|
|
127
127
|
# Calculates hash code according to all attributes.
|
128
128
|
# @return [Integer] Hash code
|
129
129
|
def hash
|
130
|
-
[type, attributes,
|
130
|
+
[type, attributes, id, relationships].hash
|
131
131
|
end
|
132
132
|
|
133
133
|
# Builds the object from hash
|
@@ -22,9 +22,12 @@ module Fastly
|
|
22
22
|
# The name of an existing condition in the configured endpoint, or leave blank to always execute.
|
23
23
|
attr_accessor :response_condition
|
24
24
|
|
25
|
-
# A Fastly [log format string](https://
|
25
|
+
# A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/).
|
26
26
|
attr_accessor :format
|
27
27
|
|
28
|
+
# The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global.
|
29
|
+
attr_accessor :log_processing_region
|
30
|
+
|
28
31
|
# The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`.
|
29
32
|
attr_accessor :format_version
|
30
33
|
|
@@ -103,6 +106,7 @@ module Fastly
|
|
103
106
|
:'placement' => :'placement',
|
104
107
|
:'response_condition' => :'response_condition',
|
105
108
|
:'format' => :'format',
|
109
|
+
:'log_processing_region' => :'log_processing_region',
|
106
110
|
:'format_version' => :'format_version',
|
107
111
|
:'message_type' => :'message_type',
|
108
112
|
:'timestamp_format' => :'timestamp_format',
|
@@ -135,6 +139,7 @@ module Fastly
|
|
135
139
|
:'placement' => :'String',
|
136
140
|
:'response_condition' => :'String',
|
137
141
|
:'format' => :'String',
|
142
|
+
:'log_processing_region' => :'String',
|
138
143
|
:'format_version' => :'String',
|
139
144
|
:'message_type' => :'String',
|
140
145
|
:'timestamp_format' => :'String',
|
@@ -213,6 +218,12 @@ module Fastly
|
|
213
218
|
self.format = '%h %l %u %t \"%r\" %>s %b'
|
214
219
|
end
|
215
220
|
|
221
|
+
if attributes.key?(:'log_processing_region')
|
222
|
+
self.log_processing_region = attributes[:'log_processing_region']
|
223
|
+
else
|
224
|
+
self.log_processing_region = 'none'
|
225
|
+
end
|
226
|
+
|
216
227
|
if attributes.key?(:'format_version')
|
217
228
|
self.format_version = attributes[:'format_version']
|
218
229
|
else
|
@@ -308,8 +319,10 @@ module Fastly
|
|
308
319
|
# Check to see if the all the properties in the model are valid
|
309
320
|
# @return true if the model is valid
|
310
321
|
def valid?
|
311
|
-
placement_validator = EnumAttributeValidator.new('String', ["none", "
|
322
|
+
placement_validator = EnumAttributeValidator.new('String', ["none", "null"])
|
312
323
|
return false unless placement_validator.valid?(@placement)
|
324
|
+
log_processing_region_validator = EnumAttributeValidator.new('String', ["none", "eu", "us"])
|
325
|
+
return false unless log_processing_region_validator.valid?(@log_processing_region)
|
313
326
|
format_version_validator = EnumAttributeValidator.new('String', ["1", "2"])
|
314
327
|
return false unless format_version_validator.valid?(@format_version)
|
315
328
|
message_type_validator = EnumAttributeValidator.new('String', ["classic", "loggly", "logplex", "blank"])
|
@@ -323,13 +336,23 @@ module Fastly
|
|
323
336
|
# Custom attribute writer method checking allowed values (enum).
|
324
337
|
# @param [Object] placement Object to be assigned
|
325
338
|
def placement=(placement)
|
326
|
-
validator = EnumAttributeValidator.new('String', ["none", "
|
339
|
+
validator = EnumAttributeValidator.new('String', ["none", "null"])
|
327
340
|
unless validator.valid?(placement)
|
328
341
|
fail ArgumentError, "invalid value for \"placement\", must be one of #{validator.allowable_values}."
|
329
342
|
end
|
330
343
|
@placement = placement
|
331
344
|
end
|
332
345
|
|
346
|
+
# Custom attribute writer method checking allowed values (enum).
|
347
|
+
# @param [Object] log_processing_region Object to be assigned
|
348
|
+
def log_processing_region=(log_processing_region)
|
349
|
+
validator = EnumAttributeValidator.new('String', ["none", "eu", "us"])
|
350
|
+
unless validator.valid?(log_processing_region)
|
351
|
+
fail ArgumentError, "invalid value for \"log_processing_region\", must be one of #{validator.allowable_values}."
|
352
|
+
end
|
353
|
+
@log_processing_region = log_processing_region
|
354
|
+
end
|
355
|
+
|
333
356
|
# Custom attribute writer method checking allowed values (enum).
|
334
357
|
# @param [Object] format_version Object to be assigned
|
335
358
|
def format_version=(format_version)
|
@@ -379,6 +402,7 @@ module Fastly
|
|
379
402
|
placement == o.placement &&
|
380
403
|
response_condition == o.response_condition &&
|
381
404
|
format == o.format &&
|
405
|
+
log_processing_region == o.log_processing_region &&
|
382
406
|
format_version == o.format_version &&
|
383
407
|
message_type == o.message_type &&
|
384
408
|
timestamp_format == o.timestamp_format &&
|
@@ -407,7 +431,7 @@ module Fastly
|
|
407
431
|
# Calculates hash code according to all attributes.
|
408
432
|
# @return [Integer] Hash code
|
409
433
|
def hash
|
410
|
-
[name, placement, response_condition, format, format_version, message_type, timestamp_format, compression_codec, period, gzip_level, created_at, deleted_at, updated_at, service_id, version, path, account_name, container, sas_token, public_key, file_max_bytes].hash
|
434
|
+
[name, placement, response_condition, format, log_processing_region, format_version, message_type, timestamp_format, compression_codec, period, gzip_level, created_at, deleted_at, updated_at, service_id, version, path, account_name, container, sas_token, public_key, file_max_bytes].hash
|
411
435
|
end
|
412
436
|
|
413
437
|
# Builds the object from hash
|
@@ -16,7 +16,7 @@ module Fastly
|
|
16
16
|
# The name of the BigQuery logging object. Used as a primary key for API access.
|
17
17
|
attr_accessor :name
|
18
18
|
|
19
|
-
# A Fastly [log format string](https://
|
19
|
+
# A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/). Must produce JSON that matches the schema of your BigQuery table.
|
20
20
|
attr_accessor :format
|
21
21
|
|
22
22
|
# Your BigQuery dataset.
|
@@ -22,9 +22,12 @@ module Fastly
|
|
22
22
|
# The name of an existing condition in the configured endpoint, or leave blank to always execute.
|
23
23
|
attr_accessor :response_condition
|
24
24
|
|
25
|
-
# A Fastly [log format string](https://
|
25
|
+
# A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/). Must produce JSON that matches the schema of your BigQuery table.
|
26
26
|
attr_accessor :format
|
27
27
|
|
28
|
+
# The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global.
|
29
|
+
attr_accessor :log_processing_region
|
30
|
+
|
28
31
|
# The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`.
|
29
32
|
attr_accessor :format_version
|
30
33
|
|
@@ -91,6 +94,7 @@ module Fastly
|
|
91
94
|
:'placement' => :'placement',
|
92
95
|
:'response_condition' => :'response_condition',
|
93
96
|
:'format' => :'format',
|
97
|
+
:'log_processing_region' => :'log_processing_region',
|
94
98
|
:'format_version' => :'format_version',
|
95
99
|
:'user' => :'user',
|
96
100
|
:'secret_key' => :'secret_key',
|
@@ -119,6 +123,7 @@ module Fastly
|
|
119
123
|
:'placement' => :'String',
|
120
124
|
:'response_condition' => :'String',
|
121
125
|
:'format' => :'String',
|
126
|
+
:'log_processing_region' => :'String',
|
122
127
|
:'format_version' => :'String',
|
123
128
|
:'user' => :'String',
|
124
129
|
:'secret_key' => :'String',
|
@@ -189,6 +194,12 @@ module Fastly
|
|
189
194
|
self.format = attributes[:'format']
|
190
195
|
end
|
191
196
|
|
197
|
+
if attributes.key?(:'log_processing_region')
|
198
|
+
self.log_processing_region = attributes[:'log_processing_region']
|
199
|
+
else
|
200
|
+
self.log_processing_region = 'none'
|
201
|
+
end
|
202
|
+
|
192
203
|
if attributes.key?(:'format_version')
|
193
204
|
self.format_version = attributes[:'format_version']
|
194
205
|
else
|
@@ -254,8 +265,10 @@ module Fastly
|
|
254
265
|
# Check to see if the all the properties in the model are valid
|
255
266
|
# @return true if the model is valid
|
256
267
|
def valid?
|
257
|
-
placement_validator = EnumAttributeValidator.new('String', ["none", "
|
268
|
+
placement_validator = EnumAttributeValidator.new('String', ["none", "null"])
|
258
269
|
return false unless placement_validator.valid?(@placement)
|
270
|
+
log_processing_region_validator = EnumAttributeValidator.new('String', ["none", "eu", "us"])
|
271
|
+
return false unless log_processing_region_validator.valid?(@log_processing_region)
|
259
272
|
format_version_validator = EnumAttributeValidator.new('String', ["1", "2"])
|
260
273
|
return false unless format_version_validator.valid?(@format_version)
|
261
274
|
true
|
@@ -264,13 +277,23 @@ module Fastly
|
|
264
277
|
# Custom attribute writer method checking allowed values (enum).
|
265
278
|
# @param [Object] placement Object to be assigned
|
266
279
|
def placement=(placement)
|
267
|
-
validator = EnumAttributeValidator.new('String', ["none", "
|
280
|
+
validator = EnumAttributeValidator.new('String', ["none", "null"])
|
268
281
|
unless validator.valid?(placement)
|
269
282
|
fail ArgumentError, "invalid value for \"placement\", must be one of #{validator.allowable_values}."
|
270
283
|
end
|
271
284
|
@placement = placement
|
272
285
|
end
|
273
286
|
|
287
|
+
# Custom attribute writer method checking allowed values (enum).
|
288
|
+
# @param [Object] log_processing_region Object to be assigned
|
289
|
+
def log_processing_region=(log_processing_region)
|
290
|
+
validator = EnumAttributeValidator.new('String', ["none", "eu", "us"])
|
291
|
+
unless validator.valid?(log_processing_region)
|
292
|
+
fail ArgumentError, "invalid value for \"log_processing_region\", must be one of #{validator.allowable_values}."
|
293
|
+
end
|
294
|
+
@log_processing_region = log_processing_region
|
295
|
+
end
|
296
|
+
|
274
297
|
# Custom attribute writer method checking allowed values (enum).
|
275
298
|
# @param [Object] format_version Object to be assigned
|
276
299
|
def format_version=(format_version)
|
@@ -290,6 +313,7 @@ module Fastly
|
|
290
313
|
placement == o.placement &&
|
291
314
|
response_condition == o.response_condition &&
|
292
315
|
format == o.format &&
|
316
|
+
log_processing_region == o.log_processing_region &&
|
293
317
|
format_version == o.format_version &&
|
294
318
|
user == o.user &&
|
295
319
|
secret_key == o.secret_key &&
|
@@ -314,7 +338,7 @@ module Fastly
|
|
314
338
|
# Calculates hash code according to all attributes.
|
315
339
|
# @return [Integer] Hash code
|
316
340
|
def hash
|
317
|
-
[name, placement, response_condition, format, format_version, user, secret_key, account_name, dataset, table, template_suffix, project_id, created_at, deleted_at, updated_at, service_id, version].hash
|
341
|
+
[name, placement, response_condition, format, log_processing_region, format_version, user, secret_key, account_name, dataset, table, template_suffix, project_id, created_at, deleted_at, updated_at, service_id, version].hash
|
318
342
|
end
|
319
343
|
|
320
344
|
# Builds the object from hash
|