fastly 7.2.2 → 8.0.1
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 +27 -0
- data/Gemfile.lock +2 -2
- data/README.md +1 -1
- data/docs/CreateResponseObjectRequest.md +16 -0
- data/docs/HistoricalApi.md +12 -12
- data/docs/{HistoricalAggregateResponse.md → HistoricalStatsAggregatedResponse.md} +1 -1
- data/docs/{HistoricalAggregateResponseAllOf.md → HistoricalStatsAggregatedResponseAllOf.md} +1 -1
- data/docs/{HistoricalResponse.md → HistoricalStatsByServiceResponse.md} +1 -1
- data/docs/{HistoricalResponseDataField.md → HistoricalStatsByServiceResponseAllOf.md} +1 -1
- data/docs/{HistoricalFieldResponse.md → HistoricalUsageAggregatedResponse.md} +2 -2
- data/docs/{HistoricalFieldResponseDataField.md → HistoricalUsageAggregatedResponseAllOf.md} +2 -2
- data/docs/{HistoricalUsageResults.md → HistoricalUsageData.md} +1 -1
- data/docs/HistoricalUsageMonthResponseData.md +2 -2
- data/docs/{HistoricalService.md → HistoricalUsageService.md} +1 -1
- data/docs/HistoricalUsageServiceResponse.md +1 -1
- data/docs/HistoricalUsageServiceResponseAllOf.md +1 -1
- data/docs/ResponseObjectApi.md +4 -0
- data/docs/Results.md +2 -0
- data/docs/TlsConfigurationResponseAttributes.md +1 -1
- data/docs/TlsConfigurationResponseAttributesAllOf.md +1 -1
- data/lib/fastly/api/historical_api.rb +18 -18
- data/lib/fastly/api/response_object_api.rb +8 -4
- data/lib/fastly/models/{historical_field_aggregate_response.rb → create_response_object_request.rb} +59 -35
- data/lib/fastly/models/{historical_aggregate_response.rb → historical_stats_aggregated_response.rb} +4 -4
- data/lib/fastly/models/{historical_aggregate_response_all_of.rb → historical_stats_aggregated_response_all_of.rb} +3 -3
- data/lib/fastly/models/{historical_response.rb → historical_stats_by_service_response.rb} +4 -4
- data/lib/fastly/models/{historical_response_data_field.rb → historical_stats_by_service_response_all_of.rb} +3 -3
- data/lib/fastly/models/{historical_field_response.rb → historical_usage_aggregated_response.rb} +6 -5
- data/lib/fastly/models/{historical_field_response_data_field.rb → historical_usage_aggregated_response_all_of.rb} +5 -4
- data/lib/fastly/models/{historical_usage_results.rb → historical_usage_data.rb} +4 -3
- data/lib/fastly/models/historical_usage_month_response_data.rb +7 -3
- data/lib/fastly/models/{historical_service.rb → historical_usage_service.rb} +3 -3
- data/lib/fastly/models/historical_usage_service_response.rb +5 -2
- data/lib/fastly/models/historical_usage_service_response_all_of.rb +5 -2
- data/lib/fastly/models/relationship_mutual_authentication.rb +1 -1
- data/lib/fastly/models/relationship_tls_domain.rb +1 -1
- data/lib/fastly/models/results.rb +24 -5
- data/lib/fastly/models/tls_configuration_response_attributes.rb +1 -1
- data/lib/fastly/models/tls_configuration_response_attributes_all_of.rb +1 -1
- data/lib/fastly/version.rb +1 -1
- data/lib/fastly.rb +9 -14
- data/sig.json +1 -1
- metadata +20 -30
- data/docs/HistoricalFieldAggregateResponse.md +0 -13
- data/docs/HistoricalFieldAggregateResponseAllOf.md +0 -10
- data/docs/HistoricalFieldResultsAttributes.md +0 -236
- data/docs/HistoricalFieldResultsAttributesAdditional.md +0 -11
- data/docs/HistoricalUsageAggregateResponse.md +0 -13
- data/docs/ReadOnlyIdService.md +0 -9
- data/lib/fastly/models/historical_field_aggregate_response_all_of.rb +0 -218
- data/lib/fastly/models/historical_field_results_attributes.rb +0 -2484
- data/lib/fastly/models/historical_field_results_attributes_additional.rb +0 -225
- data/lib/fastly/models/historical_usage_aggregate_response.rb +0 -254
- data/lib/fastly/models/read_only_id_service.rb +0 -207
data/lib/fastly/models/{historical_field_aggregate_response.rb → create_response_object_request.rb}
RENAMED
@@ -12,24 +12,38 @@ require 'date'
|
|
12
12
|
require 'time'
|
13
13
|
|
14
14
|
module Fastly
|
15
|
-
class
|
16
|
-
#
|
15
|
+
class CreateResponseObjectRequest
|
16
|
+
# The name of the response object to create.
|
17
|
+
attr_accessor :name
|
18
|
+
|
19
|
+
# The status code the response will have. Defaults to 200.
|
17
20
|
attr_accessor :status
|
18
21
|
|
19
|
-
|
22
|
+
# The status text the response will have. Defaults to 'OK'.
|
23
|
+
attr_accessor :response
|
24
|
+
|
25
|
+
# The content the response will deliver.
|
26
|
+
attr_accessor :content
|
27
|
+
|
28
|
+
# The MIME type of your response content.
|
29
|
+
attr_accessor :content_type
|
20
30
|
|
21
|
-
#
|
22
|
-
attr_accessor :
|
31
|
+
# Condition which, if met, will select this configuration during a request. Optional.
|
32
|
+
attr_accessor :request_condition
|
23
33
|
|
24
|
-
|
34
|
+
# Name of the cache condition controlling when this configuration applies.
|
35
|
+
attr_accessor :cache_condition
|
25
36
|
|
26
37
|
# Attribute mapping from ruby-style variable name to JSON key.
|
27
38
|
def self.attribute_map
|
28
39
|
{
|
40
|
+
:'name' => :'name',
|
29
41
|
:'status' => :'status',
|
30
|
-
:'
|
31
|
-
:'
|
32
|
-
:'
|
42
|
+
:'response' => :'response',
|
43
|
+
:'content' => :'content',
|
44
|
+
:'content_type' => :'content_type',
|
45
|
+
:'request_condition' => :'request_condition',
|
46
|
+
:'cache_condition' => :'cache_condition'
|
33
47
|
}
|
34
48
|
end
|
35
49
|
|
@@ -41,59 +55,66 @@ module Fastly
|
|
41
55
|
# Attribute type mapping.
|
42
56
|
def self.fastly_types
|
43
57
|
{
|
58
|
+
:'name' => :'String',
|
44
59
|
:'status' => :'String',
|
45
|
-
:'
|
46
|
-
:'
|
47
|
-
:'
|
60
|
+
:'response' => :'String',
|
61
|
+
:'content' => :'String',
|
62
|
+
:'content_type' => :'String',
|
63
|
+
:'request_condition' => :'String',
|
64
|
+
:'cache_condition' => :'String'
|
48
65
|
}
|
49
66
|
end
|
50
67
|
|
51
68
|
# List of attributes with nullable: true
|
52
69
|
def self.fastly_nullable
|
53
70
|
Set.new([
|
54
|
-
:'
|
71
|
+
:'content_type',
|
72
|
+
:'request_condition',
|
73
|
+
:'cache_condition'
|
55
74
|
])
|
56
75
|
end
|
57
76
|
|
58
|
-
# List of class defined in allOf (OpenAPI v3)
|
59
|
-
def self.fastly_all_of
|
60
|
-
[
|
61
|
-
:'Historical',
|
62
|
-
:'HistoricalFieldAggregateResponseAllOf'
|
63
|
-
]
|
64
|
-
end
|
65
|
-
|
66
77
|
# Initializes the object
|
67
78
|
# @param [Hash] attributes Model attributes in the form of hash
|
68
79
|
def initialize(attributes = {})
|
69
80
|
if (!attributes.is_a?(Hash))
|
70
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::
|
81
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::CreateResponseObjectRequest` initialize method"
|
71
82
|
end
|
72
83
|
|
73
84
|
# check to see if the attribute exists and convert string to symbol for hash key
|
74
85
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
75
86
|
if (!self.class.attribute_map.key?(k.to_sym))
|
76
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::
|
87
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::CreateResponseObjectRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
77
88
|
end
|
78
89
|
h[k.to_sym] = v
|
79
90
|
}
|
80
91
|
|
92
|
+
if attributes.key?(:'name')
|
93
|
+
self.name = attributes[:'name']
|
94
|
+
end
|
95
|
+
|
81
96
|
if attributes.key?(:'status')
|
82
97
|
self.status = attributes[:'status']
|
83
98
|
end
|
84
99
|
|
85
|
-
if attributes.key?(:'
|
86
|
-
self.
|
100
|
+
if attributes.key?(:'response')
|
101
|
+
self.response = attributes[:'response']
|
87
102
|
end
|
88
103
|
|
89
|
-
if attributes.key?(:'
|
90
|
-
self.
|
104
|
+
if attributes.key?(:'content')
|
105
|
+
self.content = attributes[:'content']
|
91
106
|
end
|
92
107
|
|
93
|
-
if attributes.key?(:'
|
94
|
-
|
95
|
-
|
96
|
-
|
108
|
+
if attributes.key?(:'content_type')
|
109
|
+
self.content_type = attributes[:'content_type']
|
110
|
+
end
|
111
|
+
|
112
|
+
if attributes.key?(:'request_condition')
|
113
|
+
self.request_condition = attributes[:'request_condition']
|
114
|
+
end
|
115
|
+
|
116
|
+
if attributes.key?(:'cache_condition')
|
117
|
+
self.cache_condition = attributes[:'cache_condition']
|
97
118
|
end
|
98
119
|
end
|
99
120
|
|
@@ -115,10 +136,13 @@ module Fastly
|
|
115
136
|
def ==(o)
|
116
137
|
return true if self.equal?(o)
|
117
138
|
self.class == o.class &&
|
139
|
+
name == o.name &&
|
118
140
|
status == o.status &&
|
119
|
-
|
120
|
-
|
121
|
-
|
141
|
+
response == o.response &&
|
142
|
+
content == o.content &&
|
143
|
+
content_type == o.content_type &&
|
144
|
+
request_condition == o.request_condition &&
|
145
|
+
cache_condition == o.cache_condition
|
122
146
|
end
|
123
147
|
|
124
148
|
# @see the `==` method
|
@@ -130,7 +154,7 @@ module Fastly
|
|
130
154
|
# Calculates hash code according to all attributes.
|
131
155
|
# @return [Integer] Hash code
|
132
156
|
def hash
|
133
|
-
[status,
|
157
|
+
[name, status, response, content, content_type, request_condition, cache_condition].hash
|
134
158
|
end
|
135
159
|
|
136
160
|
# Builds the object from hash
|
data/lib/fastly/models/{historical_aggregate_response.rb → historical_stats_aggregated_response.rb}
RENAMED
@@ -12,7 +12,7 @@ require 'date'
|
|
12
12
|
require 'time'
|
13
13
|
|
14
14
|
module Fastly
|
15
|
-
class
|
15
|
+
class HistoricalStatsAggregatedResponse
|
16
16
|
# Whether or not we were able to successfully execute the query.
|
17
17
|
attr_accessor :status
|
18
18
|
|
@@ -59,7 +59,7 @@ module Fastly
|
|
59
59
|
def self.fastly_all_of
|
60
60
|
[
|
61
61
|
:'Historical',
|
62
|
-
:'
|
62
|
+
:'HistoricalStatsAggregatedResponseAllOf'
|
63
63
|
]
|
64
64
|
end
|
65
65
|
|
@@ -67,13 +67,13 @@ module Fastly
|
|
67
67
|
# @param [Hash] attributes Model attributes in the form of hash
|
68
68
|
def initialize(attributes = {})
|
69
69
|
if (!attributes.is_a?(Hash))
|
70
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::
|
70
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::HistoricalStatsAggregatedResponse` initialize method"
|
71
71
|
end
|
72
72
|
|
73
73
|
# check to see if the attribute exists and convert string to symbol for hash key
|
74
74
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
75
75
|
if (!self.class.attribute_map.key?(k.to_sym))
|
76
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::
|
76
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::HistoricalStatsAggregatedResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
77
77
|
end
|
78
78
|
h[k.to_sym] = v
|
79
79
|
}
|
@@ -12,7 +12,7 @@ require 'date'
|
|
12
12
|
require 'time'
|
13
13
|
|
14
14
|
module Fastly
|
15
|
-
class
|
15
|
+
class HistoricalStatsAggregatedResponseAllOf
|
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::HistoricalStatsAggregatedResponseAllOf` 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::HistoricalStatsAggregatedResponseAllOf`. 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
|
}
|
@@ -12,7 +12,7 @@ require 'date'
|
|
12
12
|
require 'time'
|
13
13
|
|
14
14
|
module Fastly
|
15
|
-
class
|
15
|
+
class HistoricalStatsByServiceResponse
|
16
16
|
# Whether or not we were able to successfully execute the query.
|
17
17
|
attr_accessor :status
|
18
18
|
|
@@ -60,7 +60,7 @@ module Fastly
|
|
60
60
|
def self.fastly_all_of
|
61
61
|
[
|
62
62
|
:'Historical',
|
63
|
-
:'
|
63
|
+
:'HistoricalStatsByServiceResponseAllOf'
|
64
64
|
]
|
65
65
|
end
|
66
66
|
|
@@ -68,13 +68,13 @@ module Fastly
|
|
68
68
|
# @param [Hash] attributes Model attributes in the form of hash
|
69
69
|
def initialize(attributes = {})
|
70
70
|
if (!attributes.is_a?(Hash))
|
71
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::
|
71
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::HistoricalStatsByServiceResponse` initialize method"
|
72
72
|
end
|
73
73
|
|
74
74
|
# check to see if the attribute exists and convert string to symbol for hash key
|
75
75
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
76
76
|
if (!self.class.attribute_map.key?(k.to_sym))
|
77
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::
|
77
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::HistoricalStatsByServiceResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
78
78
|
end
|
79
79
|
h[k.to_sym] = v
|
80
80
|
}
|
@@ -12,7 +12,7 @@ require 'date'
|
|
12
12
|
require 'time'
|
13
13
|
|
14
14
|
module Fastly
|
15
|
-
class
|
15
|
+
class HistoricalStatsByServiceResponseAllOf
|
16
16
|
# Contains the results of the query, organized by *service ID*, into arrays where each element describes one service over a *time span*.
|
17
17
|
attr_accessor :data
|
18
18
|
|
@@ -45,13 +45,13 @@ module Fastly
|
|
45
45
|
# @param [Hash] attributes Model attributes in the form of hash
|
46
46
|
def initialize(attributes = {})
|
47
47
|
if (!attributes.is_a?(Hash))
|
48
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::
|
48
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::HistoricalStatsByServiceResponseAllOf` initialize method"
|
49
49
|
end
|
50
50
|
|
51
51
|
# check to see if the attribute exists and convert string to symbol for hash key
|
52
52
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
53
53
|
if (!self.class.attribute_map.key?(k.to_sym))
|
54
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::
|
54
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::HistoricalStatsByServiceResponseAllOf`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
55
55
|
end
|
56
56
|
h[k.to_sym] = v
|
57
57
|
}
|
data/lib/fastly/models/{historical_field_response.rb → historical_usage_aggregated_response.rb}
RENAMED
@@ -12,7 +12,7 @@ require 'date'
|
|
12
12
|
require 'time'
|
13
13
|
|
14
14
|
module Fastly
|
15
|
-
class
|
15
|
+
class HistoricalUsageAggregatedResponse
|
16
16
|
# Whether or not we were able to successfully execute the query.
|
17
17
|
attr_accessor :status
|
18
18
|
|
@@ -21,6 +21,7 @@ module Fastly
|
|
21
21
|
# If the query was not successful, this will provide a string that explains why.
|
22
22
|
attr_accessor :msg
|
23
23
|
|
24
|
+
# Organized by *region*.
|
24
25
|
attr_accessor :data
|
25
26
|
|
26
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -44,7 +45,7 @@ module Fastly
|
|
44
45
|
:'status' => :'String',
|
45
46
|
:'meta' => :'HistoricalMeta',
|
46
47
|
:'msg' => :'String',
|
47
|
-
:'data' => :'Hash<String,
|
48
|
+
:'data' => :'Hash<String, HistoricalUsageData>'
|
48
49
|
}
|
49
50
|
end
|
50
51
|
|
@@ -59,7 +60,7 @@ module Fastly
|
|
59
60
|
def self.fastly_all_of
|
60
61
|
[
|
61
62
|
:'Historical',
|
62
|
-
:'
|
63
|
+
:'HistoricalUsageAggregatedResponseAllOf'
|
63
64
|
]
|
64
65
|
end
|
65
66
|
|
@@ -67,13 +68,13 @@ module Fastly
|
|
67
68
|
# @param [Hash] attributes Model attributes in the form of hash
|
68
69
|
def initialize(attributes = {})
|
69
70
|
if (!attributes.is_a?(Hash))
|
70
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::
|
71
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::HistoricalUsageAggregatedResponse` initialize method"
|
71
72
|
end
|
72
73
|
|
73
74
|
# check to see if the attribute exists and convert string to symbol for hash key
|
74
75
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
75
76
|
if (!self.class.attribute_map.key?(k.to_sym))
|
76
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::
|
77
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::HistoricalUsageAggregatedResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
77
78
|
end
|
78
79
|
h[k.to_sym] = v
|
79
80
|
}
|
@@ -12,7 +12,8 @@ require 'date'
|
|
12
12
|
require 'time'
|
13
13
|
|
14
14
|
module Fastly
|
15
|
-
class
|
15
|
+
class HistoricalUsageAggregatedResponseAllOf
|
16
|
+
# Organized by *region*.
|
16
17
|
attr_accessor :data
|
17
18
|
|
18
19
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -30,7 +31,7 @@ module Fastly
|
|
30
31
|
# Attribute type mapping.
|
31
32
|
def self.fastly_types
|
32
33
|
{
|
33
|
-
:'data' => :'Hash<String,
|
34
|
+
:'data' => :'Hash<String, HistoricalUsageData>'
|
34
35
|
}
|
35
36
|
end
|
36
37
|
|
@@ -44,13 +45,13 @@ module Fastly
|
|
44
45
|
# @param [Hash] attributes Model attributes in the form of hash
|
45
46
|
def initialize(attributes = {})
|
46
47
|
if (!attributes.is_a?(Hash))
|
47
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::
|
48
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::HistoricalUsageAggregatedResponseAllOf` initialize method"
|
48
49
|
end
|
49
50
|
|
50
51
|
# check to see if the attribute exists and convert string to symbol for hash key
|
51
52
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
52
53
|
if (!self.class.attribute_map.key?(k.to_sym))
|
53
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::
|
54
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::HistoricalUsageAggregatedResponseAllOf`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
54
55
|
end
|
55
56
|
h[k.to_sym] = v
|
56
57
|
}
|
@@ -12,7 +12,8 @@ require 'date'
|
|
12
12
|
require 'time'
|
13
13
|
|
14
14
|
module Fastly
|
15
|
-
|
15
|
+
# The results of usage related queries, grouped by service and/or region depending on endpoint, and aggregated over the appropriate time span.
|
16
|
+
class HistoricalUsageData
|
16
17
|
attr_accessor :bandwidth
|
17
18
|
|
18
19
|
attr_accessor :requests
|
@@ -52,13 +53,13 @@ module Fastly
|
|
52
53
|
# @param [Hash] attributes Model attributes in the form of hash
|
53
54
|
def initialize(attributes = {})
|
54
55
|
if (!attributes.is_a?(Hash))
|
55
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::
|
56
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::HistoricalUsageData` initialize method"
|
56
57
|
end
|
57
58
|
|
58
59
|
# check to see if the attribute exists and convert string to symbol for hash key
|
59
60
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
60
61
|
if (!self.class.attribute_map.key?(k.to_sym))
|
61
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::
|
62
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::HistoricalUsageData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
62
63
|
end
|
63
64
|
h[k.to_sym] = v
|
64
65
|
}
|
@@ -15,8 +15,10 @@ module Fastly
|
|
15
15
|
class HistoricalUsageMonthResponseData
|
16
16
|
attr_accessor :customer_id
|
17
17
|
|
18
|
+
# Organized by *service id*.
|
18
19
|
attr_accessor :services
|
19
20
|
|
21
|
+
# Organized by *region*.
|
20
22
|
attr_accessor :total
|
21
23
|
|
22
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -37,8 +39,8 @@ module Fastly
|
|
37
39
|
def self.fastly_types
|
38
40
|
{
|
39
41
|
:'customer_id' => :'String',
|
40
|
-
:'services' => :'Hash<String,
|
41
|
-
:'total' => :'
|
42
|
+
:'services' => :'Hash<String, HistoricalUsageService>',
|
43
|
+
:'total' => :'Hash<String, HistoricalUsageData>'
|
42
44
|
}
|
43
45
|
end
|
44
46
|
|
@@ -74,7 +76,9 @@ module Fastly
|
|
74
76
|
end
|
75
77
|
|
76
78
|
if attributes.key?(:'total')
|
77
|
-
|
79
|
+
if (value = attributes[:'total']).is_a?(Hash)
|
80
|
+
self.total = value
|
81
|
+
end
|
78
82
|
end
|
79
83
|
end
|
80
84
|
|
@@ -12,7 +12,7 @@ require 'date'
|
|
12
12
|
require 'time'
|
13
13
|
|
14
14
|
module Fastly
|
15
|
-
class
|
15
|
+
class HistoricalUsageService
|
16
16
|
# The name of the service.
|
17
17
|
attr_accessor :name
|
18
18
|
|
@@ -45,13 +45,13 @@ module Fastly
|
|
45
45
|
# @param [Hash] attributes Model attributes in the form of hash
|
46
46
|
def initialize(attributes = {})
|
47
47
|
if (!attributes.is_a?(Hash))
|
48
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::
|
48
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::HistoricalUsageService` initialize method"
|
49
49
|
end
|
50
50
|
|
51
51
|
# check to see if the attribute exists and convert string to symbol for hash key
|
52
52
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
53
53
|
if (!self.class.attribute_map.key?(k.to_sym))
|
54
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::
|
54
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::HistoricalUsageService`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
55
55
|
end
|
56
56
|
h[k.to_sym] = v
|
57
57
|
}
|
@@ -21,6 +21,7 @@ module Fastly
|
|
21
21
|
# If the query was not successful, this will provide a string that explains why.
|
22
22
|
attr_accessor :msg
|
23
23
|
|
24
|
+
# Organized by *region*.
|
24
25
|
attr_accessor :data
|
25
26
|
|
26
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -44,7 +45,7 @@ module Fastly
|
|
44
45
|
:'status' => :'String',
|
45
46
|
:'meta' => :'HistoricalMeta',
|
46
47
|
:'msg' => :'String',
|
47
|
-
:'data' => :'
|
48
|
+
:'data' => :'Hash<String, Hash<String, HistoricalUsageData>>'
|
48
49
|
}
|
49
50
|
end
|
50
51
|
|
@@ -91,7 +92,9 @@ module Fastly
|
|
91
92
|
end
|
92
93
|
|
93
94
|
if attributes.key?(:'data')
|
94
|
-
|
95
|
+
if (value = attributes[:'data']).is_a?(Hash)
|
96
|
+
self.data = value
|
97
|
+
end
|
95
98
|
end
|
96
99
|
end
|
97
100
|
|
@@ -13,6 +13,7 @@ require 'time'
|
|
13
13
|
|
14
14
|
module Fastly
|
15
15
|
class HistoricalUsageServiceResponseAllOf
|
16
|
+
# Organized by *region*.
|
16
17
|
attr_accessor :data
|
17
18
|
|
18
19
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -30,7 +31,7 @@ module Fastly
|
|
30
31
|
# Attribute type mapping.
|
31
32
|
def self.fastly_types
|
32
33
|
{
|
33
|
-
:'data' => :'
|
34
|
+
:'data' => :'Hash<String, Hash<String, HistoricalUsageData>>'
|
34
35
|
}
|
35
36
|
end
|
36
37
|
|
@@ -56,7 +57,9 @@ module Fastly
|
|
56
57
|
}
|
57
58
|
|
58
59
|
if attributes.key?(:'data')
|
59
|
-
|
60
|
+
if (value = attributes[:'data']).is_a?(Hash)
|
61
|
+
self.data = value
|
62
|
+
end
|
60
63
|
end
|
61
64
|
end
|
62
65
|
|
@@ -12,7 +12,7 @@ require 'date'
|
|
12
12
|
require 'time'
|
13
13
|
|
14
14
|
module Fastly
|
15
|
-
# The
|
15
|
+
# The Mutual Authentication for client-to-server authentication. Optional.
|
16
16
|
class RelationshipMutualAuthentication
|
17
17
|
attr_accessor :mutual_authentication
|
18
18
|
|
@@ -12,7 +12,7 @@ require 'date'
|
|
12
12
|
require 'time'
|
13
13
|
|
14
14
|
module Fastly
|
15
|
-
# The
|
15
|
+
# The TLS domain being enabled for TLS traffic. Required.
|
16
16
|
class RelationshipTlsDomain
|
17
17
|
attr_accessor :tls_domain
|
18
18
|
|
@@ -12,7 +12,7 @@ require 'date'
|
|
12
12
|
require 'time'
|
13
13
|
|
14
14
|
module Fastly
|
15
|
-
# The
|
15
|
+
# The results of stats queries, may be grouped by service depending on endpoint, and aggregated over the appropriate time span.
|
16
16
|
class Results
|
17
17
|
# Number of requests processed.
|
18
18
|
attr_accessor :requests
|
@@ -689,6 +689,11 @@ module Fastly
|
|
689
689
|
# The number of failed challenge solutions processed. For example, an incorrect CAPTCHA solution.
|
690
690
|
attr_accessor :bot_challenges_failed
|
691
691
|
|
692
|
+
attr_accessor :service_id
|
693
|
+
|
694
|
+
# Timestamp for the start of the time period being reported
|
695
|
+
attr_accessor :start_time
|
696
|
+
|
692
697
|
# Attribute mapping from ruby-style variable name to JSON key.
|
693
698
|
def self.attribute_map
|
694
699
|
{
|
@@ -916,7 +921,9 @@ module Fastly
|
|
916
921
|
:'bot_challenge_complete_tokens_issued' => :'bot_challenge_complete_tokens_issued',
|
917
922
|
:'bot_challenges_issued' => :'bot_challenges_issued',
|
918
923
|
:'bot_challenges_succeeded' => :'bot_challenges_succeeded',
|
919
|
-
:'bot_challenges_failed' => :'bot_challenges_failed'
|
924
|
+
:'bot_challenges_failed' => :'bot_challenges_failed',
|
925
|
+
:'service_id' => :'service_id',
|
926
|
+
:'start_time' => :'start_time'
|
920
927
|
}
|
921
928
|
end
|
922
929
|
|
@@ -1152,7 +1159,9 @@ module Fastly
|
|
1152
1159
|
:'bot_challenge_complete_tokens_issued' => :'Integer',
|
1153
1160
|
:'bot_challenges_issued' => :'Integer',
|
1154
1161
|
:'bot_challenges_succeeded' => :'Integer',
|
1155
|
-
:'bot_challenges_failed' => :'Integer'
|
1162
|
+
:'bot_challenges_failed' => :'Integer',
|
1163
|
+
:'service_id' => :'String',
|
1164
|
+
:'start_time' => :'Integer'
|
1156
1165
|
}
|
1157
1166
|
end
|
1158
1167
|
|
@@ -2077,6 +2086,14 @@ module Fastly
|
|
2077
2086
|
if attributes.key?(:'bot_challenges_failed')
|
2078
2087
|
self.bot_challenges_failed = attributes[:'bot_challenges_failed']
|
2079
2088
|
end
|
2089
|
+
|
2090
|
+
if attributes.key?(:'service_id')
|
2091
|
+
self.service_id = attributes[:'service_id']
|
2092
|
+
end
|
2093
|
+
|
2094
|
+
if attributes.key?(:'start_time')
|
2095
|
+
self.start_time = attributes[:'start_time']
|
2096
|
+
end
|
2080
2097
|
end
|
2081
2098
|
|
2082
2099
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -2321,7 +2338,9 @@ module Fastly
|
|
2321
2338
|
bot_challenge_complete_tokens_issued == o.bot_challenge_complete_tokens_issued &&
|
2322
2339
|
bot_challenges_issued == o.bot_challenges_issued &&
|
2323
2340
|
bot_challenges_succeeded == o.bot_challenges_succeeded &&
|
2324
|
-
bot_challenges_failed == o.bot_challenges_failed
|
2341
|
+
bot_challenges_failed == o.bot_challenges_failed &&
|
2342
|
+
service_id == o.service_id &&
|
2343
|
+
start_time == o.start_time
|
2325
2344
|
end
|
2326
2345
|
|
2327
2346
|
# @see the `==` method
|
@@ -2333,7 +2352,7 @@ module Fastly
|
|
2333
2352
|
# Calculates hash code according to all attributes.
|
2334
2353
|
# @return [Integer] Hash code
|
2335
2354
|
def hash
|
2336
|
-
[requests, hits, hits_time, miss, miss_time, pass, pass_time, errors, restarts, hit_ratio, bandwidth, body_size, header_size, req_body_bytes, req_header_bytes, resp_body_bytes, resp_header_bytes, bereq_body_bytes, bereq_header_bytes, uncacheable, pipe, synth, tls, tls_v10, tls_v11, tls_v12, tls_v13, edge_requests, edge_resp_header_bytes, edge_resp_body_bytes, edge_hit_requests, edge_miss_requests, origin_fetches, origin_fetch_header_bytes, origin_fetch_body_bytes, origin_fetch_resp_header_bytes, origin_fetch_resp_body_bytes, origin_revalidations, origin_cache_fetches, shield, shield_resp_body_bytes, shield_resp_header_bytes, shield_fetches, shield_fetch_header_bytes, shield_fetch_body_bytes, shield_fetch_resp_header_bytes, shield_fetch_resp_body_bytes, shield_revalidations, shield_cache_fetches, ipv6, otfp, otfp_resp_body_bytes, otfp_resp_header_bytes, otfp_shield_resp_body_bytes, otfp_shield_resp_header_bytes, otfp_manifests, otfp_deliver_time, otfp_shield_time, video, pci, log, log_bytes, http2, http3, waf_logged, waf_blocked, waf_passed, attack_req_body_bytes, attack_req_header_bytes, attack_logged_req_body_bytes, attack_logged_req_header_bytes, attack_blocked_req_body_bytes, attack_blocked_req_header_bytes, attack_passed_req_body_bytes, attack_passed_req_header_bytes, attack_resp_synth_bytes, imgopto, imgopto_resp_body_bytes, imgopto_resp_header_bytes, imgopto_shield_resp_body_bytes, imgopto_shield_resp_header_bytes, imgvideo, imgvideo_frames, imgvideo_resp_header_bytes, imgvideo_resp_body_bytes, imgvideo_shield_resp_header_bytes, imgvideo_shield_resp_body_bytes, imgvideo_shield, imgvideo_shield_frames, status_200, status_204, status_206, status_301, status_302, status_304, status_400, status_401, status_403, status_404, status_406, status_416, status_429, status_500, status_501, status_502, status_503, status_504, status_505, status_1xx, status_2xx, status_3xx, status_4xx, status_5xx, object_size_1k, object_size_10k, object_size_100k, object_size_1m, object_size_10m, object_size_100m, object_size_1g, recv_sub_time, recv_sub_count, hash_sub_time, hash_sub_count, miss_sub_time, miss_sub_count, fetch_sub_time, fetch_sub_count, pass_sub_time, pass_sub_count, pipe_sub_time, pipe_sub_count, deliver_sub_time, deliver_sub_count, error_sub_time, error_sub_count, hit_sub_time, hit_sub_count, prehash_sub_time, prehash_sub_count, predeliver_sub_time, predeliver_sub_count, tls_handshake_sent_bytes, hit_resp_body_bytes, miss_resp_body_bytes, pass_resp_body_bytes, segblock_origin_fetches, segblock_shield_fetches, compute_requests, compute_request_time_ms, compute_request_time_billed_ms, compute_ram_used, compute_execution_time_ms, compute_req_header_bytes, compute_req_body_bytes, compute_resp_header_bytes, compute_resp_body_bytes, compute_resp_status_1xx, compute_resp_status_2xx, compute_resp_status_3xx, compute_resp_status_4xx, compute_resp_status_5xx, compute_bereq_header_bytes, compute_bereq_body_bytes, compute_beresp_header_bytes, compute_beresp_body_bytes, compute_bereqs, compute_bereq_errors, compute_resource_limit_exceeded, compute_heap_limit_exceeded, compute_stack_limit_exceeded, compute_globals_limit_exceeded, compute_guest_errors, compute_runtime_errors, edge_hit_resp_body_bytes, edge_hit_resp_header_bytes, edge_miss_resp_body_bytes, edge_miss_resp_header_bytes, origin_cache_fetch_resp_body_bytes, origin_cache_fetch_resp_header_bytes, shield_hit_requests, shield_miss_requests, shield_hit_resp_header_bytes, shield_hit_resp_body_bytes, shield_miss_resp_header_bytes, shield_miss_resp_body_bytes, websocket_req_header_bytes, websocket_req_body_bytes, websocket_resp_header_bytes, websocket_resp_body_bytes, websocket_bereq_header_bytes, websocket_bereq_body_bytes, websocket_beresp_header_bytes, websocket_beresp_body_bytes, websocket_conn_time_ms, fanout_recv_publishes, fanout_send_publishes, kv_store_class_a_operations, kv_store_class_b_operations, object_store_class_a_operations, object_store_class_b_operations, fanout_req_header_bytes, fanout_req_body_bytes, fanout_resp_header_bytes, fanout_resp_body_bytes, fanout_bereq_header_bytes, fanout_bereq_body_bytes, fanout_beresp_header_bytes, fanout_beresp_body_bytes, fanout_conn_time_ms, ddos_action_limit_streams_connections, ddos_action_limit_streams_requests, ddos_action_tarpit_accept, ddos_action_tarpit, ddos_action_close, ddos_action_blackhole, bot_challenge_starts, bot_challenge_complete_tokens_passed, bot_challenge_complete_tokens_failed, bot_challenge_complete_tokens_checked, bot_challenge_complete_tokens_disabled, bot_challenge_complete_tokens_issued, bot_challenges_issued, bot_challenges_succeeded, bot_challenges_failed].hash
|
2355
|
+
[requests, hits, hits_time, miss, miss_time, pass, pass_time, errors, restarts, hit_ratio, bandwidth, body_size, header_size, req_body_bytes, req_header_bytes, resp_body_bytes, resp_header_bytes, bereq_body_bytes, bereq_header_bytes, uncacheable, pipe, synth, tls, tls_v10, tls_v11, tls_v12, tls_v13, edge_requests, edge_resp_header_bytes, edge_resp_body_bytes, edge_hit_requests, edge_miss_requests, origin_fetches, origin_fetch_header_bytes, origin_fetch_body_bytes, origin_fetch_resp_header_bytes, origin_fetch_resp_body_bytes, origin_revalidations, origin_cache_fetches, shield, shield_resp_body_bytes, shield_resp_header_bytes, shield_fetches, shield_fetch_header_bytes, shield_fetch_body_bytes, shield_fetch_resp_header_bytes, shield_fetch_resp_body_bytes, shield_revalidations, shield_cache_fetches, ipv6, otfp, otfp_resp_body_bytes, otfp_resp_header_bytes, otfp_shield_resp_body_bytes, otfp_shield_resp_header_bytes, otfp_manifests, otfp_deliver_time, otfp_shield_time, video, pci, log, log_bytes, http2, http3, waf_logged, waf_blocked, waf_passed, attack_req_body_bytes, attack_req_header_bytes, attack_logged_req_body_bytes, attack_logged_req_header_bytes, attack_blocked_req_body_bytes, attack_blocked_req_header_bytes, attack_passed_req_body_bytes, attack_passed_req_header_bytes, attack_resp_synth_bytes, imgopto, imgopto_resp_body_bytes, imgopto_resp_header_bytes, imgopto_shield_resp_body_bytes, imgopto_shield_resp_header_bytes, imgvideo, imgvideo_frames, imgvideo_resp_header_bytes, imgvideo_resp_body_bytes, imgvideo_shield_resp_header_bytes, imgvideo_shield_resp_body_bytes, imgvideo_shield, imgvideo_shield_frames, status_200, status_204, status_206, status_301, status_302, status_304, status_400, status_401, status_403, status_404, status_406, status_416, status_429, status_500, status_501, status_502, status_503, status_504, status_505, status_1xx, status_2xx, status_3xx, status_4xx, status_5xx, object_size_1k, object_size_10k, object_size_100k, object_size_1m, object_size_10m, object_size_100m, object_size_1g, recv_sub_time, recv_sub_count, hash_sub_time, hash_sub_count, miss_sub_time, miss_sub_count, fetch_sub_time, fetch_sub_count, pass_sub_time, pass_sub_count, pipe_sub_time, pipe_sub_count, deliver_sub_time, deliver_sub_count, error_sub_time, error_sub_count, hit_sub_time, hit_sub_count, prehash_sub_time, prehash_sub_count, predeliver_sub_time, predeliver_sub_count, tls_handshake_sent_bytes, hit_resp_body_bytes, miss_resp_body_bytes, pass_resp_body_bytes, segblock_origin_fetches, segblock_shield_fetches, compute_requests, compute_request_time_ms, compute_request_time_billed_ms, compute_ram_used, compute_execution_time_ms, compute_req_header_bytes, compute_req_body_bytes, compute_resp_header_bytes, compute_resp_body_bytes, compute_resp_status_1xx, compute_resp_status_2xx, compute_resp_status_3xx, compute_resp_status_4xx, compute_resp_status_5xx, compute_bereq_header_bytes, compute_bereq_body_bytes, compute_beresp_header_bytes, compute_beresp_body_bytes, compute_bereqs, compute_bereq_errors, compute_resource_limit_exceeded, compute_heap_limit_exceeded, compute_stack_limit_exceeded, compute_globals_limit_exceeded, compute_guest_errors, compute_runtime_errors, edge_hit_resp_body_bytes, edge_hit_resp_header_bytes, edge_miss_resp_body_bytes, edge_miss_resp_header_bytes, origin_cache_fetch_resp_body_bytes, origin_cache_fetch_resp_header_bytes, shield_hit_requests, shield_miss_requests, shield_hit_resp_header_bytes, shield_hit_resp_body_bytes, shield_miss_resp_header_bytes, shield_miss_resp_body_bytes, websocket_req_header_bytes, websocket_req_body_bytes, websocket_resp_header_bytes, websocket_resp_body_bytes, websocket_bereq_header_bytes, websocket_bereq_body_bytes, websocket_beresp_header_bytes, websocket_beresp_body_bytes, websocket_conn_time_ms, fanout_recv_publishes, fanout_send_publishes, kv_store_class_a_operations, kv_store_class_b_operations, object_store_class_a_operations, object_store_class_b_operations, fanout_req_header_bytes, fanout_req_body_bytes, fanout_resp_header_bytes, fanout_resp_body_bytes, fanout_bereq_header_bytes, fanout_bereq_body_bytes, fanout_beresp_header_bytes, fanout_beresp_body_bytes, fanout_conn_time_ms, ddos_action_limit_streams_connections, ddos_action_limit_streams_requests, ddos_action_tarpit_accept, ddos_action_tarpit, ddos_action_close, ddos_action_blackhole, bot_challenge_starts, bot_challenge_complete_tokens_passed, bot_challenge_complete_tokens_failed, bot_challenge_complete_tokens_checked, bot_challenge_complete_tokens_disabled, bot_challenge_complete_tokens_issued, bot_challenges_issued, bot_challenges_succeeded, bot_challenges_failed, service_id, start_time].hash
|
2337
2356
|
end
|
2338
2357
|
|
2339
2358
|
# Builds the object from hash
|
data/lib/fastly/version.rb
CHANGED