fastly 5.3.0 → 6.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +62 -0
- data/Gemfile.lock +1 -1
- data/README.md +86 -63
- data/docs/AclEntry.md +1 -1
- data/docs/AclEntryApi.md +176 -0
- data/docs/AclEntryResponse.md +1 -1
- data/docs/ApexRedirectApi.md +56 -0
- data/docs/Batch.md +12 -0
- data/docs/BatchErrors.md +13 -0
- data/docs/BulkUpdateAclEntry.md +1 -1
- data/docs/ClientKey.md +12 -0
- data/docs/ContactApi.md +50 -0
- data/docs/Content.md +2 -2
- data/docs/ContentApi.md +52 -0
- data/docs/DirectorApi.md +42 -0
- data/docs/DomainInspector.md +12 -0
- data/docs/DomainInspectorEntry.md +11 -0
- data/docs/DomainInspectorEntryDimensions.md +12 -0
- data/docs/DomainInspectorHistoricalApi.md +72 -0
- data/docs/DomainInspectorMeasurements.md +71 -0
- data/docs/DomainInspectorRealtimeApi.md +132 -0
- data/docs/DomainInspectorRealtimeEntry.md +12 -0
- data/docs/EventAttributes.md +1 -1
- data/docs/{EventsResponseAllOf.md → EventData.md} +1 -1
- data/docs/HistoricalDomains.md +13 -0
- data/docs/HistoricalDomainsData.md +11 -0
- data/docs/HistoricalDomainsMeta.md +18 -0
- data/docs/HistoricalDomainsMetaFilters.md +12 -0
- data/docs/HistoricalDomainsResponse.md +13 -0
- data/docs/HistoricalDomainsResponseAllOf.md +10 -0
- data/docs/{HistoricalFieldResultsAttributesAllOf.md → HistoricalFieldResultsAttributesAdditional.md} +1 -1
- data/docs/HistoricalOriginsResponse.md +13 -0
- data/docs/HistoricalOriginsResponseAllOf.md +10 -0
- data/docs/IamRolesApi.md +157 -0
- data/docs/IamServiceGroupsApi.md +157 -0
- data/docs/IamUserGroupsApi.md +315 -0
- data/docs/InlineResponse2005.md +11 -0
- data/docs/InlineResponse2006.md +11 -0
- data/docs/InlineResponse2007.md +10 -0
- data/docs/InlineResponse400.md +10 -0
- data/docs/LegacyWafConfigurationSet.md +11 -0
- data/docs/LegacyWafConfigurationSetsApi.md +125 -0
- data/docs/LegacyWafFirewall.md +18 -0
- data/docs/LegacyWafFirewallApi.md +352 -0
- data/docs/LegacyWafOwasp.md +38 -0
- data/docs/LegacyWafOwaspApi.md +138 -0
- data/docs/LegacyWafRule.md +14 -0
- data/docs/LegacyWafRuleApi.md +184 -0
- data/docs/LegacyWafRuleStatus.md +12 -0
- data/docs/LegacyWafRuleStatusApi.md +202 -0
- data/docs/LegacyWafRuleset.md +11 -0
- data/docs/LegacyWafRulesetApi.md +136 -0
- data/docs/LegacyWafTag.md +10 -0
- data/docs/LegacyWafTagApi.md +58 -0
- data/docs/LegacyWafUpdateStatus.md +15 -0
- data/docs/LegacyWafUpdateStatusApi.md +102 -0
- data/docs/LoggingKafkaApi.md +42 -0
- data/docs/LoggingKinesisApi.md +42 -0
- data/docs/OriginInspector.md +12 -0
- data/docs/OriginInspectorDimensions.md +12 -0
- data/docs/OriginInspectorEntry.md +11 -0
- data/docs/OriginInspectorHistorical.md +13 -0
- data/docs/OriginInspectorHistoricalApi.md +72 -0
- data/docs/OriginInspectorHistoricalData.md +11 -0
- data/docs/OriginInspectorHistoricalMeta.md +18 -0
- data/docs/OriginInspectorHistoricalMetaFilters.md +12 -0
- data/docs/OriginInspectorMeasurements.md +161 -0
- data/docs/OriginInspectorRealtimeApi.md +132 -0
- data/docs/OriginInspectorRealtimeEntry.md +12 -0
- data/docs/OriginInspectorRealtimeEntryRecorded.md +9 -0
- data/docs/OriginInspectorSubsequentRequestTimestamp.md +9 -0
- data/docs/OriginInspectorValues.md +161 -0
- data/docs/PaginationCursorMeta.md +11 -0
- data/docs/ReadOnlyServiceId.md +9 -0
- data/docs/ReadOnlyVersion.md +9 -0
- data/docs/RealtimeEntry.md +2 -2
- data/docs/RealtimeEntryAggregated.md +227 -0
- data/docs/RealtimeEntryRecorded.md +9 -0
- data/docs/RealtimeMeasurements.md +1 -1
- data/docs/RecordedTimestamp.md +9 -0
- data/docs/RequestSettingsApi.md +40 -0
- data/docs/ResponseObjectApi.md +82 -0
- data/docs/SchemasSnippetResponse.md +1 -1
- data/docs/Secret.md +12 -0
- data/docs/SecretResponse.md +13 -0
- data/docs/SecretStore.md +10 -0
- data/docs/SecretStoreApi.md +233 -0
- data/docs/SecretStoreItemApi.md +255 -0
- data/docs/SecretStoreResponse.md +12 -0
- data/docs/ServiceAuthorizationsApi.md +76 -0
- data/docs/SigningKey.md +10 -0
- data/docs/Snippet.md +1 -1
- data/docs/SnippetApi.md +46 -4
- data/docs/SnippetResponse.md +1 -1
- data/docs/SubsequentRequestTimestamp.md +9 -0
- data/docs/SudoApi.md +52 -0
- data/docs/SudoGenericTokenError.md +10 -0
- data/docs/SudoRequest.md +12 -0
- data/docs/SudoResponse.md +10 -0
- data/docs/TokensAdditionalProps.md +9 -0
- data/docs/TokensApi.md +70 -0
- data/docs/ValidatorResult.md +1 -5
- data/docs/ValidatorResultData.md +12 -0
- data/docs/ValidatorResultDataAttributes.md +14 -0
- data/docs/{ValidatorResultMessages.md → ValidatorResultDataAttributesMessages.md} +2 -2
- data/docs/Values.md +71 -0
- data/docs/VclApi.md +8 -6
- data/docs/VclSyntaxHighlightingResponse.md +10 -0
- data/docs/WafActiveRulesApi.md +41 -0
- data/lib/fastly/api/acl_entry_api.rb +332 -0
- data/lib/fastly/api/apex_redirect_api.rb +111 -0
- data/lib/fastly/api/contact_api.rb +90 -0
- data/lib/fastly/api/content_api.rb +79 -0
- data/lib/fastly/api/director_api.rb +82 -0
- data/lib/fastly/api/domain_inspector_historical_api.rb +125 -0
- data/lib/fastly/api/domain_inspector_realtime_api.rb +223 -0
- data/lib/fastly/api/iam_roles_api.rb +271 -0
- data/lib/fastly/api/iam_service_groups_api.rb +271 -0
- data/lib/fastly/api/iam_user_groups_api.rb +547 -0
- data/lib/fastly/api/legacy_waf_configuration_sets_api.rb +209 -0
- data/lib/fastly/api/legacy_waf_firewall_api.rb +627 -0
- data/lib/fastly/api/legacy_waf_owasp_api.rb +244 -0
- data/lib/fastly/api/legacy_waf_rule_api.rb +307 -0
- data/lib/fastly/api/legacy_waf_rule_status_api.rb +366 -0
- data/lib/fastly/api/legacy_waf_ruleset_api.rb +237 -0
- data/lib/fastly/api/legacy_waf_tag_api.rb +96 -0
- data/lib/fastly/api/legacy_waf_update_status_api.rb +184 -0
- data/lib/fastly/api/logging_kafka_api.rb +82 -0
- data/lib/fastly/api/logging_kinesis_api.rb +82 -0
- data/lib/fastly/api/origin_inspector_historical_api.rb +125 -0
- data/lib/fastly/api/origin_inspector_realtime_api.rb +223 -0
- data/lib/fastly/api/request_settings_api.rb +75 -0
- data/lib/fastly/api/response_object_api.rb +157 -0
- data/lib/fastly/api/secret_store_api.rb +381 -0
- data/lib/fastly/api/secret_store_item_api.rb +437 -0
- data/lib/fastly/api/service_authorizations_api.rb +126 -0
- data/lib/fastly/api/snippet_api.rb +88 -6
- data/lib/fastly/api/sudo_api.rb +83 -0
- data/lib/fastly/api/tokens_api.rb +122 -0
- data/lib/fastly/api/vcl_api.rb +10 -10
- data/lib/fastly/api/waf_active_rules_api.rb +75 -0
- data/lib/fastly/configuration.rb +504 -0
- data/lib/fastly/models/acl_entry.rb +1 -1
- data/lib/fastly/models/acl_entry_response.rb +1 -1
- data/lib/fastly/models/batch.rb +239 -0
- data/lib/fastly/models/batch_errors.rb +247 -0
- data/lib/fastly/models/bulk_update_acl_entry.rb +1 -1
- data/lib/fastly/models/client_key.rb +239 -0
- data/lib/fastly/models/content.rb +8 -4
- data/lib/fastly/models/domain.rb +1 -0
- data/lib/fastly/models/domain_inspector.rb +238 -0
- data/lib/fastly/models/domain_inspector_entry.rb +228 -0
- data/lib/fastly/models/domain_inspector_entry_dimensions.rb +238 -0
- data/lib/fastly/models/domain_inspector_measurements.rb +828 -0
- data/lib/fastly/models/domain_inspector_realtime_entry.rb +241 -0
- data/lib/fastly/models/event_attributes.rb +4 -2
- data/lib/fastly/models/{events_response_all_of.rb → event_data.rb} +3 -3
- data/lib/fastly/models/events_response.rb +1 -1
- data/lib/fastly/models/historical_domains.rb +249 -0
- data/lib/fastly/models/historical_domains_data.rb +228 -0
- data/lib/fastly/models/historical_domains_meta.rb +297 -0
- data/lib/fastly/models/historical_domains_meta_filters.rb +235 -0
- data/lib/fastly/models/historical_domains_response.rb +257 -0
- data/lib/fastly/models/historical_domains_response_all_of.rb +219 -0
- data/lib/fastly/models/historical_field_results_attributes.rb +1 -1
- data/lib/fastly/models/{historical_field_results_attributes_all_of.rb → historical_field_results_attributes_additional.rb} +3 -3
- data/lib/fastly/models/historical_origins_response.rb +257 -0
- data/lib/fastly/models/historical_origins_response_all_of.rb +219 -0
- data/lib/fastly/models/inline_response2005.rb +227 -0
- data/lib/fastly/models/inline_response2006.rb +227 -0
- data/lib/fastly/models/inline_response2007.rb +218 -0
- data/lib/fastly/models/inline_response400.rb +250 -0
- data/lib/fastly/models/legacy_waf_configuration_set.rb +227 -0
- data/lib/fastly/models/legacy_waf_firewall.rb +297 -0
- data/lib/fastly/models/legacy_waf_owasp.rb +527 -0
- data/lib/fastly/models/legacy_waf_rule.rb +257 -0
- data/lib/fastly/models/legacy_waf_rule_status.rb +237 -0
- data/lib/fastly/models/legacy_waf_ruleset.rb +227 -0
- data/lib/fastly/models/legacy_waf_tag.rb +217 -0
- data/lib/fastly/models/legacy_waf_update_status.rb +267 -0
- data/lib/fastly/models/origin_inspector.rb +238 -0
- data/lib/fastly/models/origin_inspector_dimensions.rb +238 -0
- data/lib/fastly/models/origin_inspector_entry.rb +228 -0
- data/lib/fastly/models/origin_inspector_historical.rb +249 -0
- data/lib/fastly/models/origin_inspector_historical_data.rb +225 -0
- data/lib/fastly/models/origin_inspector_historical_meta.rb +297 -0
- data/lib/fastly/models/origin_inspector_historical_meta_filters.rb +235 -0
- data/lib/fastly/models/origin_inspector_measurements.rb +1728 -0
- data/lib/fastly/models/origin_inspector_realtime_entry.rb +241 -0
- data/lib/fastly/models/origin_inspector_realtime_entry_recorded.rb +208 -0
- data/lib/fastly/models/origin_inspector_subsequent_request_timestamp.rb +208 -0
- data/lib/fastly/models/origin_inspector_values.rb +1728 -0
- data/lib/fastly/models/pagination_cursor_meta.rb +227 -0
- data/lib/fastly/models/read_only_service_id.rb +207 -0
- data/lib/fastly/models/read_only_version.rb +207 -0
- data/lib/fastly/models/realtime_entry.rb +2 -7
- data/lib/fastly/models/realtime_entry_aggregated.rb +2397 -0
- data/lib/fastly/models/realtime_entry_recorded.rb +208 -0
- data/lib/fastly/models/realtime_measurements.rb +4 -2
- data/lib/fastly/models/recorded_timestamp.rb +208 -0
- data/lib/fastly/models/schemas_snippet_response.rb +3 -3
- data/lib/fastly/models/secret.rb +238 -0
- data/lib/fastly/models/secret_response.rb +249 -0
- data/lib/fastly/models/secret_store.rb +217 -0
- data/lib/fastly/models/secret_store_response.rb +238 -0
- data/lib/fastly/models/signing_key.rb +218 -0
- data/lib/fastly/models/snippet.rb +3 -3
- data/lib/fastly/models/snippet_response.rb +3 -3
- data/lib/fastly/models/subsequent_request_timestamp.rb +208 -0
- data/lib/fastly/models/sudo_generic_token_error.rb +216 -0
- data/lib/fastly/models/sudo_request.rb +244 -0
- data/lib/fastly/models/sudo_response.rb +217 -0
- data/lib/fastly/models/tokens_additional_props.rb +227 -0
- data/lib/fastly/models/validator_result.rb +7 -84
- data/lib/fastly/models/validator_result_data.rb +234 -0
- data/lib/fastly/models/validator_result_data_attributes.rb +293 -0
- data/lib/fastly/models/{validator_result_messages.rb → validator_result_data_attributes_messages.rb} +4 -4
- data/lib/fastly/models/values.rb +828 -0
- data/lib/fastly/models/vcl_syntax_highlighting_response.rb +217 -0
- data/lib/fastly/version.rb +1 -1
- data/lib/fastly.rb +79 -3
- data/sig.json +1 -1
- metadata +160 -8
@@ -17,6 +17,279 @@ module Fastly
|
|
17
17
|
def initialize(api_client = ApiClient.default)
|
18
18
|
@api_client = api_client
|
19
19
|
end
|
20
|
+
# Add members to a user group
|
21
|
+
# Add members to a user group.
|
22
|
+
# @option opts [String] :user_group_id Alphanumeric string identifying the user group. (required)
|
23
|
+
# @option opts [Hash<String, Object>] :request_body
|
24
|
+
# @return [Object]
|
25
|
+
def add_user_group_members(opts = {})
|
26
|
+
data, _status_code, _headers = add_user_group_members_with_http_info(opts)
|
27
|
+
data
|
28
|
+
end
|
29
|
+
|
30
|
+
# Add members to a user group
|
31
|
+
# Add members to a user group.
|
32
|
+
# @option opts [String] :user_group_id Alphanumeric string identifying the user group. (required)
|
33
|
+
# @option opts [Hash<String, Object>] :request_body
|
34
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
35
|
+
def add_user_group_members_with_http_info(opts = {})
|
36
|
+
if @api_client.config.debugging
|
37
|
+
@api_client.config.logger.debug 'Calling API: IamUserGroupsApi.add_user_group_members ...'
|
38
|
+
end
|
39
|
+
# unbox the parameters from the hash
|
40
|
+
user_group_id = opts[:'user_group_id']
|
41
|
+
# verify the required parameter 'user_group_id' is set
|
42
|
+
if @api_client.config.client_side_validation && user_group_id.nil?
|
43
|
+
fail ArgumentError, "Missing the required parameter 'user_group_id' when calling IamUserGroupsApi.add_user_group_members"
|
44
|
+
end
|
45
|
+
# resource path
|
46
|
+
local_var_path = '/user-groups/{user_group_id}/members'.sub('{' + 'user_group_id' + '}', CGI.escape(user_group_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'])
|
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 => :"IamUserGroupsApi.add_user_group_members",
|
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: IamUserGroupsApi#add_user_group_members\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
86
|
+
end
|
87
|
+
return data, status_code, headers
|
88
|
+
end
|
89
|
+
|
90
|
+
# Add roles to a user group
|
91
|
+
# Add roles to a user group.
|
92
|
+
# @option opts [String] :user_group_id Alphanumeric string identifying the user group. (required)
|
93
|
+
# @option opts [Hash<String, Object>] :request_body
|
94
|
+
# @return [Object]
|
95
|
+
def add_user_group_roles(opts = {})
|
96
|
+
data, _status_code, _headers = add_user_group_roles_with_http_info(opts)
|
97
|
+
data
|
98
|
+
end
|
99
|
+
|
100
|
+
# Add roles to a user group
|
101
|
+
# Add roles to a user group.
|
102
|
+
# @option opts [String] :user_group_id Alphanumeric string identifying the user group. (required)
|
103
|
+
# @option opts [Hash<String, Object>] :request_body
|
104
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
105
|
+
def add_user_group_roles_with_http_info(opts = {})
|
106
|
+
if @api_client.config.debugging
|
107
|
+
@api_client.config.logger.debug 'Calling API: IamUserGroupsApi.add_user_group_roles ...'
|
108
|
+
end
|
109
|
+
# unbox the parameters from the hash
|
110
|
+
user_group_id = opts[:'user_group_id']
|
111
|
+
# verify the required parameter 'user_group_id' is set
|
112
|
+
if @api_client.config.client_side_validation && user_group_id.nil?
|
113
|
+
fail ArgumentError, "Missing the required parameter 'user_group_id' when calling IamUserGroupsApi.add_user_group_roles"
|
114
|
+
end
|
115
|
+
# resource path
|
116
|
+
local_var_path = '/user-groups/{user_group_id}/roles'.sub('{' + 'user_group_id' + '}', CGI.escape(user_group_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'])
|
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[:'request_body'])
|
136
|
+
|
137
|
+
# return_type
|
138
|
+
return_type = opts[:debug_return_type] || 'Object'
|
139
|
+
|
140
|
+
# auth_names
|
141
|
+
auth_names = opts[:debug_auth_names] || ['token']
|
142
|
+
|
143
|
+
new_options = opts.merge(
|
144
|
+
:operation => :"IamUserGroupsApi.add_user_group_roles",
|
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: IamUserGroupsApi#add_user_group_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
156
|
+
end
|
157
|
+
return data, status_code, headers
|
158
|
+
end
|
159
|
+
|
160
|
+
# Add service groups to a user group
|
161
|
+
# Add service groups to a user group.
|
162
|
+
# @option opts [String] :user_group_id Alphanumeric string identifying the user group. (required)
|
163
|
+
# @option opts [Hash<String, Object>] :request_body
|
164
|
+
# @return [Object]
|
165
|
+
def add_user_group_service_groups(opts = {})
|
166
|
+
data, _status_code, _headers = add_user_group_service_groups_with_http_info(opts)
|
167
|
+
data
|
168
|
+
end
|
169
|
+
|
170
|
+
# Add service groups to a user group
|
171
|
+
# Add service groups to a user group.
|
172
|
+
# @option opts [String] :user_group_id Alphanumeric string identifying the user group. (required)
|
173
|
+
# @option opts [Hash<String, Object>] :request_body
|
174
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
175
|
+
def add_user_group_service_groups_with_http_info(opts = {})
|
176
|
+
if @api_client.config.debugging
|
177
|
+
@api_client.config.logger.debug 'Calling API: IamUserGroupsApi.add_user_group_service_groups ...'
|
178
|
+
end
|
179
|
+
# unbox the parameters from the hash
|
180
|
+
user_group_id = opts[:'user_group_id']
|
181
|
+
# verify the required parameter 'user_group_id' is set
|
182
|
+
if @api_client.config.client_side_validation && user_group_id.nil?
|
183
|
+
fail ArgumentError, "Missing the required parameter 'user_group_id' when calling IamUserGroupsApi.add_user_group_service_groups"
|
184
|
+
end
|
185
|
+
# resource path
|
186
|
+
local_var_path = '/user-groups/{user_group_id}/service-groups'.sub('{' + 'user_group_id' + '}', CGI.escape(user_group_id.to_s))
|
187
|
+
|
188
|
+
# query parameters
|
189
|
+
query_params = opts[:query_params] || {}
|
190
|
+
|
191
|
+
# header parameters
|
192
|
+
header_params = opts[:header_params] || {}
|
193
|
+
# HTTP header 'Accept' (if needed)
|
194
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
195
|
+
# HTTP header 'Content-Type'
|
196
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
197
|
+
if !content_type.nil?
|
198
|
+
header_params['Content-Type'] = content_type
|
199
|
+
end
|
200
|
+
|
201
|
+
# form parameters
|
202
|
+
form_params = opts[:form_params] || {}
|
203
|
+
|
204
|
+
# http body (model)
|
205
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'request_body'])
|
206
|
+
|
207
|
+
# return_type
|
208
|
+
return_type = opts[:debug_return_type] || 'Object'
|
209
|
+
|
210
|
+
# auth_names
|
211
|
+
auth_names = opts[:debug_auth_names] || ['token']
|
212
|
+
|
213
|
+
new_options = opts.merge(
|
214
|
+
:operation => :"IamUserGroupsApi.add_user_group_service_groups",
|
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(:POST, local_var_path, new_options)
|
224
|
+
if @api_client.config.debugging
|
225
|
+
@api_client.config.logger.debug "API called: IamUserGroupsApi#add_user_group_service_groups\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
226
|
+
end
|
227
|
+
return data, status_code, headers
|
228
|
+
end
|
229
|
+
|
230
|
+
# Create a user group
|
231
|
+
# Create a user group.
|
232
|
+
# @option opts [Hash<String, Object>] :request_body
|
233
|
+
# @return [Object]
|
234
|
+
def create_a_user_group(opts = {})
|
235
|
+
data, _status_code, _headers = create_a_user_group_with_http_info(opts)
|
236
|
+
data
|
237
|
+
end
|
238
|
+
|
239
|
+
# Create a user group
|
240
|
+
# Create a user group.
|
241
|
+
# @option opts [Hash<String, Object>] :request_body
|
242
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
243
|
+
def create_a_user_group_with_http_info(opts = {})
|
244
|
+
if @api_client.config.debugging
|
245
|
+
@api_client.config.logger.debug 'Calling API: IamUserGroupsApi.create_a_user_group ...'
|
246
|
+
end
|
247
|
+
# unbox the parameters from the hash
|
248
|
+
# resource path
|
249
|
+
local_var_path = '/user-groups'
|
250
|
+
|
251
|
+
# query parameters
|
252
|
+
query_params = opts[:query_params] || {}
|
253
|
+
|
254
|
+
# header parameters
|
255
|
+
header_params = opts[:header_params] || {}
|
256
|
+
# HTTP header 'Accept' (if needed)
|
257
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
258
|
+
# HTTP header 'Content-Type'
|
259
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
260
|
+
if !content_type.nil?
|
261
|
+
header_params['Content-Type'] = content_type
|
262
|
+
end
|
263
|
+
|
264
|
+
# form parameters
|
265
|
+
form_params = opts[:form_params] || {}
|
266
|
+
|
267
|
+
# http body (model)
|
268
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'request_body'])
|
269
|
+
|
270
|
+
# return_type
|
271
|
+
return_type = opts[:debug_return_type] || 'Object'
|
272
|
+
|
273
|
+
# auth_names
|
274
|
+
auth_names = opts[:debug_auth_names] || ['token']
|
275
|
+
|
276
|
+
new_options = opts.merge(
|
277
|
+
:operation => :"IamUserGroupsApi.create_a_user_group",
|
278
|
+
:header_params => header_params,
|
279
|
+
:query_params => query_params,
|
280
|
+
:form_params => form_params,
|
281
|
+
:body => post_body,
|
282
|
+
:auth_names => auth_names,
|
283
|
+
:return_type => return_type
|
284
|
+
)
|
285
|
+
|
286
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
287
|
+
if @api_client.config.debugging
|
288
|
+
@api_client.config.logger.debug "API called: IamUserGroupsApi#create_a_user_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
289
|
+
end
|
290
|
+
return data, status_code, headers
|
291
|
+
end
|
292
|
+
|
20
293
|
# Delete a user group
|
21
294
|
# Delete a user group.
|
22
295
|
# @option opts [String] :user_group_id Alphanumeric string identifying the user group. (required)
|
@@ -441,5 +714,279 @@ module Fastly
|
|
441
714
|
end
|
442
715
|
return data, status_code, headers
|
443
716
|
end
|
717
|
+
|
718
|
+
# Remove members of a user group
|
719
|
+
# Remove members of a user group
|
720
|
+
# @option opts [String] :user_group_id Alphanumeric string identifying the user group. (required)
|
721
|
+
# @option opts [Hash<String, Object>] :request_body
|
722
|
+
# @return [nil]
|
723
|
+
def remove_user_group_members(opts = {})
|
724
|
+
remove_user_group_members_with_http_info(opts)
|
725
|
+
nil
|
726
|
+
end
|
727
|
+
|
728
|
+
# Remove members of a user group
|
729
|
+
# Remove members of a user group
|
730
|
+
# @option opts [String] :user_group_id Alphanumeric string identifying the user group. (required)
|
731
|
+
# @option opts [Hash<String, Object>] :request_body
|
732
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
733
|
+
def remove_user_group_members_with_http_info(opts = {})
|
734
|
+
if @api_client.config.debugging
|
735
|
+
@api_client.config.logger.debug 'Calling API: IamUserGroupsApi.remove_user_group_members ...'
|
736
|
+
end
|
737
|
+
# unbox the parameters from the hash
|
738
|
+
user_group_id = opts[:'user_group_id']
|
739
|
+
# verify the required parameter 'user_group_id' is set
|
740
|
+
if @api_client.config.client_side_validation && user_group_id.nil?
|
741
|
+
fail ArgumentError, "Missing the required parameter 'user_group_id' when calling IamUserGroupsApi.remove_user_group_members"
|
742
|
+
end
|
743
|
+
# resource path
|
744
|
+
local_var_path = '/user-groups/{user_group_id}/members'.sub('{' + 'user_group_id' + '}', CGI.escape(user_group_id.to_s))
|
745
|
+
|
746
|
+
# query parameters
|
747
|
+
query_params = opts[:query_params] || {}
|
748
|
+
|
749
|
+
# header parameters
|
750
|
+
header_params = opts[:header_params] || {}
|
751
|
+
# HTTP header 'Content-Type'
|
752
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
753
|
+
if !content_type.nil?
|
754
|
+
header_params['Content-Type'] = content_type
|
755
|
+
end
|
756
|
+
|
757
|
+
# form parameters
|
758
|
+
form_params = opts[:form_params] || {}
|
759
|
+
|
760
|
+
# http body (model)
|
761
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'request_body'])
|
762
|
+
|
763
|
+
# return_type
|
764
|
+
return_type = opts[:debug_return_type]
|
765
|
+
|
766
|
+
# auth_names
|
767
|
+
auth_names = opts[:debug_auth_names] || ['token']
|
768
|
+
|
769
|
+
new_options = opts.merge(
|
770
|
+
:operation => :"IamUserGroupsApi.remove_user_group_members",
|
771
|
+
:header_params => header_params,
|
772
|
+
:query_params => query_params,
|
773
|
+
:form_params => form_params,
|
774
|
+
:body => post_body,
|
775
|
+
:auth_names => auth_names,
|
776
|
+
:return_type => return_type
|
777
|
+
)
|
778
|
+
|
779
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
780
|
+
if @api_client.config.debugging
|
781
|
+
@api_client.config.logger.debug "API called: IamUserGroupsApi#remove_user_group_members\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
782
|
+
end
|
783
|
+
return data, status_code, headers
|
784
|
+
end
|
785
|
+
|
786
|
+
# Remove roles from a user group
|
787
|
+
# Remove roles from a user group.
|
788
|
+
# @option opts [String] :user_group_id Alphanumeric string identifying the user group. (required)
|
789
|
+
# @option opts [Hash<String, Object>] :request_body
|
790
|
+
# @return [nil]
|
791
|
+
def remove_user_group_roles(opts = {})
|
792
|
+
remove_user_group_roles_with_http_info(opts)
|
793
|
+
nil
|
794
|
+
end
|
795
|
+
|
796
|
+
# Remove roles from a user group
|
797
|
+
# Remove roles from a user group.
|
798
|
+
# @option opts [String] :user_group_id Alphanumeric string identifying the user group. (required)
|
799
|
+
# @option opts [Hash<String, Object>] :request_body
|
800
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
801
|
+
def remove_user_group_roles_with_http_info(opts = {})
|
802
|
+
if @api_client.config.debugging
|
803
|
+
@api_client.config.logger.debug 'Calling API: IamUserGroupsApi.remove_user_group_roles ...'
|
804
|
+
end
|
805
|
+
# unbox the parameters from the hash
|
806
|
+
user_group_id = opts[:'user_group_id']
|
807
|
+
# verify the required parameter 'user_group_id' is set
|
808
|
+
if @api_client.config.client_side_validation && user_group_id.nil?
|
809
|
+
fail ArgumentError, "Missing the required parameter 'user_group_id' when calling IamUserGroupsApi.remove_user_group_roles"
|
810
|
+
end
|
811
|
+
# resource path
|
812
|
+
local_var_path = '/user-groups/{user_group_id}/roles'.sub('{' + 'user_group_id' + '}', CGI.escape(user_group_id.to_s))
|
813
|
+
|
814
|
+
# query parameters
|
815
|
+
query_params = opts[:query_params] || {}
|
816
|
+
|
817
|
+
# header parameters
|
818
|
+
header_params = opts[:header_params] || {}
|
819
|
+
# HTTP header 'Content-Type'
|
820
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
821
|
+
if !content_type.nil?
|
822
|
+
header_params['Content-Type'] = content_type
|
823
|
+
end
|
824
|
+
|
825
|
+
# form parameters
|
826
|
+
form_params = opts[:form_params] || {}
|
827
|
+
|
828
|
+
# http body (model)
|
829
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'request_body'])
|
830
|
+
|
831
|
+
# return_type
|
832
|
+
return_type = opts[:debug_return_type]
|
833
|
+
|
834
|
+
# auth_names
|
835
|
+
auth_names = opts[:debug_auth_names] || ['token']
|
836
|
+
|
837
|
+
new_options = opts.merge(
|
838
|
+
:operation => :"IamUserGroupsApi.remove_user_group_roles",
|
839
|
+
:header_params => header_params,
|
840
|
+
:query_params => query_params,
|
841
|
+
:form_params => form_params,
|
842
|
+
:body => post_body,
|
843
|
+
:auth_names => auth_names,
|
844
|
+
:return_type => return_type
|
845
|
+
)
|
846
|
+
|
847
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
848
|
+
if @api_client.config.debugging
|
849
|
+
@api_client.config.logger.debug "API called: IamUserGroupsApi#remove_user_group_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
850
|
+
end
|
851
|
+
return data, status_code, headers
|
852
|
+
end
|
853
|
+
|
854
|
+
# Remove service groups from a user group
|
855
|
+
# Remove service groups from a user group.
|
856
|
+
# @option opts [String] :user_group_id Alphanumeric string identifying the user group. (required)
|
857
|
+
# @option opts [Hash<String, Object>] :request_body
|
858
|
+
# @return [nil]
|
859
|
+
def remove_user_group_service_groups(opts = {})
|
860
|
+
remove_user_group_service_groups_with_http_info(opts)
|
861
|
+
nil
|
862
|
+
end
|
863
|
+
|
864
|
+
# Remove service groups from a user group
|
865
|
+
# Remove service groups from a user group.
|
866
|
+
# @option opts [String] :user_group_id Alphanumeric string identifying the user group. (required)
|
867
|
+
# @option opts [Hash<String, Object>] :request_body
|
868
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
869
|
+
def remove_user_group_service_groups_with_http_info(opts = {})
|
870
|
+
if @api_client.config.debugging
|
871
|
+
@api_client.config.logger.debug 'Calling API: IamUserGroupsApi.remove_user_group_service_groups ...'
|
872
|
+
end
|
873
|
+
# unbox the parameters from the hash
|
874
|
+
user_group_id = opts[:'user_group_id']
|
875
|
+
# verify the required parameter 'user_group_id' is set
|
876
|
+
if @api_client.config.client_side_validation && user_group_id.nil?
|
877
|
+
fail ArgumentError, "Missing the required parameter 'user_group_id' when calling IamUserGroupsApi.remove_user_group_service_groups"
|
878
|
+
end
|
879
|
+
# resource path
|
880
|
+
local_var_path = '/user-groups/{user_group_id}/service-groups'.sub('{' + 'user_group_id' + '}', CGI.escape(user_group_id.to_s))
|
881
|
+
|
882
|
+
# query parameters
|
883
|
+
query_params = opts[:query_params] || {}
|
884
|
+
|
885
|
+
# header parameters
|
886
|
+
header_params = opts[:header_params] || {}
|
887
|
+
# HTTP header 'Content-Type'
|
888
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
889
|
+
if !content_type.nil?
|
890
|
+
header_params['Content-Type'] = content_type
|
891
|
+
end
|
892
|
+
|
893
|
+
# form parameters
|
894
|
+
form_params = opts[:form_params] || {}
|
895
|
+
|
896
|
+
# http body (model)
|
897
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'request_body'])
|
898
|
+
|
899
|
+
# return_type
|
900
|
+
return_type = opts[:debug_return_type]
|
901
|
+
|
902
|
+
# auth_names
|
903
|
+
auth_names = opts[:debug_auth_names] || ['token']
|
904
|
+
|
905
|
+
new_options = opts.merge(
|
906
|
+
:operation => :"IamUserGroupsApi.remove_user_group_service_groups",
|
907
|
+
:header_params => header_params,
|
908
|
+
:query_params => query_params,
|
909
|
+
:form_params => form_params,
|
910
|
+
:body => post_body,
|
911
|
+
:auth_names => auth_names,
|
912
|
+
:return_type => return_type
|
913
|
+
)
|
914
|
+
|
915
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
916
|
+
if @api_client.config.debugging
|
917
|
+
@api_client.config.logger.debug "API called: IamUserGroupsApi#remove_user_group_service_groups\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
918
|
+
end
|
919
|
+
return data, status_code, headers
|
920
|
+
end
|
921
|
+
|
922
|
+
# Update a user group
|
923
|
+
# Update a user group.
|
924
|
+
# @option opts [String] :user_group_id Alphanumeric string identifying the user group. (required)
|
925
|
+
# @option opts [Hash<String, Object>] :request_body
|
926
|
+
# @return [Object]
|
927
|
+
def update_a_user_group(opts = {})
|
928
|
+
data, _status_code, _headers = update_a_user_group_with_http_info(opts)
|
929
|
+
data
|
930
|
+
end
|
931
|
+
|
932
|
+
# Update a user group
|
933
|
+
# Update a user group.
|
934
|
+
# @option opts [String] :user_group_id Alphanumeric string identifying the user group. (required)
|
935
|
+
# @option opts [Hash<String, Object>] :request_body
|
936
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
937
|
+
def update_a_user_group_with_http_info(opts = {})
|
938
|
+
if @api_client.config.debugging
|
939
|
+
@api_client.config.logger.debug 'Calling API: IamUserGroupsApi.update_a_user_group ...'
|
940
|
+
end
|
941
|
+
# unbox the parameters from the hash
|
942
|
+
user_group_id = opts[:'user_group_id']
|
943
|
+
# verify the required parameter 'user_group_id' is set
|
944
|
+
if @api_client.config.client_side_validation && user_group_id.nil?
|
945
|
+
fail ArgumentError, "Missing the required parameter 'user_group_id' when calling IamUserGroupsApi.update_a_user_group"
|
946
|
+
end
|
947
|
+
# resource path
|
948
|
+
local_var_path = '/user-groups/{user_group_id}'.sub('{' + 'user_group_id' + '}', CGI.escape(user_group_id.to_s))
|
949
|
+
|
950
|
+
# query parameters
|
951
|
+
query_params = opts[:query_params] || {}
|
952
|
+
|
953
|
+
# header parameters
|
954
|
+
header_params = opts[:header_params] || {}
|
955
|
+
# HTTP header 'Accept' (if needed)
|
956
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
957
|
+
# HTTP header 'Content-Type'
|
958
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
959
|
+
if !content_type.nil?
|
960
|
+
header_params['Content-Type'] = content_type
|
961
|
+
end
|
962
|
+
|
963
|
+
# form parameters
|
964
|
+
form_params = opts[:form_params] || {}
|
965
|
+
|
966
|
+
# http body (model)
|
967
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'request_body'])
|
968
|
+
|
969
|
+
# return_type
|
970
|
+
return_type = opts[:debug_return_type] || 'Object'
|
971
|
+
|
972
|
+
# auth_names
|
973
|
+
auth_names = opts[:debug_auth_names] || ['token']
|
974
|
+
|
975
|
+
new_options = opts.merge(
|
976
|
+
:operation => :"IamUserGroupsApi.update_a_user_group",
|
977
|
+
:header_params => header_params,
|
978
|
+
:query_params => query_params,
|
979
|
+
:form_params => form_params,
|
980
|
+
:body => post_body,
|
981
|
+
:auth_names => auth_names,
|
982
|
+
:return_type => return_type
|
983
|
+
)
|
984
|
+
|
985
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
986
|
+
if @api_client.config.debugging
|
987
|
+
@api_client.config.logger.debug "API called: IamUserGroupsApi#update_a_user_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
988
|
+
end
|
989
|
+
return data, status_code, headers
|
990
|
+
end
|
444
991
|
end
|
445
992
|
end
|