wallee-ruby-sdk 6.0.0 → 6.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0e30472b450a24881ec56df1be3b27677447b4a133ad1c8a1a0c16d3507c2b4e
4
- data.tar.gz: b81a2cc31b7b9ae6e53fda74ee6a58a82e734f9d5d4d971ecceef71432416573
3
+ metadata.gz: 351f366c228b64c1fe5abb8b52e005fa7a5bda1f582dd771500b1f6cade0f855
4
+ data.tar.gz: 8f5d61e778eb5cfb3391982701e1fa3cad34bc358b98e9d08d9d6bf974cb24e1
5
5
  SHA512:
6
- metadata.gz: a33eadcfea0f30b626aa3ccbdc7a58e31c099167c7ca41d006e45ab61056bcac3fe1160fd657bc558da0b30fdbfff5047262a1858ed16ed802dc4c6013491bd9
7
- data.tar.gz: 9a81475b7fa057bc9a70b9665da86a7b63dc64bcd55eb4f7fe7f7ff329a688b93e5727ee50acd0215c16a64b97799373372c0e2c7b00959730cdb5ee8acdac1f
6
+ metadata.gz: c8690ed79a81252635c70eeaefa0e42b3a2cf2459a7e7c36bea7c4ef22b7a3f90583cf6cfa9897fccf3eed4b9cf966aa9e9a82ce1b38cf88451ad16bf6081102
7
+ data.tar.gz: d8f5384ad13657d2aba2a57068d5c5849e4e0b7faef7a22c4cfdbcc51f8ebfbd8a8b17bf2c0f3dc140b63c1caf5467810270fdca9fe7b8c75fd90625b18b6b3b
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- wallee-ruby-sdk (6.0.0)
4
+ wallee-ruby-sdk (6.1.0)
5
5
  concurrent-ruby (~> 1.3.5)
6
6
  faraday (~> 2.13.1, < 3.0)
7
7
  faraday-multipart (~> 1.1.0)
@@ -19,21 +19,21 @@ GEM
19
19
  logger
20
20
  faraday-multipart (1.1.1)
21
21
  multipart-post (~> 2.0)
22
- faraday-net_http (3.4.1)
23
- net-http (>= 0.5.0)
24
- json (2.15.2)
22
+ faraday-net_http (3.4.2)
23
+ net-http (~> 0.5)
24
+ json (2.16.0)
25
25
  jwt (2.10.2)
26
26
  base64
27
27
  logger (1.7.0)
28
28
  marcel (1.0.4)
29
29
  multipart-post (2.4.1)
30
- net-http (0.6.0)
30
+ net-http (0.7.0)
31
31
  uri
32
- power_assert (2.0.5)
32
+ power_assert (3.0.1)
33
33
  rake (13.3.1)
34
34
  test-unit (3.6.9)
35
35
  power_assert
36
- uri (1.0.4)
36
+ uri (1.1.1)
37
37
 
38
38
  PLATFORMS
39
39
  ruby
data/README.md CHANGED
@@ -99,9 +99,14 @@ Web API client: [*link*](https://app-wallee.com//api/client)<br>
99
99
  &nbsp;&nbsp;&nbsp;&nbsp;Deactivate an account
100
100
  <br><br>
101
101
  - <strong>AnalyticsQueriesService</strong><br>
102
- &nbsp;&nbsp;* <code>delete_analytics_queries_query_token</code>
103
- &nbsp;&nbsp;&nbsp;&nbsp;<strong>DELETE</strong> /analytics/queries/{queryToken}
104
- &nbsp;&nbsp;&nbsp;&nbsp;Cancel a query execution
102
+ &nbsp;&nbsp;* <code>delete_analytics_queries_query_external_id_query_external_id</code>
103
+ &nbsp;&nbsp;&nbsp;&nbsp;<strong>DELETE</strong> /analytics/queries/queryExternalId/{queryExternalId}
104
+ &nbsp;&nbsp;&nbsp;&nbsp;Cancel a query execution, identifying it by its external id.
105
+ <br><br>
106
+ - <strong>AnalyticsQueriesService</strong><br>
107
+ &nbsp;&nbsp;* <code>delete_analytics_queries_query_token_query_token</code>
108
+ &nbsp;&nbsp;&nbsp;&nbsp;<strong>DELETE</strong> /analytics/queries/queryToken/{queryToken}
109
+ &nbsp;&nbsp;&nbsp;&nbsp;Cancel a query execution, identifying it by its query token.
105
110
  <br><br>
106
111
  - <strong>AnalyticsQueriesService</strong><br>
107
112
  &nbsp;&nbsp;* <code>get_analytics_queries</code>
@@ -109,14 +114,24 @@ Web API client: [*link*](https://app-wallee.com//api/client)<br>
109
114
  &nbsp;&nbsp;&nbsp;&nbsp;Get portion of query executions for account
110
115
  <br><br>
111
116
  - <strong>AnalyticsQueriesService</strong><br>
112
- &nbsp;&nbsp;* <code>get_analytics_queries_query_token</code>
113
- &nbsp;&nbsp;&nbsp;&nbsp;<strong>GET</strong> /analytics/queries/{queryToken}
114
- &nbsp;&nbsp;&nbsp;&nbsp;Retrieve a query execution information
117
+ &nbsp;&nbsp;* <code>get_analytics_queries_query_external_id_query_external_id</code>
118
+ &nbsp;&nbsp;&nbsp;&nbsp;<strong>GET</strong> /analytics/queries/queryExternalId/{queryExternalId}
119
+ &nbsp;&nbsp;&nbsp;&nbsp;Retrieve a query execution information by its external id
120
+ <br><br>
121
+ - <strong>AnalyticsQueriesService</strong><br>
122
+ &nbsp;&nbsp;* <code>get_analytics_queries_query_external_id_query_external_id_result</code>
123
+ &nbsp;&nbsp;&nbsp;&nbsp;<strong>GET</strong> /analytics/queries/queryExternalId/{queryExternalId}/result
124
+ &nbsp;&nbsp;&nbsp;&nbsp;Generate a temporary URL to download the query result. It retrieves the query by its external id
125
+ <br><br>
126
+ - <strong>AnalyticsQueriesService</strong><br>
127
+ &nbsp;&nbsp;* <code>get_analytics_queries_query_token_query_token</code>
128
+ &nbsp;&nbsp;&nbsp;&nbsp;<strong>GET</strong> /analytics/queries/queryToken/{queryToken}
129
+ &nbsp;&nbsp;&nbsp;&nbsp;Retrieve a query execution information by its query token
115
130
  <br><br>
116
131
  - <strong>AnalyticsQueriesService</strong><br>
117
- &nbsp;&nbsp;* <code>get_analytics_queries_query_token_result</code>
118
- &nbsp;&nbsp;&nbsp;&nbsp;<strong>GET</strong> /analytics/queries/{queryToken}/result
119
- &nbsp;&nbsp;&nbsp;&nbsp;Generate a temporary URL to download the query result
132
+ &nbsp;&nbsp;* <code>get_analytics_queries_query_token_query_token_result</code>
133
+ &nbsp;&nbsp;&nbsp;&nbsp;<strong>GET</strong> /analytics/queries/queryToken/{queryToken}/result
134
+ &nbsp;&nbsp;&nbsp;&nbsp;Generate a temporary URL to download the query result. It retrieves the query by its query token
120
135
  <br><br>
121
136
  - <strong>AnalyticsQueriesService</strong><br>
122
137
  &nbsp;&nbsp;* <code>post_analytics_queries_submit</code>
@@ -116,7 +116,7 @@ module WalleeRubySdk
116
116
  http_method = http_method.to_sym.downcase
117
117
 
118
118
  default_headers = {
119
- 'x-meta-sdk-version': "6.0.0",
119
+ 'x-meta-sdk-version': "6.1.0",
120
120
  'x-meta-sdk-language': "ruby",
121
121
  'x-meta-sdk-provider': "wallee",
122
122
  'x-meta-sdk-language-version': RUBY_VERSION
@@ -23,13 +23,13 @@ require 'time'
23
23
 
24
24
  module WalleeRubySdk
25
25
  class AnalyticsQueryExecutionRequest
26
- # Optional. Active SFTP Dispatch connection settings ID (dispatch settings ID) associated with the target account. Only required if the Analytics query result file is scheduled for delivery to a remote SFTP server.
26
+ # Optional. ID of the active SFTP configuration to use (associated with the target account). This is only required if the result file is scheduled for delivery to a remote SFTP server.
27
27
  attr_accessor :sftp_dispatch_settings_id
28
28
 
29
- # Optional. Renaming pattern for Analytics query result file (may be used when Analytics query results file is scheduled for SFTP delivery). Pattern may look like Latin alphabet string with some timestamp placeholder: \"transaction_report_{YYYMMDD_hhmmss}\". Supported placeholder formats are just these: DDMMYY , MMDDYY , YYYYMMDD , DD_MM_YY , DD-MM-YY , YYYY-MM-DD , YYYY_MM_DD , YYYYMMDD_hhmmss , YYYY-MM-DD_hh-mm-ss
29
+ # Optional. Renaming pattern used for the result file during SFTP delivery. You can use a combination of fixed Latin text and timestamp variables (e.g., \"transaction_report_{YYYMMDD_hhmmss}\"). Supported variable formats: DDMMYY, MMDDYY, YYYYMMDD, DD_MM_YY, DD-MM-YY, YYYY-MM-DD, YYYY_MM_DD, YYYYMMDD_hhmmss, YYYY-MM-DD_hh-mm-ss.
30
30
  attr_accessor :sftp_dispatch_result_file_rename_pattern
31
31
 
32
- # The SQL query (in PrestoDB dialect) to be executed against the analytics database. This query defines the data retrieval operation.
32
+ # The SQL query (in PrestoDB dialect) to execute on the analytics database. This query defines exactly which data should be retrieved.
33
33
  attr_accessor :sql
34
34
 
35
35
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -23,6 +23,9 @@ require 'time'
23
23
 
24
24
  module WalleeRubySdk
25
25
  class SubmittedAnalyticsQueryExecution
26
+ # The external id associated with this query, if any.
27
+ attr_accessor :query_external_id
28
+
26
29
  # The ID of the target account for which the analytics query will be executed, determining the data scope for the request.
27
30
  attr_accessor :account_id
28
31
 
@@ -74,6 +77,7 @@ module WalleeRubySdk
74
77
  # Attribute mapping from ruby-style variable name to JSON key.
75
78
  def self.attribute_map
76
79
  {
80
+ :'query_external_id' => :'queryExternalId',
77
81
  :'account_id' => :'accountId',
78
82
  :'total_billed_execution_time_ms' => :'totalBilledExecutionTimeMs',
79
83
  :'created_timestamp' => :'createdTimestamp',
@@ -94,6 +98,7 @@ module WalleeRubySdk
94
98
  # Attribute type mapping.
95
99
  def self.openapi_types
96
100
  {
101
+ :'query_external_id' => :'String',
97
102
  :'account_id' => :'Integer',
98
103
  :'total_billed_execution_time_ms' => :'Integer',
99
104
  :'created_timestamp' => :'Time',
@@ -127,6 +132,10 @@ module WalleeRubySdk
127
132
  h[k.to_sym] = v
128
133
  }
129
134
 
135
+ if attributes.key?(:'query_external_id')
136
+ self.query_external_id = attributes[:'query_external_id']
137
+ end
138
+
130
139
  if attributes.key?(:'account_id')
131
140
  self.account_id = attributes[:'account_id']
132
141
  end
@@ -184,6 +193,7 @@ module WalleeRubySdk
184
193
  def ==(o)
185
194
  return true if self.equal?(o)
186
195
  self.class == o.class &&
196
+ query_external_id == o.query_external_id &&
187
197
  account_id == o.account_id &&
188
198
  total_billed_execution_time_ms == o.total_billed_execution_time_ms &&
189
199
  created_timestamp == o.created_timestamp &&
@@ -204,7 +214,7 @@ module WalleeRubySdk
204
214
  # Calculates hash code according to all attributes.
205
215
  # @return [Integer] Hash code
206
216
  def hash
207
- [account_id, total_billed_execution_time_ms, created_timestamp, download_requests, original_query, scanned_bytes, portal_query_token, result_file_bytes, status].hash
217
+ [query_external_id, account_id, total_billed_execution_time_ms, created_timestamp, download_requests, original_query, scanned_bytes, portal_query_token, result_file_bytes, status].hash
208
218
  end # Builds the object from hash
209
219
  # @param [Hash] attributes Model attributes in the form of hash
210
220
  # @return [Object] Returns the model itself
@@ -23,25 +23,13 @@ require 'time'
23
23
 
24
24
  module WalleeRubySdk
25
25
  class SubscriptionUpdateRequest
26
- # The configurations of the subscription's components.
27
- attr_accessor :component_configurations
28
-
29
- # The product to subscribe to.
30
- attr_accessor :product
31
-
32
- # The three-letter code (ISO 4217 format) of the currency used to invoice the customer. Must be one of the currencies supported by the product.
33
- attr_accessor :currency
34
-
35
- # Whether the subscriptions' termination periods should be respected.
36
- attr_accessor :respect_termination_period
26
+ # A description used to identify the subscription.
27
+ attr_accessor :description
37
28
 
38
29
  # Attribute mapping from ruby-style variable name to JSON key.
39
30
  def self.attribute_map
40
31
  {
41
- :'component_configurations' => :'componentConfigurations',
42
- :'product' => :'product',
43
- :'currency' => :'currency',
44
- :'respect_termination_period' => :'respectTerminationPeriod'
32
+ :'description' => :'description'
45
33
  }
46
34
  end
47
35
 
@@ -53,10 +41,7 @@ module WalleeRubySdk
53
41
  # Attribute type mapping.
54
42
  def self.openapi_types
55
43
  {
56
- :'component_configurations' => :'Array<SubscriptionComponentReferenceConfiguration>',
57
- :'product' => :'Integer',
58
- :'currency' => :'String',
59
- :'respect_termination_period' => :'Boolean'
44
+ :'description' => :'String'
60
45
  }
61
46
  end
62
47
 
@@ -81,22 +66,8 @@ module WalleeRubySdk
81
66
  h[k.to_sym] = v
82
67
  }
83
68
 
84
- if attributes.key?(:'component_configurations')
85
- if (value = attributes[:'component_configurations']).is_a?(Array)
86
- self.component_configurations = value
87
- end
88
- end
89
-
90
- if attributes.key?(:'product')
91
- self.product = attributes[:'product']
92
- end
93
-
94
- if attributes.key?(:'currency')
95
- self.currency = attributes[:'currency']
96
- end
97
-
98
- if attributes.key?(:'respect_termination_period')
99
- self.respect_termination_period = attributes[:'respect_termination_period']
69
+ if attributes.key?(:'description')
70
+ self.description = attributes[:'description']
100
71
  end
101
72
  end
102
73
 
@@ -105,6 +76,10 @@ module WalleeRubySdk
105
76
  def list_invalid_properties
106
77
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
107
78
  invalid_properties = Array.new
79
+ if !@description.nil? && @description.to_s.length > 200
80
+ invalid_properties.push('invalid value for "description", the character length must be smaller than or equal to 200.')
81
+ end
82
+
108
83
  invalid_properties
109
84
  end
110
85
 
@@ -112,17 +87,22 @@ module WalleeRubySdk
112
87
  # @return true if the model is valid
113
88
  def valid?
114
89
  warn '[DEPRECATED] the `valid?` method is obsolete'
90
+ return false if !@description.nil? && @description.to_s.length > 200
115
91
  true
116
92
  end
117
93
 
118
94
  # Custom attribute writer method with validation
119
- # @param [Object] component_configurations Value to be assigned
120
- def component_configurations=(component_configurations)
121
- if component_configurations.nil?
122
- fail ArgumentError, 'component_configurations cannot be nil'
95
+ # @param [Object] description Value to be assigned
96
+ def description=(description)
97
+ if description.nil?
98
+ fail ArgumentError, 'description cannot be nil'
99
+ end
100
+
101
+ if description.to_s.length > 200
102
+ fail ArgumentError, 'invalid value for "description", the character length must be smaller than or equal to 200.'
123
103
  end
124
104
 
125
- @component_configurations = component_configurations
105
+ @description = description
126
106
  end
127
107
 
128
108
  # Checks equality by comparing each attribute.
@@ -130,10 +110,7 @@ module WalleeRubySdk
130
110
  def ==(o)
131
111
  return true if self.equal?(o)
132
112
  self.class == o.class &&
133
- component_configurations == o.component_configurations &&
134
- product == o.product &&
135
- currency == o.currency &&
136
- respect_termination_period == o.respect_termination_period
113
+ description == o.description
137
114
  end
138
115
 
139
116
  # @see the `==` method
@@ -145,7 +122,7 @@ module WalleeRubySdk
145
122
  # Calculates hash code according to all attributes.
146
123
  # @return [Integer] Hash code
147
124
  def hash
148
- [component_configurations, product, currency, respect_termination_period].hash
125
+ [description].hash
149
126
  end # Builds the object from hash
150
127
  # @param [Hash] attributes Model attributes in the form of hash
151
128
  # @return [Object] Returns the model itself
@@ -28,36 +28,105 @@ module WalleeRubySdk
28
28
  def initialize(api_client = ApiClient.default)
29
29
  @api_client = api_client
30
30
  end
31
- # Cancel a query execution
31
+ # Cancel a query execution, identifying it by its external id.
32
+ # @param query_external_id [String] Identifies the query execution.
33
+ # @param account [Integer] Specifies the ID of the account the operation should be executed in.
34
+ # @param [Hash] opts the optional parameters
35
+ # @return [nil]
36
+ def delete_analytics_queries_query_external_id_query_external_id(query_external_id, account, opts = {})
37
+ delete_analytics_queries_query_external_id_query_external_id_with_http_info(query_external_id, account, opts)
38
+ nil
39
+ end
40
+
41
+ # Cancel a query execution, identifying it by its external id.
42
+
43
+ # @param query_external_id [String] Identifies the query execution.
44
+ # @param account [Integer] Specifies the ID of the account the operation should be executed in.
45
+ # @param [Hash] opts the optional parameters
46
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
47
+ def delete_analytics_queries_query_external_id_query_external_id_with_http_info(query_external_id, account, opts = {})
48
+ if @api_client.config.debugging
49
+ @api_client.config.logger.debug 'Calling API: AnalyticsQueriesService.delete_analytics_queries_query_external_id_query_external_id ...'
50
+ end
51
+ # verify the required parameter 'query_external_id' is set
52
+ if @api_client.config.client_side_validation && query_external_id.nil?
53
+ fail ArgumentError, "Missing the required parameter 'query_external_id' when calling AnalyticsQueriesService.delete_analytics_queries_query_external_id_query_external_id"
54
+ end
55
+ # verify the required parameter 'account' is set
56
+ if @api_client.config.client_side_validation && account.nil?
57
+ fail ArgumentError, "Missing the required parameter 'account' when calling AnalyticsQueriesService.delete_analytics_queries_query_external_id_query_external_id"
58
+ end
59
+ # resource path
60
+ local_var_path = '/analytics/queries/queryExternalId/{queryExternalId}'.sub('{' + 'queryExternalId' + '}', CGI.escape(query_external_id.to_s))
61
+
62
+ # query parameters
63
+ query_params = opts[:query_params] || {}
64
+
65
+ # header parameters
66
+ header_params = opts[:header_params] || {}
67
+ # HTTP header 'Accept' (if needed)
68
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
69
+ header_params[:'Account'] = account
70
+
71
+ # form parameters
72
+ form_params = opts[:form_params] || {}
73
+
74
+ # connection timeout
75
+ connection_timeout = @api_client.config.timeout
76
+
77
+ # http body (model)
78
+ post_body = opts[:debug_body]
79
+
80
+ # return_type
81
+ return_type = opts[:debug_return_type]
82
+
83
+ new_options = opts.merge(
84
+ :operation => :"AnalyticsQueriesService.delete_analytics_queries_query_external_id_query_external_id",
85
+ :header_params => header_params,
86
+ :query_params => query_params,
87
+ :form_params => form_params,
88
+ :body => post_body,
89
+ :return_type => return_type
90
+ )
91
+
92
+ data, status_code, headers = @api_client.call_api(:DELETE.to_sym.downcase, local_var_path, new_options, connection_timeout)
93
+ if @api_client.config.debugging
94
+ @api_client.config.logger.debug "API called: AnalyticsQueriesService#delete_analytics_queries_query_external_id_query_external_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}\nConnection Timeout: #{connection_timeout}"
95
+ end
96
+ return data, status_code, headers
97
+ end
98
+
99
+
100
+ # Cancel a query execution, identifying it by its query token.
32
101
  # @param query_token [String] Identifies the query execution.
33
102
  # @param account [Integer] Specifies the ID of the account the operation should be executed in.
34
103
  # @param [Hash] opts the optional parameters
35
104
  # @return [nil]
36
- def delete_analytics_queries_query_token(query_token, account, opts = {})
37
- delete_analytics_queries_query_token_with_http_info(query_token, account, opts)
105
+ def delete_analytics_queries_query_token_query_token(query_token, account, opts = {})
106
+ delete_analytics_queries_query_token_query_token_with_http_info(query_token, account, opts)
38
107
  nil
39
108
  end
40
109
 
41
- # Cancel a query execution
110
+ # Cancel a query execution, identifying it by its query token.
42
111
 
43
112
  # @param query_token [String] Identifies the query execution.
44
113
  # @param account [Integer] Specifies the ID of the account the operation should be executed in.
45
114
  # @param [Hash] opts the optional parameters
46
115
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
47
- def delete_analytics_queries_query_token_with_http_info(query_token, account, opts = {})
116
+ def delete_analytics_queries_query_token_query_token_with_http_info(query_token, account, opts = {})
48
117
  if @api_client.config.debugging
49
- @api_client.config.logger.debug 'Calling API: AnalyticsQueriesService.delete_analytics_queries_query_token ...'
118
+ @api_client.config.logger.debug 'Calling API: AnalyticsQueriesService.delete_analytics_queries_query_token_query_token ...'
50
119
  end
51
120
  # verify the required parameter 'query_token' is set
52
121
  if @api_client.config.client_side_validation && query_token.nil?
53
- fail ArgumentError, "Missing the required parameter 'query_token' when calling AnalyticsQueriesService.delete_analytics_queries_query_token"
122
+ fail ArgumentError, "Missing the required parameter 'query_token' when calling AnalyticsQueriesService.delete_analytics_queries_query_token_query_token"
54
123
  end
55
124
  # verify the required parameter 'account' is set
56
125
  if @api_client.config.client_side_validation && account.nil?
57
- fail ArgumentError, "Missing the required parameter 'account' when calling AnalyticsQueriesService.delete_analytics_queries_query_token"
126
+ fail ArgumentError, "Missing the required parameter 'account' when calling AnalyticsQueriesService.delete_analytics_queries_query_token_query_token"
58
127
  end
59
128
  # resource path
60
- local_var_path = '/analytics/queries/{queryToken}'.sub('{' + 'queryToken' + '}', CGI.escape(query_token.to_s))
129
+ local_var_path = '/analytics/queries/queryToken/{queryToken}'.sub('{' + 'queryToken' + '}', CGI.escape(query_token.to_s))
61
130
 
62
131
  # query parameters
63
132
  query_params = opts[:query_params] || {}
@@ -81,7 +150,7 @@ module WalleeRubySdk
81
150
  return_type = opts[:debug_return_type]
82
151
 
83
152
  new_options = opts.merge(
84
- :operation => :"AnalyticsQueriesService.delete_analytics_queries_query_token",
153
+ :operation => :"AnalyticsQueriesService.delete_analytics_queries_query_token_query_token",
85
154
  :header_params => header_params,
86
155
  :query_params => query_params,
87
156
  :form_params => form_params,
@@ -91,7 +160,7 @@ module WalleeRubySdk
91
160
 
92
161
  data, status_code, headers = @api_client.call_api(:DELETE.to_sym.downcase, local_var_path, new_options, connection_timeout)
93
162
  if @api_client.config.debugging
94
- @api_client.config.logger.debug "API called: AnalyticsQueriesService#delete_analytics_queries_query_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}\nConnection Timeout: #{connection_timeout}"
163
+ @api_client.config.logger.debug "API called: AnalyticsQueriesService#delete_analytics_queries_query_token_query_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}\nConnection Timeout: #{connection_timeout}"
95
164
  end
96
165
  return data, status_code, headers
97
166
  end
@@ -174,38 +243,180 @@ module WalleeRubySdk
174
243
  end
175
244
 
176
245
 
177
- # Retrieve a query execution information
246
+ # Retrieve a query execution information by its external id
247
+ # Queries are processed asynchronously and may take several minutes to complete. Avoid frequent requests, as they will not speed up processing.
248
+ # @param query_external_id [String] Identifies the query execution.
249
+ # @param account [Integer] Specifies the ID of the account the operation should be executed in.
250
+ # @param [Hash] opts the optional parameters
251
+ # @return [SubmittedAnalyticsQueryExecution]
252
+ def get_analytics_queries_query_external_id_query_external_id(query_external_id, account, opts = {})
253
+ data, _status_code, _headers = get_analytics_queries_query_external_id_query_external_id_with_http_info(query_external_id, account, opts)
254
+ data
255
+ end
256
+
257
+ # Retrieve a query execution information by its external id
258
+ # Queries are processed asynchronously and may take several minutes to complete. Avoid frequent requests, as they will not speed up processing.
259
+ # Timeout for this request is: 97 seconds.
260
+ # @param query_external_id [String] Identifies the query execution.
261
+ # @param account [Integer] Specifies the ID of the account the operation should be executed in.
262
+ # @param [Hash] opts the optional parameters
263
+ # @return [Array<(SubmittedAnalyticsQueryExecution, Integer, Hash)>] SubmittedAnalyticsQueryExecution data, response status code and response headers
264
+ def get_analytics_queries_query_external_id_query_external_id_with_http_info(query_external_id, account, opts = {})
265
+ if @api_client.config.debugging
266
+ @api_client.config.logger.debug 'Calling API: AnalyticsQueriesService.get_analytics_queries_query_external_id_query_external_id ...'
267
+ end
268
+ # verify the required parameter 'query_external_id' is set
269
+ if @api_client.config.client_side_validation && query_external_id.nil?
270
+ fail ArgumentError, "Missing the required parameter 'query_external_id' when calling AnalyticsQueriesService.get_analytics_queries_query_external_id_query_external_id"
271
+ end
272
+ # verify the required parameter 'account' is set
273
+ if @api_client.config.client_side_validation && account.nil?
274
+ fail ArgumentError, "Missing the required parameter 'account' when calling AnalyticsQueriesService.get_analytics_queries_query_external_id_query_external_id"
275
+ end
276
+ # resource path
277
+ local_var_path = '/analytics/queries/queryExternalId/{queryExternalId}'.sub('{' + 'queryExternalId' + '}', CGI.escape(query_external_id.to_s))
278
+
279
+ # query parameters
280
+ query_params = opts[:query_params] || {}
281
+
282
+ # header parameters
283
+ header_params = opts[:header_params] || {}
284
+ # HTTP header 'Accept' (if needed)
285
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
286
+ header_params[:'Account'] = account
287
+
288
+ # form parameters
289
+ form_params = opts[:form_params] || {}
290
+
291
+ # connection timeout
292
+ connection_timeout = 97
293
+
294
+ # http body (model)
295
+ post_body = opts[:debug_body]
296
+
297
+ # return_type
298
+ return_type = opts[:debug_return_type] || 'SubmittedAnalyticsQueryExecution'
299
+
300
+ new_options = opts.merge(
301
+ :operation => :"AnalyticsQueriesService.get_analytics_queries_query_external_id_query_external_id",
302
+ :header_params => header_params,
303
+ :query_params => query_params,
304
+ :form_params => form_params,
305
+ :body => post_body,
306
+ :return_type => return_type
307
+ )
308
+
309
+ data, status_code, headers = @api_client.call_api(:GET.to_sym.downcase, local_var_path, new_options, connection_timeout)
310
+ if @api_client.config.debugging
311
+ @api_client.config.logger.debug "API called: AnalyticsQueriesService#get_analytics_queries_query_external_id_query_external_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}\nConnection Timeout: #{connection_timeout}"
312
+ end
313
+ return data, status_code, headers
314
+ end
315
+
316
+
317
+ # Generate a temporary URL to download the query result. It retrieves the query by its external id
318
+ # Generate a short-lived (5-minute) URL for downloading the Analytics query result file. Note that each URL generation is counted as a potential download and will be billed accordingly. Do not use this endpoint for periodic checks of file availability. Instead, use the 'Retrieve a query execution' endpoint for status checks.
319
+ # @param query_external_id [String] Identifies the query execution.
320
+ # @param account [Integer] Specifies the ID of the account the operation should be executed in.
321
+ # @param [Hash] opts the optional parameters
322
+ # @return [String]
323
+ def get_analytics_queries_query_external_id_query_external_id_result(query_external_id, account, opts = {})
324
+ data, _status_code, _headers = get_analytics_queries_query_external_id_query_external_id_result_with_http_info(query_external_id, account, opts)
325
+ data
326
+ end
327
+
328
+ # Generate a temporary URL to download the query result. It retrieves the query by its external id
329
+ # Generate a short-lived (5-minute) URL for downloading the Analytics query result file. Note that each URL generation is counted as a potential download and will be billed accordingly. Do not use this endpoint for periodic checks of file availability. Instead, use the &#39;Retrieve a query execution&#39; endpoint for status checks.
330
+
331
+ # @param query_external_id [String] Identifies the query execution.
332
+ # @param account [Integer] Specifies the ID of the account the operation should be executed in.
333
+ # @param [Hash] opts the optional parameters
334
+ # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
335
+ def get_analytics_queries_query_external_id_query_external_id_result_with_http_info(query_external_id, account, opts = {})
336
+ if @api_client.config.debugging
337
+ @api_client.config.logger.debug 'Calling API: AnalyticsQueriesService.get_analytics_queries_query_external_id_query_external_id_result ...'
338
+ end
339
+ # verify the required parameter 'query_external_id' is set
340
+ if @api_client.config.client_side_validation && query_external_id.nil?
341
+ fail ArgumentError, "Missing the required parameter 'query_external_id' when calling AnalyticsQueriesService.get_analytics_queries_query_external_id_query_external_id_result"
342
+ end
343
+ # verify the required parameter 'account' is set
344
+ if @api_client.config.client_side_validation && account.nil?
345
+ fail ArgumentError, "Missing the required parameter 'account' when calling AnalyticsQueriesService.get_analytics_queries_query_external_id_query_external_id_result"
346
+ end
347
+ # resource path
348
+ local_var_path = '/analytics/queries/queryExternalId/{queryExternalId}/result'.sub('{' + 'queryExternalId' + '}', CGI.escape(query_external_id.to_s))
349
+
350
+ # query parameters
351
+ query_params = opts[:query_params] || {}
352
+
353
+ # header parameters
354
+ header_params = opts[:header_params] || {}
355
+ # HTTP header 'Accept' (if needed)
356
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json']) unless header_params['Accept']
357
+ header_params[:'Account'] = account
358
+
359
+ # form parameters
360
+ form_params = opts[:form_params] || {}
361
+
362
+ # connection timeout
363
+ connection_timeout = @api_client.config.timeout
364
+
365
+ # http body (model)
366
+ post_body = opts[:debug_body]
367
+
368
+ # return_type
369
+ return_type = opts[:debug_return_type] || 'String'
370
+
371
+ new_options = opts.merge(
372
+ :operation => :"AnalyticsQueriesService.get_analytics_queries_query_external_id_query_external_id_result",
373
+ :header_params => header_params,
374
+ :query_params => query_params,
375
+ :form_params => form_params,
376
+ :body => post_body,
377
+ :return_type => return_type
378
+ )
379
+
380
+ data, status_code, headers = @api_client.call_api(:GET.to_sym.downcase, local_var_path, new_options, connection_timeout)
381
+ if @api_client.config.debugging
382
+ @api_client.config.logger.debug "API called: AnalyticsQueriesService#get_analytics_queries_query_external_id_query_external_id_result\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}\nConnection Timeout: #{connection_timeout}"
383
+ end
384
+ return data, status_code, headers
385
+ end
386
+
387
+
388
+ # Retrieve a query execution information by its query token
178
389
  # Queries are processed asynchronously and may take several minutes to complete. Avoid frequent requests, as they will not speed up processing.
179
390
  # @param query_token [String] Identifies the query execution.
180
391
  # @param account [Integer] Specifies the ID of the account the operation should be executed in.
181
392
  # @param [Hash] opts the optional parameters
182
393
  # @return [SubmittedAnalyticsQueryExecution]
183
- def get_analytics_queries_query_token(query_token, account, opts = {})
184
- data, _status_code, _headers = get_analytics_queries_query_token_with_http_info(query_token, account, opts)
394
+ def get_analytics_queries_query_token_query_token(query_token, account, opts = {})
395
+ data, _status_code, _headers = get_analytics_queries_query_token_query_token_with_http_info(query_token, account, opts)
185
396
  data
186
397
  end
187
398
 
188
- # Retrieve a query execution information
399
+ # Retrieve a query execution information by its query token
189
400
  # Queries are processed asynchronously and may take several minutes to complete. Avoid frequent requests, as they will not speed up processing.
190
401
  # Timeout for this request is: 97 seconds.
191
402
  # @param query_token [String] Identifies the query execution.
192
403
  # @param account [Integer] Specifies the ID of the account the operation should be executed in.
193
404
  # @param [Hash] opts the optional parameters
194
405
  # @return [Array<(SubmittedAnalyticsQueryExecution, Integer, Hash)>] SubmittedAnalyticsQueryExecution data, response status code and response headers
195
- def get_analytics_queries_query_token_with_http_info(query_token, account, opts = {})
406
+ def get_analytics_queries_query_token_query_token_with_http_info(query_token, account, opts = {})
196
407
  if @api_client.config.debugging
197
- @api_client.config.logger.debug 'Calling API: AnalyticsQueriesService.get_analytics_queries_query_token ...'
408
+ @api_client.config.logger.debug 'Calling API: AnalyticsQueriesService.get_analytics_queries_query_token_query_token ...'
198
409
  end
199
410
  # verify the required parameter 'query_token' is set
200
411
  if @api_client.config.client_side_validation && query_token.nil?
201
- fail ArgumentError, "Missing the required parameter 'query_token' when calling AnalyticsQueriesService.get_analytics_queries_query_token"
412
+ fail ArgumentError, "Missing the required parameter 'query_token' when calling AnalyticsQueriesService.get_analytics_queries_query_token_query_token"
202
413
  end
203
414
  # verify the required parameter 'account' is set
204
415
  if @api_client.config.client_side_validation && account.nil?
205
- fail ArgumentError, "Missing the required parameter 'account' when calling AnalyticsQueriesService.get_analytics_queries_query_token"
416
+ fail ArgumentError, "Missing the required parameter 'account' when calling AnalyticsQueriesService.get_analytics_queries_query_token_query_token"
206
417
  end
207
418
  # resource path
208
- local_var_path = '/analytics/queries/{queryToken}'.sub('{' + 'queryToken' + '}', CGI.escape(query_token.to_s))
419
+ local_var_path = '/analytics/queries/queryToken/{queryToken}'.sub('{' + 'queryToken' + '}', CGI.escape(query_token.to_s))
209
420
 
210
421
  # query parameters
211
422
  query_params = opts[:query_params] || {}
@@ -229,7 +440,7 @@ module WalleeRubySdk
229
440
  return_type = opts[:debug_return_type] || 'SubmittedAnalyticsQueryExecution'
230
441
 
231
442
  new_options = opts.merge(
232
- :operation => :"AnalyticsQueriesService.get_analytics_queries_query_token",
443
+ :operation => :"AnalyticsQueriesService.get_analytics_queries_query_token_query_token",
233
444
  :header_params => header_params,
234
445
  :query_params => query_params,
235
446
  :form_params => form_params,
@@ -239,44 +450,44 @@ module WalleeRubySdk
239
450
 
240
451
  data, status_code, headers = @api_client.call_api(:GET.to_sym.downcase, local_var_path, new_options, connection_timeout)
241
452
  if @api_client.config.debugging
242
- @api_client.config.logger.debug "API called: AnalyticsQueriesService#get_analytics_queries_query_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}\nConnection Timeout: #{connection_timeout}"
453
+ @api_client.config.logger.debug "API called: AnalyticsQueriesService#get_analytics_queries_query_token_query_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}\nConnection Timeout: #{connection_timeout}"
243
454
  end
244
455
  return data, status_code, headers
245
456
  end
246
457
 
247
458
 
248
- # Generate a temporary URL to download the query result
459
+ # Generate a temporary URL to download the query result. It retrieves the query by its query token
249
460
  # Generate a short-lived (5-minute) URL for downloading the Analytics query result file. Note that each URL generation is counted as a potential download and will be billed accordingly. Do not use this endpoint for periodic checks of file availability. Instead, use the 'Retrieve a query execution' endpoint for status checks.
250
461
  # @param query_token [String] Identifies the query execution.
251
462
  # @param account [Integer] Specifies the ID of the account the operation should be executed in.
252
463
  # @param [Hash] opts the optional parameters
253
464
  # @return [String]
254
- def get_analytics_queries_query_token_result(query_token, account, opts = {})
255
- data, _status_code, _headers = get_analytics_queries_query_token_result_with_http_info(query_token, account, opts)
465
+ def get_analytics_queries_query_token_query_token_result(query_token, account, opts = {})
466
+ data, _status_code, _headers = get_analytics_queries_query_token_query_token_result_with_http_info(query_token, account, opts)
256
467
  data
257
468
  end
258
469
 
259
- # Generate a temporary URL to download the query result
470
+ # Generate a temporary URL to download the query result. It retrieves the query by its query token
260
471
  # Generate a short-lived (5-minute) URL for downloading the Analytics query result file. Note that each URL generation is counted as a potential download and will be billed accordingly. Do not use this endpoint for periodic checks of file availability. Instead, use the &#39;Retrieve a query execution&#39; endpoint for status checks.
261
472
 
262
473
  # @param query_token [String] Identifies the query execution.
263
474
  # @param account [Integer] Specifies the ID of the account the operation should be executed in.
264
475
  # @param [Hash] opts the optional parameters
265
476
  # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
266
- def get_analytics_queries_query_token_result_with_http_info(query_token, account, opts = {})
477
+ def get_analytics_queries_query_token_query_token_result_with_http_info(query_token, account, opts = {})
267
478
  if @api_client.config.debugging
268
- @api_client.config.logger.debug 'Calling API: AnalyticsQueriesService.get_analytics_queries_query_token_result ...'
479
+ @api_client.config.logger.debug 'Calling API: AnalyticsQueriesService.get_analytics_queries_query_token_query_token_result ...'
269
480
  end
270
481
  # verify the required parameter 'query_token' is set
271
482
  if @api_client.config.client_side_validation && query_token.nil?
272
- fail ArgumentError, "Missing the required parameter 'query_token' when calling AnalyticsQueriesService.get_analytics_queries_query_token_result"
483
+ fail ArgumentError, "Missing the required parameter 'query_token' when calling AnalyticsQueriesService.get_analytics_queries_query_token_query_token_result"
273
484
  end
274
485
  # verify the required parameter 'account' is set
275
486
  if @api_client.config.client_side_validation && account.nil?
276
- fail ArgumentError, "Missing the required parameter 'account' when calling AnalyticsQueriesService.get_analytics_queries_query_token_result"
487
+ fail ArgumentError, "Missing the required parameter 'account' when calling AnalyticsQueriesService.get_analytics_queries_query_token_query_token_result"
277
488
  end
278
489
  # resource path
279
- local_var_path = '/analytics/queries/{queryToken}/result'.sub('{' + 'queryToken' + '}', CGI.escape(query_token.to_s))
490
+ local_var_path = '/analytics/queries/queryToken/{queryToken}/result'.sub('{' + 'queryToken' + '}', CGI.escape(query_token.to_s))
280
491
 
281
492
  # query parameters
282
493
  query_params = opts[:query_params] || {}
@@ -300,7 +511,7 @@ module WalleeRubySdk
300
511
  return_type = opts[:debug_return_type] || 'String'
301
512
 
302
513
  new_options = opts.merge(
303
- :operation => :"AnalyticsQueriesService.get_analytics_queries_query_token_result",
514
+ :operation => :"AnalyticsQueriesService.get_analytics_queries_query_token_query_token_result",
304
515
  :header_params => header_params,
305
516
  :query_params => query_params,
306
517
  :form_params => form_params,
@@ -310,32 +521,38 @@ module WalleeRubySdk
310
521
 
311
522
  data, status_code, headers = @api_client.call_api(:GET.to_sym.downcase, local_var_path, new_options, connection_timeout)
312
523
  if @api_client.config.debugging
313
- @api_client.config.logger.debug "API called: AnalyticsQueriesService#get_analytics_queries_query_token_result\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}\nConnection Timeout: #{connection_timeout}"
524
+ @api_client.config.logger.debug "API called: AnalyticsQueriesService#get_analytics_queries_query_token_query_token_result\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}\nConnection Timeout: #{connection_timeout}"
314
525
  end
315
526
  return data, status_code, headers
316
527
  end
317
528
 
318
529
 
319
530
  # Submit a query execution
531
+ # @param query_external_id [String] A unique id to be provided for each query. The same id for different queries will be only executed the first time
320
532
  # @param account [Integer] Specifies the ID of the account the operation should be executed in.
321
533
  # @param analytics_query_execution_request [AnalyticsQueryExecutionRequest]
322
534
  # @param [Hash] opts the optional parameters
323
535
  # @return [AnalyticsQueryExecutionResponse]
324
- def post_analytics_queries_submit(account, analytics_query_execution_request, opts = {})
325
- data, _status_code, _headers = post_analytics_queries_submit_with_http_info(account, analytics_query_execution_request, opts)
536
+ def post_analytics_queries_submit(query_external_id, account, analytics_query_execution_request, opts = {})
537
+ data, _status_code, _headers = post_analytics_queries_submit_with_http_info(query_external_id, account, analytics_query_execution_request, opts)
326
538
  data
327
539
  end
328
540
 
329
541
  # Submit a query execution
330
542
 
543
+ # @param query_external_id [String] A unique id to be provided for each query. The same id for different queries will be only executed the first time
331
544
  # @param account [Integer] Specifies the ID of the account the operation should be executed in.
332
545
  # @param analytics_query_execution_request [AnalyticsQueryExecutionRequest]
333
546
  # @param [Hash] opts the optional parameters
334
547
  # @return [Array<(AnalyticsQueryExecutionResponse, Integer, Hash)>] AnalyticsQueryExecutionResponse data, response status code and response headers
335
- def post_analytics_queries_submit_with_http_info(account, analytics_query_execution_request, opts = {})
548
+ def post_analytics_queries_submit_with_http_info(query_external_id, account, analytics_query_execution_request, opts = {})
336
549
  if @api_client.config.debugging
337
550
  @api_client.config.logger.debug 'Calling API: AnalyticsQueriesService.post_analytics_queries_submit ...'
338
551
  end
552
+ # verify the required parameter 'query_external_id' is set
553
+ if @api_client.config.client_side_validation && query_external_id.nil?
554
+ fail ArgumentError, "Missing the required parameter 'query_external_id' when calling AnalyticsQueriesService.post_analytics_queries_submit"
555
+ end
339
556
  # verify the required parameter 'account' is set
340
557
  if @api_client.config.client_side_validation && account.nil?
341
558
  fail ArgumentError, "Missing the required parameter 'account' when calling AnalyticsQueriesService.post_analytics_queries_submit"
@@ -349,6 +566,7 @@ module WalleeRubySdk
349
566
 
350
567
  # query parameters
351
568
  query_params = opts[:query_params] || {}
569
+ query_params[:'queryExternalId'] = query_external_id
352
570
 
353
571
  # header parameters
354
572
  header_params = opts[:header_params] || {}
@@ -19,5 +19,5 @@
19
19
  # limitations under the License.
20
20
 
21
21
  module WalleeRubySdk
22
- VERSION = '6.0.0'
22
+ VERSION = '6.1.0'
23
23
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wallee-ruby-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.0
4
+ version: 6.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - wallee AG