fastly 15.0.0 → 16.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 +40 -1
- data/Gemfile.lock +3 -3
- data/README.md +32 -3
- data/docs/ApisecurityOperationsApi.md +465 -0
- data/docs/AutomationTokensApi.md +2 -2
- data/docs/Backend.md +1 -0
- data/docs/BackendApi.md +4 -0
- data/docs/BackendResponse.md +1 -0
- data/docs/DdosProtectionApi.md +4 -4
- data/docs/DdosProtectionEvent.md +2 -0
- data/docs/DdosProtectionEventAllOf.md +2 -0
- data/docs/DdosProtectionRequestEnableMode.md +10 -0
- data/docs/DiscoveredOperationBase.md +12 -0
- data/docs/DiscoveredOperationGet.md +15 -0
- data/docs/DiscoveredOperationGetExtra.md +12 -0
- data/docs/DmDomainsApi.md +2 -2
- data/docs/DomainInspectorHistoricalApi.md +1 -1
- data/docs/DomainInspectorMeasurements.md +63 -0
- data/docs/DomainOwnershipsApi.md +2 -2
- data/docs/DomainResearchApi.md +103 -0
- data/docs/DomainResearchResponseBodyEnable.md +12 -0
- data/docs/DomainResearchResponseCustomer.md +10 -0
- data/docs/DomainResearchResponseLinks.md +10 -0
- data/docs/DomainResearchResponseLinksLinks.md +10 -0
- data/docs/DomainResearchResponseProduct.md +10 -0
- data/docs/DomainResearchResponseProductProduct.md +11 -0
- data/docs/HistoricalApi.md +8 -0
- data/docs/HistoricalMeta.md +1 -0
- data/docs/IamV1RoleResponse.md +1 -0
- data/docs/InlineResponse2001.md +2 -1
- data/docs/InlineResponse20010.md +2 -1
- data/docs/InlineResponse20011.md +11 -0
- data/docs/InlineResponse20012.md +11 -0
- data/docs/InlineResponse20013.md +11 -0
- data/docs/InlineResponse20014.md +10 -0
- data/docs/InlineResponse2002.md +2 -2
- data/docs/InlineResponse2003.md +2 -2
- data/docs/InlineResponse2004.md +1 -2
- data/docs/InlineResponse2005.md +2 -1
- data/docs/InlineResponse2006.md +2 -2
- data/docs/InlineResponse2007.md +2 -2
- data/docs/InlineResponse2008.md +1 -2
- data/docs/InlineResponse2009.md +1 -2
- data/docs/InsightsApi.md +3 -3
- data/docs/KvStoreApi.md +43 -4
- data/docs/KvStoreDetails.md +2 -0
- data/docs/KvStoreItemApi.md +2 -2
- data/docs/{KvStoreRequestCreate.md → KvStoreRequestCreateOrUpdate.md} +1 -1
- data/docs/LogInsights.md +1 -1
- data/docs/Meta.md +11 -0
- data/docs/MetricsPlatformApi.md +75 -0
- data/docs/NgwafRequestEnable.md +1 -0
- data/docs/Offer.md +12 -0
- data/docs/OfferAllOf.md +12 -0
- data/docs/OperationBase.md +14 -0
- data/docs/OperationCreate.md +14 -0
- data/docs/OperationGet.md +18 -0
- data/docs/OperationGetExtra.md +13 -0
- data/docs/OperationUpdate.md +14 -0
- data/docs/OriginInspectorHistoricalApi.md +1 -1
- data/docs/PackageMetadata.md +2 -2
- data/docs/PlatformMetadata.md +14 -0
- data/docs/PlatformMetricsResponse.md +11 -0
- data/docs/PlatformValues.md +25 -0
- data/docs/ProductDdosProtectionApi.md +3 -1
- data/docs/ProductDomainResearchApi.md +115 -0
- data/docs/RealtimeEntryAggregated.md +25 -0
- data/docs/RealtimeMeasurements.md +25 -0
- data/docs/Results.md +25 -0
- data/docs/SecretStoreApi.md +2 -2
- data/docs/SecretStoreItemApi.md +2 -2
- data/docs/ServiceAuthorizationsApi.md +2 -2
- data/docs/Status.md +15 -0
- data/docs/StatusAllOf.md +15 -0
- data/docs/Suggestion.md +13 -0
- data/docs/SuggestionAllOf.md +13 -0
- data/docs/TagBase.md +11 -0
- data/docs/TagCreate.md +11 -0
- data/docs/TagGet.md +15 -0
- data/docs/TagGetExtra.md +13 -0
- data/docs/Values.md +63 -0
- data/lib/fastly/api/apisecurity_operations_api.rb +829 -0
- data/lib/fastly/api/automation_tokens_api.rb +3 -3
- data/lib/fastly/api/backend_api.rb +6 -0
- data/lib/fastly/api/ddos_protection_api.rb +6 -6
- data/lib/fastly/api/dm_domains_api.rb +3 -3
- data/lib/fastly/api/domain_inspector_historical_api.rb +1 -1
- data/lib/fastly/api/domain_ownerships_api.rb +3 -3
- data/lib/fastly/api/domain_research_api.rb +163 -0
- data/lib/fastly/api/historical_api.rb +12 -0
- data/lib/fastly/api/kv_store_api.rb +74 -6
- data/lib/fastly/api/kv_store_item_api.rb +3 -3
- data/lib/fastly/api/metrics_platform_api.rb +134 -0
- data/lib/fastly/api/origin_inspector_historical_api.rb +1 -1
- data/lib/fastly/api/product_ddos_protection_api.rb +10 -3
- data/lib/fastly/api/product_domain_research_api.rb +186 -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/configuration.rb +108 -0
- data/lib/fastly/models/backend.rb +11 -1
- data/lib/fastly/models/backend_response.rb +11 -1
- data/lib/fastly/models/ddos_protection_event.rb +21 -1
- data/lib/fastly/models/ddos_protection_event_all_of.rb +21 -1
- data/lib/fastly/models/ddos_protection_request_enable_mode.rb +251 -0
- data/lib/fastly/models/discovered_operation_base.rb +271 -0
- data/lib/fastly/models/discovered_operation_get.rb +336 -0
- data/lib/fastly/models/discovered_operation_get_extra.rb +271 -0
- data/lib/fastly/models/domain_inspector_measurements.rb +634 -4
- data/lib/fastly/models/domain_research_response_body_enable.rb +243 -0
- data/lib/fastly/models/domain_research_response_customer.rb +216 -0
- data/lib/fastly/models/domain_research_response_links.rb +216 -0
- data/lib/fastly/models/domain_research_response_links_links.rb +217 -0
- data/lib/fastly/models/domain_research_response_product.rb +216 -0
- data/lib/fastly/models/domain_research_response_product_product.rb +227 -0
- data/lib/fastly/models/historical_meta.rb +13 -4
- data/lib/fastly/models/iam_v1_role_response.rb +10 -1
- data/lib/fastly/models/inline_response2001.rb +12 -3
- data/lib/fastly/models/inline_response20010.rb +13 -4
- data/lib/fastly/models/inline_response20011.rb +227 -0
- data/lib/fastly/models/inline_response20012.rb +227 -0
- data/lib/fastly/models/inline_response20013.rb +227 -0
- data/lib/fastly/models/inline_response20014.rb +218 -0
- data/lib/fastly/models/inline_response2002.rb +14 -13
- data/lib/fastly/models/inline_response2003.rb +14 -23
- data/lib/fastly/models/inline_response2004.rb +5 -15
- data/lib/fastly/models/inline_response2005.rb +18 -8
- data/lib/fastly/models/inline_response2006.rb +11 -1
- data/lib/fastly/models/inline_response2007.rb +4 -2
- data/lib/fastly/models/inline_response2008.rb +8 -18
- data/lib/fastly/models/inline_response2009.rb +8 -17
- data/lib/fastly/models/kv_store_details.rb +24 -4
- data/lib/fastly/models/{kv_store_request_create.rb → kv_store_request_create_or_update.rb} +3 -3
- data/lib/fastly/models/log_insights.rb +4 -2
- data/lib/fastly/models/meta.rb +266 -0
- data/lib/fastly/models/ngwaf_request_enable.rb +14 -4
- data/lib/fastly/models/offer.rb +245 -0
- data/lib/fastly/models/offer_all_of.rb +237 -0
- data/lib/fastly/models/operation_base.rb +308 -0
- data/lib/fastly/models/operation_create.rb +315 -0
- data/lib/fastly/models/operation_get.rb +381 -0
- data/lib/fastly/models/operation_get_extra.rb +257 -0
- data/lib/fastly/models/operation_update.rb +308 -0
- data/lib/fastly/models/package_metadata.rb +2 -2
- data/lib/fastly/models/platform_metadata.rb +258 -0
- data/lib/fastly/models/platform_metrics_response.rb +228 -0
- data/lib/fastly/models/platform_values.rb +368 -0
- data/lib/fastly/models/realtime_entry_aggregated.rb +254 -4
- data/lib/fastly/models/realtime_measurements.rb +254 -4
- data/lib/fastly/models/results.rb +251 -1
- data/lib/fastly/models/status.rb +276 -0
- data/lib/fastly/models/status_all_of.rb +268 -0
- data/lib/fastly/models/suggestion.rb +255 -0
- data/lib/fastly/models/suggestion_all_of.rb +247 -0
- data/lib/fastly/models/tag_base.rb +275 -0
- data/lib/fastly/models/tag_create.rb +282 -0
- data/lib/fastly/models/tag_get.rb +352 -0
- data/lib/fastly/models/tag_get_extra.rb +267 -0
- data/lib/fastly/models/values.rb +634 -4
- data/lib/fastly/version.rb +1 -1
- data/lib/fastly.rb +38 -1
- data/sig.json +1 -1
- metadata +78 -4
|
@@ -0,0 +1,829 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Fastly API
|
|
3
|
+
|
|
4
|
+
#Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/)
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
Contact: oss@fastly.com
|
|
8
|
+
|
|
9
|
+
=end
|
|
10
|
+
|
|
11
|
+
require 'cgi'
|
|
12
|
+
|
|
13
|
+
module Fastly
|
|
14
|
+
class ApisecurityOperationsApi
|
|
15
|
+
attr_accessor :api_client
|
|
16
|
+
|
|
17
|
+
def initialize(api_client = ApiClient.default)
|
|
18
|
+
@api_client = api_client
|
|
19
|
+
end
|
|
20
|
+
# Create operation
|
|
21
|
+
# Create a new operation associated with a specific service.
|
|
22
|
+
# @option opts [String] :service_id The unique identifier of the service. (required)
|
|
23
|
+
# @option opts [OperationCreate] :operation_create
|
|
24
|
+
# @return [OperationGet]
|
|
25
|
+
def api_security_create_operation(opts = {})
|
|
26
|
+
data, _status_code, _headers = api_security_create_operation_with_http_info(opts)
|
|
27
|
+
data
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# Create operation
|
|
31
|
+
# Create a new operation associated with a specific service.
|
|
32
|
+
# @option opts [String] :service_id The unique identifier of the service. (required)
|
|
33
|
+
# @option opts [OperationCreate] :operation_create
|
|
34
|
+
# @return [Array<(OperationGet, Integer, Hash)>] OperationGet data, response status code and response headers
|
|
35
|
+
def api_security_create_operation_with_http_info(opts = {})
|
|
36
|
+
if @api_client.config.debugging
|
|
37
|
+
@api_client.config.logger.debug 'Calling API: ApisecurityOperationsApi.api_security_create_operation ...'
|
|
38
|
+
end
|
|
39
|
+
# unbox the parameters from the hash
|
|
40
|
+
service_id = opts[:'service_id']
|
|
41
|
+
# verify the required parameter 'service_id' is set
|
|
42
|
+
if @api_client.config.client_side_validation && service_id.nil?
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'service_id' when calling ApisecurityOperationsApi.api_security_create_operation"
|
|
44
|
+
end
|
|
45
|
+
# resource path
|
|
46
|
+
local_var_path = '/api-security/v1/services/{service_id}/operations'.sub('{' + 'service_id' + '}', CGI.escape(service_id.to_s))
|
|
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', 'application/problem+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[:'operation_create'])
|
|
66
|
+
|
|
67
|
+
# return_type
|
|
68
|
+
return_type = opts[:debug_return_type] || 'OperationGet'
|
|
69
|
+
|
|
70
|
+
# auth_names
|
|
71
|
+
auth_names = opts[:debug_auth_names] || ['token']
|
|
72
|
+
|
|
73
|
+
new_options = opts.merge(
|
|
74
|
+
:operation => :"ApisecurityOperationsApi.api_security_create_operation",
|
|
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: ApisecurityOperationsApi#api_security_create_operation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
86
|
+
end
|
|
87
|
+
return data, status_code, headers
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Create operation tag
|
|
91
|
+
# Create a new operation tag associated with a specific service.
|
|
92
|
+
# @option opts [String] :service_id The unique identifier of the service. (required)
|
|
93
|
+
# @option opts [TagCreate] :tag_create
|
|
94
|
+
# @return [TagGet]
|
|
95
|
+
def api_security_create_operation_tag(opts = {})
|
|
96
|
+
data, _status_code, _headers = api_security_create_operation_tag_with_http_info(opts)
|
|
97
|
+
data
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# Create operation tag
|
|
101
|
+
# Create a new operation tag associated with a specific service.
|
|
102
|
+
# @option opts [String] :service_id The unique identifier of the service. (required)
|
|
103
|
+
# @option opts [TagCreate] :tag_create
|
|
104
|
+
# @return [Array<(TagGet, Integer, Hash)>] TagGet data, response status code and response headers
|
|
105
|
+
def api_security_create_operation_tag_with_http_info(opts = {})
|
|
106
|
+
if @api_client.config.debugging
|
|
107
|
+
@api_client.config.logger.debug 'Calling API: ApisecurityOperationsApi.api_security_create_operation_tag ...'
|
|
108
|
+
end
|
|
109
|
+
# unbox the parameters from the hash
|
|
110
|
+
service_id = opts[:'service_id']
|
|
111
|
+
# verify the required parameter 'service_id' is set
|
|
112
|
+
if @api_client.config.client_side_validation && service_id.nil?
|
|
113
|
+
fail ArgumentError, "Missing the required parameter 'service_id' when calling ApisecurityOperationsApi.api_security_create_operation_tag"
|
|
114
|
+
end
|
|
115
|
+
# resource path
|
|
116
|
+
local_var_path = '/api-security/v1/services/{service_id}/tags'.sub('{' + 'service_id' + '}', CGI.escape(service_id.to_s))
|
|
117
|
+
|
|
118
|
+
# query parameters
|
|
119
|
+
query_params = opts[:query_params] || {}
|
|
120
|
+
|
|
121
|
+
# header parameters
|
|
122
|
+
header_params = opts[:header_params] || {}
|
|
123
|
+
# HTTP header 'Accept' (if needed)
|
|
124
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/problem+json'])
|
|
125
|
+
# HTTP header 'Content-Type'
|
|
126
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
127
|
+
if !content_type.nil?
|
|
128
|
+
header_params['Content-Type'] = content_type
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
# form parameters
|
|
132
|
+
form_params = opts[:form_params] || {}
|
|
133
|
+
|
|
134
|
+
# http body (model)
|
|
135
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'tag_create'])
|
|
136
|
+
|
|
137
|
+
# return_type
|
|
138
|
+
return_type = opts[:debug_return_type] || 'TagGet'
|
|
139
|
+
|
|
140
|
+
# auth_names
|
|
141
|
+
auth_names = opts[:debug_auth_names] || ['token']
|
|
142
|
+
|
|
143
|
+
new_options = opts.merge(
|
|
144
|
+
:operation => :"ApisecurityOperationsApi.api_security_create_operation_tag",
|
|
145
|
+
:header_params => header_params,
|
|
146
|
+
:query_params => query_params,
|
|
147
|
+
:form_params => form_params,
|
|
148
|
+
:body => post_body,
|
|
149
|
+
:auth_names => auth_names,
|
|
150
|
+
:return_type => return_type
|
|
151
|
+
)
|
|
152
|
+
|
|
153
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
154
|
+
if @api_client.config.debugging
|
|
155
|
+
@api_client.config.logger.debug "API called: ApisecurityOperationsApi#api_security_create_operation_tag\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
156
|
+
end
|
|
157
|
+
return data, status_code, headers
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
# Delete operation
|
|
161
|
+
# Delete an existing operation associated with a specific service.
|
|
162
|
+
# @option opts [String] :service_id The unique identifier of the service. (required)
|
|
163
|
+
# @option opts [String] :operation_id The unique identifier of the operation. (required)
|
|
164
|
+
# @return [nil]
|
|
165
|
+
def api_security_delete_operation(opts = {})
|
|
166
|
+
api_security_delete_operation_with_http_info(opts)
|
|
167
|
+
nil
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
# Delete operation
|
|
171
|
+
# Delete an existing operation associated with a specific service.
|
|
172
|
+
# @option opts [String] :service_id The unique identifier of the service. (required)
|
|
173
|
+
# @option opts [String] :operation_id The unique identifier of the operation. (required)
|
|
174
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
175
|
+
def api_security_delete_operation_with_http_info(opts = {})
|
|
176
|
+
if @api_client.config.debugging
|
|
177
|
+
@api_client.config.logger.debug 'Calling API: ApisecurityOperationsApi.api_security_delete_operation ...'
|
|
178
|
+
end
|
|
179
|
+
# unbox the parameters from the hash
|
|
180
|
+
service_id = opts[:'service_id']
|
|
181
|
+
operation_id = opts[:'operation_id']
|
|
182
|
+
# verify the required parameter 'service_id' is set
|
|
183
|
+
if @api_client.config.client_side_validation && service_id.nil?
|
|
184
|
+
fail ArgumentError, "Missing the required parameter 'service_id' when calling ApisecurityOperationsApi.api_security_delete_operation"
|
|
185
|
+
end
|
|
186
|
+
# verify the required parameter 'operation_id' is set
|
|
187
|
+
if @api_client.config.client_side_validation && operation_id.nil?
|
|
188
|
+
fail ArgumentError, "Missing the required parameter 'operation_id' when calling ApisecurityOperationsApi.api_security_delete_operation"
|
|
189
|
+
end
|
|
190
|
+
# resource path
|
|
191
|
+
local_var_path = '/api-security/v1/services/{service_id}/operations/{operation_id}'.sub('{' + 'service_id' + '}', CGI.escape(service_id.to_s)).sub('{' + 'operation_id' + '}', CGI.escape(operation_id.to_s))
|
|
192
|
+
|
|
193
|
+
# query parameters
|
|
194
|
+
query_params = opts[:query_params] || {}
|
|
195
|
+
|
|
196
|
+
# header parameters
|
|
197
|
+
header_params = opts[:header_params] || {}
|
|
198
|
+
# HTTP header 'Accept' (if needed)
|
|
199
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/problem+json'])
|
|
200
|
+
|
|
201
|
+
# form parameters
|
|
202
|
+
form_params = opts[:form_params] || {}
|
|
203
|
+
|
|
204
|
+
# http body (model)
|
|
205
|
+
post_body = opts[:debug_body]
|
|
206
|
+
|
|
207
|
+
# return_type
|
|
208
|
+
return_type = opts[:debug_return_type]
|
|
209
|
+
|
|
210
|
+
# auth_names
|
|
211
|
+
auth_names = opts[:debug_auth_names] || ['token']
|
|
212
|
+
|
|
213
|
+
new_options = opts.merge(
|
|
214
|
+
:operation => :"ApisecurityOperationsApi.api_security_delete_operation",
|
|
215
|
+
:header_params => header_params,
|
|
216
|
+
:query_params => query_params,
|
|
217
|
+
:form_params => form_params,
|
|
218
|
+
:body => post_body,
|
|
219
|
+
:auth_names => auth_names,
|
|
220
|
+
:return_type => return_type
|
|
221
|
+
)
|
|
222
|
+
|
|
223
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
224
|
+
if @api_client.config.debugging
|
|
225
|
+
@api_client.config.logger.debug "API called: ApisecurityOperationsApi#api_security_delete_operation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
226
|
+
end
|
|
227
|
+
return data, status_code, headers
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
# Delete operation tag
|
|
231
|
+
# Delete an existing operation tag.
|
|
232
|
+
# @option opts [String] :service_id The unique identifier of the service. (required)
|
|
233
|
+
# @option opts [String] :tag_id The unique identifier of the operation tag. (required)
|
|
234
|
+
# @return [nil]
|
|
235
|
+
def api_security_delete_operation_tag(opts = {})
|
|
236
|
+
api_security_delete_operation_tag_with_http_info(opts)
|
|
237
|
+
nil
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
# Delete operation tag
|
|
241
|
+
# Delete an existing operation tag.
|
|
242
|
+
# @option opts [String] :service_id The unique identifier of the service. (required)
|
|
243
|
+
# @option opts [String] :tag_id The unique identifier of the operation tag. (required)
|
|
244
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
245
|
+
def api_security_delete_operation_tag_with_http_info(opts = {})
|
|
246
|
+
if @api_client.config.debugging
|
|
247
|
+
@api_client.config.logger.debug 'Calling API: ApisecurityOperationsApi.api_security_delete_operation_tag ...'
|
|
248
|
+
end
|
|
249
|
+
# unbox the parameters from the hash
|
|
250
|
+
service_id = opts[:'service_id']
|
|
251
|
+
tag_id = opts[:'tag_id']
|
|
252
|
+
# verify the required parameter 'service_id' is set
|
|
253
|
+
if @api_client.config.client_side_validation && service_id.nil?
|
|
254
|
+
fail ArgumentError, "Missing the required parameter 'service_id' when calling ApisecurityOperationsApi.api_security_delete_operation_tag"
|
|
255
|
+
end
|
|
256
|
+
# verify the required parameter 'tag_id' is set
|
|
257
|
+
if @api_client.config.client_side_validation && tag_id.nil?
|
|
258
|
+
fail ArgumentError, "Missing the required parameter 'tag_id' when calling ApisecurityOperationsApi.api_security_delete_operation_tag"
|
|
259
|
+
end
|
|
260
|
+
# resource path
|
|
261
|
+
local_var_path = '/api-security/v1/services/{service_id}/tags/{tag_id}'.sub('{' + 'service_id' + '}', CGI.escape(service_id.to_s)).sub('{' + 'tag_id' + '}', CGI.escape(tag_id.to_s))
|
|
262
|
+
|
|
263
|
+
# query parameters
|
|
264
|
+
query_params = opts[:query_params] || {}
|
|
265
|
+
|
|
266
|
+
# header parameters
|
|
267
|
+
header_params = opts[:header_params] || {}
|
|
268
|
+
# HTTP header 'Accept' (if needed)
|
|
269
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/problem+json'])
|
|
270
|
+
|
|
271
|
+
# form parameters
|
|
272
|
+
form_params = opts[:form_params] || {}
|
|
273
|
+
|
|
274
|
+
# http body (model)
|
|
275
|
+
post_body = opts[:debug_body]
|
|
276
|
+
|
|
277
|
+
# return_type
|
|
278
|
+
return_type = opts[:debug_return_type]
|
|
279
|
+
|
|
280
|
+
# auth_names
|
|
281
|
+
auth_names = opts[:debug_auth_names] || ['token']
|
|
282
|
+
|
|
283
|
+
new_options = opts.merge(
|
|
284
|
+
:operation => :"ApisecurityOperationsApi.api_security_delete_operation_tag",
|
|
285
|
+
:header_params => header_params,
|
|
286
|
+
:query_params => query_params,
|
|
287
|
+
:form_params => form_params,
|
|
288
|
+
:body => post_body,
|
|
289
|
+
:auth_names => auth_names,
|
|
290
|
+
:return_type => return_type
|
|
291
|
+
)
|
|
292
|
+
|
|
293
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
294
|
+
if @api_client.config.debugging
|
|
295
|
+
@api_client.config.logger.debug "API called: ApisecurityOperationsApi#api_security_delete_operation_tag\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
296
|
+
end
|
|
297
|
+
return data, status_code, headers
|
|
298
|
+
end
|
|
299
|
+
|
|
300
|
+
# Retrieve operation
|
|
301
|
+
# Get a specific operation associated with a service.
|
|
302
|
+
# @option opts [String] :service_id The unique identifier of the service. (required)
|
|
303
|
+
# @option opts [String] :operation_id The unique identifier of the operation. (required)
|
|
304
|
+
# @return [OperationGet]
|
|
305
|
+
def api_security_get_operation(opts = {})
|
|
306
|
+
data, _status_code, _headers = api_security_get_operation_with_http_info(opts)
|
|
307
|
+
data
|
|
308
|
+
end
|
|
309
|
+
|
|
310
|
+
# Retrieve operation
|
|
311
|
+
# Get a specific operation associated with a service.
|
|
312
|
+
# @option opts [String] :service_id The unique identifier of the service. (required)
|
|
313
|
+
# @option opts [String] :operation_id The unique identifier of the operation. (required)
|
|
314
|
+
# @return [Array<(OperationGet, Integer, Hash)>] OperationGet data, response status code and response headers
|
|
315
|
+
def api_security_get_operation_with_http_info(opts = {})
|
|
316
|
+
if @api_client.config.debugging
|
|
317
|
+
@api_client.config.logger.debug 'Calling API: ApisecurityOperationsApi.api_security_get_operation ...'
|
|
318
|
+
end
|
|
319
|
+
# unbox the parameters from the hash
|
|
320
|
+
service_id = opts[:'service_id']
|
|
321
|
+
operation_id = opts[:'operation_id']
|
|
322
|
+
# verify the required parameter 'service_id' is set
|
|
323
|
+
if @api_client.config.client_side_validation && service_id.nil?
|
|
324
|
+
fail ArgumentError, "Missing the required parameter 'service_id' when calling ApisecurityOperationsApi.api_security_get_operation"
|
|
325
|
+
end
|
|
326
|
+
# verify the required parameter 'operation_id' is set
|
|
327
|
+
if @api_client.config.client_side_validation && operation_id.nil?
|
|
328
|
+
fail ArgumentError, "Missing the required parameter 'operation_id' when calling ApisecurityOperationsApi.api_security_get_operation"
|
|
329
|
+
end
|
|
330
|
+
# resource path
|
|
331
|
+
local_var_path = '/api-security/v1/services/{service_id}/operations/{operation_id}'.sub('{' + 'service_id' + '}', CGI.escape(service_id.to_s)).sub('{' + 'operation_id' + '}', CGI.escape(operation_id.to_s))
|
|
332
|
+
|
|
333
|
+
# query parameters
|
|
334
|
+
query_params = opts[:query_params] || {}
|
|
335
|
+
|
|
336
|
+
# header parameters
|
|
337
|
+
header_params = opts[:header_params] || {}
|
|
338
|
+
# HTTP header 'Accept' (if needed)
|
|
339
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/problem+json'])
|
|
340
|
+
|
|
341
|
+
# form parameters
|
|
342
|
+
form_params = opts[:form_params] || {}
|
|
343
|
+
|
|
344
|
+
# http body (model)
|
|
345
|
+
post_body = opts[:debug_body]
|
|
346
|
+
|
|
347
|
+
# return_type
|
|
348
|
+
return_type = opts[:debug_return_type] || 'OperationGet'
|
|
349
|
+
|
|
350
|
+
# auth_names
|
|
351
|
+
auth_names = opts[:debug_auth_names] || ['token']
|
|
352
|
+
|
|
353
|
+
new_options = opts.merge(
|
|
354
|
+
:operation => :"ApisecurityOperationsApi.api_security_get_operation",
|
|
355
|
+
:header_params => header_params,
|
|
356
|
+
:query_params => query_params,
|
|
357
|
+
:form_params => form_params,
|
|
358
|
+
:body => post_body,
|
|
359
|
+
:auth_names => auth_names,
|
|
360
|
+
:return_type => return_type
|
|
361
|
+
)
|
|
362
|
+
|
|
363
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
364
|
+
if @api_client.config.debugging
|
|
365
|
+
@api_client.config.logger.debug "API called: ApisecurityOperationsApi#api_security_get_operation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
366
|
+
end
|
|
367
|
+
return data, status_code, headers
|
|
368
|
+
end
|
|
369
|
+
|
|
370
|
+
# Retrieve operation tag
|
|
371
|
+
# Get a specific operation tag by its unique identifier.
|
|
372
|
+
# @option opts [String] :service_id The unique identifier of the service. (required)
|
|
373
|
+
# @option opts [String] :tag_id The unique identifier of the operation tag. (required)
|
|
374
|
+
# @return [TagGet]
|
|
375
|
+
def api_security_get_operation_tag(opts = {})
|
|
376
|
+
data, _status_code, _headers = api_security_get_operation_tag_with_http_info(opts)
|
|
377
|
+
data
|
|
378
|
+
end
|
|
379
|
+
|
|
380
|
+
# Retrieve operation tag
|
|
381
|
+
# Get a specific operation tag by its unique identifier.
|
|
382
|
+
# @option opts [String] :service_id The unique identifier of the service. (required)
|
|
383
|
+
# @option opts [String] :tag_id The unique identifier of the operation tag. (required)
|
|
384
|
+
# @return [Array<(TagGet, Integer, Hash)>] TagGet data, response status code and response headers
|
|
385
|
+
def api_security_get_operation_tag_with_http_info(opts = {})
|
|
386
|
+
if @api_client.config.debugging
|
|
387
|
+
@api_client.config.logger.debug 'Calling API: ApisecurityOperationsApi.api_security_get_operation_tag ...'
|
|
388
|
+
end
|
|
389
|
+
# unbox the parameters from the hash
|
|
390
|
+
service_id = opts[:'service_id']
|
|
391
|
+
tag_id = opts[:'tag_id']
|
|
392
|
+
# verify the required parameter 'service_id' is set
|
|
393
|
+
if @api_client.config.client_side_validation && service_id.nil?
|
|
394
|
+
fail ArgumentError, "Missing the required parameter 'service_id' when calling ApisecurityOperationsApi.api_security_get_operation_tag"
|
|
395
|
+
end
|
|
396
|
+
# verify the required parameter 'tag_id' is set
|
|
397
|
+
if @api_client.config.client_side_validation && tag_id.nil?
|
|
398
|
+
fail ArgumentError, "Missing the required parameter 'tag_id' when calling ApisecurityOperationsApi.api_security_get_operation_tag"
|
|
399
|
+
end
|
|
400
|
+
# resource path
|
|
401
|
+
local_var_path = '/api-security/v1/services/{service_id}/tags/{tag_id}'.sub('{' + 'service_id' + '}', CGI.escape(service_id.to_s)).sub('{' + 'tag_id' + '}', CGI.escape(tag_id.to_s))
|
|
402
|
+
|
|
403
|
+
# query parameters
|
|
404
|
+
query_params = opts[:query_params] || {}
|
|
405
|
+
|
|
406
|
+
# header parameters
|
|
407
|
+
header_params = opts[:header_params] || {}
|
|
408
|
+
# HTTP header 'Accept' (if needed)
|
|
409
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/problem+json'])
|
|
410
|
+
|
|
411
|
+
# form parameters
|
|
412
|
+
form_params = opts[:form_params] || {}
|
|
413
|
+
|
|
414
|
+
# http body (model)
|
|
415
|
+
post_body = opts[:debug_body]
|
|
416
|
+
|
|
417
|
+
# return_type
|
|
418
|
+
return_type = opts[:debug_return_type] || 'TagGet'
|
|
419
|
+
|
|
420
|
+
# auth_names
|
|
421
|
+
auth_names = opts[:debug_auth_names] || ['token']
|
|
422
|
+
|
|
423
|
+
new_options = opts.merge(
|
|
424
|
+
:operation => :"ApisecurityOperationsApi.api_security_get_operation_tag",
|
|
425
|
+
:header_params => header_params,
|
|
426
|
+
:query_params => query_params,
|
|
427
|
+
:form_params => form_params,
|
|
428
|
+
:body => post_body,
|
|
429
|
+
:auth_names => auth_names,
|
|
430
|
+
:return_type => return_type
|
|
431
|
+
)
|
|
432
|
+
|
|
433
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
434
|
+
if @api_client.config.debugging
|
|
435
|
+
@api_client.config.logger.debug "API called: ApisecurityOperationsApi#api_security_get_operation_tag\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
436
|
+
end
|
|
437
|
+
return data, status_code, headers
|
|
438
|
+
end
|
|
439
|
+
|
|
440
|
+
# List discovered operations
|
|
441
|
+
# List all discovered operations associated with a specific service. Optionally filter operations by status.
|
|
442
|
+
# @option opts [String] :service_id The unique identifier of the service. (required)
|
|
443
|
+
# @option opts [String] :status Filter operations by status. Only operations with this status will be returned.
|
|
444
|
+
# @option opts [Integer] :limit The maximum number of operations to return per page. (default to 100)
|
|
445
|
+
# @option opts [Integer] :page The page number to return. (default to 0)
|
|
446
|
+
# @return [InlineResponse2001]
|
|
447
|
+
def api_security_list_discovered_operations(opts = {})
|
|
448
|
+
data, _status_code, _headers = api_security_list_discovered_operations_with_http_info(opts)
|
|
449
|
+
data
|
|
450
|
+
end
|
|
451
|
+
|
|
452
|
+
# List discovered operations
|
|
453
|
+
# List all discovered operations associated with a specific service. Optionally filter operations by status.
|
|
454
|
+
# @option opts [String] :service_id The unique identifier of the service. (required)
|
|
455
|
+
# @option opts [String] :status Filter operations by status. Only operations with this status will be returned.
|
|
456
|
+
# @option opts [Integer] :limit The maximum number of operations to return per page. (default to 100)
|
|
457
|
+
# @option opts [Integer] :page The page number to return. (default to 0)
|
|
458
|
+
# @return [Array<(InlineResponse2001, Integer, Hash)>] InlineResponse2001 data, response status code and response headers
|
|
459
|
+
def api_security_list_discovered_operations_with_http_info(opts = {})
|
|
460
|
+
if @api_client.config.debugging
|
|
461
|
+
@api_client.config.logger.debug 'Calling API: ApisecurityOperationsApi.api_security_list_discovered_operations ...'
|
|
462
|
+
end
|
|
463
|
+
# unbox the parameters from the hash
|
|
464
|
+
service_id = opts[:'service_id']
|
|
465
|
+
# verify the required parameter 'service_id' is set
|
|
466
|
+
if @api_client.config.client_side_validation && service_id.nil?
|
|
467
|
+
fail ArgumentError, "Missing the required parameter 'service_id' when calling ApisecurityOperationsApi.api_security_list_discovered_operations"
|
|
468
|
+
end
|
|
469
|
+
allowable_values = ["DISCOVERED", "SAVED", "IGNORED"]
|
|
470
|
+
if @api_client.config.client_side_validation && opts[:'status'] && !allowable_values.include?(opts[:'status'])
|
|
471
|
+
fail ArgumentError, "invalid value for \"status\", must be one of #{allowable_values}"
|
|
472
|
+
end
|
|
473
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000
|
|
474
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ApisecurityOperationsApi.api_security_list_discovered_operations, must be smaller than or equal to 1000.'
|
|
475
|
+
end
|
|
476
|
+
|
|
477
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
478
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ApisecurityOperationsApi.api_security_list_discovered_operations, must be greater than or equal to 1.'
|
|
479
|
+
end
|
|
480
|
+
|
|
481
|
+
if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 0
|
|
482
|
+
fail ArgumentError, 'invalid value for "opts[:"page"]" when calling ApisecurityOperationsApi.api_security_list_discovered_operations, must be greater than or equal to 0.'
|
|
483
|
+
end
|
|
484
|
+
|
|
485
|
+
# resource path
|
|
486
|
+
local_var_path = '/api-security/v1/services/{service_id}/discovered-operations'.sub('{' + 'service_id' + '}', CGI.escape(service_id.to_s))
|
|
487
|
+
|
|
488
|
+
# query parameters
|
|
489
|
+
query_params = opts[:query_params] || {}
|
|
490
|
+
query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
|
|
491
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
492
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
493
|
+
|
|
494
|
+
# header parameters
|
|
495
|
+
header_params = opts[:header_params] || {}
|
|
496
|
+
# HTTP header 'Accept' (if needed)
|
|
497
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/problem+json'])
|
|
498
|
+
|
|
499
|
+
# form parameters
|
|
500
|
+
form_params = opts[:form_params] || {}
|
|
501
|
+
|
|
502
|
+
# http body (model)
|
|
503
|
+
post_body = opts[:debug_body]
|
|
504
|
+
|
|
505
|
+
# return_type
|
|
506
|
+
return_type = opts[:debug_return_type] || 'InlineResponse2001'
|
|
507
|
+
|
|
508
|
+
# auth_names
|
|
509
|
+
auth_names = opts[:debug_auth_names] || ['token']
|
|
510
|
+
|
|
511
|
+
new_options = opts.merge(
|
|
512
|
+
:operation => :"ApisecurityOperationsApi.api_security_list_discovered_operations",
|
|
513
|
+
:header_params => header_params,
|
|
514
|
+
:query_params => query_params,
|
|
515
|
+
:form_params => form_params,
|
|
516
|
+
:body => post_body,
|
|
517
|
+
:auth_names => auth_names,
|
|
518
|
+
:return_type => return_type
|
|
519
|
+
)
|
|
520
|
+
|
|
521
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
522
|
+
if @api_client.config.debugging
|
|
523
|
+
@api_client.config.logger.debug "API called: ApisecurityOperationsApi#api_security_list_discovered_operations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
524
|
+
end
|
|
525
|
+
return data, status_code, headers
|
|
526
|
+
end
|
|
527
|
+
|
|
528
|
+
# List operation tags
|
|
529
|
+
# List all operation tags associated with a specific service.
|
|
530
|
+
# @option opts [String] :service_id The unique identifier of the service. (required)
|
|
531
|
+
# @return [InlineResponse2003]
|
|
532
|
+
def api_security_list_operation_tags(opts = {})
|
|
533
|
+
data, _status_code, _headers = api_security_list_operation_tags_with_http_info(opts)
|
|
534
|
+
data
|
|
535
|
+
end
|
|
536
|
+
|
|
537
|
+
# List operation tags
|
|
538
|
+
# List all operation tags associated with a specific service.
|
|
539
|
+
# @option opts [String] :service_id The unique identifier of the service. (required)
|
|
540
|
+
# @return [Array<(InlineResponse2003, Integer, Hash)>] InlineResponse2003 data, response status code and response headers
|
|
541
|
+
def api_security_list_operation_tags_with_http_info(opts = {})
|
|
542
|
+
if @api_client.config.debugging
|
|
543
|
+
@api_client.config.logger.debug 'Calling API: ApisecurityOperationsApi.api_security_list_operation_tags ...'
|
|
544
|
+
end
|
|
545
|
+
# unbox the parameters from the hash
|
|
546
|
+
service_id = opts[:'service_id']
|
|
547
|
+
# verify the required parameter 'service_id' is set
|
|
548
|
+
if @api_client.config.client_side_validation && service_id.nil?
|
|
549
|
+
fail ArgumentError, "Missing the required parameter 'service_id' when calling ApisecurityOperationsApi.api_security_list_operation_tags"
|
|
550
|
+
end
|
|
551
|
+
# resource path
|
|
552
|
+
local_var_path = '/api-security/v1/services/{service_id}/tags'.sub('{' + 'service_id' + '}', CGI.escape(service_id.to_s))
|
|
553
|
+
|
|
554
|
+
# query parameters
|
|
555
|
+
query_params = opts[:query_params] || {}
|
|
556
|
+
|
|
557
|
+
# header parameters
|
|
558
|
+
header_params = opts[:header_params] || {}
|
|
559
|
+
# HTTP header 'Accept' (if needed)
|
|
560
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/problem+json'])
|
|
561
|
+
|
|
562
|
+
# form parameters
|
|
563
|
+
form_params = opts[:form_params] || {}
|
|
564
|
+
|
|
565
|
+
# http body (model)
|
|
566
|
+
post_body = opts[:debug_body]
|
|
567
|
+
|
|
568
|
+
# return_type
|
|
569
|
+
return_type = opts[:debug_return_type] || 'InlineResponse2003'
|
|
570
|
+
|
|
571
|
+
# auth_names
|
|
572
|
+
auth_names = opts[:debug_auth_names] || ['token']
|
|
573
|
+
|
|
574
|
+
new_options = opts.merge(
|
|
575
|
+
:operation => :"ApisecurityOperationsApi.api_security_list_operation_tags",
|
|
576
|
+
:header_params => header_params,
|
|
577
|
+
:query_params => query_params,
|
|
578
|
+
:form_params => form_params,
|
|
579
|
+
:body => post_body,
|
|
580
|
+
:auth_names => auth_names,
|
|
581
|
+
:return_type => return_type
|
|
582
|
+
)
|
|
583
|
+
|
|
584
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
585
|
+
if @api_client.config.debugging
|
|
586
|
+
@api_client.config.logger.debug "API called: ApisecurityOperationsApi#api_security_list_operation_tags\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
587
|
+
end
|
|
588
|
+
return data, status_code, headers
|
|
589
|
+
end
|
|
590
|
+
|
|
591
|
+
# List operations
|
|
592
|
+
# List all operations associated with a specific service. Optionally filter operations by tag ID.
|
|
593
|
+
# @option opts [String] :service_id The unique identifier of the service. (required)
|
|
594
|
+
# @option opts [String] :tag_id Filter operations by operation tag ID. Only operations associated with this operation tag will be returned.
|
|
595
|
+
# @option opts [Integer] :limit The maximum number of operations to return per page. (default to 100)
|
|
596
|
+
# @option opts [Integer] :page The page number to return. (default to 0)
|
|
597
|
+
# @return [InlineResponse2002]
|
|
598
|
+
def api_security_list_operations(opts = {})
|
|
599
|
+
data, _status_code, _headers = api_security_list_operations_with_http_info(opts)
|
|
600
|
+
data
|
|
601
|
+
end
|
|
602
|
+
|
|
603
|
+
# List operations
|
|
604
|
+
# List all operations associated with a specific service. Optionally filter operations by tag ID.
|
|
605
|
+
# @option opts [String] :service_id The unique identifier of the service. (required)
|
|
606
|
+
# @option opts [String] :tag_id Filter operations by operation tag ID. Only operations associated with this operation tag will be returned.
|
|
607
|
+
# @option opts [Integer] :limit The maximum number of operations to return per page. (default to 100)
|
|
608
|
+
# @option opts [Integer] :page The page number to return. (default to 0)
|
|
609
|
+
# @return [Array<(InlineResponse2002, Integer, Hash)>] InlineResponse2002 data, response status code and response headers
|
|
610
|
+
def api_security_list_operations_with_http_info(opts = {})
|
|
611
|
+
if @api_client.config.debugging
|
|
612
|
+
@api_client.config.logger.debug 'Calling API: ApisecurityOperationsApi.api_security_list_operations ...'
|
|
613
|
+
end
|
|
614
|
+
# unbox the parameters from the hash
|
|
615
|
+
service_id = opts[:'service_id']
|
|
616
|
+
# verify the required parameter 'service_id' is set
|
|
617
|
+
if @api_client.config.client_side_validation && service_id.nil?
|
|
618
|
+
fail ArgumentError, "Missing the required parameter 'service_id' when calling ApisecurityOperationsApi.api_security_list_operations"
|
|
619
|
+
end
|
|
620
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000
|
|
621
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ApisecurityOperationsApi.api_security_list_operations, must be smaller than or equal to 1000.'
|
|
622
|
+
end
|
|
623
|
+
|
|
624
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
625
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ApisecurityOperationsApi.api_security_list_operations, must be greater than or equal to 1.'
|
|
626
|
+
end
|
|
627
|
+
|
|
628
|
+
if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 0
|
|
629
|
+
fail ArgumentError, 'invalid value for "opts[:"page"]" when calling ApisecurityOperationsApi.api_security_list_operations, must be greater than or equal to 0.'
|
|
630
|
+
end
|
|
631
|
+
|
|
632
|
+
# resource path
|
|
633
|
+
local_var_path = '/api-security/v1/services/{service_id}/operations'.sub('{' + 'service_id' + '}', CGI.escape(service_id.to_s))
|
|
634
|
+
|
|
635
|
+
# query parameters
|
|
636
|
+
query_params = opts[:query_params] || {}
|
|
637
|
+
query_params[:'tag_id'] = opts[:'tag_id'] if !opts[:'tag_id'].nil?
|
|
638
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
639
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
640
|
+
|
|
641
|
+
# header parameters
|
|
642
|
+
header_params = opts[:header_params] || {}
|
|
643
|
+
# HTTP header 'Accept' (if needed)
|
|
644
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/problem+json'])
|
|
645
|
+
|
|
646
|
+
# form parameters
|
|
647
|
+
form_params = opts[:form_params] || {}
|
|
648
|
+
|
|
649
|
+
# http body (model)
|
|
650
|
+
post_body = opts[:debug_body]
|
|
651
|
+
|
|
652
|
+
# return_type
|
|
653
|
+
return_type = opts[:debug_return_type] || 'InlineResponse2002'
|
|
654
|
+
|
|
655
|
+
# auth_names
|
|
656
|
+
auth_names = opts[:debug_auth_names] || ['token']
|
|
657
|
+
|
|
658
|
+
new_options = opts.merge(
|
|
659
|
+
:operation => :"ApisecurityOperationsApi.api_security_list_operations",
|
|
660
|
+
:header_params => header_params,
|
|
661
|
+
:query_params => query_params,
|
|
662
|
+
:form_params => form_params,
|
|
663
|
+
:body => post_body,
|
|
664
|
+
:auth_names => auth_names,
|
|
665
|
+
:return_type => return_type
|
|
666
|
+
)
|
|
667
|
+
|
|
668
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
669
|
+
if @api_client.config.debugging
|
|
670
|
+
@api_client.config.logger.debug "API called: ApisecurityOperationsApi#api_security_list_operations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
671
|
+
end
|
|
672
|
+
return data, status_code, headers
|
|
673
|
+
end
|
|
674
|
+
|
|
675
|
+
# Update operation
|
|
676
|
+
# Partially update an existing operation associated with a specific service.
|
|
677
|
+
# @option opts [String] :service_id The unique identifier of the service. (required)
|
|
678
|
+
# @option opts [String] :operation_id The unique identifier of the operation. (required)
|
|
679
|
+
# @option opts [OperationUpdate] :operation_update
|
|
680
|
+
# @return [OperationGet]
|
|
681
|
+
def api_security_update_operation(opts = {})
|
|
682
|
+
data, _status_code, _headers = api_security_update_operation_with_http_info(opts)
|
|
683
|
+
data
|
|
684
|
+
end
|
|
685
|
+
|
|
686
|
+
# Update operation
|
|
687
|
+
# Partially update an existing operation associated with a specific service.
|
|
688
|
+
# @option opts [String] :service_id The unique identifier of the service. (required)
|
|
689
|
+
# @option opts [String] :operation_id The unique identifier of the operation. (required)
|
|
690
|
+
# @option opts [OperationUpdate] :operation_update
|
|
691
|
+
# @return [Array<(OperationGet, Integer, Hash)>] OperationGet data, response status code and response headers
|
|
692
|
+
def api_security_update_operation_with_http_info(opts = {})
|
|
693
|
+
if @api_client.config.debugging
|
|
694
|
+
@api_client.config.logger.debug 'Calling API: ApisecurityOperationsApi.api_security_update_operation ...'
|
|
695
|
+
end
|
|
696
|
+
# unbox the parameters from the hash
|
|
697
|
+
service_id = opts[:'service_id']
|
|
698
|
+
operation_id = opts[:'operation_id']
|
|
699
|
+
# verify the required parameter 'service_id' is set
|
|
700
|
+
if @api_client.config.client_side_validation && service_id.nil?
|
|
701
|
+
fail ArgumentError, "Missing the required parameter 'service_id' when calling ApisecurityOperationsApi.api_security_update_operation"
|
|
702
|
+
end
|
|
703
|
+
# verify the required parameter 'operation_id' is set
|
|
704
|
+
if @api_client.config.client_side_validation && operation_id.nil?
|
|
705
|
+
fail ArgumentError, "Missing the required parameter 'operation_id' when calling ApisecurityOperationsApi.api_security_update_operation"
|
|
706
|
+
end
|
|
707
|
+
# resource path
|
|
708
|
+
local_var_path = '/api-security/v1/services/{service_id}/operations/{operation_id}'.sub('{' + 'service_id' + '}', CGI.escape(service_id.to_s)).sub('{' + 'operation_id' + '}', CGI.escape(operation_id.to_s))
|
|
709
|
+
|
|
710
|
+
# query parameters
|
|
711
|
+
query_params = opts[:query_params] || {}
|
|
712
|
+
|
|
713
|
+
# header parameters
|
|
714
|
+
header_params = opts[:header_params] || {}
|
|
715
|
+
# HTTP header 'Accept' (if needed)
|
|
716
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/problem+json'])
|
|
717
|
+
# HTTP header 'Content-Type'
|
|
718
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
719
|
+
if !content_type.nil?
|
|
720
|
+
header_params['Content-Type'] = content_type
|
|
721
|
+
end
|
|
722
|
+
|
|
723
|
+
# form parameters
|
|
724
|
+
form_params = opts[:form_params] || {}
|
|
725
|
+
|
|
726
|
+
# http body (model)
|
|
727
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'operation_update'])
|
|
728
|
+
|
|
729
|
+
# return_type
|
|
730
|
+
return_type = opts[:debug_return_type] || 'OperationGet'
|
|
731
|
+
|
|
732
|
+
# auth_names
|
|
733
|
+
auth_names = opts[:debug_auth_names] || ['token']
|
|
734
|
+
|
|
735
|
+
new_options = opts.merge(
|
|
736
|
+
:operation => :"ApisecurityOperationsApi.api_security_update_operation",
|
|
737
|
+
:header_params => header_params,
|
|
738
|
+
:query_params => query_params,
|
|
739
|
+
:form_params => form_params,
|
|
740
|
+
:body => post_body,
|
|
741
|
+
:auth_names => auth_names,
|
|
742
|
+
:return_type => return_type
|
|
743
|
+
)
|
|
744
|
+
|
|
745
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
746
|
+
if @api_client.config.debugging
|
|
747
|
+
@api_client.config.logger.debug "API called: ApisecurityOperationsApi#api_security_update_operation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
748
|
+
end
|
|
749
|
+
return data, status_code, headers
|
|
750
|
+
end
|
|
751
|
+
|
|
752
|
+
# Update operation tag
|
|
753
|
+
# Partially update an existing operation tag.
|
|
754
|
+
# @option opts [String] :service_id The unique identifier of the service. (required)
|
|
755
|
+
# @option opts [String] :tag_id The unique identifier of the operation tag. (required)
|
|
756
|
+
# @option opts [TagBase] :body
|
|
757
|
+
# @return [TagGet]
|
|
758
|
+
def api_security_update_operation_tag(opts = {})
|
|
759
|
+
data, _status_code, _headers = api_security_update_operation_tag_with_http_info(opts)
|
|
760
|
+
data
|
|
761
|
+
end
|
|
762
|
+
|
|
763
|
+
# Update operation tag
|
|
764
|
+
# Partially update an existing operation tag.
|
|
765
|
+
# @option opts [String] :service_id The unique identifier of the service. (required)
|
|
766
|
+
# @option opts [String] :tag_id The unique identifier of the operation tag. (required)
|
|
767
|
+
# @option opts [TagBase] :body
|
|
768
|
+
# @return [Array<(TagGet, Integer, Hash)>] TagGet data, response status code and response headers
|
|
769
|
+
def api_security_update_operation_tag_with_http_info(opts = {})
|
|
770
|
+
if @api_client.config.debugging
|
|
771
|
+
@api_client.config.logger.debug 'Calling API: ApisecurityOperationsApi.api_security_update_operation_tag ...'
|
|
772
|
+
end
|
|
773
|
+
# unbox the parameters from the hash
|
|
774
|
+
service_id = opts[:'service_id']
|
|
775
|
+
tag_id = opts[:'tag_id']
|
|
776
|
+
# verify the required parameter 'service_id' is set
|
|
777
|
+
if @api_client.config.client_side_validation && service_id.nil?
|
|
778
|
+
fail ArgumentError, "Missing the required parameter 'service_id' when calling ApisecurityOperationsApi.api_security_update_operation_tag"
|
|
779
|
+
end
|
|
780
|
+
# verify the required parameter 'tag_id' is set
|
|
781
|
+
if @api_client.config.client_side_validation && tag_id.nil?
|
|
782
|
+
fail ArgumentError, "Missing the required parameter 'tag_id' when calling ApisecurityOperationsApi.api_security_update_operation_tag"
|
|
783
|
+
end
|
|
784
|
+
# resource path
|
|
785
|
+
local_var_path = '/api-security/v1/services/{service_id}/tags/{tag_id}'.sub('{' + 'service_id' + '}', CGI.escape(service_id.to_s)).sub('{' + 'tag_id' + '}', CGI.escape(tag_id.to_s))
|
|
786
|
+
|
|
787
|
+
# query parameters
|
|
788
|
+
query_params = opts[:query_params] || {}
|
|
789
|
+
|
|
790
|
+
# header parameters
|
|
791
|
+
header_params = opts[:header_params] || {}
|
|
792
|
+
# HTTP header 'Accept' (if needed)
|
|
793
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/problem+json'])
|
|
794
|
+
# HTTP header 'Content-Type'
|
|
795
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
796
|
+
if !content_type.nil?
|
|
797
|
+
header_params['Content-Type'] = content_type
|
|
798
|
+
end
|
|
799
|
+
|
|
800
|
+
# form parameters
|
|
801
|
+
form_params = opts[:form_params] || {}
|
|
802
|
+
|
|
803
|
+
# http body (model)
|
|
804
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
|
|
805
|
+
|
|
806
|
+
# return_type
|
|
807
|
+
return_type = opts[:debug_return_type] || 'TagGet'
|
|
808
|
+
|
|
809
|
+
# auth_names
|
|
810
|
+
auth_names = opts[:debug_auth_names] || ['token']
|
|
811
|
+
|
|
812
|
+
new_options = opts.merge(
|
|
813
|
+
:operation => :"ApisecurityOperationsApi.api_security_update_operation_tag",
|
|
814
|
+
:header_params => header_params,
|
|
815
|
+
:query_params => query_params,
|
|
816
|
+
:form_params => form_params,
|
|
817
|
+
:body => post_body,
|
|
818
|
+
:auth_names => auth_names,
|
|
819
|
+
:return_type => return_type
|
|
820
|
+
)
|
|
821
|
+
|
|
822
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
823
|
+
if @api_client.config.debugging
|
|
824
|
+
@api_client.config.logger.debug "API called: ApisecurityOperationsApi#api_security_update_operation_tag\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
825
|
+
end
|
|
826
|
+
return data, status_code, headers
|
|
827
|
+
end
|
|
828
|
+
end
|
|
829
|
+
end
|