google-apis-connectors_v2 0.7.0 → 0.8.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: 4327d308bd6751c42d57385111e1a44e533ce32963a5e6e12a570c114389bbbb
4
- data.tar.gz: 99389b0b2ada898a78911e2af95acefed693d86d4284bcf508479d0046b3123d
3
+ metadata.gz: b19b9903333df0a9eb904fccf5cf1954a6afed0e9566415238c13665b57cd69d
4
+ data.tar.gz: 80e86f08c750f1b3c62ac8eb1ad2d3e2478c4bd9aa6b772a335c2af2f65202bd
5
5
  SHA512:
6
- metadata.gz: e398cddc22c114f6fe5ae93613df7381e66824993a500cbecaabe9541a349aca150b4290e2fa250f4aefc559f79b83d81ff194fb9175a8f1712c19d712deec20
7
- data.tar.gz: 545fc337e89eb25ade65f75a3bd16bb000ad7d338835051364a8f902b77b43f9a22e3fd2153abf8ea16ceb9dafc0b67f7f306e59e9352ca8165f3763509118d0
6
+ metadata.gz: 2c476383c62be3c8fce51db3f36cf65101255273b9ab3cedf8a9af2a407cf09bc9d6840e063f92c38e6b26d3b7af4aa445f641b73810c94bc436319645b33358
7
+ data.tar.gz: 840981c605964576679b9db9d858da23deaf888bd5ed910724b2c1f4f8dc42d0d91f3738701d9efaa1ff00bf474267391d45b2762d7c0214f913cc6f50786621
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-connectors_v2
2
2
 
3
+ ### v0.8.0 (2023-12-10)
4
+
5
+ * Regenerated from discovery document revision 20231205
6
+
3
7
  ### v0.7.0 (2023-09-24)
4
8
 
5
9
  * Regenerated from discovery document revision 20230913
@@ -22,6 +22,38 @@ module Google
22
22
  module Apis
23
23
  module ConnectorsV2
24
24
 
25
+ # AccessCredentials includes the OAuth access token, and the other fields
26
+ # returned along with it.
27
+ class AccessCredentials
28
+ include Google::Apis::Core::Hashable
29
+
30
+ # OAuth access token.
31
+ # Corresponds to the JSON property `accessToken`
32
+ # @return [String]
33
+ attr_accessor :access_token
34
+
35
+ # Duration till the access token expires.
36
+ # Corresponds to the JSON property `expiresIn`
37
+ # @return [String]
38
+ attr_accessor :expires_in
39
+
40
+ # OAuth refresh token.
41
+ # Corresponds to the JSON property `refreshToken`
42
+ # @return [String]
43
+ attr_accessor :refresh_token
44
+
45
+ def initialize(**args)
46
+ update!(**args)
47
+ end
48
+
49
+ # Update properties of this object
50
+ def update!(**args)
51
+ @access_token = args[:access_token] if args.key?(:access_token)
52
+ @expires_in = args[:expires_in] if args.key?(:expires_in)
53
+ @refresh_token = args[:refresh_token] if args.key?(:refresh_token)
54
+ end
55
+ end
56
+
25
57
  # Action message contains metadata information about a single action present in
26
58
  # the external system.
27
59
  class Action
@@ -78,6 +110,51 @@ module Google
78
110
  end
79
111
  end
80
112
 
113
+ # Response containing status of the connector for readiness prober.
114
+ class CheckReadinessResponse
115
+ include Google::Apis::Core::Hashable
116
+
117
+ #
118
+ # Corresponds to the JSON property `status`
119
+ # @return [String]
120
+ attr_accessor :status
121
+
122
+ def initialize(**args)
123
+ update!(**args)
124
+ end
125
+
126
+ # Update properties of this object
127
+ def update!(**args)
128
+ @status = args[:status] if args.key?(:status)
129
+ end
130
+ end
131
+
132
+ # The status of the connector.
133
+ class CheckStatusResponse
134
+ include Google::Apis::Core::Hashable
135
+
136
+ # When the connector is not in ACTIVE state, the description must be populated
137
+ # to specify the reason why it's not in ACTIVE state.
138
+ # Corresponds to the JSON property `description`
139
+ # @return [String]
140
+ attr_accessor :description
141
+
142
+ # State of the connector.
143
+ # Corresponds to the JSON property `state`
144
+ # @return [String]
145
+ attr_accessor :state
146
+
147
+ def initialize(**args)
148
+ update!(**args)
149
+ end
150
+
151
+ # Update properties of this object
152
+ def update!(**args)
153
+ @description = args[:description] if args.key?(:description)
154
+ @state = args[:state] if args.key?(:state)
155
+ end
156
+ end
157
+
81
158
  # A generic empty message that you can re-use to avoid defining duplicated empty
82
159
  # messages in your APIs. A typical example is to use it as the request or the
83
160
  # response type of an API method. For instance: service Foo ` rpc Bar(google.
@@ -153,6 +230,40 @@ module Google
153
230
  end
154
231
  end
155
232
 
233
+ # ExchangeAuthCodeRequest currently includes no fields.
234
+ class ExchangeAuthCodeRequest
235
+ include Google::Apis::Core::Hashable
236
+
237
+ def initialize(**args)
238
+ update!(**args)
239
+ end
240
+
241
+ # Update properties of this object
242
+ def update!(**args)
243
+ end
244
+ end
245
+
246
+ # ExchangeAuthCodeResponse includes the returned access token and its associated
247
+ # credentials.
248
+ class ExchangeAuthCodeResponse
249
+ include Google::Apis::Core::Hashable
250
+
251
+ # AccessCredentials includes the OAuth access token, and the other fields
252
+ # returned along with it.
253
+ # Corresponds to the JSON property `accessCredentials`
254
+ # @return [Google::Apis::ConnectorsV2::AccessCredentials]
255
+ attr_accessor :access_credentials
256
+
257
+ def initialize(**args)
258
+ update!(**args)
259
+ end
260
+
261
+ # Update properties of this object
262
+ def update!(**args)
263
+ @access_credentials = args[:access_credentials] if args.key?(:access_credentials)
264
+ end
265
+ end
266
+
156
267
  # Request message for ActionService.ExecuteAction
157
268
  class ExecuteActionRequest
158
269
  include Google::Apis::Core::Hashable
@@ -631,6 +742,40 @@ module Google
631
742
  end
632
743
  end
633
744
 
745
+ # RefreshAccessTokenRequest currently includes no fields.
746
+ class RefreshAccessTokenRequest
747
+ include Google::Apis::Core::Hashable
748
+
749
+ def initialize(**args)
750
+ update!(**args)
751
+ end
752
+
753
+ # Update properties of this object
754
+ def update!(**args)
755
+ end
756
+ end
757
+
758
+ # RefreshAccessTokenResponse includes the returned access token and its
759
+ # associated credentials.
760
+ class RefreshAccessTokenResponse
761
+ include Google::Apis::Core::Hashable
762
+
763
+ # AccessCredentials includes the OAuth access token, and the other fields
764
+ # returned along with it.
765
+ # Corresponds to the JSON property `accessCredentials`
766
+ # @return [Google::Apis::ConnectorsV2::AccessCredentials]
767
+ attr_accessor :access_credentials
768
+
769
+ def initialize(**args)
770
+ update!(**args)
771
+ end
772
+
773
+ # Update properties of this object
774
+ def update!(**args)
775
+ @access_credentials = args[:access_credentials] if args.key?(:access_credentials)
776
+ end
777
+ end
778
+
634
779
  # Result Metadata message contains metadata about the result returned after
635
780
  # executing an Action.
636
781
  class ResultMetadata
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ConnectorsV2
18
18
  # Version of the google-apis-connectors_v2 gem
19
- GEM_VERSION = "0.7.0"
19
+ GEM_VERSION = "0.8.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230913"
25
+ REVISION = "20231205"
26
26
  end
27
27
  end
28
28
  end
@@ -22,12 +22,30 @@ module Google
22
22
  module Apis
23
23
  module ConnectorsV2
24
24
 
25
+ class AccessCredentials
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
25
31
  class Action
26
32
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
33
 
28
34
  include Google::Apis::Core::JsonObjectSupport
29
35
  end
30
36
 
37
+ class CheckReadinessResponse
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class CheckStatusResponse
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
31
49
  class Empty
32
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
51
 
@@ -46,6 +64,18 @@ module Google
46
64
  include Google::Apis::Core::JsonObjectSupport
47
65
  end
48
66
 
67
+ class ExchangeAuthCodeRequest
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class ExchangeAuthCodeResponse
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
49
79
  class ExecuteActionRequest
50
80
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
81
 
@@ -124,6 +154,18 @@ module Google
124
154
  include Google::Apis::Core::JsonObjectSupport
125
155
  end
126
156
 
157
+ class RefreshAccessTokenRequest
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
163
+ class RefreshAccessTokenResponse
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
127
169
  class ResultMetadata
128
170
  class Representation < Google::Apis::Core::JsonRepresentation; end
129
171
 
@@ -136,6 +178,15 @@ module Google
136
178
  include Google::Apis::Core::JsonObjectSupport
137
179
  end
138
180
 
181
+ class AccessCredentials
182
+ # @private
183
+ class Representation < Google::Apis::Core::JsonRepresentation
184
+ property :access_token, as: 'accessToken'
185
+ property :expires_in, as: 'expiresIn'
186
+ property :refresh_token, as: 'refreshToken'
187
+ end
188
+ end
189
+
139
190
  class Action
140
191
  # @private
141
192
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -153,6 +204,21 @@ module Google
153
204
  end
154
205
  end
155
206
 
207
+ class CheckReadinessResponse
208
+ # @private
209
+ class Representation < Google::Apis::Core::JsonRepresentation
210
+ property :status, as: 'status'
211
+ end
212
+ end
213
+
214
+ class CheckStatusResponse
215
+ # @private
216
+ class Representation < Google::Apis::Core::JsonRepresentation
217
+ property :description, as: 'description'
218
+ property :state, as: 'state'
219
+ end
220
+ end
221
+
156
222
  class Empty
157
223
  # @private
158
224
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -178,6 +244,20 @@ module Google
178
244
  end
179
245
  end
180
246
 
247
+ class ExchangeAuthCodeRequest
248
+ # @private
249
+ class Representation < Google::Apis::Core::JsonRepresentation
250
+ end
251
+ end
252
+
253
+ class ExchangeAuthCodeResponse
254
+ # @private
255
+ class Representation < Google::Apis::Core::JsonRepresentation
256
+ property :access_credentials, as: 'accessCredentials', class: Google::Apis::ConnectorsV2::AccessCredentials, decorator: Google::Apis::ConnectorsV2::AccessCredentials::Representation
257
+
258
+ end
259
+ end
260
+
181
261
  class ExecuteActionRequest
182
262
  # @private
183
263
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -312,6 +392,20 @@ module Google
312
392
  end
313
393
  end
314
394
 
395
+ class RefreshAccessTokenRequest
396
+ # @private
397
+ class Representation < Google::Apis::Core::JsonRepresentation
398
+ end
399
+ end
400
+
401
+ class RefreshAccessTokenResponse
402
+ # @private
403
+ class Representation < Google::Apis::Core::JsonRepresentation
404
+ property :access_credentials, as: 'accessCredentials', class: Google::Apis::ConnectorsV2::AccessCredentials, decorator: Google::Apis::ConnectorsV2::AccessCredentials::Representation
405
+
406
+ end
407
+ end
408
+
315
409
  class ResultMetadata
316
410
  # @private
317
411
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -50,6 +50,102 @@ module Google
50
50
  @batch_path = 'batch'
51
51
  end
52
52
 
53
+ # Reports readiness status of the connector. Similar logic to GetStatus but
54
+ # modified for kubernetes health check to understand.
55
+ # @param [String] name
56
+ # @param [String] fields
57
+ # Selector specifying which fields to include in a partial response.
58
+ # @param [String] quota_user
59
+ # Available to use for quota purposes for server-side applications. Can be any
60
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
61
+ # @param [Google::Apis::RequestOptions] options
62
+ # Request-specific options
63
+ #
64
+ # @yield [result, err] Result & error if block supplied
65
+ # @yieldparam result [Google::Apis::ConnectorsV2::CheckReadinessResponse] parsed result object
66
+ # @yieldparam err [StandardError] error object if request failed
67
+ #
68
+ # @return [Google::Apis::ConnectorsV2::CheckReadinessResponse]
69
+ #
70
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
71
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
72
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
73
+ def check_project_location_connection_readiness(name, fields: nil, quota_user: nil, options: nil, &block)
74
+ command = make_simple_command(:get, 'v2/{+name}:checkReadiness', options)
75
+ command.response_representation = Google::Apis::ConnectorsV2::CheckReadinessResponse::Representation
76
+ command.response_class = Google::Apis::ConnectorsV2::CheckReadinessResponse
77
+ command.params['name'] = name unless name.nil?
78
+ command.query['fields'] = fields unless fields.nil?
79
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
80
+ execute_or_queue_command(command, &block)
81
+ end
82
+
83
+ # Reports the status of the connection. Note that when the connection is in a
84
+ # state that is not ACTIVE, the implementation of this RPC method must return a
85
+ # Status with the corresponding State instead of returning a gRPC status code
86
+ # that is not "OK", which indicates that ConnectionStatus itself, not the
87
+ # connection, failed.
88
+ # @param [String] name
89
+ # @param [String] fields
90
+ # Selector specifying which fields to include in a partial response.
91
+ # @param [String] quota_user
92
+ # Available to use for quota purposes for server-side applications. Can be any
93
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
94
+ # @param [Google::Apis::RequestOptions] options
95
+ # Request-specific options
96
+ #
97
+ # @yield [result, err] Result & error if block supplied
98
+ # @yieldparam result [Google::Apis::ConnectorsV2::CheckStatusResponse] parsed result object
99
+ # @yieldparam err [StandardError] error object if request failed
100
+ #
101
+ # @return [Google::Apis::ConnectorsV2::CheckStatusResponse]
102
+ #
103
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
104
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
105
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
106
+ def check_project_location_connection_status(name, fields: nil, quota_user: nil, options: nil, &block)
107
+ command = make_simple_command(:get, 'v2/{+name}:checkStatus', options)
108
+ command.response_representation = Google::Apis::ConnectorsV2::CheckStatusResponse::Representation
109
+ command.response_class = Google::Apis::ConnectorsV2::CheckStatusResponse
110
+ command.params['name'] = name unless name.nil?
111
+ command.query['fields'] = fields unless fields.nil?
112
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
113
+ execute_or_queue_command(command, &block)
114
+ end
115
+
116
+ # ExchangeAuthCode exchanges the OAuth authorization code (and other necessary
117
+ # data) for an access token (and associated credentials).
118
+ # @param [String] name
119
+ # @param [Google::Apis::ConnectorsV2::ExchangeAuthCodeRequest] exchange_auth_code_request_object
120
+ # @param [String] fields
121
+ # Selector specifying which fields to include in a partial response.
122
+ # @param [String] quota_user
123
+ # Available to use for quota purposes for server-side applications. Can be any
124
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
125
+ # @param [Google::Apis::RequestOptions] options
126
+ # Request-specific options
127
+ #
128
+ # @yield [result, err] Result & error if block supplied
129
+ # @yieldparam result [Google::Apis::ConnectorsV2::ExchangeAuthCodeResponse] parsed result object
130
+ # @yieldparam err [StandardError] error object if request failed
131
+ #
132
+ # @return [Google::Apis::ConnectorsV2::ExchangeAuthCodeResponse]
133
+ #
134
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
135
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
136
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
137
+ def exchange_connection_auth_code(name, exchange_auth_code_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
138
+ command = make_simple_command(:post, 'v2/{+name}:exchangeAuthCode', options)
139
+ command.request_representation = Google::Apis::ConnectorsV2::ExchangeAuthCodeRequest::Representation
140
+ command.request_object = exchange_auth_code_request_object
141
+ command.response_representation = Google::Apis::ConnectorsV2::ExchangeAuthCodeResponse::Representation
142
+ command.response_class = Google::Apis::ConnectorsV2::ExchangeAuthCodeResponse
143
+ command.params['name'] = name unless name.nil?
144
+ command.query['fields'] = fields unless fields.nil?
145
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
146
+ execute_or_queue_command(command, &block)
147
+ end
148
+
53
149
  # Executes a SQL statement specified in the body of the request. An example of
54
150
  # this SQL statement in the case of Salesforce connector would be 'select * from
55
151
  # Account a, Order o where a.Id = o.AccountId'.
@@ -86,6 +182,39 @@ module Google
86
182
  execute_or_queue_command(command, &block)
87
183
  end
88
184
 
185
+ # RefreshAccessToken exchanges the OAuth refresh token (and other necessary data)
186
+ # for a new access token (and new associated credentials).
187
+ # @param [String] name
188
+ # @param [Google::Apis::ConnectorsV2::RefreshAccessTokenRequest] refresh_access_token_request_object
189
+ # @param [String] fields
190
+ # Selector specifying which fields to include in a partial response.
191
+ # @param [String] quota_user
192
+ # Available to use for quota purposes for server-side applications. Can be any
193
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
194
+ # @param [Google::Apis::RequestOptions] options
195
+ # Request-specific options
196
+ #
197
+ # @yield [result, err] Result & error if block supplied
198
+ # @yieldparam result [Google::Apis::ConnectorsV2::RefreshAccessTokenResponse] parsed result object
199
+ # @yieldparam err [StandardError] error object if request failed
200
+ #
201
+ # @return [Google::Apis::ConnectorsV2::RefreshAccessTokenResponse]
202
+ #
203
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
204
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
205
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
206
+ def refresh_connection_access_token(name, refresh_access_token_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
207
+ command = make_simple_command(:post, 'v2/{+name}:refreshAccessToken', options)
208
+ command.request_representation = Google::Apis::ConnectorsV2::RefreshAccessTokenRequest::Representation
209
+ command.request_object = refresh_access_token_request_object
210
+ command.response_representation = Google::Apis::ConnectorsV2::RefreshAccessTokenResponse::Representation
211
+ command.response_class = Google::Apis::ConnectorsV2::RefreshAccessTokenResponse
212
+ command.params['name'] = name unless name.nil?
213
+ command.query['fields'] = fields unless fields.nil?
214
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
215
+ execute_or_queue_command(command, &block)
216
+ end
217
+
89
218
  # Executes an action with the name specified in the request. The input
90
219
  # parameters for executing the action are passed through the body of the
91
220
  # ExecuteAction request.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-connectors_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-24 00:00:00.000000000 Z
11
+ date: 2023-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-connectors_v2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-connectors_v2/v0.7.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-connectors_v2/v0.8.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-connectors_v2
63
63
  post_install_message:
64
64
  rdoc_options: []