google-apis-connectors_v2 0.7.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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.9.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 = "20231213"
26
26
  end
27
27
  end
28
28
  end
@@ -22,12 +22,48 @@ 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
+
49
+ class DailyCycle
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class Date
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class DenyMaintenancePeriod
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
31
67
  class Empty
32
68
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
69
 
@@ -46,6 +82,18 @@ module Google
46
82
  include Google::Apis::Core::JsonObjectSupport
47
83
  end
48
84
 
85
+ class ExchangeAuthCodeRequest
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class ExchangeAuthCodeResponse
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
49
97
  class ExecuteActionRequest
50
98
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
99
 
@@ -82,6 +130,12 @@ module Google
82
130
  include Google::Apis::Core::JsonObjectSupport
83
131
  end
84
132
 
133
+ class Instance
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
85
139
  class JsonSchema
86
140
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
141
 
@@ -106,6 +160,54 @@ module Google
106
160
  include Google::Apis::Core::JsonObjectSupport
107
161
  end
108
162
 
163
+ class MaintenancePolicy
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
169
+ class MaintenanceSchedule
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
175
+ class MaintenanceSettings
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
181
+ class MaintenanceWindow
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
187
+ class NodeSloMetadata
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
193
+ class NotificationParameter
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
199
+ class PerSliSloEligibility
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
205
+ class ProvisionedResource
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
209
+ end
210
+
109
211
  class Query
110
212
  class Representation < Google::Apis::Core::JsonRepresentation; end
111
213
 
@@ -124,18 +226,75 @@ module Google
124
226
  include Google::Apis::Core::JsonObjectSupport
125
227
  end
126
228
 
229
+ class RefreshAccessTokenRequest
230
+ class Representation < Google::Apis::Core::JsonRepresentation; end
231
+
232
+ include Google::Apis::Core::JsonObjectSupport
233
+ end
234
+
235
+ class RefreshAccessTokenResponse
236
+ class Representation < Google::Apis::Core::JsonRepresentation; end
237
+
238
+ include Google::Apis::Core::JsonObjectSupport
239
+ end
240
+
127
241
  class ResultMetadata
128
242
  class Representation < Google::Apis::Core::JsonRepresentation; end
129
243
 
130
244
  include Google::Apis::Core::JsonObjectSupport
131
245
  end
132
246
 
247
+ class Schedule
248
+ class Representation < Google::Apis::Core::JsonRepresentation; end
249
+
250
+ include Google::Apis::Core::JsonObjectSupport
251
+ end
252
+
253
+ class SloEligibility
254
+ class Representation < Google::Apis::Core::JsonRepresentation; end
255
+
256
+ include Google::Apis::Core::JsonObjectSupport
257
+ end
258
+
259
+ class SloMetadata
260
+ class Representation < Google::Apis::Core::JsonRepresentation; end
261
+
262
+ include Google::Apis::Core::JsonObjectSupport
263
+ end
264
+
265
+ class TimeOfDay
266
+ class Representation < Google::Apis::Core::JsonRepresentation; end
267
+
268
+ include Google::Apis::Core::JsonObjectSupport
269
+ end
270
+
133
271
  class UpdateEntitiesWithConditionsResponse
134
272
  class Representation < Google::Apis::Core::JsonRepresentation; end
135
273
 
136
274
  include Google::Apis::Core::JsonObjectSupport
137
275
  end
138
276
 
277
+ class UpdatePolicy
278
+ class Representation < Google::Apis::Core::JsonRepresentation; end
279
+
280
+ include Google::Apis::Core::JsonObjectSupport
281
+ end
282
+
283
+ class WeeklyCycle
284
+ class Representation < Google::Apis::Core::JsonRepresentation; end
285
+
286
+ include Google::Apis::Core::JsonObjectSupport
287
+ end
288
+
289
+ class AccessCredentials
290
+ # @private
291
+ class Representation < Google::Apis::Core::JsonRepresentation
292
+ property :access_token, as: 'accessToken'
293
+ property :expires_in, as: 'expiresIn'
294
+ property :refresh_token, as: 'refreshToken'
295
+ end
296
+ end
297
+
139
298
  class Action
140
299
  # @private
141
300
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -153,6 +312,51 @@ module Google
153
312
  end
154
313
  end
155
314
 
315
+ class CheckReadinessResponse
316
+ # @private
317
+ class Representation < Google::Apis::Core::JsonRepresentation
318
+ property :status, as: 'status'
319
+ end
320
+ end
321
+
322
+ class CheckStatusResponse
323
+ # @private
324
+ class Representation < Google::Apis::Core::JsonRepresentation
325
+ property :description, as: 'description'
326
+ property :state, as: 'state'
327
+ end
328
+ end
329
+
330
+ class DailyCycle
331
+ # @private
332
+ class Representation < Google::Apis::Core::JsonRepresentation
333
+ property :duration, as: 'duration'
334
+ property :start_time, as: 'startTime', class: Google::Apis::ConnectorsV2::TimeOfDay, decorator: Google::Apis::ConnectorsV2::TimeOfDay::Representation
335
+
336
+ end
337
+ end
338
+
339
+ class Date
340
+ # @private
341
+ class Representation < Google::Apis::Core::JsonRepresentation
342
+ property :day, as: 'day'
343
+ property :month, as: 'month'
344
+ property :year, as: 'year'
345
+ end
346
+ end
347
+
348
+ class DenyMaintenancePeriod
349
+ # @private
350
+ class Representation < Google::Apis::Core::JsonRepresentation
351
+ property :end_date, as: 'endDate', class: Google::Apis::ConnectorsV2::Date, decorator: Google::Apis::ConnectorsV2::Date::Representation
352
+
353
+ property :start_date, as: 'startDate', class: Google::Apis::ConnectorsV2::Date, decorator: Google::Apis::ConnectorsV2::Date::Representation
354
+
355
+ property :time, as: 'time', class: Google::Apis::ConnectorsV2::TimeOfDay, decorator: Google::Apis::ConnectorsV2::TimeOfDay::Representation
356
+
357
+ end
358
+ end
359
+
156
360
  class Empty
157
361
  # @private
158
362
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -178,6 +382,20 @@ module Google
178
382
  end
179
383
  end
180
384
 
385
+ class ExchangeAuthCodeRequest
386
+ # @private
387
+ class Representation < Google::Apis::Core::JsonRepresentation
388
+ end
389
+ end
390
+
391
+ class ExchangeAuthCodeResponse
392
+ # @private
393
+ class Representation < Google::Apis::Core::JsonRepresentation
394
+ property :access_credentials, as: 'accessCredentials', class: Google::Apis::ConnectorsV2::AccessCredentials, decorator: Google::Apis::ConnectorsV2::AccessCredentials::Representation
395
+
396
+ end
397
+ end
398
+
181
399
  class ExecuteActionRequest
182
400
  # @private
183
401
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -238,6 +456,34 @@ module Google
238
456
  end
239
457
  end
240
458
 
459
+ class Instance
460
+ # @private
461
+ class Representation < Google::Apis::Core::JsonRepresentation
462
+ property :consumer_defined_name, as: 'consumerDefinedName'
463
+ property :create_time, as: 'createTime'
464
+ property :instance_type, as: 'instanceType'
465
+ hash :labels, as: 'labels'
466
+ hash :maintenance_policy_names, as: 'maintenancePolicyNames'
467
+ hash :maintenance_schedules, as: 'maintenanceSchedules', class: Google::Apis::ConnectorsV2::MaintenanceSchedule, decorator: Google::Apis::ConnectorsV2::MaintenanceSchedule::Representation
468
+
469
+ property :maintenance_settings, as: 'maintenanceSettings', class: Google::Apis::ConnectorsV2::MaintenanceSettings, decorator: Google::Apis::ConnectorsV2::MaintenanceSettings::Representation
470
+
471
+ property :name, as: 'name'
472
+ hash :notification_parameters, as: 'notificationParameters', class: Google::Apis::ConnectorsV2::NotificationParameter, decorator: Google::Apis::ConnectorsV2::NotificationParameter::Representation
473
+
474
+ hash :producer_metadata, as: 'producerMetadata'
475
+ collection :provisioned_resources, as: 'provisionedResources', class: Google::Apis::ConnectorsV2::ProvisionedResource, decorator: Google::Apis::ConnectorsV2::ProvisionedResource::Representation
476
+
477
+ property :slm_instance_template, as: 'slmInstanceTemplate'
478
+ property :slo_metadata, as: 'sloMetadata', class: Google::Apis::ConnectorsV2::SloMetadata, decorator: Google::Apis::ConnectorsV2::SloMetadata::Representation
479
+
480
+ hash :software_versions, as: 'softwareVersions'
481
+ property :state, as: 'state'
482
+ property :tenant_project_id, as: 'tenantProjectId'
483
+ property :update_time, as: 'updateTime'
484
+ end
485
+ end
486
+
241
487
  class JsonSchema
242
488
  # @private
243
489
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -285,6 +531,84 @@ module Google
285
531
  end
286
532
  end
287
533
 
534
+ class MaintenancePolicy
535
+ # @private
536
+ class Representation < Google::Apis::Core::JsonRepresentation
537
+ property :create_time, as: 'createTime'
538
+ property :description, as: 'description'
539
+ hash :labels, as: 'labels'
540
+ property :name, as: 'name'
541
+ property :state, as: 'state'
542
+ property :update_policy, as: 'updatePolicy', class: Google::Apis::ConnectorsV2::UpdatePolicy, decorator: Google::Apis::ConnectorsV2::UpdatePolicy::Representation
543
+
544
+ property :update_time, as: 'updateTime'
545
+ end
546
+ end
547
+
548
+ class MaintenanceSchedule
549
+ # @private
550
+ class Representation < Google::Apis::Core::JsonRepresentation
551
+ property :can_reschedule, as: 'canReschedule'
552
+ property :end_time, as: 'endTime'
553
+ property :rollout_management_policy, as: 'rolloutManagementPolicy'
554
+ property :schedule_deadline_time, as: 'scheduleDeadlineTime'
555
+ property :start_time, as: 'startTime'
556
+ end
557
+ end
558
+
559
+ class MaintenanceSettings
560
+ # @private
561
+ class Representation < Google::Apis::Core::JsonRepresentation
562
+ property :exclude, as: 'exclude'
563
+ property :is_rollback, as: 'isRollback'
564
+ hash :maintenance_policies, as: 'maintenancePolicies', class: Google::Apis::ConnectorsV2::MaintenancePolicy, decorator: Google::Apis::ConnectorsV2::MaintenancePolicy::Representation
565
+
566
+ end
567
+ end
568
+
569
+ class MaintenanceWindow
570
+ # @private
571
+ class Representation < Google::Apis::Core::JsonRepresentation
572
+ property :daily_cycle, as: 'dailyCycle', class: Google::Apis::ConnectorsV2::DailyCycle, decorator: Google::Apis::ConnectorsV2::DailyCycle::Representation
573
+
574
+ property :weekly_cycle, as: 'weeklyCycle', class: Google::Apis::ConnectorsV2::WeeklyCycle, decorator: Google::Apis::ConnectorsV2::WeeklyCycle::Representation
575
+
576
+ end
577
+ end
578
+
579
+ class NodeSloMetadata
580
+ # @private
581
+ class Representation < Google::Apis::Core::JsonRepresentation
582
+ property :location, as: 'location'
583
+ property :node_id, as: 'nodeId'
584
+ property :per_sli_eligibility, as: 'perSliEligibility', class: Google::Apis::ConnectorsV2::PerSliSloEligibility, decorator: Google::Apis::ConnectorsV2::PerSliSloEligibility::Representation
585
+
586
+ end
587
+ end
588
+
589
+ class NotificationParameter
590
+ # @private
591
+ class Representation < Google::Apis::Core::JsonRepresentation
592
+ collection :values, as: 'values'
593
+ end
594
+ end
595
+
596
+ class PerSliSloEligibility
597
+ # @private
598
+ class Representation < Google::Apis::Core::JsonRepresentation
599
+ hash :eligibilities, as: 'eligibilities', class: Google::Apis::ConnectorsV2::SloEligibility, decorator: Google::Apis::ConnectorsV2::SloEligibility::Representation
600
+
601
+ end
602
+ end
603
+
604
+ class ProvisionedResource
605
+ # @private
606
+ class Representation < Google::Apis::Core::JsonRepresentation
607
+ property :resource_type, as: 'resourceType'
608
+ property :resource_url, as: 'resourceUrl'
609
+ end
610
+ end
611
+
288
612
  class Query
289
613
  # @private
290
614
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -312,6 +636,20 @@ module Google
312
636
  end
313
637
  end
314
638
 
639
+ class RefreshAccessTokenRequest
640
+ # @private
641
+ class Representation < Google::Apis::Core::JsonRepresentation
642
+ end
643
+ end
644
+
645
+ class RefreshAccessTokenResponse
646
+ # @private
647
+ class Representation < Google::Apis::Core::JsonRepresentation
648
+ property :access_credentials, as: 'accessCredentials', class: Google::Apis::ConnectorsV2::AccessCredentials, decorator: Google::Apis::ConnectorsV2::AccessCredentials::Representation
649
+
650
+ end
651
+ end
652
+
315
653
  class ResultMetadata
316
654
  # @private
317
655
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -323,12 +661,70 @@ module Google
323
661
  end
324
662
  end
325
663
 
664
+ class Schedule
665
+ # @private
666
+ class Representation < Google::Apis::Core::JsonRepresentation
667
+ property :day, as: 'day'
668
+ property :duration, as: 'duration'
669
+ property :start_time, as: 'startTime', class: Google::Apis::ConnectorsV2::TimeOfDay, decorator: Google::Apis::ConnectorsV2::TimeOfDay::Representation
670
+
671
+ end
672
+ end
673
+
674
+ class SloEligibility
675
+ # @private
676
+ class Representation < Google::Apis::Core::JsonRepresentation
677
+ property :eligible, as: 'eligible'
678
+ property :reason, as: 'reason'
679
+ end
680
+ end
681
+
682
+ class SloMetadata
683
+ # @private
684
+ class Representation < Google::Apis::Core::JsonRepresentation
685
+ collection :nodes, as: 'nodes', class: Google::Apis::ConnectorsV2::NodeSloMetadata, decorator: Google::Apis::ConnectorsV2::NodeSloMetadata::Representation
686
+
687
+ property :per_sli_eligibility, as: 'perSliEligibility', class: Google::Apis::ConnectorsV2::PerSliSloEligibility, decorator: Google::Apis::ConnectorsV2::PerSliSloEligibility::Representation
688
+
689
+ property :tier, as: 'tier'
690
+ end
691
+ end
692
+
693
+ class TimeOfDay
694
+ # @private
695
+ class Representation < Google::Apis::Core::JsonRepresentation
696
+ property :hours, as: 'hours'
697
+ property :minutes, as: 'minutes'
698
+ property :nanos, as: 'nanos'
699
+ property :seconds, as: 'seconds'
700
+ end
701
+ end
702
+
326
703
  class UpdateEntitiesWithConditionsResponse
327
704
  # @private
328
705
  class Representation < Google::Apis::Core::JsonRepresentation
329
706
  hash :response, as: 'response'
330
707
  end
331
708
  end
709
+
710
+ class UpdatePolicy
711
+ # @private
712
+ class Representation < Google::Apis::Core::JsonRepresentation
713
+ property :channel, as: 'channel'
714
+ collection :deny_maintenance_periods, as: 'denyMaintenancePeriods', class: Google::Apis::ConnectorsV2::DenyMaintenancePeriod, decorator: Google::Apis::ConnectorsV2::DenyMaintenancePeriod::Representation
715
+
716
+ property :window, as: 'window', class: Google::Apis::ConnectorsV2::MaintenanceWindow, decorator: Google::Apis::ConnectorsV2::MaintenanceWindow::Representation
717
+
718
+ end
719
+ end
720
+
721
+ class WeeklyCycle
722
+ # @private
723
+ class Representation < Google::Apis::Core::JsonRepresentation
724
+ collection :schedule, as: 'schedule', class: Google::Apis::ConnectorsV2::Schedule, decorator: Google::Apis::ConnectorsV2::Schedule::Representation
725
+
726
+ end
727
+ end
332
728
  end
333
729
  end
334
730
  end
@@ -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.9.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-24 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.9.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: []