fastly 18.0.0 → 18.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 +41 -11
- data/Gemfile.lock +4 -4
- data/README.md +4 -1
- data/docs/Backend.md +5 -0
- data/docs/BackendApi.md +20 -0
- data/docs/BackendResponse.md +5 -0
- data/docs/BotManagementApi.md +44 -2
- data/docs/BotManagementCategoryBots.md +10 -0
- data/docs/BotManagementCategoryBotsAction.md +10 -0
- data/docs/DdosProtectionRule.md +1 -0
- data/docs/DdosProtectionRuleAllOf.md +1 -0
- data/docs/DdosProtectionRuleWithStats.md +1 -0
- data/docs/HistoricalApi.md +10 -10
- data/docs/RealtimeEntryAggregated.md +2 -0
- data/docs/RealtimeEntryDatacenter.md +2 -0
- data/docs/RealtimeMeasurements.md +2 -0
- data/docs/Results.md +2 -0
- data/lib/fastly/api/backend_api.rb +38 -0
- data/lib/fastly/api/bot_management_api.rb +86 -4
- data/lib/fastly/api/bot_requests_metrics_api.rb +1 -1
- data/lib/fastly/api/domain_inspector_historical_api.rb +1 -1
- data/lib/fastly/api/historical_api.rb +15 -15
- data/lib/fastly/api/metrics_platform_api.rb +2 -2
- data/lib/fastly/api/origin_inspector_historical_api.rb +1 -1
- data/lib/fastly/configuration.rb +6 -0
- data/lib/fastly/models/backend.rb +90 -1
- data/lib/fastly/models/backend_response.rb +90 -1
- data/lib/fastly/models/bot_management_category_bots.rb +222 -0
- data/lib/fastly/models/bot_management_category_bots_action.rb +257 -0
- data/lib/fastly/models/ddos_protection_rule.rb +12 -1
- data/lib/fastly/models/ddos_protection_rule_all_of.rb +12 -1
- data/lib/fastly/models/ddos_protection_rule_with_stats.rb +12 -1
- data/lib/fastly/models/pop.rb +6 -6
- data/lib/fastly/models/realtime_entry_aggregated.rb +24 -4
- data/lib/fastly/models/realtime_entry_datacenter.rb +24 -4
- data/lib/fastly/models/realtime_measurements.rb +24 -4
- data/lib/fastly/models/results.rb +21 -1
- data/lib/fastly/version.rb +1 -1
- data/lib/fastly.rb +2 -0
- data/sig.json +1 -1
- metadata +2502 -2498
|
@@ -305,7 +305,7 @@ module Fastly
|
|
|
305
305
|
end
|
|
306
306
|
|
|
307
307
|
# List categories
|
|
308
|
-
# List all bot categories in a workspace's policy. Each category has an action that applies to every bot in the category
|
|
308
|
+
# List all bot categories in a workspace's policy. Each category has an action that applies to every bot in the category that is set to `inherit`. To list the bots themselves, use [list all bots in a workspace](#bot-management-list-bots) or [list bots in a category](#bot-management-list-category-bots).
|
|
309
309
|
# @option opts [String] :workspace_id The ID of the bot management workspace. (required)
|
|
310
310
|
# @option opts [Integer] :limit Limit how many results are returned. (default to 100)
|
|
311
311
|
# @option opts [String] :cursor Cursor for pagination. Use the `next_cursor` value from a previous response to request the next page of results.
|
|
@@ -316,7 +316,7 @@ module Fastly
|
|
|
316
316
|
end
|
|
317
317
|
|
|
318
318
|
# List categories
|
|
319
|
-
# List all bot categories in a workspace's policy. Each category has an action that applies to every bot in the category
|
|
319
|
+
# List all bot categories in a workspace's policy. Each category has an action that applies to every bot in the category that is set to `inherit`. To list the bots themselves, use [list all bots in a workspace](#bot-management-list-bots) or [list bots in a category](#bot-management-list-category-bots).
|
|
320
320
|
# @option opts [String] :workspace_id The ID of the bot management workspace. (required)
|
|
321
321
|
# @option opts [Integer] :limit Limit how many results are returned. (default to 100)
|
|
322
322
|
# @option opts [String] :cursor Cursor for pagination. Use the `next_cursor` value from a previous response to request the next page of results.
|
|
@@ -628,7 +628,7 @@ module Fastly
|
|
|
628
628
|
end
|
|
629
629
|
|
|
630
630
|
# Set a category action
|
|
631
|
-
# Set the action for a bot category.
|
|
631
|
+
# Set the default action for a bot category. Bots set to `inherit` follow this action. Bots with their own action keep it. To remove every bot's own action in the category, use [set the action for all bots in a category](#bot-management-update-category-bots).
|
|
632
632
|
# @option opts [String] :workspace_id The ID of the bot management workspace. (required)
|
|
633
633
|
# @option opts [String] :category_id The ID of the bot category. (required)
|
|
634
634
|
# @option opts [BotManagementCategory] :bot_management_category (required)
|
|
@@ -639,7 +639,7 @@ module Fastly
|
|
|
639
639
|
end
|
|
640
640
|
|
|
641
641
|
# Set a category action
|
|
642
|
-
# Set the action for a bot category.
|
|
642
|
+
# Set the default action for a bot category. Bots set to `inherit` follow this action. Bots with their own action keep it. To remove every bot's own action in the category, use [set the action for all bots in a category](#bot-management-update-category-bots).
|
|
643
643
|
# @option opts [String] :workspace_id The ID of the bot management workspace. (required)
|
|
644
644
|
# @option opts [String] :category_id The ID of the bot category. (required)
|
|
645
645
|
# @option opts [BotManagementCategory] :bot_management_category (required)
|
|
@@ -709,6 +709,88 @@ module Fastly
|
|
|
709
709
|
return data, status_code, headers
|
|
710
710
|
end
|
|
711
711
|
|
|
712
|
+
# Set the action for all bots in a category
|
|
713
|
+
# Set the action for every bot in a category. Setting `inherit` removes each bot's own action, so every bot follows the category's action. The category's own action is unchanged. The update applies to every bot in the category or to none, and repeating it gives the same result. The response lists every bot in the category, including bots that already inherited, and is not paginated.
|
|
714
|
+
# @option opts [String] :workspace_id The ID of the bot management workspace. (required)
|
|
715
|
+
# @option opts [String] :category_id The ID of the bot category. (required)
|
|
716
|
+
# @option opts [BotManagementCategoryBots] :bot_management_category_bots (required)
|
|
717
|
+
# @return [BotManagementBotsResponse]
|
|
718
|
+
def bot_management_update_category_bots(opts = {})
|
|
719
|
+
data, _status_code, _headers = bot_management_update_category_bots_with_http_info(opts)
|
|
720
|
+
data
|
|
721
|
+
end
|
|
722
|
+
|
|
723
|
+
# Set the action for all bots in a category
|
|
724
|
+
# Set the action for every bot in a category. Setting `inherit` removes each bot's own action, so every bot follows the category's action. The category's own action is unchanged. The update applies to every bot in the category or to none, and repeating it gives the same result. The response lists every bot in the category, including bots that already inherited, and is not paginated.
|
|
725
|
+
# @option opts [String] :workspace_id The ID of the bot management workspace. (required)
|
|
726
|
+
# @option opts [String] :category_id The ID of the bot category. (required)
|
|
727
|
+
# @option opts [BotManagementCategoryBots] :bot_management_category_bots (required)
|
|
728
|
+
# @return [Array<(BotManagementBotsResponse, Integer, Hash)>] BotManagementBotsResponse data, response status code and response headers
|
|
729
|
+
def bot_management_update_category_bots_with_http_info(opts = {})
|
|
730
|
+
if @api_client.config.debugging
|
|
731
|
+
@api_client.config.logger.debug 'Calling API: BotManagementApi.bot_management_update_category_bots ...'
|
|
732
|
+
end
|
|
733
|
+
# unbox the parameters from the hash
|
|
734
|
+
workspace_id = opts[:'workspace_id']
|
|
735
|
+
category_id = opts[:'category_id']
|
|
736
|
+
bot_management_category_bots = opts[:'bot_management_category_bots']
|
|
737
|
+
# verify the required parameter 'workspace_id' is set
|
|
738
|
+
if @api_client.config.client_side_validation && workspace_id.nil?
|
|
739
|
+
fail ArgumentError, "Missing the required parameter 'workspace_id' when calling BotManagementApi.bot_management_update_category_bots"
|
|
740
|
+
end
|
|
741
|
+
# verify the required parameter 'category_id' is set
|
|
742
|
+
if @api_client.config.client_side_validation && category_id.nil?
|
|
743
|
+
fail ArgumentError, "Missing the required parameter 'category_id' when calling BotManagementApi.bot_management_update_category_bots"
|
|
744
|
+
end
|
|
745
|
+
# verify the required parameter 'bot_management_category_bots' is set
|
|
746
|
+
if @api_client.config.client_side_validation && bot_management_category_bots.nil?
|
|
747
|
+
fail ArgumentError, "Missing the required parameter 'bot_management_category_bots' when calling BotManagementApi.bot_management_update_category_bots"
|
|
748
|
+
end
|
|
749
|
+
# resource path
|
|
750
|
+
local_var_path = '/bot-management/v1/workspaces/{workspace_id}/policy/categories/{category_id}/bots'.sub('{' + 'workspace_id' + '}', CGI.escape(workspace_id.to_s)).sub('{' + 'category_id' + '}', CGI.escape(category_id.to_s))
|
|
751
|
+
|
|
752
|
+
# query parameters
|
|
753
|
+
query_params = opts[:query_params] || {}
|
|
754
|
+
|
|
755
|
+
# header parameters
|
|
756
|
+
header_params = opts[:header_params] || {}
|
|
757
|
+
# HTTP header 'Accept' (if needed)
|
|
758
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/problem+json'])
|
|
759
|
+
# HTTP header 'Content-Type'
|
|
760
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
761
|
+
if !content_type.nil?
|
|
762
|
+
header_params['Content-Type'] = content_type
|
|
763
|
+
end
|
|
764
|
+
|
|
765
|
+
# form parameters
|
|
766
|
+
form_params = opts[:form_params] || {}
|
|
767
|
+
|
|
768
|
+
# http body (model)
|
|
769
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(bot_management_category_bots)
|
|
770
|
+
|
|
771
|
+
# return_type
|
|
772
|
+
return_type = opts[:debug_return_type] || 'BotManagementBotsResponse'
|
|
773
|
+
|
|
774
|
+
# auth_names
|
|
775
|
+
auth_names = opts[:debug_auth_names] || ['token']
|
|
776
|
+
|
|
777
|
+
new_options = opts.merge(
|
|
778
|
+
:operation => :"BotManagementApi.bot_management_update_category_bots",
|
|
779
|
+
:header_params => header_params,
|
|
780
|
+
:query_params => query_params,
|
|
781
|
+
:form_params => form_params,
|
|
782
|
+
:body => post_body,
|
|
783
|
+
:auth_names => auth_names,
|
|
784
|
+
:return_type => return_type
|
|
785
|
+
)
|
|
786
|
+
|
|
787
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
788
|
+
if @api_client.config.debugging
|
|
789
|
+
@api_client.config.logger.debug "API called: BotManagementApi#bot_management_update_category_bots\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
790
|
+
end
|
|
791
|
+
return data, status_code, headers
|
|
792
|
+
end
|
|
793
|
+
|
|
712
794
|
# Update a workspace
|
|
713
795
|
# Update the attributes of a bot management workspace.
|
|
714
796
|
# @option opts [String] :workspace_id The ID of the bot management workspace. (required)
|
|
@@ -76,7 +76,7 @@ module Fastly
|
|
|
76
76
|
if @api_client.config.client_side_validation && opts[:'group_by'] && !allowable_values.include?(opts[:'group_by'])
|
|
77
77
|
fail ArgumentError, "invalid value for \"group_by\", must be one of #{allowable_values}"
|
|
78
78
|
end
|
|
79
|
-
allowable_values = ["africa_std", "anzac", "asia", "asia_india", "asia_southkorea", "europe", "mexico", "southamerica_std", "usa"]
|
|
79
|
+
allowable_values = ["africa_std", "anzac", "asia", "asia_india", "asia_southkorea", "saudi_arabia", "europe", "mexico", "southamerica_std", "usa"]
|
|
80
80
|
if @api_client.config.client_side_validation && opts[:'region'] && !allowable_values.include?(opts[:'region'])
|
|
81
81
|
fail ArgumentError, "invalid value for \"region\", must be one of #{allowable_values}"
|
|
82
82
|
end
|
|
@@ -68,7 +68,7 @@ module Fastly
|
|
|
68
68
|
if @api_client.config.client_side_validation && opts[:'group_by'] && !allowable_values.include?(opts[:'group_by'])
|
|
69
69
|
fail ArgumentError, "invalid value for \"group_by\", must be one of #{allowable_values}"
|
|
70
70
|
end
|
|
71
|
-
allowable_values = ["africa_std", "anzac", "asia", "asia_india", "asia_southkorea", "europe", "mexico", "southamerica_std", "usa"]
|
|
71
|
+
allowable_values = ["africa_std", "anzac", "asia", "asia_india", "asia_southkorea", "saudi_arabia", "europe", "mexico", "southamerica_std", "usa"]
|
|
72
72
|
if @api_client.config.client_side_validation && opts[:'region'] && !allowable_values.include?(opts[:'region'])
|
|
73
73
|
fail ArgumentError, "invalid value for \"region\", must be one of #{allowable_values}"
|
|
74
74
|
end
|
|
@@ -22,7 +22,7 @@ module Fastly
|
|
|
22
22
|
# @option opts [String] :from Timestamp that defines the start of the window for which to fetch statistics, including the timestamp itself. Accepts Unix timestamps, or any form of input parsable by the [Chronic Ruby library](https://github.com/mojombo/chronic), such as 'yesterday', or 'two weeks ago'. Default varies based on the value of `by`.
|
|
23
23
|
# @option opts [String] :to Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as `from`. (default to 'now')
|
|
24
24
|
# @option opts [String] :by Duration of sample windows. One of: * `hour` - Group data by hour. * `minute` - Group data by minute. * `day` - Group data by day. (default to 'day')
|
|
25
|
-
# @option opts [String] :region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `mexico` - Mexico. * `southamerica_std` - South America.
|
|
25
|
+
# @option opts [String] :region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `mexico` - Mexico. * `southamerica_std` - South America. * `saudi_arabia` - Saudi Arabia.
|
|
26
26
|
# @option opts [String] :datacenter Limit query to one or more Fastly POPs. For multiple POPs use a comma-seperated list of POPs. These must be all uppercase and be valid codes. A full list of POPs can be obtained from the [POPs endpoint](https://www.fastly.com/documentation/reference/api/utils/pops/).
|
|
27
27
|
# @option opts [String] :services Limit the query to only the specified, comma-separated list of services.
|
|
28
28
|
# @return [HistoricalStatsByServiceResponse]
|
|
@@ -36,7 +36,7 @@ module Fastly
|
|
|
36
36
|
# @option opts [String] :from Timestamp that defines the start of the window for which to fetch statistics, including the timestamp itself. Accepts Unix timestamps, or any form of input parsable by the [Chronic Ruby library](https://github.com/mojombo/chronic), such as 'yesterday', or 'two weeks ago'. Default varies based on the value of `by`.
|
|
37
37
|
# @option opts [String] :to Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as `from`. (default to 'now')
|
|
38
38
|
# @option opts [String] :by Duration of sample windows. One of: * `hour` - Group data by hour. * `minute` - Group data by minute. * `day` - Group data by day. (default to 'day')
|
|
39
|
-
# @option opts [String] :region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `mexico` - Mexico. * `southamerica_std` - South America.
|
|
39
|
+
# @option opts [String] :region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `mexico` - Mexico. * `southamerica_std` - South America. * `saudi_arabia` - Saudi Arabia.
|
|
40
40
|
# @option opts [String] :datacenter Limit query to one or more Fastly POPs. For multiple POPs use a comma-seperated list of POPs. These must be all uppercase and be valid codes. A full list of POPs can be obtained from the [POPs endpoint](https://www.fastly.com/documentation/reference/api/utils/pops/).
|
|
41
41
|
# @option opts [String] :services Limit the query to only the specified, comma-separated list of services.
|
|
42
42
|
# @return [Array<(HistoricalStatsByServiceResponse, Integer, Hash)>] HistoricalStatsByServiceResponse data, response status code and response headers
|
|
@@ -49,7 +49,7 @@ module Fastly
|
|
|
49
49
|
if @api_client.config.client_side_validation && opts[:'by'] && !allowable_values.include?(opts[:'by'])
|
|
50
50
|
fail ArgumentError, "invalid value for \"by\", must be one of #{allowable_values}"
|
|
51
51
|
end
|
|
52
|
-
allowable_values = ["usa", "europe", "asia", "asia_india", "asia_southkorea", "africa_std", "mexico", "southamerica_std"]
|
|
52
|
+
allowable_values = ["usa", "europe", "anzac", "asia", "asia_india", "asia_southkorea", "africa_std", "mexico", "saudi_arabia", "southamerica_std"]
|
|
53
53
|
if @api_client.config.client_side_validation && opts[:'region'] && !allowable_values.include?(opts[:'region'])
|
|
54
54
|
fail ArgumentError, "invalid value for \"region\", must be one of #{allowable_values}"
|
|
55
55
|
end
|
|
@@ -104,7 +104,7 @@ module Fastly
|
|
|
104
104
|
# @option opts [String] :from Timestamp that defines the start of the window for which to fetch statistics, including the timestamp itself. Accepts Unix timestamps, or any form of input parsable by the [Chronic Ruby library](https://github.com/mojombo/chronic), such as 'yesterday', or 'two weeks ago'. Default varies based on the value of `by`.
|
|
105
105
|
# @option opts [String] :to Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as `from`. (default to 'now')
|
|
106
106
|
# @option opts [String] :by Duration of sample windows. One of: * `hour` - Group data by hour. * `minute` - Group data by minute. * `day` - Group data by day. (default to 'day')
|
|
107
|
-
# @option opts [String] :region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `mexico` - Mexico. * `southamerica_std` - South America.
|
|
107
|
+
# @option opts [String] :region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `mexico` - Mexico. * `southamerica_std` - South America. * `saudi_arabia` - Saudi Arabia.
|
|
108
108
|
# @return [HistoricalStatsAggregatedResponse]
|
|
109
109
|
def get_hist_stats_aggregated(opts = {})
|
|
110
110
|
data, _status_code, _headers = get_hist_stats_aggregated_with_http_info(opts)
|
|
@@ -116,7 +116,7 @@ module Fastly
|
|
|
116
116
|
# @option opts [String] :from Timestamp that defines the start of the window for which to fetch statistics, including the timestamp itself. Accepts Unix timestamps, or any form of input parsable by the [Chronic Ruby library](https://github.com/mojombo/chronic), such as 'yesterday', or 'two weeks ago'. Default varies based on the value of `by`.
|
|
117
117
|
# @option opts [String] :to Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as `from`. (default to 'now')
|
|
118
118
|
# @option opts [String] :by Duration of sample windows. One of: * `hour` - Group data by hour. * `minute` - Group data by minute. * `day` - Group data by day. (default to 'day')
|
|
119
|
-
# @option opts [String] :region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `mexico` - Mexico. * `southamerica_std` - South America.
|
|
119
|
+
# @option opts [String] :region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `mexico` - Mexico. * `southamerica_std` - South America. * `saudi_arabia` - Saudi Arabia.
|
|
120
120
|
# @return [Array<(HistoricalStatsAggregatedResponse, Integer, Hash)>] HistoricalStatsAggregatedResponse data, response status code and response headers
|
|
121
121
|
def get_hist_stats_aggregated_with_http_info(opts = {})
|
|
122
122
|
if @api_client.config.debugging
|
|
@@ -127,7 +127,7 @@ module Fastly
|
|
|
127
127
|
if @api_client.config.client_side_validation && opts[:'by'] && !allowable_values.include?(opts[:'by'])
|
|
128
128
|
fail ArgumentError, "invalid value for \"by\", must be one of #{allowable_values}"
|
|
129
129
|
end
|
|
130
|
-
allowable_values = ["usa", "europe", "asia", "asia_india", "asia_southkorea", "africa_std", "mexico", "southamerica_std"]
|
|
130
|
+
allowable_values = ["usa", "europe", "anzac", "asia", "asia_india", "asia_southkorea", "africa_std", "mexico", "saudi_arabia", "southamerica_std"]
|
|
131
131
|
if @api_client.config.client_side_validation && opts[:'region'] && !allowable_values.include?(opts[:'region'])
|
|
132
132
|
fail ArgumentError, "invalid value for \"region\", must be one of #{allowable_values}"
|
|
133
133
|
end
|
|
@@ -181,7 +181,7 @@ module Fastly
|
|
|
181
181
|
# @option opts [String] :from Timestamp that defines the start of the window for which to fetch statistics, including the timestamp itself. Accepts Unix timestamps, or any form of input parsable by the [Chronic Ruby library](https://github.com/mojombo/chronic), such as 'yesterday', or 'two weeks ago'. Default varies based on the value of `by`.
|
|
182
182
|
# @option opts [String] :to Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as `from`. (default to 'now')
|
|
183
183
|
# @option opts [String] :by Duration of sample windows. One of: * `hour` - Group data by hour. * `minute` - Group data by minute. * `day` - Group data by day. (default to 'day')
|
|
184
|
-
# @option opts [String] :region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `mexico` - Mexico. * `southamerica_std` - South America.
|
|
184
|
+
# @option opts [String] :region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `mexico` - Mexico. * `southamerica_std` - South America. * `saudi_arabia` - Saudi Arabia.
|
|
185
185
|
# @option opts [String] :datacenter Limit query to one or more Fastly POPs. For multiple POPs use a comma-seperated list of POPs. These must be all uppercase and be valid codes. A full list of POPs can be obtained from the [POPs endpoint](https://www.fastly.com/documentation/reference/api/utils/pops/).
|
|
186
186
|
# @return [HistoricalStatsByServiceResponse]
|
|
187
187
|
def get_hist_stats_field(opts = {})
|
|
@@ -195,7 +195,7 @@ module Fastly
|
|
|
195
195
|
# @option opts [String] :from Timestamp that defines the start of the window for which to fetch statistics, including the timestamp itself. Accepts Unix timestamps, or any form of input parsable by the [Chronic Ruby library](https://github.com/mojombo/chronic), such as 'yesterday', or 'two weeks ago'. Default varies based on the value of `by`.
|
|
196
196
|
# @option opts [String] :to Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as `from`. (default to 'now')
|
|
197
197
|
# @option opts [String] :by Duration of sample windows. One of: * `hour` - Group data by hour. * `minute` - Group data by minute. * `day` - Group data by day. (default to 'day')
|
|
198
|
-
# @option opts [String] :region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `mexico` - Mexico. * `southamerica_std` - South America.
|
|
198
|
+
# @option opts [String] :region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `mexico` - Mexico. * `southamerica_std` - South America. * `saudi_arabia` - Saudi Arabia.
|
|
199
199
|
# @option opts [String] :datacenter Limit query to one or more Fastly POPs. For multiple POPs use a comma-seperated list of POPs. These must be all uppercase and be valid codes. A full list of POPs can be obtained from the [POPs endpoint](https://www.fastly.com/documentation/reference/api/utils/pops/).
|
|
200
200
|
# @return [Array<(HistoricalStatsByServiceResponse, Integer, Hash)>] HistoricalStatsByServiceResponse data, response status code and response headers
|
|
201
201
|
def get_hist_stats_field_with_http_info(opts = {})
|
|
@@ -212,7 +212,7 @@ module Fastly
|
|
|
212
212
|
if @api_client.config.client_side_validation && opts[:'by'] && !allowable_values.include?(opts[:'by'])
|
|
213
213
|
fail ArgumentError, "invalid value for \"by\", must be one of #{allowable_values}"
|
|
214
214
|
end
|
|
215
|
-
allowable_values = ["usa", "europe", "asia", "asia_india", "asia_southkorea", "africa_std", "mexico", "southamerica_std"]
|
|
215
|
+
allowable_values = ["usa", "europe", "anzac", "asia", "asia_india", "asia_southkorea", "africa_std", "mexico", "saudi_arabia", "southamerica_std"]
|
|
216
216
|
if @api_client.config.client_side_validation && opts[:'region'] && !allowable_values.include?(opts[:'region'])
|
|
217
217
|
fail ArgumentError, "invalid value for \"region\", must be one of #{allowable_values}"
|
|
218
218
|
end
|
|
@@ -267,7 +267,7 @@ module Fastly
|
|
|
267
267
|
# @option opts [String] :from Timestamp that defines the start of the window for which to fetch statistics, including the timestamp itself. Accepts Unix timestamps, or any form of input parsable by the [Chronic Ruby library](https://github.com/mojombo/chronic), such as 'yesterday', or 'two weeks ago'. Default varies based on the value of `by`.
|
|
268
268
|
# @option opts [String] :to Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as `from`. (default to 'now')
|
|
269
269
|
# @option opts [String] :by Duration of sample windows. One of: * `hour` - Group data by hour. * `minute` - Group data by minute. * `day` - Group data by day. (default to 'day')
|
|
270
|
-
# @option opts [String] :region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `mexico` - Mexico. * `southamerica_std` - South America.
|
|
270
|
+
# @option opts [String] :region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `mexico` - Mexico. * `southamerica_std` - South America. * `saudi_arabia` - Saudi Arabia.
|
|
271
271
|
# @option opts [String] :datacenter Limit query to one or more Fastly POPs. For multiple POPs use a comma-seperated list of POPs. These must be all uppercase and be valid codes. A full list of POPs can be obtained from the [POPs endpoint](https://www.fastly.com/documentation/reference/api/utils/pops/).
|
|
272
272
|
# @return [HistoricalStatsAggregatedResponse]
|
|
273
273
|
def get_hist_stats_service(opts = {})
|
|
@@ -281,7 +281,7 @@ module Fastly
|
|
|
281
281
|
# @option opts [String] :from Timestamp that defines the start of the window for which to fetch statistics, including the timestamp itself. Accepts Unix timestamps, or any form of input parsable by the [Chronic Ruby library](https://github.com/mojombo/chronic), such as 'yesterday', or 'two weeks ago'. Default varies based on the value of `by`.
|
|
282
282
|
# @option opts [String] :to Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as `from`. (default to 'now')
|
|
283
283
|
# @option opts [String] :by Duration of sample windows. One of: * `hour` - Group data by hour. * `minute` - Group data by minute. * `day` - Group data by day. (default to 'day')
|
|
284
|
-
# @option opts [String] :region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `mexico` - Mexico. * `southamerica_std` - South America.
|
|
284
|
+
# @option opts [String] :region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `mexico` - Mexico. * `southamerica_std` - South America. * `saudi_arabia` - Saudi Arabia.
|
|
285
285
|
# @option opts [String] :datacenter Limit query to one or more Fastly POPs. For multiple POPs use a comma-seperated list of POPs. These must be all uppercase and be valid codes. A full list of POPs can be obtained from the [POPs endpoint](https://www.fastly.com/documentation/reference/api/utils/pops/).
|
|
286
286
|
# @return [Array<(HistoricalStatsAggregatedResponse, Integer, Hash)>] HistoricalStatsAggregatedResponse data, response status code and response headers
|
|
287
287
|
def get_hist_stats_service_with_http_info(opts = {})
|
|
@@ -298,7 +298,7 @@ module Fastly
|
|
|
298
298
|
if @api_client.config.client_side_validation && opts[:'by'] && !allowable_values.include?(opts[:'by'])
|
|
299
299
|
fail ArgumentError, "invalid value for \"by\", must be one of #{allowable_values}"
|
|
300
300
|
end
|
|
301
|
-
allowable_values = ["usa", "europe", "asia", "asia_india", "asia_southkorea", "africa_std", "mexico", "southamerica_std"]
|
|
301
|
+
allowable_values = ["usa", "europe", "anzac", "asia", "asia_india", "asia_southkorea", "africa_std", "mexico", "saudi_arabia", "southamerica_std"]
|
|
302
302
|
if @api_client.config.client_side_validation && opts[:'region'] && !allowable_values.include?(opts[:'region'])
|
|
303
303
|
fail ArgumentError, "invalid value for \"region\", must be one of #{allowable_values}"
|
|
304
304
|
end
|
|
@@ -354,7 +354,7 @@ module Fastly
|
|
|
354
354
|
# @option opts [String] :from Timestamp that defines the start of the window for which to fetch statistics, including the timestamp itself. Accepts Unix timestamps, or any form of input parsable by the [Chronic Ruby library](https://github.com/mojombo/chronic), such as 'yesterday', or 'two weeks ago'. Default varies based on the value of `by`.
|
|
355
355
|
# @option opts [String] :to Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as `from`. (default to 'now')
|
|
356
356
|
# @option opts [String] :by Duration of sample windows. One of: * `hour` - Group data by hour. * `minute` - Group data by minute. * `day` - Group data by day. (default to 'day')
|
|
357
|
-
# @option opts [String] :region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `mexico` - Mexico. * `southamerica_std` - South America.
|
|
357
|
+
# @option opts [String] :region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `mexico` - Mexico. * `southamerica_std` - South America. * `saudi_arabia` - Saudi Arabia.
|
|
358
358
|
# @option opts [String] :datacenter Limit query to one or more Fastly POPs. For multiple POPs use a comma-seperated list of POPs. These must be all uppercase and be valid codes. A full list of POPs can be obtained from the [POPs endpoint](https://www.fastly.com/documentation/reference/api/utils/pops/).
|
|
359
359
|
# @return [HistoricalStatsAggregatedResponse]
|
|
360
360
|
def get_hist_stats_service_field(opts = {})
|
|
@@ -369,7 +369,7 @@ module Fastly
|
|
|
369
369
|
# @option opts [String] :from Timestamp that defines the start of the window for which to fetch statistics, including the timestamp itself. Accepts Unix timestamps, or any form of input parsable by the [Chronic Ruby library](https://github.com/mojombo/chronic), such as 'yesterday', or 'two weeks ago'. Default varies based on the value of `by`.
|
|
370
370
|
# @option opts [String] :to Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as `from`. (default to 'now')
|
|
371
371
|
# @option opts [String] :by Duration of sample windows. One of: * `hour` - Group data by hour. * `minute` - Group data by minute. * `day` - Group data by day. (default to 'day')
|
|
372
|
-
# @option opts [String] :region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `mexico` - Mexico. * `southamerica_std` - South America.
|
|
372
|
+
# @option opts [String] :region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `mexico` - Mexico. * `southamerica_std` - South America. * `saudi_arabia` - Saudi Arabia.
|
|
373
373
|
# @option opts [String] :datacenter Limit query to one or more Fastly POPs. For multiple POPs use a comma-seperated list of POPs. These must be all uppercase and be valid codes. A full list of POPs can be obtained from the [POPs endpoint](https://www.fastly.com/documentation/reference/api/utils/pops/).
|
|
374
374
|
# @return [Array<(HistoricalStatsAggregatedResponse, Integer, Hash)>] HistoricalStatsAggregatedResponse data, response status code and response headers
|
|
375
375
|
def get_hist_stats_service_field_with_http_info(opts = {})
|
|
@@ -391,7 +391,7 @@ module Fastly
|
|
|
391
391
|
if @api_client.config.client_side_validation && opts[:'by'] && !allowable_values.include?(opts[:'by'])
|
|
392
392
|
fail ArgumentError, "invalid value for \"by\", must be one of #{allowable_values}"
|
|
393
393
|
end
|
|
394
|
-
allowable_values = ["usa", "europe", "asia", "asia_india", "asia_southkorea", "africa_std", "mexico", "southamerica_std"]
|
|
394
|
+
allowable_values = ["usa", "europe", "anzac", "asia", "asia_india", "asia_southkorea", "africa_std", "mexico", "saudi_arabia", "southamerica_std"]
|
|
395
395
|
if @api_client.config.client_side_validation && opts[:'region'] && !allowable_values.include?(opts[:'region'])
|
|
396
396
|
fail ArgumentError, "invalid value for \"region\", must be one of #{allowable_values}"
|
|
397
397
|
end
|
|
@@ -71,7 +71,7 @@ module Fastly
|
|
|
71
71
|
if @api_client.config.client_side_validation && opts[:'group_by'] && !allowable_values.include?(opts[:'group_by'])
|
|
72
72
|
fail ArgumentError, "invalid value for \"group_by\", must be one of #{allowable_values}"
|
|
73
73
|
end
|
|
74
|
-
allowable_values = ["africa_std", "anzac", "asia", "asia_india", "asia_southkorea", "europe", "mexico", "southamerica_std", "usa"]
|
|
74
|
+
allowable_values = ["africa_std", "anzac", "asia", "asia_india", "asia_southkorea", "saudi_arabia", "europe", "mexico", "southamerica_std", "usa"]
|
|
75
75
|
if @api_client.config.client_side_validation && opts[:'region'] && !allowable_values.include?(opts[:'region'])
|
|
76
76
|
fail ArgumentError, "invalid value for \"region\", must be one of #{allowable_values}"
|
|
77
77
|
end
|
|
@@ -185,7 +185,7 @@ module Fastly
|
|
|
185
185
|
if @api_client.config.client_side_validation && opts[:'group_by'] && !allowable_values.include?(opts[:'group_by'])
|
|
186
186
|
fail ArgumentError, "invalid value for \"group_by\", must be one of #{allowable_values}"
|
|
187
187
|
end
|
|
188
|
-
allowable_values = ["africa_std", "anzac", "asia", "asia_india", "asia_southkorea", "europe", "mexico", "southamerica_std", "usa"]
|
|
188
|
+
allowable_values = ["africa_std", "anzac", "asia", "asia_india", "asia_southkorea", "saudi_arabia", "europe", "mexico", "southamerica_std", "usa"]
|
|
189
189
|
if @api_client.config.client_side_validation && opts[:'region'] && !allowable_values.include?(opts[:'region'])
|
|
190
190
|
fail ArgumentError, "invalid value for \"region\", must be one of #{allowable_values}"
|
|
191
191
|
end
|
|
@@ -68,7 +68,7 @@ module Fastly
|
|
|
68
68
|
if @api_client.config.client_side_validation && opts[:'group_by'] && !allowable_values.include?(opts[:'group_by'])
|
|
69
69
|
fail ArgumentError, "invalid value for \"group_by\", must be one of #{allowable_values}"
|
|
70
70
|
end
|
|
71
|
-
allowable_values = ["africa_std", "anzac", "asia", "asia_india", "asia_southkorea", "europe", "mexico", "southamerica_std", "usa"]
|
|
71
|
+
allowable_values = ["africa_std", "anzac", "asia", "asia_india", "asia_southkorea", "saudi_arabia", "europe", "mexico", "southamerica_std", "usa"]
|
|
72
72
|
if @api_client.config.client_side_validation && opts[:'region'] && !allowable_values.include?(opts[:'region'])
|
|
73
73
|
fail ArgumentError, "invalid value for \"region\", must be one of #{allowable_values}"
|
|
74
74
|
end
|
data/lib/fastly/configuration.rb
CHANGED
|
@@ -788,6 +788,12 @@ module Fastly
|
|
|
788
788
|
description: "No description provided",
|
|
789
789
|
}
|
|
790
790
|
],
|
|
791
|
+
"BotManagementApi.bot_management_update_category_bots": [
|
|
792
|
+
{
|
|
793
|
+
url: "https://api.fastly.com",
|
|
794
|
+
description: "No description provided",
|
|
795
|
+
}
|
|
796
|
+
],
|
|
791
797
|
"BotManagementApi.bot_management_update_workspace": [
|
|
792
798
|
{
|
|
793
799
|
url: "https://api.fastly.com",
|
|
@@ -43,6 +43,21 @@ module Fastly
|
|
|
43
43
|
# The hostname of the backend. May be used as an alternative to `address` to set the backend location.
|
|
44
44
|
attr_accessor :hostname
|
|
45
45
|
|
|
46
|
+
# If the backend is using IAM authentication and the IAM system policy requires a matching external identifier, it should match this value. Your Fastly customer ID will be used if this attribute is not set.
|
|
47
|
+
attr_accessor :iam_external_id
|
|
48
|
+
|
|
49
|
+
# If the backend is using IAM authentication, the IAM signature will use this as the product element.
|
|
50
|
+
attr_accessor :iam_product
|
|
51
|
+
|
|
52
|
+
# If the backend is using IAM authentication, this region will be used for signing and access.
|
|
53
|
+
attr_accessor :iam_region
|
|
54
|
+
|
|
55
|
+
# If the backend is using IAM authentication, the fully qualified role string supplied by the storage vendor.
|
|
56
|
+
attr_accessor :iam_role
|
|
57
|
+
|
|
58
|
+
# A label that identifies the storage vendor. Providing a value in this field enables IAM usage, and all other IAM fields depend on its value.
|
|
59
|
+
attr_accessor :iam_vendor
|
|
60
|
+
|
|
46
61
|
# IPv4 address of the backend. May be used as an alternative to `address` to set the backend location.
|
|
47
62
|
attr_accessor :ipv4
|
|
48
63
|
|
|
@@ -130,6 +145,28 @@ module Fastly
|
|
|
130
145
|
# Weight used to load balance this backend against others. May be any positive integer. If `auto_loadbalance` is true, the chance of this backend being selected is equal to its own weight over the sum of all weights for backends that have `auto_loadbalance` set to true.
|
|
131
146
|
attr_accessor :weight
|
|
132
147
|
|
|
148
|
+
class EnumAttributeValidator
|
|
149
|
+
attr_reader :datatype
|
|
150
|
+
attr_reader :allowable_values
|
|
151
|
+
|
|
152
|
+
def initialize(datatype, allowable_values)
|
|
153
|
+
@allowable_values = allowable_values.map do |value|
|
|
154
|
+
case datatype.to_s
|
|
155
|
+
when /Integer/i
|
|
156
|
+
value.to_i
|
|
157
|
+
when /Float/i
|
|
158
|
+
value.to_f
|
|
159
|
+
else
|
|
160
|
+
value
|
|
161
|
+
end
|
|
162
|
+
end
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
def valid?(value)
|
|
166
|
+
!value || allowable_values.include?(value)
|
|
167
|
+
end
|
|
168
|
+
end
|
|
169
|
+
|
|
133
170
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
134
171
|
def self.attribute_map
|
|
135
172
|
{
|
|
@@ -143,6 +180,11 @@ module Fastly
|
|
|
143
180
|
:'fetch_timeout' => :'fetch_timeout',
|
|
144
181
|
:'healthcheck' => :'healthcheck',
|
|
145
182
|
:'hostname' => :'hostname',
|
|
183
|
+
:'iam_external_id' => :'iam_external_id',
|
|
184
|
+
:'iam_product' => :'iam_product',
|
|
185
|
+
:'iam_region' => :'iam_region',
|
|
186
|
+
:'iam_role' => :'iam_role',
|
|
187
|
+
:'iam_vendor' => :'iam_vendor',
|
|
146
188
|
:'ipv4' => :'ipv4',
|
|
147
189
|
:'ipv6' => :'ipv6',
|
|
148
190
|
:'keepalive_time' => :'keepalive_time',
|
|
@@ -193,6 +235,11 @@ module Fastly
|
|
|
193
235
|
:'fetch_timeout' => :'Integer',
|
|
194
236
|
:'healthcheck' => :'String',
|
|
195
237
|
:'hostname' => :'String',
|
|
238
|
+
:'iam_external_id' => :'String',
|
|
239
|
+
:'iam_product' => :'String',
|
|
240
|
+
:'iam_region' => :'String',
|
|
241
|
+
:'iam_role' => :'String',
|
|
242
|
+
:'iam_vendor' => :'String',
|
|
196
243
|
:'ipv4' => :'String',
|
|
197
244
|
:'ipv6' => :'String',
|
|
198
245
|
:'keepalive_time' => :'Integer',
|
|
@@ -232,6 +279,11 @@ module Fastly
|
|
|
232
279
|
:'comment',
|
|
233
280
|
:'healthcheck',
|
|
234
281
|
:'hostname',
|
|
282
|
+
:'iam_external_id',
|
|
283
|
+
:'iam_product',
|
|
284
|
+
:'iam_region',
|
|
285
|
+
:'iam_role',
|
|
286
|
+
:'iam_vendor',
|
|
235
287
|
:'ipv4',
|
|
236
288
|
:'ipv6',
|
|
237
289
|
:'keepalive_time',
|
|
@@ -312,6 +364,26 @@ module Fastly
|
|
|
312
364
|
self.hostname = attributes[:'hostname']
|
|
313
365
|
end
|
|
314
366
|
|
|
367
|
+
if attributes.key?(:'iam_external_id')
|
|
368
|
+
self.iam_external_id = attributes[:'iam_external_id']
|
|
369
|
+
end
|
|
370
|
+
|
|
371
|
+
if attributes.key?(:'iam_product')
|
|
372
|
+
self.iam_product = attributes[:'iam_product']
|
|
373
|
+
end
|
|
374
|
+
|
|
375
|
+
if attributes.key?(:'iam_region')
|
|
376
|
+
self.iam_region = attributes[:'iam_region']
|
|
377
|
+
end
|
|
378
|
+
|
|
379
|
+
if attributes.key?(:'iam_role')
|
|
380
|
+
self.iam_role = attributes[:'iam_role']
|
|
381
|
+
end
|
|
382
|
+
|
|
383
|
+
if attributes.key?(:'iam_vendor')
|
|
384
|
+
self.iam_vendor = attributes[:'iam_vendor']
|
|
385
|
+
end
|
|
386
|
+
|
|
315
387
|
if attributes.key?(:'ipv4')
|
|
316
388
|
self.ipv4 = attributes[:'ipv4']
|
|
317
389
|
end
|
|
@@ -452,10 +524,22 @@ module Fastly
|
|
|
452
524
|
# Check to see if the all the properties in the model are valid
|
|
453
525
|
# @return true if the model is valid
|
|
454
526
|
def valid?
|
|
527
|
+
iam_vendor_validator = EnumAttributeValidator.new('String', ["aws"])
|
|
528
|
+
return false unless iam_vendor_validator.valid?(@iam_vendor)
|
|
455
529
|
return false if !@share_key.nil? && @share_key !~ Regexp.new(/^[A-Za-z0-9]+$/)
|
|
456
530
|
true
|
|
457
531
|
end
|
|
458
532
|
|
|
533
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
534
|
+
# @param [Object] iam_vendor Object to be assigned
|
|
535
|
+
def iam_vendor=(iam_vendor)
|
|
536
|
+
validator = EnumAttributeValidator.new('String', ["aws"])
|
|
537
|
+
unless validator.valid?(iam_vendor)
|
|
538
|
+
fail ArgumentError, "invalid value for \"iam_vendor\", must be one of #{validator.allowable_values}."
|
|
539
|
+
end
|
|
540
|
+
@iam_vendor = iam_vendor
|
|
541
|
+
end
|
|
542
|
+
|
|
459
543
|
# Custom attribute writer method with validation
|
|
460
544
|
# @param [Object] share_key Value to be assigned
|
|
461
545
|
def share_key=(share_key)
|
|
@@ -482,6 +566,11 @@ module Fastly
|
|
|
482
566
|
fetch_timeout == o.fetch_timeout &&
|
|
483
567
|
healthcheck == o.healthcheck &&
|
|
484
568
|
hostname == o.hostname &&
|
|
569
|
+
iam_external_id == o.iam_external_id &&
|
|
570
|
+
iam_product == o.iam_product &&
|
|
571
|
+
iam_region == o.iam_region &&
|
|
572
|
+
iam_role == o.iam_role &&
|
|
573
|
+
iam_vendor == o.iam_vendor &&
|
|
485
574
|
ipv4 == o.ipv4 &&
|
|
486
575
|
ipv6 == o.ipv6 &&
|
|
487
576
|
keepalive_time == o.keepalive_time &&
|
|
@@ -522,7 +611,7 @@ module Fastly
|
|
|
522
611
|
# Calculates hash code according to all attributes.
|
|
523
612
|
# @return [Integer] Hash code
|
|
524
613
|
def hash
|
|
525
|
-
[address, auto_loadbalance, between_bytes_timeout, client_cert, comment, connect_timeout, first_byte_timeout, fetch_timeout, healthcheck, hostname, ipv4, ipv6, keepalive_time, max_conn, max_lifetime, max_tls_version, min_tls_version, max_use, name, override_host, port, prefer_ipv6, request_condition, share_key, shield, ssl_ca_cert, ssl_cert_hostname, ssl_check_cert, ssl_ciphers, ssl_client_cert, ssl_client_key, ssl_hostname, ssl_sni_hostname, tcp_keepalive_enable, tcp_keepalive_interval, tcp_keepalive_probes, tcp_keepalive_time, use_ssl, weight].hash
|
|
614
|
+
[address, auto_loadbalance, between_bytes_timeout, client_cert, comment, connect_timeout, first_byte_timeout, fetch_timeout, healthcheck, hostname, iam_external_id, iam_product, iam_region, iam_role, iam_vendor, ipv4, ipv6, keepalive_time, max_conn, max_lifetime, max_tls_version, min_tls_version, max_use, name, override_host, port, prefer_ipv6, request_condition, share_key, shield, ssl_ca_cert, ssl_cert_hostname, ssl_check_cert, ssl_ciphers, ssl_client_cert, ssl_client_key, ssl_hostname, ssl_sni_hostname, tcp_keepalive_enable, tcp_keepalive_interval, tcp_keepalive_probes, tcp_keepalive_time, use_ssl, weight].hash
|
|
526
615
|
end
|
|
527
616
|
|
|
528
617
|
# Builds the object from hash
|