fastly 5.3.1 → 6.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (224) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +63 -0
  3. data/Gemfile.lock +1 -1
  4. data/README.md +85 -63
  5. data/docs/AclEntry.md +1 -1
  6. data/docs/AclEntryApi.md +176 -0
  7. data/docs/AclEntryResponse.md +1 -1
  8. data/docs/ApexRedirectApi.md +56 -0
  9. data/docs/{BillingEstimateResponseAllOfLines.md → BillingEstimateLines.md} +2 -2
  10. data/docs/{BillingEstimateResponseAllOfLine.md → BillingEstimateLinesLineItems.md} +1 -1
  11. data/docs/BillingEstimateResponse.md +1 -1
  12. data/docs/{BillingResponseAllOf.md → BillingResponseItemItemsData.md} +1 -1
  13. data/docs/BillingResponseLineItem.md +1 -1
  14. data/docs/BillingStatus.md +1 -1
  15. data/docs/BulkUpdateAclEntry.md +1 -1
  16. data/docs/ClientKey.md +12 -0
  17. data/docs/ContactApi.md +50 -0
  18. data/docs/Content.md +2 -2
  19. data/docs/ContentApi.md +52 -0
  20. data/docs/DirectorApi.md +42 -0
  21. data/docs/DomainInspector.md +12 -0
  22. data/docs/DomainInspectorEntry.md +11 -0
  23. data/docs/DomainInspectorEntryDimensions.md +12 -0
  24. data/docs/DomainInspectorHistoricalApi.md +72 -0
  25. data/docs/DomainInspectorMeasurements.md +71 -0
  26. data/docs/DomainInspectorRealtimeApi.md +132 -0
  27. data/docs/DomainInspectorRealtimeEntry.md +12 -0
  28. data/docs/EventAttributes.md +1 -1
  29. data/docs/{EventsResponseAllOf.md → EventData.md} +1 -1
  30. data/docs/HistoricalDomains.md +13 -0
  31. data/docs/HistoricalDomainsData.md +11 -0
  32. data/docs/HistoricalDomainsMeta.md +18 -0
  33. data/docs/HistoricalDomainsMetaFilters.md +12 -0
  34. data/docs/HistoricalDomainsResponse.md +13 -0
  35. data/docs/HistoricalDomainsResponseAllOf.md +10 -0
  36. data/docs/{HistoricalFieldResultsAttributesAllOf.md → HistoricalFieldResultsAttributesAdditional.md} +1 -1
  37. data/docs/HistoricalOriginsResponse.md +13 -0
  38. data/docs/HistoricalOriginsResponseAllOf.md +10 -0
  39. data/docs/IamRolesApi.md +157 -0
  40. data/docs/IamServiceGroupsApi.md +157 -0
  41. data/docs/IamUserGroupsApi.md +315 -0
  42. data/docs/InlineResponse2005.md +11 -0
  43. data/docs/InlineResponse2006.md +11 -0
  44. data/docs/{BillingEstimateResponseAllOf.md → InlineResponse2007.md} +2 -2
  45. data/docs/InlineResponse400.md +10 -0
  46. data/docs/LegacyWafConfigurationSet.md +11 -0
  47. data/docs/LegacyWafConfigurationSetsApi.md +125 -0
  48. data/docs/LegacyWafFirewall.md +18 -0
  49. data/docs/LegacyWafFirewallApi.md +352 -0
  50. data/docs/LegacyWafOwasp.md +38 -0
  51. data/docs/LegacyWafOwaspApi.md +138 -0
  52. data/docs/LegacyWafRule.md +14 -0
  53. data/docs/LegacyWafRuleApi.md +184 -0
  54. data/docs/LegacyWafRuleStatus.md +12 -0
  55. data/docs/LegacyWafRuleStatusApi.md +202 -0
  56. data/docs/LegacyWafRuleset.md +11 -0
  57. data/docs/LegacyWafRulesetApi.md +136 -0
  58. data/docs/LegacyWafTag.md +10 -0
  59. data/docs/LegacyWafTagApi.md +58 -0
  60. data/docs/LegacyWafUpdateStatus.md +15 -0
  61. data/docs/LegacyWafUpdateStatusApi.md +102 -0
  62. data/docs/{BillingResponseLineItemAllOf.md → LineItemData.md} +2 -2
  63. data/docs/LineItemDataReadOnlyInvoiceId.md +9 -0
  64. data/docs/LoggingKafkaApi.md +42 -0
  65. data/docs/LoggingKinesisApi.md +42 -0
  66. data/docs/OriginInspector.md +12 -0
  67. data/docs/OriginInspectorDimensions.md +12 -0
  68. data/docs/OriginInspectorEntry.md +11 -0
  69. data/docs/OriginInspectorHistorical.md +13 -0
  70. data/docs/OriginInspectorHistoricalApi.md +72 -0
  71. data/docs/OriginInspectorHistoricalData.md +11 -0
  72. data/docs/OriginInspectorHistoricalMeta.md +18 -0
  73. data/docs/OriginInspectorHistoricalMetaFilters.md +12 -0
  74. data/docs/OriginInspectorMeasurements.md +161 -0
  75. data/docs/OriginInspectorRealtimeApi.md +132 -0
  76. data/docs/OriginInspectorRealtimeEntry.md +12 -0
  77. data/docs/OriginInspectorRealtimeEntryRecorded.md +9 -0
  78. data/docs/OriginInspectorSubsequentRequestTimestamp.md +9 -0
  79. data/docs/OriginInspectorValues.md +161 -0
  80. data/docs/PaginationCursorMeta.md +11 -0
  81. data/docs/ReadOnlyServiceId.md +9 -0
  82. data/docs/ReadOnlyVersion.md +9 -0
  83. data/docs/RealtimeEntry.md +2 -2
  84. data/docs/RealtimeEntryAggregated.md +227 -0
  85. data/docs/RealtimeEntryRecorded.md +9 -0
  86. data/docs/RealtimeMeasurements.md +1 -1
  87. data/docs/RecordedTimestamp.md +9 -0
  88. data/docs/RequestSettingsApi.md +40 -0
  89. data/docs/ResponseObjectApi.md +82 -0
  90. data/docs/SchemasUserResponseReadOnly.md +12 -0
  91. data/docs/Secret.md +12 -0
  92. data/docs/SecretResponse.md +13 -0
  93. data/docs/SecretStore.md +10 -0
  94. data/docs/SecretStoreApi.md +233 -0
  95. data/docs/SecretStoreItemApi.md +255 -0
  96. data/docs/SecretStoreResponse.md +12 -0
  97. data/docs/ServiceAuthorizationsApi.md +76 -0
  98. data/docs/SigningKey.md +10 -0
  99. data/docs/SnippetApi.md +42 -0
  100. data/docs/SubsequentRequestTimestamp.md +9 -0
  101. data/docs/SudoApi.md +52 -0
  102. data/docs/SudoGenericTokenError.md +10 -0
  103. data/docs/SudoRequest.md +12 -0
  104. data/docs/SudoResponse.md +10 -0
  105. data/docs/TokensApi.md +70 -0
  106. data/docs/{UserResponseAllOf.md → UserResponseReadOnly.md} +1 -1
  107. data/docs/Values.md +71 -0
  108. data/docs/WafActiveRulesApi.md +41 -0
  109. data/lib/fastly/api/acl_entry_api.rb +332 -0
  110. data/lib/fastly/api/apex_redirect_api.rb +111 -0
  111. data/lib/fastly/api/contact_api.rb +90 -0
  112. data/lib/fastly/api/content_api.rb +79 -0
  113. data/lib/fastly/api/director_api.rb +82 -0
  114. data/lib/fastly/api/domain_inspector_historical_api.rb +125 -0
  115. data/lib/fastly/api/domain_inspector_realtime_api.rb +223 -0
  116. data/lib/fastly/api/iam_roles_api.rb +271 -0
  117. data/lib/fastly/api/iam_service_groups_api.rb +271 -0
  118. data/lib/fastly/api/iam_user_groups_api.rb +547 -0
  119. data/lib/fastly/api/legacy_waf_configuration_sets_api.rb +209 -0
  120. data/lib/fastly/api/legacy_waf_firewall_api.rb +627 -0
  121. data/lib/fastly/api/legacy_waf_owasp_api.rb +244 -0
  122. data/lib/fastly/api/legacy_waf_rule_api.rb +307 -0
  123. data/lib/fastly/api/legacy_waf_rule_status_api.rb +366 -0
  124. data/lib/fastly/api/legacy_waf_ruleset_api.rb +237 -0
  125. data/lib/fastly/api/legacy_waf_tag_api.rb +96 -0
  126. data/lib/fastly/api/legacy_waf_update_status_api.rb +184 -0
  127. data/lib/fastly/api/logging_kafka_api.rb +82 -0
  128. data/lib/fastly/api/logging_kinesis_api.rb +82 -0
  129. data/lib/fastly/api/origin_inspector_historical_api.rb +125 -0
  130. data/lib/fastly/api/origin_inspector_realtime_api.rb +223 -0
  131. data/lib/fastly/api/request_settings_api.rb +75 -0
  132. data/lib/fastly/api/response_object_api.rb +157 -0
  133. data/lib/fastly/api/secret_store_api.rb +381 -0
  134. data/lib/fastly/api/secret_store_item_api.rb +437 -0
  135. data/lib/fastly/api/service_authorizations_api.rb +126 -0
  136. data/lib/fastly/api/snippet_api.rb +82 -0
  137. data/lib/fastly/api/sudo_api.rb +83 -0
  138. data/lib/fastly/api/tokens_api.rb +122 -0
  139. data/lib/fastly/api/waf_active_rules_api.rb +75 -0
  140. data/lib/fastly/configuration.rb +504 -0
  141. data/lib/fastly/models/acl_entry.rb +1 -1
  142. data/lib/fastly/models/acl_entry_response.rb +1 -1
  143. data/lib/fastly/models/{billing_response_all_of.rb → billing_estimate_lines.rb} +4 -4
  144. data/lib/fastly/models/{billing_estimate_response_all_of_line.rb → billing_estimate_lines_line_items.rb} +3 -3
  145. data/lib/fastly/models/billing_estimate_response.rb +9 -9
  146. data/lib/fastly/models/billing_response.rb +1 -1
  147. data/lib/fastly/models/{billing_estimate_response_all_of.rb → billing_response_item_items_data.rb} +11 -11
  148. data/lib/fastly/models/billing_response_line_item.rb +2 -2
  149. data/lib/fastly/models/billing_status.rb +2 -0
  150. data/lib/fastly/models/bulk_update_acl_entry.rb +1 -1
  151. data/lib/fastly/models/client_key.rb +239 -0
  152. data/lib/fastly/models/content.rb +8 -4
  153. data/lib/fastly/models/domain.rb +1 -0
  154. data/lib/fastly/models/domain_inspector.rb +238 -0
  155. data/lib/fastly/models/domain_inspector_entry.rb +228 -0
  156. data/lib/fastly/models/domain_inspector_entry_dimensions.rb +238 -0
  157. data/lib/fastly/models/domain_inspector_measurements.rb +828 -0
  158. data/lib/fastly/models/domain_inspector_realtime_entry.rb +241 -0
  159. data/lib/fastly/models/event_attributes.rb +4 -2
  160. data/lib/fastly/models/{events_response_all_of.rb → event_data.rb} +3 -3
  161. data/lib/fastly/models/events_response.rb +1 -1
  162. data/lib/fastly/models/historical_domains.rb +249 -0
  163. data/lib/fastly/models/historical_domains_data.rb +228 -0
  164. data/lib/fastly/models/historical_domains_meta.rb +297 -0
  165. data/lib/fastly/models/historical_domains_meta_filters.rb +235 -0
  166. data/lib/fastly/models/historical_domains_response.rb +257 -0
  167. data/lib/fastly/models/historical_domains_response_all_of.rb +219 -0
  168. data/lib/fastly/models/historical_field_results_attributes.rb +1 -1
  169. data/lib/fastly/models/{historical_field_results_attributes_all_of.rb → historical_field_results_attributes_additional.rb} +3 -3
  170. data/lib/fastly/models/historical_origins_response.rb +257 -0
  171. data/lib/fastly/models/historical_origins_response_all_of.rb +219 -0
  172. data/lib/fastly/models/inline_response2005.rb +227 -0
  173. data/lib/fastly/models/inline_response2006.rb +227 -0
  174. data/lib/fastly/models/inline_response2007.rb +218 -0
  175. data/lib/fastly/models/inline_response400.rb +250 -0
  176. data/lib/fastly/models/legacy_waf_configuration_set.rb +227 -0
  177. data/lib/fastly/models/legacy_waf_firewall.rb +297 -0
  178. data/lib/fastly/models/legacy_waf_owasp.rb +527 -0
  179. data/lib/fastly/models/legacy_waf_rule.rb +257 -0
  180. data/lib/fastly/models/legacy_waf_rule_status.rb +237 -0
  181. data/lib/fastly/models/legacy_waf_ruleset.rb +227 -0
  182. data/lib/fastly/models/{billing_estimate_response_all_of_lines.rb → legacy_waf_tag.rb} +11 -10
  183. data/lib/fastly/models/legacy_waf_update_status.rb +267 -0
  184. data/lib/fastly/models/{billing_response_line_item_all_of.rb → line_item_data.rb} +4 -4
  185. data/lib/fastly/models/line_item_data_read_only_invoice_id.rb +207 -0
  186. data/lib/fastly/models/origin_inspector.rb +238 -0
  187. data/lib/fastly/models/origin_inspector_dimensions.rb +238 -0
  188. data/lib/fastly/models/origin_inspector_entry.rb +228 -0
  189. data/lib/fastly/models/origin_inspector_historical.rb +249 -0
  190. data/lib/fastly/models/origin_inspector_historical_data.rb +225 -0
  191. data/lib/fastly/models/origin_inspector_historical_meta.rb +297 -0
  192. data/lib/fastly/models/origin_inspector_historical_meta_filters.rb +235 -0
  193. data/lib/fastly/models/origin_inspector_measurements.rb +1728 -0
  194. data/lib/fastly/models/origin_inspector_realtime_entry.rb +241 -0
  195. data/lib/fastly/models/origin_inspector_realtime_entry_recorded.rb +208 -0
  196. data/lib/fastly/models/origin_inspector_subsequent_request_timestamp.rb +208 -0
  197. data/lib/fastly/models/origin_inspector_values.rb +1728 -0
  198. data/lib/fastly/models/pagination_cursor_meta.rb +227 -0
  199. data/lib/fastly/models/read_only_service_id.rb +207 -0
  200. data/lib/fastly/models/read_only_version.rb +207 -0
  201. data/lib/fastly/models/realtime_entry.rb +2 -7
  202. data/lib/fastly/models/realtime_entry_aggregated.rb +2397 -0
  203. data/lib/fastly/models/realtime_entry_recorded.rb +208 -0
  204. data/lib/fastly/models/realtime_measurements.rb +4 -2
  205. data/lib/fastly/models/recorded_timestamp.rb +208 -0
  206. data/lib/fastly/models/schemas_user_response.rb +5 -2
  207. data/lib/fastly/models/schemas_user_response_read_only.rb +235 -0
  208. data/lib/fastly/models/secret.rb +238 -0
  209. data/lib/fastly/models/secret_response.rb +249 -0
  210. data/lib/fastly/models/secret_store.rb +217 -0
  211. data/lib/fastly/models/secret_store_response.rb +238 -0
  212. data/lib/fastly/models/signing_key.rb +218 -0
  213. data/lib/fastly/models/subsequent_request_timestamp.rb +208 -0
  214. data/lib/fastly/models/sudo_generic_token_error.rb +216 -0
  215. data/lib/fastly/models/sudo_request.rb +244 -0
  216. data/lib/fastly/models/sudo_response.rb +217 -0
  217. data/lib/fastly/models/user.rb +3 -0
  218. data/lib/fastly/models/user_response.rb +4 -1
  219. data/lib/fastly/models/{user_response_all_of.rb → user_response_read_only.rb} +3 -3
  220. data/lib/fastly/models/values.rb +828 -0
  221. data/lib/fastly/version.rb +1 -1
  222. data/lib/fastly.rb +79 -8
  223. data/sig.json +1 -1
  224. metadata +160 -18
@@ -0,0 +1,381 @@
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://developer.fastly.com/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 SecretStoreApi
15
+ attr_accessor :api_client
16
+
17
+ def initialize(api_client = ApiClient.default)
18
+ @api_client = api_client
19
+ end
20
+ # Create new client key
21
+ # Create a new client key for encrypting secrets locally before uploading.
22
+ # @return [ClientKey]
23
+ def client_key(opts = {})
24
+ data, _status_code, _headers = client_key_with_http_info(opts)
25
+ data
26
+ end
27
+
28
+ # Create new client key
29
+ # Create a new client key for encrypting secrets locally before uploading.
30
+ # @return [Array<(ClientKey, Integer, Hash)>] ClientKey data, response status code and response headers
31
+ def client_key_with_http_info(opts = {})
32
+ if @api_client.config.debugging
33
+ @api_client.config.logger.debug 'Calling API: SecretStoreApi.client_key ...'
34
+ end
35
+ # unbox the parameters from the hash
36
+ # resource path
37
+ local_var_path = '/resources/stores/secret/client-key'
38
+
39
+ # query parameters
40
+ query_params = opts[:query_params] || {}
41
+
42
+ # header parameters
43
+ header_params = opts[:header_params] || {}
44
+ # HTTP header 'Accept' (if needed)
45
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
46
+
47
+ # form parameters
48
+ form_params = opts[:form_params] || {}
49
+
50
+ # http body (model)
51
+ post_body = opts[:debug_body]
52
+
53
+ # return_type
54
+ return_type = opts[:debug_return_type] || 'ClientKey'
55
+
56
+ # auth_names
57
+ auth_names = opts[:debug_auth_names] || ['token']
58
+
59
+ new_options = opts.merge(
60
+ :operation => :"SecretStoreApi.client_key",
61
+ :header_params => header_params,
62
+ :query_params => query_params,
63
+ :form_params => form_params,
64
+ :body => post_body,
65
+ :auth_names => auth_names,
66
+ :return_type => return_type
67
+ )
68
+
69
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
70
+ if @api_client.config.debugging
71
+ @api_client.config.logger.debug "API called: SecretStoreApi#client_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
72
+ end
73
+ return data, status_code, headers
74
+ end
75
+
76
+ # Create new secret store
77
+ # Create a new secret store.
78
+ # @option opts [SecretStore] :secret_store
79
+ # @return [SecretStoreResponse]
80
+ def create_secret_store(opts = {})
81
+ data, _status_code, _headers = create_secret_store_with_http_info(opts)
82
+ data
83
+ end
84
+
85
+ # Create new secret store
86
+ # Create a new secret store.
87
+ # @option opts [SecretStore] :secret_store
88
+ # @return [Array<(SecretStoreResponse, Integer, Hash)>] SecretStoreResponse data, response status code and response headers
89
+ def create_secret_store_with_http_info(opts = {})
90
+ if @api_client.config.debugging
91
+ @api_client.config.logger.debug 'Calling API: SecretStoreApi.create_secret_store ...'
92
+ end
93
+ # unbox the parameters from the hash
94
+ # resource path
95
+ local_var_path = '/resources/stores/secret'
96
+
97
+ # query parameters
98
+ query_params = opts[:query_params] || {}
99
+
100
+ # header parameters
101
+ header_params = opts[:header_params] || {}
102
+ # HTTP header 'Accept' (if needed)
103
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
104
+ # HTTP header 'Content-Type'
105
+ content_type = @api_client.select_header_content_type(['application/json'])
106
+ if !content_type.nil?
107
+ header_params['Content-Type'] = content_type
108
+ end
109
+
110
+ # form parameters
111
+ form_params = opts[:form_params] || {}
112
+
113
+ # http body (model)
114
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'secret_store'])
115
+
116
+ # return_type
117
+ return_type = opts[:debug_return_type] || 'SecretStoreResponse'
118
+
119
+ # auth_names
120
+ auth_names = opts[:debug_auth_names] || ['token']
121
+
122
+ new_options = opts.merge(
123
+ :operation => :"SecretStoreApi.create_secret_store",
124
+ :header_params => header_params,
125
+ :query_params => query_params,
126
+ :form_params => form_params,
127
+ :body => post_body,
128
+ :auth_names => auth_names,
129
+ :return_type => return_type
130
+ )
131
+
132
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
133
+ if @api_client.config.debugging
134
+ @api_client.config.logger.debug "API called: SecretStoreApi#create_secret_store\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
135
+ end
136
+ return data, status_code, headers
137
+ end
138
+
139
+ # Delete secret store
140
+ # Delete a secret store and all of its contents.
141
+ # @option opts [String] :store_id (required)
142
+ # @return [nil]
143
+ def delete_secret_store(opts = {})
144
+ delete_secret_store_with_http_info(opts)
145
+ nil
146
+ end
147
+
148
+ # Delete secret store
149
+ # Delete a secret store and all of its contents.
150
+ # @option opts [String] :store_id (required)
151
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
152
+ def delete_secret_store_with_http_info(opts = {})
153
+ if @api_client.config.debugging
154
+ @api_client.config.logger.debug 'Calling API: SecretStoreApi.delete_secret_store ...'
155
+ end
156
+ # unbox the parameters from the hash
157
+ store_id = opts[:'store_id']
158
+ # verify the required parameter 'store_id' is set
159
+ if @api_client.config.client_side_validation && store_id.nil?
160
+ fail ArgumentError, "Missing the required parameter 'store_id' when calling SecretStoreApi.delete_secret_store"
161
+ end
162
+ # resource path
163
+ local_var_path = '/resources/stores/secret/{store_id}'.sub('{' + 'store_id' + '}', CGI.escape(store_id.to_s))
164
+
165
+ # query parameters
166
+ query_params = opts[:query_params] || {}
167
+
168
+ # header parameters
169
+ header_params = opts[:header_params] || {}
170
+
171
+ # form parameters
172
+ form_params = opts[:form_params] || {}
173
+
174
+ # http body (model)
175
+ post_body = opts[:debug_body]
176
+
177
+ # return_type
178
+ return_type = opts[:debug_return_type]
179
+
180
+ # auth_names
181
+ auth_names = opts[:debug_auth_names] || ['token']
182
+
183
+ new_options = opts.merge(
184
+ :operation => :"SecretStoreApi.delete_secret_store",
185
+ :header_params => header_params,
186
+ :query_params => query_params,
187
+ :form_params => form_params,
188
+ :body => post_body,
189
+ :auth_names => auth_names,
190
+ :return_type => return_type
191
+ )
192
+
193
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
194
+ if @api_client.config.debugging
195
+ @api_client.config.logger.debug "API called: SecretStoreApi#delete_secret_store\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
196
+ end
197
+ return data, status_code, headers
198
+ end
199
+
200
+ # Create secret store by ID
201
+ # Get a secret store by ID.
202
+ # @option opts [String] :store_id (required)
203
+ # @return [SecretStoreResponse]
204
+ def get_secret_store(opts = {})
205
+ data, _status_code, _headers = get_secret_store_with_http_info(opts)
206
+ data
207
+ end
208
+
209
+ # Create secret store by ID
210
+ # Get a secret store by ID.
211
+ # @option opts [String] :store_id (required)
212
+ # @return [Array<(SecretStoreResponse, Integer, Hash)>] SecretStoreResponse data, response status code and response headers
213
+ def get_secret_store_with_http_info(opts = {})
214
+ if @api_client.config.debugging
215
+ @api_client.config.logger.debug 'Calling API: SecretStoreApi.get_secret_store ...'
216
+ end
217
+ # unbox the parameters from the hash
218
+ store_id = opts[:'store_id']
219
+ # verify the required parameter 'store_id' is set
220
+ if @api_client.config.client_side_validation && store_id.nil?
221
+ fail ArgumentError, "Missing the required parameter 'store_id' when calling SecretStoreApi.get_secret_store"
222
+ end
223
+ # resource path
224
+ local_var_path = '/resources/stores/secret/{store_id}'.sub('{' + 'store_id' + '}', CGI.escape(store_id.to_s))
225
+
226
+ # query parameters
227
+ query_params = opts[:query_params] || {}
228
+
229
+ # header parameters
230
+ header_params = opts[:header_params] || {}
231
+ # HTTP header 'Accept' (if needed)
232
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
233
+
234
+ # form parameters
235
+ form_params = opts[:form_params] || {}
236
+
237
+ # http body (model)
238
+ post_body = opts[:debug_body]
239
+
240
+ # return_type
241
+ return_type = opts[:debug_return_type] || 'SecretStoreResponse'
242
+
243
+ # auth_names
244
+ auth_names = opts[:debug_auth_names] || ['token']
245
+
246
+ new_options = opts.merge(
247
+ :operation => :"SecretStoreApi.get_secret_store",
248
+ :header_params => header_params,
249
+ :query_params => query_params,
250
+ :form_params => form_params,
251
+ :body => post_body,
252
+ :auth_names => auth_names,
253
+ :return_type => return_type
254
+ )
255
+
256
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
257
+ if @api_client.config.debugging
258
+ @api_client.config.logger.debug "API called: SecretStoreApi#get_secret_store\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
259
+ end
260
+ return data, status_code, headers
261
+ end
262
+
263
+ # Get all secret stores
264
+ # Get all secret stores.
265
+ # @option opts [String] :cursor Cursor value from a previous response to retrieve the next page. To request the first page, this should be empty.
266
+ # @option opts [String] :limit Number of results per page. The maximum is 200. (default to '100')
267
+ # @return [InlineResponse2005]
268
+ def get_secret_stores(opts = {})
269
+ data, _status_code, _headers = get_secret_stores_with_http_info(opts)
270
+ data
271
+ end
272
+
273
+ # Get all secret stores
274
+ # Get all secret stores.
275
+ # @option opts [String] :cursor Cursor value from a previous response to retrieve the next page. To request the first page, this should be empty.
276
+ # @option opts [String] :limit Number of results per page. The maximum is 200. (default to '100')
277
+ # @return [Array<(InlineResponse2005, Integer, Hash)>] InlineResponse2005 data, response status code and response headers
278
+ def get_secret_stores_with_http_info(opts = {})
279
+ if @api_client.config.debugging
280
+ @api_client.config.logger.debug 'Calling API: SecretStoreApi.get_secret_stores ...'
281
+ end
282
+ # unbox the parameters from the hash
283
+ # resource path
284
+ local_var_path = '/resources/stores/secret'
285
+
286
+ # query parameters
287
+ query_params = opts[:query_params] || {}
288
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
289
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
290
+
291
+ # header parameters
292
+ header_params = opts[:header_params] || {}
293
+ # HTTP header 'Accept' (if needed)
294
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
295
+
296
+ # form parameters
297
+ form_params = opts[:form_params] || {}
298
+
299
+ # http body (model)
300
+ post_body = opts[:debug_body]
301
+
302
+ # return_type
303
+ return_type = opts[:debug_return_type] || 'InlineResponse2005'
304
+
305
+ # auth_names
306
+ auth_names = opts[:debug_auth_names] || ['token']
307
+
308
+ new_options = opts.merge(
309
+ :operation => :"SecretStoreApi.get_secret_stores",
310
+ :header_params => header_params,
311
+ :query_params => query_params,
312
+ :form_params => form_params,
313
+ :body => post_body,
314
+ :auth_names => auth_names,
315
+ :return_type => return_type
316
+ )
317
+
318
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
319
+ if @api_client.config.debugging
320
+ @api_client.config.logger.debug "API called: SecretStoreApi#get_secret_stores\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
321
+ end
322
+ return data, status_code, headers
323
+ end
324
+
325
+ # Get public key
326
+ # Get the public key used for signing client keys.
327
+ # @return [SigningKey]
328
+ def signing_key(opts = {})
329
+ data, _status_code, _headers = signing_key_with_http_info(opts)
330
+ data
331
+ end
332
+
333
+ # Get public key
334
+ # Get the public key used for signing client keys.
335
+ # @return [Array<(SigningKey, Integer, Hash)>] SigningKey data, response status code and response headers
336
+ def signing_key_with_http_info(opts = {})
337
+ if @api_client.config.debugging
338
+ @api_client.config.logger.debug 'Calling API: SecretStoreApi.signing_key ...'
339
+ end
340
+ # unbox the parameters from the hash
341
+ # resource path
342
+ local_var_path = '/resources/stores/secret/signing-key'
343
+
344
+ # query parameters
345
+ query_params = opts[:query_params] || {}
346
+
347
+ # header parameters
348
+ header_params = opts[:header_params] || {}
349
+ # HTTP header 'Accept' (if needed)
350
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
351
+
352
+ # form parameters
353
+ form_params = opts[:form_params] || {}
354
+
355
+ # http body (model)
356
+ post_body = opts[:debug_body]
357
+
358
+ # return_type
359
+ return_type = opts[:debug_return_type] || 'SigningKey'
360
+
361
+ # auth_names
362
+ auth_names = opts[:debug_auth_names] || ['token']
363
+
364
+ new_options = opts.merge(
365
+ :operation => :"SecretStoreApi.signing_key",
366
+ :header_params => header_params,
367
+ :query_params => query_params,
368
+ :form_params => form_params,
369
+ :body => post_body,
370
+ :auth_names => auth_names,
371
+ :return_type => return_type
372
+ )
373
+
374
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
375
+ if @api_client.config.debugging
376
+ @api_client.config.logger.debug "API called: SecretStoreApi#signing_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
377
+ end
378
+ return data, status_code, headers
379
+ end
380
+ end
381
+ end