datadog_api_client 2.41.0 → 2.42.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/.generator/schemas/v1/openapi.yaml +69 -8
- data/.generator/schemas/v2/openapi.yaml +1568 -40
- data/CHANGELOG.md +15 -0
- data/examples/v2/actions-datastores/BulkWriteDatastoreItems.rb +24 -0
- data/examples/v2/actions-datastores/CreateDatastore.rb +15 -0
- data/examples/v2/actions-datastores/DeleteDatastore.rb +8 -0
- data/examples/v2/actions-datastores/DeleteDatastoreItem.rb +17 -0
- data/examples/v2/actions-datastores/GetDatastore.rb +8 -0
- data/examples/v2/actions-datastores/ListDatastoreItems.rb +8 -0
- data/examples/v2/actions-datastores/ListDatastores.rb +5 -0
- data/examples/v2/actions-datastores/UpdateDatastore.rb +18 -0
- data/examples/v2/actions-datastores/UpdateDatastoreItem.rb +18 -0
- data/examples/v2/aws-integration/CreateAWSAccount.rb +0 -3
- data/examples/v2/aws-integration/CreateAWSAccount_1716720881.rb +0 -3
- data/examples/v2/aws-integration/CreateNewAWSExternalID.rb +0 -3
- data/examples/v2/aws-integration/CreateNewAWSExternalID_364713854.rb +0 -3
- data/examples/v2/aws-integration/DeleteAWSAccount.rb +0 -3
- data/examples/v2/aws-integration/GetAWSAccount.rb +0 -3
- data/examples/v2/aws-integration/ListAWSAccounts.rb +0 -3
- data/examples/v2/aws-integration/ListAWSNamespaces.rb +0 -3
- data/examples/v2/aws-integration/ListAWSNamespaces_3031307873.rb +0 -3
- data/examples/v2/aws-integration/UpdateAWSAccount.rb +0 -3
- data/examples/v2/aws-logs-integration/ListAWSLogsServices.rb +0 -3
- data/examples/v2/ci-visibility-pipelines/CreateCIAppPipelineEvent_2836340212.rb +52 -0
- data/examples/v2/incidents/CreateIncidentNotificationRule.rb +50 -0
- data/examples/v2/incidents/CreateIncidentNotificationRule_3029800608.rb +42 -0
- data/examples/v2/incidents/DeleteIncidentNotificationRule.rb +8 -0
- data/examples/v2/incidents/DeleteIncidentNotificationRule_4148107167.rb +11 -0
- data/examples/v2/incidents/GetIncidentNotificationRule.rb +8 -0
- data/examples/v2/incidents/GetIncidentNotificationRule_67441486.rb +11 -0
- data/examples/v2/incidents/ListIncidentNotificationRules.rb +8 -0
- data/examples/v2/incidents/UpdateIncidentNotificationRule.rb +51 -0
- data/examples/v2/incidents/UpdateIncidentNotificationRule_1207309457.rb +45 -0
- data/lib/datadog_api_client/configuration.rb +5 -8
- data/lib/datadog_api_client/inflector.rb +67 -0
- data/lib/datadog_api_client/v1/api/aws_integration_api.rb +27 -0
- data/lib/datadog_api_client/v1/api/aws_logs_integration_api.rb +9 -0
- data/lib/datadog_api_client/v1/models/gcp_account.rb +18 -4
- data/lib/datadog_api_client/v1/models/gcp_monitored_resource_config.rb +118 -0
- data/lib/datadog_api_client/v1/models/gcp_monitored_resource_config_type.rb +28 -0
- data/lib/datadog_api_client/v2/api/actions_datastores_api.rb +655 -0
- data/lib/datadog_api_client/v2/api/aws_integration_api.rb +0 -42
- data/lib/datadog_api_client/v2/api/aws_logs_integration_api.rb +0 -6
- data/lib/datadog_api_client/v2/api/ci_visibility_pipelines_api.rb +2 -0
- data/lib/datadog_api_client/v2/api/incidents_api.rb +367 -0
- data/lib/datadog_api_client/v2/api/org_connections_api.rb +8 -0
- data/lib/datadog_api_client/v2/models/bulk_put_apps_datastore_items_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/bulk_put_apps_datastore_items_request_data.rb +133 -0
- data/lib/datadog_api_client/v2/models/bulk_put_apps_datastore_items_request_data_attributes.rb +139 -0
- data/lib/datadog_api_client/v2/models/ci_app_create_pipeline_event_request.rb +2 -2
- data/lib/datadog_api_client/v2/models/ci_app_create_pipeline_event_request_data_single_or_array.rb +63 -0
- data/lib/datadog_api_client/v2/models/create_apps_datastore_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/create_apps_datastore_request_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/create_apps_datastore_request_data_attributes.rb +180 -0
- data/lib/datadog_api_client/v2/models/create_apps_datastore_request_data_attributes_org_access.rb +28 -0
- data/lib/datadog_api_client/v2/models/create_apps_datastore_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/create_apps_datastore_response_data.rb +133 -0
- data/lib/datadog_api_client/v2/models/create_incident_notification_rule_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/datastore.rb +105 -0
- data/lib/datadog_api_client/v2/models/datastore_array.rb +125 -0
- data/lib/datadog_api_client/v2/models/datastore_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/datastore_data_attributes.rb +205 -0
- data/lib/datadog_api_client/v2/models/datastore_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/datastore_item_conflict_mode.rb +27 -0
- data/lib/datadog_api_client/v2/models/datastore_items_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/datastore_primary_key_generation_strategy.rb +27 -0
- data/lib/datadog_api_client/v2/models/delete_apps_datastore_item_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/delete_apps_datastore_item_request_data.rb +133 -0
- data/lib/datadog_api_client/v2/models/delete_apps_datastore_item_request_data_attributes.rb +137 -0
- data/lib/datadog_api_client/v2/models/delete_apps_datastore_item_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/delete_apps_datastore_item_response_data.rb +133 -0
- data/lib/datadog_api_client/v2/models/dora_failure_request_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/gcp_monitored_resource_config.rb +118 -0
- data/lib/datadog_api_client/v2/models/gcp_monitored_resource_config_type.rb +28 -0
- data/lib/datadog_api_client/v2/models/gcpsts_service_account_attributes.rb +17 -2
- data/lib/datadog_api_client/v2/models/incident_notification_rule.rb +135 -0
- data/lib/datadog_api_client/v2/models/incident_notification_rule_array.rb +147 -0
- data/lib/datadog_api_client/v2/models/incident_notification_rule_array_meta.rb +105 -0
- data/lib/datadog_api_client/v2/models/incident_notification_rule_array_meta_page.rb +125 -0
- data/lib/datadog_api_client/v2/models/incident_notification_rule_attributes.rb +265 -0
- data/lib/datadog_api_client/v2/models/incident_notification_rule_attributes_visibility.rb +28 -0
- data/lib/datadog_api_client/v2/models/incident_notification_rule_conditions_items.rb +146 -0
- data/lib/datadog_api_client/v2/models/incident_notification_rule_create_attributes.rb +201 -0
- data/lib/datadog_api_client/v2/models/incident_notification_rule_create_attributes_visibility.rb +28 -0
- data/lib/datadog_api_client/v2/models/incident_notification_rule_create_data.rb +154 -0
- data/lib/datadog_api_client/v2/models/incident_notification_rule_create_data_relationships.rb +115 -0
- data/lib/datadog_api_client/v2/models/incident_notification_rule_included_items.rb +64 -0
- data/lib/datadog_api_client/v2/models/incident_notification_rule_relationships.rb +135 -0
- data/lib/datadog_api_client/v2/models/incident_notification_rule_response_data.rb +164 -0
- data/lib/datadog_api_client/v2/models/incident_notification_rule_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/incident_notification_rule_update_data.rb +175 -0
- data/lib/datadog_api_client/v2/models/incident_notification_template_object.rb +164 -0
- data/lib/datadog_api_client/v2/models/item_api_payload.rb +105 -0
- data/lib/datadog_api_client/v2/models/item_api_payload_array.rb +139 -0
- data/lib/datadog_api_client/v2/models/item_api_payload_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/item_api_payload_data_attributes.rb +185 -0
- data/lib/datadog_api_client/v2/models/item_api_payload_meta.rb +115 -0
- data/lib/datadog_api_client/v2/models/item_api_payload_meta_page.rb +125 -0
- data/lib/datadog_api_client/v2/models/item_api_payload_meta_schema.rb +117 -0
- data/lib/datadog_api_client/v2/models/item_api_payload_meta_schema_field.rb +144 -0
- data/lib/datadog_api_client/v2/models/put_apps_datastore_item_response_array.rb +129 -0
- data/lib/datadog_api_client/v2/models/put_apps_datastore_item_response_data.rb +133 -0
- data/lib/datadog_api_client/v2/models/put_incident_notification_rule_request.rb +123 -0
- data/lib/datadog_api_client/v2/models/relationship_to_incident_notification_template.rb +123 -0
- data/lib/datadog_api_client/v2/models/relationship_to_incident_notification_template_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_convert_response.rb +11 -1
- data/lib/datadog_api_client/v2/models/update_apps_datastore_item_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/update_apps_datastore_item_request_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/update_apps_datastore_item_request_data_attributes.rb +158 -0
- data/lib/datadog_api_client/v2/models/update_apps_datastore_item_request_data_attributes_item_changes.rb +105 -0
- data/lib/datadog_api_client/v2/models/update_apps_datastore_item_request_data_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/update_apps_datastore_request.rb +105 -0
- data/lib/datadog_api_client/v2/models/update_apps_datastore_request_data.rb +143 -0
- data/lib/datadog_api_client/v2/models/update_apps_datastore_request_data_attributes.rb +115 -0
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +87 -1
|
@@ -0,0 +1,655 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Datadog API V2 Collection
|
|
3
|
+
|
|
4
|
+
#Collection of all Datadog Public endpoints.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0
|
|
7
|
+
Contact: support@datadoghq.com
|
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
|
9
|
+
|
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
|
13
|
+
|
|
14
|
+
=end
|
|
15
|
+
|
|
16
|
+
require 'cgi'
|
|
17
|
+
|
|
18
|
+
module DatadogAPIClient::V2
|
|
19
|
+
class ActionsDatastoresAPI
|
|
20
|
+
attr_accessor :api_client
|
|
21
|
+
|
|
22
|
+
def initialize(api_client = DatadogAPIClient::APIClient.default)
|
|
23
|
+
@api_client = api_client
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# Bulk write datastore items.
|
|
27
|
+
#
|
|
28
|
+
# @see #bulk_write_datastore_items_with_http_info
|
|
29
|
+
def bulk_write_datastore_items(datastore_id, body, opts = {})
|
|
30
|
+
data, _status_code, _headers = bulk_write_datastore_items_with_http_info(datastore_id, body, opts)
|
|
31
|
+
data
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Bulk write datastore items.
|
|
35
|
+
#
|
|
36
|
+
# Creates or replaces multiple items in a datastore by their keys in a single operation.
|
|
37
|
+
#
|
|
38
|
+
# @param datastore_id [String] The unique identifier of the datastore to retrieve.
|
|
39
|
+
# @param body [BulkPutAppsDatastoreItemsRequest]
|
|
40
|
+
# @param opts [Hash] the optional parameters
|
|
41
|
+
# @return [Array<(PutAppsDatastoreItemResponseArray, Integer, Hash)>] PutAppsDatastoreItemResponseArray data, response status code and response headers
|
|
42
|
+
def bulk_write_datastore_items_with_http_info(datastore_id, body, opts = {})
|
|
43
|
+
|
|
44
|
+
if @api_client.config.debugging
|
|
45
|
+
@api_client.config.logger.debug 'Calling API: ActionsDatastoresAPI.bulk_write_datastore_items ...'
|
|
46
|
+
end
|
|
47
|
+
# verify the required parameter 'datastore_id' is set
|
|
48
|
+
if @api_client.config.client_side_validation && datastore_id.nil?
|
|
49
|
+
fail ArgumentError, "Missing the required parameter 'datastore_id' when calling ActionsDatastoresAPI.bulk_write_datastore_items"
|
|
50
|
+
end
|
|
51
|
+
# verify the required parameter 'body' is set
|
|
52
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
53
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling ActionsDatastoresAPI.bulk_write_datastore_items"
|
|
54
|
+
end
|
|
55
|
+
# resource path
|
|
56
|
+
local_var_path = '/api/v2/actions-datastores/{datastore_id}/items/bulk'.sub('{datastore_id}', CGI.escape(datastore_id.to_s).gsub('%2F', '/'))
|
|
57
|
+
|
|
58
|
+
# query parameters
|
|
59
|
+
query_params = opts[:query_params] || {}
|
|
60
|
+
|
|
61
|
+
# header parameters
|
|
62
|
+
header_params = opts[:header_params] || {}
|
|
63
|
+
# HTTP header 'Accept' (if needed)
|
|
64
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
65
|
+
# HTTP header 'Content-Type'
|
|
66
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
67
|
+
|
|
68
|
+
# form parameters
|
|
69
|
+
form_params = opts[:form_params] || {}
|
|
70
|
+
|
|
71
|
+
# http body (model)
|
|
72
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
73
|
+
|
|
74
|
+
# return_type
|
|
75
|
+
return_type = opts[:debug_return_type] || 'PutAppsDatastoreItemResponseArray'
|
|
76
|
+
|
|
77
|
+
# auth_names
|
|
78
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
79
|
+
|
|
80
|
+
new_options = opts.merge(
|
|
81
|
+
:operation => :bulk_write_datastore_items,
|
|
82
|
+
:header_params => header_params,
|
|
83
|
+
:query_params => query_params,
|
|
84
|
+
:form_params => form_params,
|
|
85
|
+
:body => post_body,
|
|
86
|
+
:auth_names => auth_names,
|
|
87
|
+
:return_type => return_type,
|
|
88
|
+
:api_version => "V2"
|
|
89
|
+
)
|
|
90
|
+
|
|
91
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
|
92
|
+
if @api_client.config.debugging
|
|
93
|
+
@api_client.config.logger.debug "API called: ActionsDatastoresAPI#bulk_write_datastore_items\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
94
|
+
end
|
|
95
|
+
return data, status_code, headers
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# Create datastore.
|
|
99
|
+
#
|
|
100
|
+
# @see #create_datastore_with_http_info
|
|
101
|
+
def create_datastore(body, opts = {})
|
|
102
|
+
data, _status_code, _headers = create_datastore_with_http_info(body, opts)
|
|
103
|
+
data
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
# Create datastore.
|
|
107
|
+
#
|
|
108
|
+
# Creates a new datastore.
|
|
109
|
+
#
|
|
110
|
+
# @param body [CreateAppsDatastoreRequest]
|
|
111
|
+
# @param opts [Hash] the optional parameters
|
|
112
|
+
# @return [Array<(CreateAppsDatastoreResponse, Integer, Hash)>] CreateAppsDatastoreResponse data, response status code and response headers
|
|
113
|
+
def create_datastore_with_http_info(body, opts = {})
|
|
114
|
+
|
|
115
|
+
if @api_client.config.debugging
|
|
116
|
+
@api_client.config.logger.debug 'Calling API: ActionsDatastoresAPI.create_datastore ...'
|
|
117
|
+
end
|
|
118
|
+
# verify the required parameter 'body' is set
|
|
119
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
120
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling ActionsDatastoresAPI.create_datastore"
|
|
121
|
+
end
|
|
122
|
+
# resource path
|
|
123
|
+
local_var_path = '/api/v2/actions-datastores'
|
|
124
|
+
|
|
125
|
+
# query parameters
|
|
126
|
+
query_params = opts[:query_params] || {}
|
|
127
|
+
|
|
128
|
+
# header parameters
|
|
129
|
+
header_params = opts[:header_params] || {}
|
|
130
|
+
# HTTP header 'Accept' (if needed)
|
|
131
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
132
|
+
# HTTP header 'Content-Type'
|
|
133
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
134
|
+
|
|
135
|
+
# form parameters
|
|
136
|
+
form_params = opts[:form_params] || {}
|
|
137
|
+
|
|
138
|
+
# http body (model)
|
|
139
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
140
|
+
|
|
141
|
+
# return_type
|
|
142
|
+
return_type = opts[:debug_return_type] || 'CreateAppsDatastoreResponse'
|
|
143
|
+
|
|
144
|
+
# auth_names
|
|
145
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
146
|
+
|
|
147
|
+
new_options = opts.merge(
|
|
148
|
+
:operation => :create_datastore,
|
|
149
|
+
:header_params => header_params,
|
|
150
|
+
:query_params => query_params,
|
|
151
|
+
:form_params => form_params,
|
|
152
|
+
:body => post_body,
|
|
153
|
+
:auth_names => auth_names,
|
|
154
|
+
:return_type => return_type,
|
|
155
|
+
:api_version => "V2"
|
|
156
|
+
)
|
|
157
|
+
|
|
158
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options)
|
|
159
|
+
if @api_client.config.debugging
|
|
160
|
+
@api_client.config.logger.debug "API called: ActionsDatastoresAPI#create_datastore\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
161
|
+
end
|
|
162
|
+
return data, status_code, headers
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
# Delete datastore.
|
|
166
|
+
#
|
|
167
|
+
# @see #delete_datastore_with_http_info
|
|
168
|
+
def delete_datastore(datastore_id, opts = {})
|
|
169
|
+
delete_datastore_with_http_info(datastore_id, opts)
|
|
170
|
+
nil
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
# Delete datastore.
|
|
174
|
+
#
|
|
175
|
+
# Deletes a datastore by its unique identifier.
|
|
176
|
+
#
|
|
177
|
+
# @param datastore_id [String] The unique identifier of the datastore to retrieve.
|
|
178
|
+
# @param opts [Hash] the optional parameters
|
|
179
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
180
|
+
def delete_datastore_with_http_info(datastore_id, opts = {})
|
|
181
|
+
|
|
182
|
+
if @api_client.config.debugging
|
|
183
|
+
@api_client.config.logger.debug 'Calling API: ActionsDatastoresAPI.delete_datastore ...'
|
|
184
|
+
end
|
|
185
|
+
# verify the required parameter 'datastore_id' is set
|
|
186
|
+
if @api_client.config.client_side_validation && datastore_id.nil?
|
|
187
|
+
fail ArgumentError, "Missing the required parameter 'datastore_id' when calling ActionsDatastoresAPI.delete_datastore"
|
|
188
|
+
end
|
|
189
|
+
# resource path
|
|
190
|
+
local_var_path = '/api/v2/actions-datastores/{datastore_id}'.sub('{datastore_id}', CGI.escape(datastore_id.to_s).gsub('%2F', '/'))
|
|
191
|
+
|
|
192
|
+
# query parameters
|
|
193
|
+
query_params = opts[:query_params] || {}
|
|
194
|
+
|
|
195
|
+
# header parameters
|
|
196
|
+
header_params = opts[:header_params] || {}
|
|
197
|
+
# HTTP header 'Accept' (if needed)
|
|
198
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
199
|
+
|
|
200
|
+
# form parameters
|
|
201
|
+
form_params = opts[:form_params] || {}
|
|
202
|
+
|
|
203
|
+
# http body (model)
|
|
204
|
+
post_body = opts[:debug_body]
|
|
205
|
+
|
|
206
|
+
# return_type
|
|
207
|
+
return_type = opts[:debug_return_type]
|
|
208
|
+
|
|
209
|
+
# auth_names
|
|
210
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
211
|
+
|
|
212
|
+
new_options = opts.merge(
|
|
213
|
+
:operation => :delete_datastore,
|
|
214
|
+
:header_params => header_params,
|
|
215
|
+
:query_params => query_params,
|
|
216
|
+
:form_params => form_params,
|
|
217
|
+
:body => post_body,
|
|
218
|
+
:auth_names => auth_names,
|
|
219
|
+
:return_type => return_type,
|
|
220
|
+
:api_version => "V2"
|
|
221
|
+
)
|
|
222
|
+
|
|
223
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Delete, local_var_path, new_options)
|
|
224
|
+
if @api_client.config.debugging
|
|
225
|
+
@api_client.config.logger.debug "API called: ActionsDatastoresAPI#delete_datastore\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
226
|
+
end
|
|
227
|
+
return data, status_code, headers
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
# Delete datastore item.
|
|
231
|
+
#
|
|
232
|
+
# @see #delete_datastore_item_with_http_info
|
|
233
|
+
def delete_datastore_item(datastore_id, body, opts = {})
|
|
234
|
+
data, _status_code, _headers = delete_datastore_item_with_http_info(datastore_id, body, opts)
|
|
235
|
+
data
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
# Delete datastore item.
|
|
239
|
+
#
|
|
240
|
+
# Deletes an item from a datastore by its key.
|
|
241
|
+
#
|
|
242
|
+
# @param datastore_id [String] The unique identifier of the datastore to retrieve.
|
|
243
|
+
# @param body [DeleteAppsDatastoreItemRequest]
|
|
244
|
+
# @param opts [Hash] the optional parameters
|
|
245
|
+
# @return [Array<(DeleteAppsDatastoreItemResponse, Integer, Hash)>] DeleteAppsDatastoreItemResponse data, response status code and response headers
|
|
246
|
+
def delete_datastore_item_with_http_info(datastore_id, body, opts = {})
|
|
247
|
+
|
|
248
|
+
if @api_client.config.debugging
|
|
249
|
+
@api_client.config.logger.debug 'Calling API: ActionsDatastoresAPI.delete_datastore_item ...'
|
|
250
|
+
end
|
|
251
|
+
# verify the required parameter 'datastore_id' is set
|
|
252
|
+
if @api_client.config.client_side_validation && datastore_id.nil?
|
|
253
|
+
fail ArgumentError, "Missing the required parameter 'datastore_id' when calling ActionsDatastoresAPI.delete_datastore_item"
|
|
254
|
+
end
|
|
255
|
+
# verify the required parameter 'body' is set
|
|
256
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
257
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling ActionsDatastoresAPI.delete_datastore_item"
|
|
258
|
+
end
|
|
259
|
+
# resource path
|
|
260
|
+
local_var_path = '/api/v2/actions-datastores/{datastore_id}/items'.sub('{datastore_id}', CGI.escape(datastore_id.to_s).gsub('%2F', '/'))
|
|
261
|
+
|
|
262
|
+
# query parameters
|
|
263
|
+
query_params = opts[:query_params] || {}
|
|
264
|
+
|
|
265
|
+
# header parameters
|
|
266
|
+
header_params = opts[:header_params] || {}
|
|
267
|
+
# HTTP header 'Accept' (if needed)
|
|
268
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
269
|
+
# HTTP header 'Content-Type'
|
|
270
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
271
|
+
|
|
272
|
+
# form parameters
|
|
273
|
+
form_params = opts[:form_params] || {}
|
|
274
|
+
|
|
275
|
+
# http body (model)
|
|
276
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
277
|
+
|
|
278
|
+
# return_type
|
|
279
|
+
return_type = opts[:debug_return_type] || 'DeleteAppsDatastoreItemResponse'
|
|
280
|
+
|
|
281
|
+
# auth_names
|
|
282
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
283
|
+
|
|
284
|
+
new_options = opts.merge(
|
|
285
|
+
:operation => :delete_datastore_item,
|
|
286
|
+
:header_params => header_params,
|
|
287
|
+
:query_params => query_params,
|
|
288
|
+
:form_params => form_params,
|
|
289
|
+
:body => post_body,
|
|
290
|
+
:auth_names => auth_names,
|
|
291
|
+
:return_type => return_type,
|
|
292
|
+
:api_version => "V2"
|
|
293
|
+
)
|
|
294
|
+
|
|
295
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Delete, local_var_path, new_options)
|
|
296
|
+
if @api_client.config.debugging
|
|
297
|
+
@api_client.config.logger.debug "API called: ActionsDatastoresAPI#delete_datastore_item\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
298
|
+
end
|
|
299
|
+
return data, status_code, headers
|
|
300
|
+
end
|
|
301
|
+
|
|
302
|
+
# Get datastore.
|
|
303
|
+
#
|
|
304
|
+
# @see #get_datastore_with_http_info
|
|
305
|
+
def get_datastore(datastore_id, opts = {})
|
|
306
|
+
data, _status_code, _headers = get_datastore_with_http_info(datastore_id, opts)
|
|
307
|
+
data
|
|
308
|
+
end
|
|
309
|
+
|
|
310
|
+
# Get datastore.
|
|
311
|
+
#
|
|
312
|
+
# Retrieves a specific datastore by its ID.
|
|
313
|
+
#
|
|
314
|
+
# @param datastore_id [String] The unique identifier of the datastore to retrieve.
|
|
315
|
+
# @param opts [Hash] the optional parameters
|
|
316
|
+
# @return [Array<(Datastore, Integer, Hash)>] Datastore data, response status code and response headers
|
|
317
|
+
def get_datastore_with_http_info(datastore_id, opts = {})
|
|
318
|
+
|
|
319
|
+
if @api_client.config.debugging
|
|
320
|
+
@api_client.config.logger.debug 'Calling API: ActionsDatastoresAPI.get_datastore ...'
|
|
321
|
+
end
|
|
322
|
+
# verify the required parameter 'datastore_id' is set
|
|
323
|
+
if @api_client.config.client_side_validation && datastore_id.nil?
|
|
324
|
+
fail ArgumentError, "Missing the required parameter 'datastore_id' when calling ActionsDatastoresAPI.get_datastore"
|
|
325
|
+
end
|
|
326
|
+
# resource path
|
|
327
|
+
local_var_path = '/api/v2/actions-datastores/{datastore_id}'.sub('{datastore_id}', CGI.escape(datastore_id.to_s).gsub('%2F', '/'))
|
|
328
|
+
|
|
329
|
+
# query parameters
|
|
330
|
+
query_params = opts[:query_params] || {}
|
|
331
|
+
|
|
332
|
+
# header parameters
|
|
333
|
+
header_params = opts[:header_params] || {}
|
|
334
|
+
# HTTP header 'Accept' (if needed)
|
|
335
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
336
|
+
|
|
337
|
+
# form parameters
|
|
338
|
+
form_params = opts[:form_params] || {}
|
|
339
|
+
|
|
340
|
+
# http body (model)
|
|
341
|
+
post_body = opts[:debug_body]
|
|
342
|
+
|
|
343
|
+
# return_type
|
|
344
|
+
return_type = opts[:debug_return_type] || 'Datastore'
|
|
345
|
+
|
|
346
|
+
# auth_names
|
|
347
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
348
|
+
|
|
349
|
+
new_options = opts.merge(
|
|
350
|
+
:operation => :get_datastore,
|
|
351
|
+
:header_params => header_params,
|
|
352
|
+
:query_params => query_params,
|
|
353
|
+
:form_params => form_params,
|
|
354
|
+
:body => post_body,
|
|
355
|
+
:auth_names => auth_names,
|
|
356
|
+
:return_type => return_type,
|
|
357
|
+
:api_version => "V2"
|
|
358
|
+
)
|
|
359
|
+
|
|
360
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
361
|
+
if @api_client.config.debugging
|
|
362
|
+
@api_client.config.logger.debug "API called: ActionsDatastoresAPI#get_datastore\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
363
|
+
end
|
|
364
|
+
return data, status_code, headers
|
|
365
|
+
end
|
|
366
|
+
|
|
367
|
+
# List datastore items.
|
|
368
|
+
#
|
|
369
|
+
# @see #list_datastore_items_with_http_info
|
|
370
|
+
def list_datastore_items(datastore_id, opts = {})
|
|
371
|
+
data, _status_code, _headers = list_datastore_items_with_http_info(datastore_id, opts)
|
|
372
|
+
data
|
|
373
|
+
end
|
|
374
|
+
|
|
375
|
+
# List datastore items.
|
|
376
|
+
#
|
|
377
|
+
# Lists items from a datastore. You can filter the results by specifying either an item key or a filter query parameter, but not both at the same time. Supports server-side pagination for large datasets.
|
|
378
|
+
#
|
|
379
|
+
# @param datastore_id [String] The unique identifier of the datastore to retrieve.
|
|
380
|
+
# @param opts [Hash] the optional parameters
|
|
381
|
+
# @option opts [String] :filter Optional query filter to search items using the [logs search syntax](https://docs.datadoghq.com/logs/explorer/search_syntax/).
|
|
382
|
+
# @option opts [String] :item_key Optional primary key value to retrieve a specific item. Cannot be used together with the filter parameter.
|
|
383
|
+
# @option opts [Integer] :page_limit Optional field to limit the number of items to return per page for pagination. Up to 100 items can be returned per page.
|
|
384
|
+
# @option opts [Integer] :page_offset Optional field to offset the number of items to skip from the beginning of the result set for pagination.
|
|
385
|
+
# @option opts [String] :sort Optional field to sort results by. Prefix with '-' for descending order (e.g., '-created_at').
|
|
386
|
+
# @return [Array<(ItemApiPayloadArray, Integer, Hash)>] ItemApiPayloadArray data, response status code and response headers
|
|
387
|
+
def list_datastore_items_with_http_info(datastore_id, opts = {})
|
|
388
|
+
|
|
389
|
+
if @api_client.config.debugging
|
|
390
|
+
@api_client.config.logger.debug 'Calling API: ActionsDatastoresAPI.list_datastore_items ...'
|
|
391
|
+
end
|
|
392
|
+
# verify the required parameter 'datastore_id' is set
|
|
393
|
+
if @api_client.config.client_side_validation && datastore_id.nil?
|
|
394
|
+
fail ArgumentError, "Missing the required parameter 'datastore_id' when calling ActionsDatastoresAPI.list_datastore_items"
|
|
395
|
+
end
|
|
396
|
+
if @api_client.config.client_side_validation && !opts[:'item_key'].nil? && opts[:'item_key'].to_s.length > 256
|
|
397
|
+
fail ArgumentError, 'invalid value for "opts[:"item_key"]" when calling ActionsDatastoresAPI.list_datastore_items, the character length must be smaller than or equal to 256.'
|
|
398
|
+
end
|
|
399
|
+
if @api_client.config.client_side_validation && !opts[:'page_limit'].nil? && opts[:'page_limit'] > 100
|
|
400
|
+
fail ArgumentError, 'invalid value for "opts[:"page_limit"]" when calling ActionsDatastoresAPI.list_datastore_items, must be smaller than or equal to 100.'
|
|
401
|
+
end
|
|
402
|
+
if @api_client.config.client_side_validation && !opts[:'page_limit'].nil? && opts[:'page_limit'] < 1
|
|
403
|
+
fail ArgumentError, 'invalid value for "opts[:"page_limit"]" when calling ActionsDatastoresAPI.list_datastore_items, must be greater than or equal to 1.'
|
|
404
|
+
end
|
|
405
|
+
# resource path
|
|
406
|
+
local_var_path = '/api/v2/actions-datastores/{datastore_id}/items'.sub('{datastore_id}', CGI.escape(datastore_id.to_s).gsub('%2F', '/'))
|
|
407
|
+
|
|
408
|
+
# query parameters
|
|
409
|
+
query_params = opts[:query_params] || {}
|
|
410
|
+
query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
|
|
411
|
+
query_params[:'item_key'] = opts[:'item_key'] if !opts[:'item_key'].nil?
|
|
412
|
+
query_params[:'page[limit]'] = opts[:'page_limit'] if !opts[:'page_limit'].nil?
|
|
413
|
+
query_params[:'page[offset]'] = opts[:'page_offset'] if !opts[:'page_offset'].nil?
|
|
414
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
415
|
+
|
|
416
|
+
# header parameters
|
|
417
|
+
header_params = opts[:header_params] || {}
|
|
418
|
+
# HTTP header 'Accept' (if needed)
|
|
419
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
420
|
+
|
|
421
|
+
# form parameters
|
|
422
|
+
form_params = opts[:form_params] || {}
|
|
423
|
+
|
|
424
|
+
# http body (model)
|
|
425
|
+
post_body = opts[:debug_body]
|
|
426
|
+
|
|
427
|
+
# return_type
|
|
428
|
+
return_type = opts[:debug_return_type] || 'ItemApiPayloadArray'
|
|
429
|
+
|
|
430
|
+
# auth_names
|
|
431
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
432
|
+
|
|
433
|
+
new_options = opts.merge(
|
|
434
|
+
:operation => :list_datastore_items,
|
|
435
|
+
:header_params => header_params,
|
|
436
|
+
:query_params => query_params,
|
|
437
|
+
:form_params => form_params,
|
|
438
|
+
:body => post_body,
|
|
439
|
+
:auth_names => auth_names,
|
|
440
|
+
:return_type => return_type,
|
|
441
|
+
:api_version => "V2"
|
|
442
|
+
)
|
|
443
|
+
|
|
444
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
445
|
+
if @api_client.config.debugging
|
|
446
|
+
@api_client.config.logger.debug "API called: ActionsDatastoresAPI#list_datastore_items\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
447
|
+
end
|
|
448
|
+
return data, status_code, headers
|
|
449
|
+
end
|
|
450
|
+
|
|
451
|
+
# List datastores.
|
|
452
|
+
#
|
|
453
|
+
# @see #list_datastores_with_http_info
|
|
454
|
+
def list_datastores(opts = {})
|
|
455
|
+
data, _status_code, _headers = list_datastores_with_http_info(opts)
|
|
456
|
+
data
|
|
457
|
+
end
|
|
458
|
+
|
|
459
|
+
# List datastores.
|
|
460
|
+
#
|
|
461
|
+
# Lists all datastores for the organization.
|
|
462
|
+
#
|
|
463
|
+
# @param opts [Hash] the optional parameters
|
|
464
|
+
# @return [Array<(DatastoreArray, Integer, Hash)>] DatastoreArray data, response status code and response headers
|
|
465
|
+
def list_datastores_with_http_info(opts = {})
|
|
466
|
+
|
|
467
|
+
if @api_client.config.debugging
|
|
468
|
+
@api_client.config.logger.debug 'Calling API: ActionsDatastoresAPI.list_datastores ...'
|
|
469
|
+
end
|
|
470
|
+
# resource path
|
|
471
|
+
local_var_path = '/api/v2/actions-datastores'
|
|
472
|
+
|
|
473
|
+
# query parameters
|
|
474
|
+
query_params = opts[:query_params] || {}
|
|
475
|
+
|
|
476
|
+
# header parameters
|
|
477
|
+
header_params = opts[:header_params] || {}
|
|
478
|
+
# HTTP header 'Accept' (if needed)
|
|
479
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
480
|
+
|
|
481
|
+
# form parameters
|
|
482
|
+
form_params = opts[:form_params] || {}
|
|
483
|
+
|
|
484
|
+
# http body (model)
|
|
485
|
+
post_body = opts[:debug_body]
|
|
486
|
+
|
|
487
|
+
# return_type
|
|
488
|
+
return_type = opts[:debug_return_type] || 'DatastoreArray'
|
|
489
|
+
|
|
490
|
+
# auth_names
|
|
491
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
492
|
+
|
|
493
|
+
new_options = opts.merge(
|
|
494
|
+
:operation => :list_datastores,
|
|
495
|
+
:header_params => header_params,
|
|
496
|
+
:query_params => query_params,
|
|
497
|
+
:form_params => form_params,
|
|
498
|
+
:body => post_body,
|
|
499
|
+
:auth_names => auth_names,
|
|
500
|
+
:return_type => return_type,
|
|
501
|
+
:api_version => "V2"
|
|
502
|
+
)
|
|
503
|
+
|
|
504
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
|
|
505
|
+
if @api_client.config.debugging
|
|
506
|
+
@api_client.config.logger.debug "API called: ActionsDatastoresAPI#list_datastores\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
507
|
+
end
|
|
508
|
+
return data, status_code, headers
|
|
509
|
+
end
|
|
510
|
+
|
|
511
|
+
# Update datastore.
|
|
512
|
+
#
|
|
513
|
+
# @see #update_datastore_with_http_info
|
|
514
|
+
def update_datastore(datastore_id, body, opts = {})
|
|
515
|
+
data, _status_code, _headers = update_datastore_with_http_info(datastore_id, body, opts)
|
|
516
|
+
data
|
|
517
|
+
end
|
|
518
|
+
|
|
519
|
+
# Update datastore.
|
|
520
|
+
#
|
|
521
|
+
# Updates an existing datastore's attributes.
|
|
522
|
+
#
|
|
523
|
+
# @param datastore_id [String] The unique identifier of the datastore to retrieve.
|
|
524
|
+
# @param body [UpdateAppsDatastoreRequest]
|
|
525
|
+
# @param opts [Hash] the optional parameters
|
|
526
|
+
# @return [Array<(Datastore, Integer, Hash)>] Datastore data, response status code and response headers
|
|
527
|
+
def update_datastore_with_http_info(datastore_id, body, opts = {})
|
|
528
|
+
|
|
529
|
+
if @api_client.config.debugging
|
|
530
|
+
@api_client.config.logger.debug 'Calling API: ActionsDatastoresAPI.update_datastore ...'
|
|
531
|
+
end
|
|
532
|
+
# verify the required parameter 'datastore_id' is set
|
|
533
|
+
if @api_client.config.client_side_validation && datastore_id.nil?
|
|
534
|
+
fail ArgumentError, "Missing the required parameter 'datastore_id' when calling ActionsDatastoresAPI.update_datastore"
|
|
535
|
+
end
|
|
536
|
+
# verify the required parameter 'body' is set
|
|
537
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
538
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling ActionsDatastoresAPI.update_datastore"
|
|
539
|
+
end
|
|
540
|
+
# resource path
|
|
541
|
+
local_var_path = '/api/v2/actions-datastores/{datastore_id}'.sub('{datastore_id}', CGI.escape(datastore_id.to_s).gsub('%2F', '/'))
|
|
542
|
+
|
|
543
|
+
# query parameters
|
|
544
|
+
query_params = opts[:query_params] || {}
|
|
545
|
+
|
|
546
|
+
# header parameters
|
|
547
|
+
header_params = opts[:header_params] || {}
|
|
548
|
+
# HTTP header 'Accept' (if needed)
|
|
549
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
550
|
+
# HTTP header 'Content-Type'
|
|
551
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
552
|
+
|
|
553
|
+
# form parameters
|
|
554
|
+
form_params = opts[:form_params] || {}
|
|
555
|
+
|
|
556
|
+
# http body (model)
|
|
557
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
558
|
+
|
|
559
|
+
# return_type
|
|
560
|
+
return_type = opts[:debug_return_type] || 'Datastore'
|
|
561
|
+
|
|
562
|
+
# auth_names
|
|
563
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
564
|
+
|
|
565
|
+
new_options = opts.merge(
|
|
566
|
+
:operation => :update_datastore,
|
|
567
|
+
:header_params => header_params,
|
|
568
|
+
:query_params => query_params,
|
|
569
|
+
:form_params => form_params,
|
|
570
|
+
:body => post_body,
|
|
571
|
+
:auth_names => auth_names,
|
|
572
|
+
:return_type => return_type,
|
|
573
|
+
:api_version => "V2"
|
|
574
|
+
)
|
|
575
|
+
|
|
576
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Patch, local_var_path, new_options)
|
|
577
|
+
if @api_client.config.debugging
|
|
578
|
+
@api_client.config.logger.debug "API called: ActionsDatastoresAPI#update_datastore\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
579
|
+
end
|
|
580
|
+
return data, status_code, headers
|
|
581
|
+
end
|
|
582
|
+
|
|
583
|
+
# Update datastore item.
|
|
584
|
+
#
|
|
585
|
+
# @see #update_datastore_item_with_http_info
|
|
586
|
+
def update_datastore_item(datastore_id, body, opts = {})
|
|
587
|
+
data, _status_code, _headers = update_datastore_item_with_http_info(datastore_id, body, opts)
|
|
588
|
+
data
|
|
589
|
+
end
|
|
590
|
+
|
|
591
|
+
# Update datastore item.
|
|
592
|
+
#
|
|
593
|
+
# Partially updates an item in a datastore by its key.
|
|
594
|
+
#
|
|
595
|
+
# @param datastore_id [String] The unique identifier of the datastore to retrieve.
|
|
596
|
+
# @param body [UpdateAppsDatastoreItemRequest]
|
|
597
|
+
# @param opts [Hash] the optional parameters
|
|
598
|
+
# @return [Array<(ItemApiPayload, Integer, Hash)>] ItemApiPayload data, response status code and response headers
|
|
599
|
+
def update_datastore_item_with_http_info(datastore_id, body, opts = {})
|
|
600
|
+
|
|
601
|
+
if @api_client.config.debugging
|
|
602
|
+
@api_client.config.logger.debug 'Calling API: ActionsDatastoresAPI.update_datastore_item ...'
|
|
603
|
+
end
|
|
604
|
+
# verify the required parameter 'datastore_id' is set
|
|
605
|
+
if @api_client.config.client_side_validation && datastore_id.nil?
|
|
606
|
+
fail ArgumentError, "Missing the required parameter 'datastore_id' when calling ActionsDatastoresAPI.update_datastore_item"
|
|
607
|
+
end
|
|
608
|
+
# verify the required parameter 'body' is set
|
|
609
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
610
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling ActionsDatastoresAPI.update_datastore_item"
|
|
611
|
+
end
|
|
612
|
+
# resource path
|
|
613
|
+
local_var_path = '/api/v2/actions-datastores/{datastore_id}/items'.sub('{datastore_id}', CGI.escape(datastore_id.to_s).gsub('%2F', '/'))
|
|
614
|
+
|
|
615
|
+
# query parameters
|
|
616
|
+
query_params = opts[:query_params] || {}
|
|
617
|
+
|
|
618
|
+
# header parameters
|
|
619
|
+
header_params = opts[:header_params] || {}
|
|
620
|
+
# HTTP header 'Accept' (if needed)
|
|
621
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
622
|
+
# HTTP header 'Content-Type'
|
|
623
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
624
|
+
|
|
625
|
+
# form parameters
|
|
626
|
+
form_params = opts[:form_params] || {}
|
|
627
|
+
|
|
628
|
+
# http body (model)
|
|
629
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
630
|
+
|
|
631
|
+
# return_type
|
|
632
|
+
return_type = opts[:debug_return_type] || 'ItemApiPayload'
|
|
633
|
+
|
|
634
|
+
# auth_names
|
|
635
|
+
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth]
|
|
636
|
+
|
|
637
|
+
new_options = opts.merge(
|
|
638
|
+
:operation => :update_datastore_item,
|
|
639
|
+
:header_params => header_params,
|
|
640
|
+
:query_params => query_params,
|
|
641
|
+
:form_params => form_params,
|
|
642
|
+
:body => post_body,
|
|
643
|
+
:auth_names => auth_names,
|
|
644
|
+
:return_type => return_type,
|
|
645
|
+
:api_version => "V2"
|
|
646
|
+
)
|
|
647
|
+
|
|
648
|
+
data, status_code, headers = @api_client.call_api(Net::HTTP::Patch, local_var_path, new_options)
|
|
649
|
+
if @api_client.config.debugging
|
|
650
|
+
@api_client.config.logger.debug "API called: ActionsDatastoresAPI#update_datastore_item\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
651
|
+
end
|
|
652
|
+
return data, status_code, headers
|
|
653
|
+
end
|
|
654
|
+
end
|
|
655
|
+
end
|