fastly 14.0.0 → 15.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +23 -0
- data/Gemfile.lock +1 -1
- data/README.md +13 -11
- data/docs/ApiDiscoveryResponseBodyGetAllServices.md +13 -0
- data/docs/ApiDiscoveryResponseCustomer.md +10 -0
- data/docs/ApiDiscoveryResponseCustomerCustomer.md +11 -0
- data/docs/ApiDiscoveryResponseEnable.md +12 -0
- data/docs/ApiDiscoveryResponseEnabledServices.md +10 -0
- data/docs/ApiDiscoveryResponseLinks.md +10 -0
- data/docs/ApiDiscoveryResponseLinksGetAllServices.md +10 -0
- data/docs/ApiDiscoveryResponseLinksGetAllServicesLinks.md +10 -0
- data/docs/ApiDiscoveryResponseLinksLinks.md +10 -0
- data/docs/ApiDiscoveryResponseProduct.md +10 -0
- data/docs/ApiDiscoveryResponseProductProduct.md +11 -0
- data/docs/ApiDiscoveryResponseService.md +10 -0
- data/docs/{BotManagementResponseServiceService.md → ApiDiscoveryResponseServiceService.md} +1 -1
- data/docs/BotManagementResponseBodyEnable.md +1 -1
- data/docs/BotManagementResponseService.md +1 -1
- data/docs/BrotliCompressionResponseBodyEnable.md +1 -1
- data/docs/BrotliCompressionResponseService.md +1 -1
- data/docs/DdosProtectionApi.md +2 -0
- data/docs/DdosProtectionResponseConfigure.md +1 -1
- data/docs/DdosProtectionResponseEnable.md +1 -1
- data/docs/DdosProtectionResponseService.md +1 -1
- data/docs/DdosProtectionRuleWithStats.md +23 -0
- data/docs/DdosProtectionRuleWithStatsAllOf.md +10 -0
- data/docs/DdosProtectionTrafficStats.md +1 -0
- data/docs/DdosProtectionTrafficStatsAllOf.md +1 -0
- data/docs/DmDomainsApi.md +220 -0
- data/docs/DomainInspectorResponseBodyEnable.md +1 -1
- data/docs/DomainInspectorResponseService.md +1 -1
- data/docs/DomainOwnershipsApi.md +2 -2
- data/docs/FanoutResponseBodyEnable.md +1 -1
- data/docs/FanoutResponseService.md +1 -1
- data/docs/Healthcheck.md +1 -1
- data/docs/HealthcheckApi.md +4 -4
- data/docs/HealthcheckResponse.md +1 -1
- data/docs/IamRolesApi.md +23 -253
- data/docs/IamV1RoleListResponse.md +12 -0
- data/docs/IamV1RoleResponse.md +13 -0
- data/docs/ImageOptimizerResponseBodyEnable.md +1 -1
- data/docs/ImageOptimizerResponseService.md +1 -1
- data/docs/InlineResponse20010.md +10 -0
- data/docs/InlineResponse2003.md +2 -2
- data/docs/InlineResponse2004.md +2 -1
- data/docs/InlineResponse2005.md +1 -2
- data/docs/InlineResponse2006.md +1 -1
- data/docs/InlineResponse2007.md +1 -1
- data/docs/InlineResponse2008.md +1 -1
- data/docs/InlineResponse2009.md +2 -1
- data/docs/InvitationDataAttributes.md +1 -0
- data/docs/KvStoreApi.md +2 -2
- data/docs/KvStoreItemApi.md +2 -2
- data/docs/LogExplorerInsightsResponseBodyEnable.md +1 -1
- data/docs/LogExplorerInsightsResponseService.md +1 -1
- data/docs/LoggingHttpsAdditional.md +1 -0
- data/docs/LoggingHttpsApi.md +4 -0
- data/docs/LoggingHttpsResponse.md +1 -0
- data/docs/NgwafResponseConfigure.md +1 -1
- data/docs/NgwafResponseEnable.md +1 -1
- data/docs/NgwafResponseService.md +1 -1
- data/docs/OriginInspectorResponseBodyEnable.md +1 -1
- data/docs/OriginInspectorResponseService.md +1 -1
- data/docs/ProductApiDiscoveryApi.md +163 -0
- data/docs/RealtimeEntryAggregated.md +1 -0
- data/docs/RealtimeMeasurements.md +1 -0
- data/docs/RequestBodyForCreate.md +12 -0
- data/docs/RequestBodyForUpdate.md +11 -0
- data/docs/Results.md +1 -0
- data/docs/SchemasUserResponse.md +1 -0
- data/docs/SecretStoreApi.md +2 -2
- data/docs/SecretStoreItemApi.md +2 -2
- data/docs/ServiceAuthorizationsApi.md +2 -2
- data/docs/SuccessfulResponseAsObject.md +17 -0
- data/docs/SuccessfulResponseAsObjectAllOf.md +15 -0
- data/docs/User.md +1 -0
- data/docs/UserApi.md +4 -0
- data/docs/UserResponse.md +1 -0
- data/docs/WebsocketsResponseBodyEnable.md +1 -1
- data/docs/WebsocketsResponseService.md +1 -1
- data/lib/fastly/api/ddos_protection_api.rb +3 -0
- data/lib/fastly/api/dm_domains_api.rb +362 -0
- data/lib/fastly/api/domain_ownerships_api.rb +3 -3
- data/lib/fastly/api/healthcheck_api.rb +20 -4
- data/lib/fastly/api/iam_roles_api.rb +43 -435
- data/lib/fastly/api/kv_store_api.rb +3 -3
- data/lib/fastly/api/kv_store_item_api.rb +3 -3
- data/lib/fastly/api/logging_https_api.rb +6 -0
- data/lib/fastly/api/product_api_discovery_api.rb +263 -0
- data/lib/fastly/api/secret_store_api.rb +3 -3
- data/lib/fastly/api/secret_store_item_api.rb +3 -3
- data/lib/fastly/api/service_authorizations_api.rb +3 -3
- data/lib/fastly/api/user_api.rb +6 -0
- data/lib/fastly/configuration.rb +56 -38
- data/lib/fastly/models/api_discovery_response_body_get_all_services.rb +256 -0
- data/lib/fastly/models/api_discovery_response_customer.rb +216 -0
- data/lib/fastly/models/api_discovery_response_customer_customer.rb +227 -0
- data/lib/fastly/models/api_discovery_response_enable.rb +243 -0
- data/lib/fastly/models/api_discovery_response_enabled_services.rb +219 -0
- data/lib/fastly/models/api_discovery_response_links.rb +216 -0
- data/lib/fastly/models/api_discovery_response_links_get_all_services.rb +216 -0
- data/lib/fastly/models/api_discovery_response_links_get_all_services_links.rb +217 -0
- data/lib/fastly/models/api_discovery_response_links_links.rb +217 -0
- data/lib/fastly/models/api_discovery_response_product.rb +216 -0
- data/lib/fastly/models/api_discovery_response_product_product.rb +227 -0
- data/lib/fastly/models/api_discovery_response_service.rb +216 -0
- data/lib/fastly/models/{bot_management_response_service_service.rb → api_discovery_response_service_service.rb} +3 -3
- data/lib/fastly/models/bot_management_response_body_enable.rb +1 -1
- data/lib/fastly/models/bot_management_response_service.rb +1 -1
- data/lib/fastly/models/brotli_compression_response_body_enable.rb +1 -1
- data/lib/fastly/models/brotli_compression_response_service.rb +1 -1
- data/lib/fastly/models/ddos_protection_response_configure.rb +1 -1
- data/lib/fastly/models/ddos_protection_response_enable.rb +1 -1
- data/lib/fastly/models/ddos_protection_response_service.rb +1 -1
- data/lib/fastly/models/ddos_protection_rule_with_stats.rb +365 -0
- data/lib/fastly/models/ddos_protection_rule_with_stats_all_of.rb +216 -0
- data/lib/fastly/models/ddos_protection_traffic_stats.rb +20 -4
- data/lib/fastly/models/ddos_protection_traffic_stats_all_of.rb +20 -4
- data/lib/fastly/models/domain_inspector_response_body_enable.rb +1 -1
- data/lib/fastly/models/domain_inspector_response_service.rb +1 -1
- data/lib/fastly/models/fanout_response_body_enable.rb +1 -1
- data/lib/fastly/models/fanout_response_service.rb +1 -1
- data/lib/fastly/models/healthcheck.rb +25 -1
- data/lib/fastly/models/healthcheck_response.rb +25 -1
- data/lib/fastly/models/iam_v1_role_list_response.rb +240 -0
- data/lib/fastly/models/{iam_role_all_of.rb → iam_v1_role_response.rb} +14 -34
- data/lib/fastly/models/image_optimizer_response_body_enable.rb +1 -1
- data/lib/fastly/models/image_optimizer_response_service.rb +1 -1
- data/lib/fastly/models/inline_response20010.rb +218 -0
- data/lib/fastly/models/inline_response2003.rb +11 -1
- data/lib/fastly/models/inline_response2004.rb +20 -8
- data/lib/fastly/models/inline_response2005.rb +8 -18
- data/lib/fastly/models/inline_response2006.rb +1 -1
- data/lib/fastly/models/inline_response2007.rb +1 -1
- data/lib/fastly/models/inline_response2008.rb +1 -1
- data/lib/fastly/models/inline_response2009.rb +13 -4
- data/lib/fastly/models/invitation_data_attributes.rb +12 -1
- data/lib/fastly/models/log_explorer_insights_response_body_enable.rb +1 -1
- data/lib/fastly/models/log_explorer_insights_response_service.rb +1 -1
- data/lib/fastly/models/logging_https_additional.rb +16 -4
- data/lib/fastly/models/logging_https_response.rb +13 -1
- data/lib/fastly/models/ngwaf_response_configure.rb +1 -1
- data/lib/fastly/models/ngwaf_response_enable.rb +1 -1
- data/lib/fastly/models/ngwaf_response_service.rb +1 -1
- data/lib/fastly/models/origin_inspector_response_body_enable.rb +1 -1
- data/lib/fastly/models/origin_inspector_response_service.rb +1 -1
- data/lib/fastly/models/realtime_entry_aggregated.rb +14 -4
- data/lib/fastly/models/realtime_measurements.rb +14 -4
- data/lib/fastly/models/request_body_for_create.rb +244 -0
- data/lib/fastly/models/request_body_for_update.rb +229 -0
- data/lib/fastly/models/results.rb +11 -1
- data/lib/fastly/models/role_user.rb +2 -0
- data/lib/fastly/models/schemas_user_response.rb +13 -1
- data/lib/fastly/models/{iam_role.rb → successful_response_as_object.rb} +37 -35
- data/lib/fastly/models/successful_response_as_object_all_of.rb +268 -0
- data/lib/fastly/models/user.rb +13 -1
- data/lib/fastly/models/user_response.rb +13 -1
- data/lib/fastly/models/websockets_response_body_enable.rb +1 -1
- data/lib/fastly/models/websockets_response_service.rb +1 -1
- data/lib/fastly/version.rb +1 -1
- data/lib/fastly.rb +24 -3
- data/sig.json +1 -1
- metadata +50 -8
- data/docs/IamRole.md +0 -17
- data/docs/IamRoleAllOf.md +0 -15
|
@@ -17,291 +17,41 @@ module Fastly
|
|
|
17
17
|
def initialize(api_client = ApiClient.default)
|
|
18
18
|
@api_client = api_client
|
|
19
19
|
end
|
|
20
|
-
#
|
|
21
|
-
#
|
|
20
|
+
# Get IAM role by ID
|
|
21
|
+
# Retrieve a single IAM role by its unique identifier.
|
|
22
22
|
# @option opts [String] :role_id Alphanumeric string identifying the role. (required)
|
|
23
|
-
# @option opts [
|
|
24
|
-
# @return [
|
|
25
|
-
def
|
|
26
|
-
data, _status_code, _headers =
|
|
23
|
+
# @option opts [String] :include Include related data (i.e., permissions).
|
|
24
|
+
# @return [IamV1RoleResponse]
|
|
25
|
+
def iam_v1_roles_get(opts = {})
|
|
26
|
+
data, _status_code, _headers = iam_v1_roles_get_with_http_info(opts)
|
|
27
27
|
data
|
|
28
28
|
end
|
|
29
29
|
|
|
30
|
-
#
|
|
31
|
-
#
|
|
30
|
+
# Get IAM role by ID
|
|
31
|
+
# Retrieve a single IAM role by its unique identifier.
|
|
32
32
|
# @option opts [String] :role_id Alphanumeric string identifying the role. (required)
|
|
33
|
-
# @option opts [
|
|
34
|
-
# @return [Array<(
|
|
35
|
-
def
|
|
33
|
+
# @option opts [String] :include Include related data (i.e., permissions).
|
|
34
|
+
# @return [Array<(IamV1RoleResponse, Integer, Hash)>] IamV1RoleResponse data, response status code and response headers
|
|
35
|
+
def iam_v1_roles_get_with_http_info(opts = {})
|
|
36
36
|
if @api_client.config.debugging
|
|
37
|
-
@api_client.config.logger.debug 'Calling API: IamRolesApi.
|
|
37
|
+
@api_client.config.logger.debug 'Calling API: IamRolesApi.iam_v1_roles_get ...'
|
|
38
38
|
end
|
|
39
39
|
# unbox the parameters from the hash
|
|
40
40
|
role_id = opts[:'role_id']
|
|
41
41
|
# verify the required parameter 'role_id' is set
|
|
42
42
|
if @api_client.config.client_side_validation && role_id.nil?
|
|
43
|
-
fail ArgumentError, "Missing the required parameter 'role_id' when calling IamRolesApi.
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'role_id' when calling IamRolesApi.iam_v1_roles_get"
|
|
44
44
|
end
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
# query parameters
|
|
49
|
-
query_params = opts[:query_params] || {}
|
|
50
|
-
|
|
51
|
-
# header parameters
|
|
52
|
-
header_params = opts[:header_params] || {}
|
|
53
|
-
# HTTP header 'Accept' (if needed)
|
|
54
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
55
|
-
# HTTP header 'Content-Type'
|
|
56
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
57
|
-
if !content_type.nil?
|
|
58
|
-
header_params['Content-Type'] = content_type
|
|
59
|
-
end
|
|
60
|
-
|
|
61
|
-
# form parameters
|
|
62
|
-
form_params = opts[:form_params] || {}
|
|
63
|
-
|
|
64
|
-
# http body (model)
|
|
65
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'request_body'])
|
|
66
|
-
|
|
67
|
-
# return_type
|
|
68
|
-
return_type = opts[:debug_return_type] || 'Object'
|
|
69
|
-
|
|
70
|
-
# auth_names
|
|
71
|
-
auth_names = opts[:debug_auth_names] || ['token']
|
|
72
|
-
|
|
73
|
-
new_options = opts.merge(
|
|
74
|
-
:operation => :"IamRolesApi.add_role_permissions",
|
|
75
|
-
:header_params => header_params,
|
|
76
|
-
:query_params => query_params,
|
|
77
|
-
:form_params => form_params,
|
|
78
|
-
:body => post_body,
|
|
79
|
-
:auth_names => auth_names,
|
|
80
|
-
:return_type => return_type
|
|
81
|
-
)
|
|
82
|
-
|
|
83
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
84
|
-
if @api_client.config.debugging
|
|
85
|
-
@api_client.config.logger.debug "API called: IamRolesApi#add_role_permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
86
|
-
end
|
|
87
|
-
return data, status_code, headers
|
|
88
|
-
end
|
|
89
|
-
|
|
90
|
-
# Create a role
|
|
91
|
-
# Create a role.
|
|
92
|
-
# @option opts [Hash<String, Object>] :request_body
|
|
93
|
-
# @return [Object]
|
|
94
|
-
def create_a_role(opts = {})
|
|
95
|
-
data, _status_code, _headers = create_a_role_with_http_info(opts)
|
|
96
|
-
data
|
|
97
|
-
end
|
|
98
|
-
|
|
99
|
-
# Create a role
|
|
100
|
-
# Create a role.
|
|
101
|
-
# @option opts [Hash<String, Object>] :request_body
|
|
102
|
-
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
103
|
-
def create_a_role_with_http_info(opts = {})
|
|
104
|
-
if @api_client.config.debugging
|
|
105
|
-
@api_client.config.logger.debug 'Calling API: IamRolesApi.create_a_role ...'
|
|
106
|
-
end
|
|
107
|
-
# unbox the parameters from the hash
|
|
108
|
-
# resource path
|
|
109
|
-
local_var_path = '/roles'
|
|
110
|
-
|
|
111
|
-
# query parameters
|
|
112
|
-
query_params = opts[:query_params] || {}
|
|
113
|
-
|
|
114
|
-
# header parameters
|
|
115
|
-
header_params = opts[:header_params] || {}
|
|
116
|
-
# HTTP header 'Accept' (if needed)
|
|
117
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
118
|
-
# HTTP header 'Content-Type'
|
|
119
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
120
|
-
if !content_type.nil?
|
|
121
|
-
header_params['Content-Type'] = content_type
|
|
122
|
-
end
|
|
123
|
-
|
|
124
|
-
# form parameters
|
|
125
|
-
form_params = opts[:form_params] || {}
|
|
126
|
-
|
|
127
|
-
# http body (model)
|
|
128
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'request_body'])
|
|
129
|
-
|
|
130
|
-
# return_type
|
|
131
|
-
return_type = opts[:debug_return_type] || 'Object'
|
|
132
|
-
|
|
133
|
-
# auth_names
|
|
134
|
-
auth_names = opts[:debug_auth_names] || ['token']
|
|
135
|
-
|
|
136
|
-
new_options = opts.merge(
|
|
137
|
-
:operation => :"IamRolesApi.create_a_role",
|
|
138
|
-
:header_params => header_params,
|
|
139
|
-
:query_params => query_params,
|
|
140
|
-
:form_params => form_params,
|
|
141
|
-
:body => post_body,
|
|
142
|
-
:auth_names => auth_names,
|
|
143
|
-
:return_type => return_type
|
|
144
|
-
)
|
|
145
|
-
|
|
146
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
147
|
-
if @api_client.config.debugging
|
|
148
|
-
@api_client.config.logger.debug "API called: IamRolesApi#create_a_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
149
|
-
end
|
|
150
|
-
return data, status_code, headers
|
|
151
|
-
end
|
|
152
|
-
|
|
153
|
-
# Delete a role
|
|
154
|
-
# Delete a role.
|
|
155
|
-
# @option opts [String] :role_id Alphanumeric string identifying the role. (required)
|
|
156
|
-
# @return [nil]
|
|
157
|
-
def delete_a_role(opts = {})
|
|
158
|
-
delete_a_role_with_http_info(opts)
|
|
159
|
-
nil
|
|
160
|
-
end
|
|
161
|
-
|
|
162
|
-
# Delete a role
|
|
163
|
-
# Delete a role.
|
|
164
|
-
# @option opts [String] :role_id Alphanumeric string identifying the role. (required)
|
|
165
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
166
|
-
def delete_a_role_with_http_info(opts = {})
|
|
167
|
-
if @api_client.config.debugging
|
|
168
|
-
@api_client.config.logger.debug 'Calling API: IamRolesApi.delete_a_role ...'
|
|
169
|
-
end
|
|
170
|
-
# unbox the parameters from the hash
|
|
171
|
-
role_id = opts[:'role_id']
|
|
172
|
-
# verify the required parameter 'role_id' is set
|
|
173
|
-
if @api_client.config.client_side_validation && role_id.nil?
|
|
174
|
-
fail ArgumentError, "Missing the required parameter 'role_id' when calling IamRolesApi.delete_a_role"
|
|
175
|
-
end
|
|
176
|
-
# resource path
|
|
177
|
-
local_var_path = '/roles/{role_id}'.sub('{' + 'role_id' + '}', CGI.escape(role_id.to_s))
|
|
178
|
-
|
|
179
|
-
# query parameters
|
|
180
|
-
query_params = opts[:query_params] || {}
|
|
181
|
-
|
|
182
|
-
# header parameters
|
|
183
|
-
header_params = opts[:header_params] || {}
|
|
184
|
-
|
|
185
|
-
# form parameters
|
|
186
|
-
form_params = opts[:form_params] || {}
|
|
187
|
-
|
|
188
|
-
# http body (model)
|
|
189
|
-
post_body = opts[:debug_body]
|
|
190
|
-
|
|
191
|
-
# return_type
|
|
192
|
-
return_type = opts[:debug_return_type]
|
|
193
|
-
|
|
194
|
-
# auth_names
|
|
195
|
-
auth_names = opts[:debug_auth_names] || ['token']
|
|
196
|
-
|
|
197
|
-
new_options = opts.merge(
|
|
198
|
-
:operation => :"IamRolesApi.delete_a_role",
|
|
199
|
-
:header_params => header_params,
|
|
200
|
-
:query_params => query_params,
|
|
201
|
-
:form_params => form_params,
|
|
202
|
-
:body => post_body,
|
|
203
|
-
:auth_names => auth_names,
|
|
204
|
-
:return_type => return_type
|
|
205
|
-
)
|
|
206
|
-
|
|
207
|
-
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
208
|
-
if @api_client.config.debugging
|
|
209
|
-
@api_client.config.logger.debug "API called: IamRolesApi#delete_a_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
210
|
-
end
|
|
211
|
-
return data, status_code, headers
|
|
212
|
-
end
|
|
213
|
-
|
|
214
|
-
# Get a role
|
|
215
|
-
# Get a role.
|
|
216
|
-
# @option opts [String] :role_id Alphanumeric string identifying the role. (required)
|
|
217
|
-
# @return [Object]
|
|
218
|
-
def get_a_role(opts = {})
|
|
219
|
-
data, _status_code, _headers = get_a_role_with_http_info(opts)
|
|
220
|
-
data
|
|
221
|
-
end
|
|
222
|
-
|
|
223
|
-
# Get a role
|
|
224
|
-
# Get a role.
|
|
225
|
-
# @option opts [String] :role_id Alphanumeric string identifying the role. (required)
|
|
226
|
-
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
227
|
-
def get_a_role_with_http_info(opts = {})
|
|
228
|
-
if @api_client.config.debugging
|
|
229
|
-
@api_client.config.logger.debug 'Calling API: IamRolesApi.get_a_role ...'
|
|
230
|
-
end
|
|
231
|
-
# unbox the parameters from the hash
|
|
232
|
-
role_id = opts[:'role_id']
|
|
233
|
-
# verify the required parameter 'role_id' is set
|
|
234
|
-
if @api_client.config.client_side_validation && role_id.nil?
|
|
235
|
-
fail ArgumentError, "Missing the required parameter 'role_id' when calling IamRolesApi.get_a_role"
|
|
236
|
-
end
|
|
237
|
-
# resource path
|
|
238
|
-
local_var_path = '/roles/{role_id}'.sub('{' + 'role_id' + '}', CGI.escape(role_id.to_s))
|
|
239
|
-
|
|
240
|
-
# query parameters
|
|
241
|
-
query_params = opts[:query_params] || {}
|
|
242
|
-
|
|
243
|
-
# header parameters
|
|
244
|
-
header_params = opts[:header_params] || {}
|
|
245
|
-
# HTTP header 'Accept' (if needed)
|
|
246
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
247
|
-
|
|
248
|
-
# form parameters
|
|
249
|
-
form_params = opts[:form_params] || {}
|
|
250
|
-
|
|
251
|
-
# http body (model)
|
|
252
|
-
post_body = opts[:debug_body]
|
|
253
|
-
|
|
254
|
-
# return_type
|
|
255
|
-
return_type = opts[:debug_return_type] || 'Object'
|
|
256
|
-
|
|
257
|
-
# auth_names
|
|
258
|
-
auth_names = opts[:debug_auth_names] || ['token']
|
|
259
|
-
|
|
260
|
-
new_options = opts.merge(
|
|
261
|
-
:operation => :"IamRolesApi.get_a_role",
|
|
262
|
-
:header_params => header_params,
|
|
263
|
-
:query_params => query_params,
|
|
264
|
-
:form_params => form_params,
|
|
265
|
-
:body => post_body,
|
|
266
|
-
:auth_names => auth_names,
|
|
267
|
-
:return_type => return_type
|
|
268
|
-
)
|
|
269
|
-
|
|
270
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
271
|
-
if @api_client.config.debugging
|
|
272
|
-
@api_client.config.logger.debug "API called: IamRolesApi#get_a_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
273
|
-
end
|
|
274
|
-
return data, status_code, headers
|
|
275
|
-
end
|
|
276
|
-
|
|
277
|
-
# List permissions in a role
|
|
278
|
-
# List all permissions in a role.
|
|
279
|
-
# @option opts [String] :role_id Alphanumeric string identifying the role. (required)
|
|
280
|
-
# @return [Object]
|
|
281
|
-
def list_role_permissions(opts = {})
|
|
282
|
-
data, _status_code, _headers = list_role_permissions_with_http_info(opts)
|
|
283
|
-
data
|
|
284
|
-
end
|
|
285
|
-
|
|
286
|
-
# List permissions in a role
|
|
287
|
-
# List all permissions in a role.
|
|
288
|
-
# @option opts [String] :role_id Alphanumeric string identifying the role. (required)
|
|
289
|
-
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
290
|
-
def list_role_permissions_with_http_info(opts = {})
|
|
291
|
-
if @api_client.config.debugging
|
|
292
|
-
@api_client.config.logger.debug 'Calling API: IamRolesApi.list_role_permissions ...'
|
|
293
|
-
end
|
|
294
|
-
# unbox the parameters from the hash
|
|
295
|
-
role_id = opts[:'role_id']
|
|
296
|
-
# verify the required parameter 'role_id' is set
|
|
297
|
-
if @api_client.config.client_side_validation && role_id.nil?
|
|
298
|
-
fail ArgumentError, "Missing the required parameter 'role_id' when calling IamRolesApi.list_role_permissions"
|
|
45
|
+
allowable_values = ["permissions"]
|
|
46
|
+
if @api_client.config.client_side_validation && opts[:'include'] && !allowable_values.include?(opts[:'include'])
|
|
47
|
+
fail ArgumentError, "invalid value for \"include\", must be one of #{allowable_values}"
|
|
299
48
|
end
|
|
300
49
|
# resource path
|
|
301
|
-
local_var_path = '/roles/{role_id}
|
|
50
|
+
local_var_path = '/iam/v1/roles/{role_id}'.sub('{' + 'role_id' + '}', CGI.escape(role_id.to_s))
|
|
302
51
|
|
|
303
52
|
# query parameters
|
|
304
53
|
query_params = opts[:query_params] || {}
|
|
54
|
+
query_params[:'include'] = opts[:'include'] if !opts[:'include'].nil?
|
|
305
55
|
|
|
306
56
|
# header parameters
|
|
307
57
|
header_params = opts[:header_params] || {}
|
|
@@ -315,13 +65,13 @@ module Fastly
|
|
|
315
65
|
post_body = opts[:debug_body]
|
|
316
66
|
|
|
317
67
|
# return_type
|
|
318
|
-
return_type = opts[:debug_return_type] || '
|
|
68
|
+
return_type = opts[:debug_return_type] || 'IamV1RoleResponse'
|
|
319
69
|
|
|
320
70
|
# auth_names
|
|
321
71
|
auth_names = opts[:debug_auth_names] || ['token']
|
|
322
72
|
|
|
323
73
|
new_options = opts.merge(
|
|
324
|
-
:operation => :"IamRolesApi.
|
|
74
|
+
:operation => :"IamRolesApi.iam_v1_roles_get",
|
|
325
75
|
:header_params => header_params,
|
|
326
76
|
:query_params => query_params,
|
|
327
77
|
:form_params => form_params,
|
|
@@ -332,46 +82,42 @@ module Fastly
|
|
|
332
82
|
|
|
333
83
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
334
84
|
if @api_client.config.debugging
|
|
335
|
-
@api_client.config.logger.debug "API called: IamRolesApi#
|
|
85
|
+
@api_client.config.logger.debug "API called: IamRolesApi#iam_v1_roles_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
336
86
|
end
|
|
337
87
|
return data, status_code, headers
|
|
338
88
|
end
|
|
339
89
|
|
|
340
|
-
# List roles
|
|
341
|
-
#
|
|
342
|
-
# @option opts [Integer] :
|
|
343
|
-
# @option opts [
|
|
344
|
-
# @return [
|
|
345
|
-
def
|
|
346
|
-
data, _status_code, _headers =
|
|
90
|
+
# List IAM roles
|
|
91
|
+
# Retrieve a paginated list of IAM roles available in the account.
|
|
92
|
+
# @option opts [Integer] :limit Number of results per page. The maximum is 1000. (default to 100)
|
|
93
|
+
# @option opts [String] :cursor Cursor value from the `next_cursor` field of a previous response, used to retrieve the next page. To request the first page, this should be empty.
|
|
94
|
+
# @return [IamV1RoleListResponse]
|
|
95
|
+
def iam_v1_roles_list(opts = {})
|
|
96
|
+
data, _status_code, _headers = iam_v1_roles_list_with_http_info(opts)
|
|
347
97
|
data
|
|
348
98
|
end
|
|
349
99
|
|
|
350
|
-
# List roles
|
|
351
|
-
#
|
|
352
|
-
# @option opts [Integer] :
|
|
353
|
-
# @option opts [
|
|
354
|
-
# @return [Array<(
|
|
355
|
-
def
|
|
100
|
+
# List IAM roles
|
|
101
|
+
# Retrieve a paginated list of IAM roles available in the account.
|
|
102
|
+
# @option opts [Integer] :limit Number of results per page. The maximum is 1000. (default to 100)
|
|
103
|
+
# @option opts [String] :cursor Cursor value from the `next_cursor` field of a previous response, used to retrieve the next page. To request the first page, this should be empty.
|
|
104
|
+
# @return [Array<(IamV1RoleListResponse, Integer, Hash)>] IamV1RoleListResponse data, response status code and response headers
|
|
105
|
+
def iam_v1_roles_list_with_http_info(opts = {})
|
|
356
106
|
if @api_client.config.debugging
|
|
357
|
-
@api_client.config.logger.debug 'Calling API: IamRolesApi.
|
|
107
|
+
@api_client.config.logger.debug 'Calling API: IamRolesApi.iam_v1_roles_list ...'
|
|
358
108
|
end
|
|
359
109
|
# unbox the parameters from the hash
|
|
360
|
-
if @api_client.config.client_side_validation && !opts[:'
|
|
361
|
-
fail ArgumentError, 'invalid value for "opts[:"
|
|
362
|
-
end
|
|
363
|
-
|
|
364
|
-
if @api_client.config.client_side_validation && !opts[:'per_page'].nil? && opts[:'per_page'] < 1
|
|
365
|
-
fail ArgumentError, 'invalid value for "opts[:"per_page"]" when calling IamRolesApi.list_roles, must be greater than or equal to 1.'
|
|
110
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000
|
|
111
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling IamRolesApi.iam_v1_roles_list, must be smaller than or equal to 1000.'
|
|
366
112
|
end
|
|
367
113
|
|
|
368
114
|
# resource path
|
|
369
|
-
local_var_path = '/roles'
|
|
115
|
+
local_var_path = '/iam/v1/roles'
|
|
370
116
|
|
|
371
117
|
# query parameters
|
|
372
118
|
query_params = opts[:query_params] || {}
|
|
373
|
-
query_params[:'
|
|
374
|
-
query_params[:'
|
|
119
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
120
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
375
121
|
|
|
376
122
|
# header parameters
|
|
377
123
|
header_params = opts[:header_params] || {}
|
|
@@ -385,13 +131,13 @@ module Fastly
|
|
|
385
131
|
post_body = opts[:debug_body]
|
|
386
132
|
|
|
387
133
|
# return_type
|
|
388
|
-
return_type = opts[:debug_return_type] || '
|
|
134
|
+
return_type = opts[:debug_return_type] || 'IamV1RoleListResponse'
|
|
389
135
|
|
|
390
136
|
# auth_names
|
|
391
137
|
auth_names = opts[:debug_auth_names] || ['token']
|
|
392
138
|
|
|
393
139
|
new_options = opts.merge(
|
|
394
|
-
:operation => :"IamRolesApi.
|
|
140
|
+
:operation => :"IamRolesApi.iam_v1_roles_list",
|
|
395
141
|
:header_params => header_params,
|
|
396
142
|
:query_params => query_params,
|
|
397
143
|
:form_params => form_params,
|
|
@@ -402,145 +148,7 @@ module Fastly
|
|
|
402
148
|
|
|
403
149
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
404
150
|
if @api_client.config.debugging
|
|
405
|
-
@api_client.config.logger.debug "API called: IamRolesApi#
|
|
406
|
-
end
|
|
407
|
-
return data, status_code, headers
|
|
408
|
-
end
|
|
409
|
-
|
|
410
|
-
# Remove permissions from a role
|
|
411
|
-
# Remove permissions from a role.
|
|
412
|
-
# @option opts [String] :role_id Alphanumeric string identifying the role. (required)
|
|
413
|
-
# @option opts [Hash<String, Object>] :request_body
|
|
414
|
-
# @return [nil]
|
|
415
|
-
def remove_role_permissions(opts = {})
|
|
416
|
-
remove_role_permissions_with_http_info(opts)
|
|
417
|
-
nil
|
|
418
|
-
end
|
|
419
|
-
|
|
420
|
-
# Remove permissions from a role
|
|
421
|
-
# Remove permissions from a role.
|
|
422
|
-
# @option opts [String] :role_id Alphanumeric string identifying the role. (required)
|
|
423
|
-
# @option opts [Hash<String, Object>] :request_body
|
|
424
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
425
|
-
def remove_role_permissions_with_http_info(opts = {})
|
|
426
|
-
if @api_client.config.debugging
|
|
427
|
-
@api_client.config.logger.debug 'Calling API: IamRolesApi.remove_role_permissions ...'
|
|
428
|
-
end
|
|
429
|
-
# unbox the parameters from the hash
|
|
430
|
-
role_id = opts[:'role_id']
|
|
431
|
-
# verify the required parameter 'role_id' is set
|
|
432
|
-
if @api_client.config.client_side_validation && role_id.nil?
|
|
433
|
-
fail ArgumentError, "Missing the required parameter 'role_id' when calling IamRolesApi.remove_role_permissions"
|
|
434
|
-
end
|
|
435
|
-
# resource path
|
|
436
|
-
local_var_path = '/roles/{role_id}/permissions'.sub('{' + 'role_id' + '}', CGI.escape(role_id.to_s))
|
|
437
|
-
|
|
438
|
-
# query parameters
|
|
439
|
-
query_params = opts[:query_params] || {}
|
|
440
|
-
|
|
441
|
-
# header parameters
|
|
442
|
-
header_params = opts[:header_params] || {}
|
|
443
|
-
# HTTP header 'Content-Type'
|
|
444
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
445
|
-
if !content_type.nil?
|
|
446
|
-
header_params['Content-Type'] = content_type
|
|
447
|
-
end
|
|
448
|
-
|
|
449
|
-
# form parameters
|
|
450
|
-
form_params = opts[:form_params] || {}
|
|
451
|
-
|
|
452
|
-
# http body (model)
|
|
453
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'request_body'])
|
|
454
|
-
|
|
455
|
-
# return_type
|
|
456
|
-
return_type = opts[:debug_return_type]
|
|
457
|
-
|
|
458
|
-
# auth_names
|
|
459
|
-
auth_names = opts[:debug_auth_names] || ['token']
|
|
460
|
-
|
|
461
|
-
new_options = opts.merge(
|
|
462
|
-
:operation => :"IamRolesApi.remove_role_permissions",
|
|
463
|
-
:header_params => header_params,
|
|
464
|
-
:query_params => query_params,
|
|
465
|
-
:form_params => form_params,
|
|
466
|
-
:body => post_body,
|
|
467
|
-
:auth_names => auth_names,
|
|
468
|
-
:return_type => return_type
|
|
469
|
-
)
|
|
470
|
-
|
|
471
|
-
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
472
|
-
if @api_client.config.debugging
|
|
473
|
-
@api_client.config.logger.debug "API called: IamRolesApi#remove_role_permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
474
|
-
end
|
|
475
|
-
return data, status_code, headers
|
|
476
|
-
end
|
|
477
|
-
|
|
478
|
-
# Update a role
|
|
479
|
-
# Update a role.
|
|
480
|
-
# @option opts [String] :role_id Alphanumeric string identifying the role. (required)
|
|
481
|
-
# @option opts [Hash<String, Object>] :request_body
|
|
482
|
-
# @return [Object]
|
|
483
|
-
def update_a_role(opts = {})
|
|
484
|
-
data, _status_code, _headers = update_a_role_with_http_info(opts)
|
|
485
|
-
data
|
|
486
|
-
end
|
|
487
|
-
|
|
488
|
-
# Update a role
|
|
489
|
-
# Update a role.
|
|
490
|
-
# @option opts [String] :role_id Alphanumeric string identifying the role. (required)
|
|
491
|
-
# @option opts [Hash<String, Object>] :request_body
|
|
492
|
-
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
493
|
-
def update_a_role_with_http_info(opts = {})
|
|
494
|
-
if @api_client.config.debugging
|
|
495
|
-
@api_client.config.logger.debug 'Calling API: IamRolesApi.update_a_role ...'
|
|
496
|
-
end
|
|
497
|
-
# unbox the parameters from the hash
|
|
498
|
-
role_id = opts[:'role_id']
|
|
499
|
-
# verify the required parameter 'role_id' is set
|
|
500
|
-
if @api_client.config.client_side_validation && role_id.nil?
|
|
501
|
-
fail ArgumentError, "Missing the required parameter 'role_id' when calling IamRolesApi.update_a_role"
|
|
502
|
-
end
|
|
503
|
-
# resource path
|
|
504
|
-
local_var_path = '/roles/{role_id}'.sub('{' + 'role_id' + '}', CGI.escape(role_id.to_s))
|
|
505
|
-
|
|
506
|
-
# query parameters
|
|
507
|
-
query_params = opts[:query_params] || {}
|
|
508
|
-
|
|
509
|
-
# header parameters
|
|
510
|
-
header_params = opts[:header_params] || {}
|
|
511
|
-
# HTTP header 'Accept' (if needed)
|
|
512
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
513
|
-
# HTTP header 'Content-Type'
|
|
514
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
515
|
-
if !content_type.nil?
|
|
516
|
-
header_params['Content-Type'] = content_type
|
|
517
|
-
end
|
|
518
|
-
|
|
519
|
-
# form parameters
|
|
520
|
-
form_params = opts[:form_params] || {}
|
|
521
|
-
|
|
522
|
-
# http body (model)
|
|
523
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'request_body'])
|
|
524
|
-
|
|
525
|
-
# return_type
|
|
526
|
-
return_type = opts[:debug_return_type] || 'Object'
|
|
527
|
-
|
|
528
|
-
# auth_names
|
|
529
|
-
auth_names = opts[:debug_auth_names] || ['token']
|
|
530
|
-
|
|
531
|
-
new_options = opts.merge(
|
|
532
|
-
:operation => :"IamRolesApi.update_a_role",
|
|
533
|
-
:header_params => header_params,
|
|
534
|
-
:query_params => query_params,
|
|
535
|
-
:form_params => form_params,
|
|
536
|
-
:body => post_body,
|
|
537
|
-
:auth_names => auth_names,
|
|
538
|
-
:return_type => return_type
|
|
539
|
-
)
|
|
540
|
-
|
|
541
|
-
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
542
|
-
if @api_client.config.debugging
|
|
543
|
-
@api_client.config.logger.debug "API called: IamRolesApi#update_a_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
151
|
+
@api_client.config.logger.debug "API called: IamRolesApi#iam_v1_roles_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
544
152
|
end
|
|
545
153
|
return data, status_code, headers
|
|
546
154
|
end
|
|
@@ -216,7 +216,7 @@ module Fastly
|
|
|
216
216
|
# @option opts [String] :cursor
|
|
217
217
|
# @option opts [Integer] :limit (default to 1000)
|
|
218
218
|
# @option opts [String] :name Returns a one-element array containing the details for the named KV store.
|
|
219
|
-
# @return [
|
|
219
|
+
# @return [InlineResponse2006]
|
|
220
220
|
def kv_store_list(opts = {})
|
|
221
221
|
data, _status_code, _headers = kv_store_list_with_http_info(opts)
|
|
222
222
|
data
|
|
@@ -227,7 +227,7 @@ module Fastly
|
|
|
227
227
|
# @option opts [String] :cursor
|
|
228
228
|
# @option opts [Integer] :limit (default to 1000)
|
|
229
229
|
# @option opts [String] :name Returns a one-element array containing the details for the named KV store.
|
|
230
|
-
# @return [Array<(
|
|
230
|
+
# @return [Array<(InlineResponse2006, Integer, Hash)>] InlineResponse2006 data, response status code and response headers
|
|
231
231
|
def kv_store_list_with_http_info(opts = {})
|
|
232
232
|
if @api_client.config.debugging
|
|
233
233
|
@api_client.config.logger.debug 'Calling API: KvStoreApi.kv_store_list ...'
|
|
@@ -258,7 +258,7 @@ module Fastly
|
|
|
258
258
|
post_body = opts[:debug_body]
|
|
259
259
|
|
|
260
260
|
# return_type
|
|
261
|
-
return_type = opts[:debug_return_type] || '
|
|
261
|
+
return_type = opts[:debug_return_type] || 'InlineResponse2006'
|
|
262
262
|
|
|
263
263
|
# auth_names
|
|
264
264
|
auth_names = opts[:debug_auth_names] || ['token']
|
|
@@ -168,7 +168,7 @@ module Fastly
|
|
|
168
168
|
# @option opts [Integer] :limit (default to 100)
|
|
169
169
|
# @option opts [String] :prefix
|
|
170
170
|
# @option opts [String] :consistency (default to 'strong')
|
|
171
|
-
# @return [
|
|
171
|
+
# @return [InlineResponse2007]
|
|
172
172
|
def kv_store_list_item_keys(opts = {})
|
|
173
173
|
data, _status_code, _headers = kv_store_list_item_keys_with_http_info(opts)
|
|
174
174
|
data
|
|
@@ -181,7 +181,7 @@ module Fastly
|
|
|
181
181
|
# @option opts [Integer] :limit (default to 100)
|
|
182
182
|
# @option opts [String] :prefix
|
|
183
183
|
# @option opts [String] :consistency (default to 'strong')
|
|
184
|
-
# @return [Array<(
|
|
184
|
+
# @return [Array<(InlineResponse2007, Integer, Hash)>] InlineResponse2007 data, response status code and response headers
|
|
185
185
|
def kv_store_list_item_keys_with_http_info(opts = {})
|
|
186
186
|
if @api_client.config.debugging
|
|
187
187
|
@api_client.config.logger.debug 'Calling API: KvStoreItemApi.kv_store_list_item_keys ...'
|
|
@@ -222,7 +222,7 @@ module Fastly
|
|
|
222
222
|
post_body = opts[:debug_body]
|
|
223
223
|
|
|
224
224
|
# return_type
|
|
225
|
-
return_type = opts[:debug_return_type] || '
|
|
225
|
+
return_type = opts[:debug_return_type] || 'InlineResponse2007'
|
|
226
226
|
|
|
227
227
|
# auth_names
|
|
228
228
|
auth_names = opts[:debug_auth_names] || ['token']
|
|
@@ -40,6 +40,7 @@ module Fastly
|
|
|
40
40
|
# @option opts [String] :header_value Value of the custom header sent with the request. (default to 'null')
|
|
41
41
|
# @option opts [String] :method HTTP method used for request. (default to 'POST')
|
|
42
42
|
# @option opts [String] :json_format Enforces valid JSON formatting for log entries.
|
|
43
|
+
# @option opts [Integer] :period How frequently, in seconds, batches of log data are sent to the HTTPS endpoint. A value of `0` sends logs at the same interval as the default, which is `5` seconds. (default to 5)
|
|
43
44
|
# @return [LoggingHttpsResponse]
|
|
44
45
|
def create_log_https(opts = {})
|
|
45
46
|
data, _status_code, _headers = create_log_https_with_http_info(opts)
|
|
@@ -69,6 +70,7 @@ module Fastly
|
|
|
69
70
|
# @option opts [String] :header_value Value of the custom header sent with the request. (default to 'null')
|
|
70
71
|
# @option opts [String] :method HTTP method used for request. (default to 'POST')
|
|
71
72
|
# @option opts [String] :json_format Enforces valid JSON formatting for log entries.
|
|
73
|
+
# @option opts [Integer] :period How frequently, in seconds, batches of log data are sent to the HTTPS endpoint. A value of `0` sends logs at the same interval as the default, which is `5` seconds. (default to 5)
|
|
72
74
|
# @return [Array<(LoggingHttpsResponse, Integer, Hash)>] LoggingHttpsResponse data, response status code and response headers
|
|
73
75
|
def create_log_https_with_http_info(opts = {})
|
|
74
76
|
if @api_client.config.debugging
|
|
@@ -142,6 +144,7 @@ module Fastly
|
|
|
142
144
|
form_params['header_value'] = opts[:'header_value'] if !opts[:'header_value'].nil?
|
|
143
145
|
form_params['method'] = opts[:'method'] if !opts[:'method'].nil?
|
|
144
146
|
form_params['json_format'] = opts[:'json_format'] if !opts[:'json_format'].nil?
|
|
147
|
+
form_params['period'] = opts[:'period'] if !opts[:'period'].nil?
|
|
145
148
|
|
|
146
149
|
# http body (model)
|
|
147
150
|
post_body = opts[:debug_body]
|
|
@@ -417,6 +420,7 @@ module Fastly
|
|
|
417
420
|
# @option opts [String] :header_value Value of the custom header sent with the request. (default to 'null')
|
|
418
421
|
# @option opts [String] :method HTTP method used for request. (default to 'POST')
|
|
419
422
|
# @option opts [String] :json_format Enforces valid JSON formatting for log entries.
|
|
423
|
+
# @option opts [Integer] :period How frequently, in seconds, batches of log data are sent to the HTTPS endpoint. A value of `0` sends logs at the same interval as the default, which is `5` seconds. (default to 5)
|
|
420
424
|
# @return [LoggingHttpsResponse]
|
|
421
425
|
def update_log_https(opts = {})
|
|
422
426
|
data, _status_code, _headers = update_log_https_with_http_info(opts)
|
|
@@ -447,6 +451,7 @@ module Fastly
|
|
|
447
451
|
# @option opts [String] :header_value Value of the custom header sent with the request. (default to 'null')
|
|
448
452
|
# @option opts [String] :method HTTP method used for request. (default to 'POST')
|
|
449
453
|
# @option opts [String] :json_format Enforces valid JSON formatting for log entries.
|
|
454
|
+
# @option opts [Integer] :period How frequently, in seconds, batches of log data are sent to the HTTPS endpoint. A value of `0` sends logs at the same interval as the default, which is `5` seconds. (default to 5)
|
|
450
455
|
# @return [Array<(LoggingHttpsResponse, Integer, Hash)>] LoggingHttpsResponse data, response status code and response headers
|
|
451
456
|
def update_log_https_with_http_info(opts = {})
|
|
452
457
|
if @api_client.config.debugging
|
|
@@ -525,6 +530,7 @@ module Fastly
|
|
|
525
530
|
form_params['header_value'] = opts[:'header_value'] if !opts[:'header_value'].nil?
|
|
526
531
|
form_params['method'] = opts[:'method'] if !opts[:'method'].nil?
|
|
527
532
|
form_params['json_format'] = opts[:'json_format'] if !opts[:'json_format'].nil?
|
|
533
|
+
form_params['period'] = opts[:'period'] if !opts[:'period'].nil?
|
|
528
534
|
|
|
529
535
|
# http body (model)
|
|
530
536
|
post_body = opts[:debug_body]
|