google-apis-connectors_v1 0.17.0 → 0.19.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ce4d7c9ce0c7fe38192f4cdd7492364a34b432d0da661e4c267e61ee30136b20
4
- data.tar.gz: c6e6d7023d8bdf4e73e022f84ddd17b9b20a6fcb507f9f040ce54fd62ca3f130
3
+ metadata.gz: 4004d745cc59740e164ebda26b3a3ee640048e25c1461da822dda3c5e0fe5c09
4
+ data.tar.gz: 7a2f658152efb1ee8689413627d07bd9a8a17571dad5bb1c9a74d1b85b1301a6
5
5
  SHA512:
6
- metadata.gz: 9c921dbf6061731e76e753039d08aa76a256e529df997388c1002022c7b0317150687ed977bcdcfa97bff4cc6c764143f7316491570f9656764b98ef32669217
7
- data.tar.gz: cba10965b19bacdcc9f274cf11421bfcf80c8d29d09abc9af513349f5fc8533f5fadad3a40cb4b9167d40866359b6b6c60846c6c59c986366f775a86d230679e
6
+ metadata.gz: 6c4d5abc01a6b93559d4d082817386014af852d1abcb6212c2b292eb8b97248bcc2285d196e5e36c8d8dfdf714d77f88ee3c0ef07b4a85469f5bd16f8de77a0f
7
+ data.tar.gz: c3bb189add9a81cb8898f2b4c194b9248125dbc9b129e96d686a537437461086fc95c77108c7b6c88416fa6f5d55bdbbbef3b46b3a556d2719f8573ecdd9584f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-connectors_v1
2
2
 
3
+ ### v0.19.0 (2022-09-30)
4
+
5
+ * Regenerated from discovery document revision 20220912
6
+ * Regenerated using generator version 0.10.0
7
+
8
+ ### v0.18.0 (2022-08-14)
9
+
10
+ * Regenerated from discovery document revision 20220808
11
+
3
12
  ### v0.17.0 (2022-08-07)
4
13
 
5
14
  * Regenerated from discovery document revision 20220724
@@ -238,28 +238,33 @@ module Google
238
238
  # members` can have the following values: * `allUsers`: A special identifier
239
239
  # that represents anyone who is on the internet; with or without a Google
240
240
  # account. * `allAuthenticatedUsers`: A special identifier that represents
241
- # anyone who is authenticated with a Google account or a service account. * `
242
- # user:`emailid``: An email address that represents a specific Google account.
243
- # For example, `alice@example.com` . * `serviceAccount:`emailid``: An email
244
- # address that represents a service account. For example, `my-other-app@appspot.
245
- # gserviceaccount.com`. * `group:`emailid``: An email address that represents a
246
- # Google group. For example, `admins@example.com`. * `deleted:user:`emailid`?uid=
247
- # `uniqueid``: An email address (plus unique identifier) representing a user
248
- # that has been recently deleted. For example, `alice@example.com?uid=
249
- # 123456789012345678901`. If the user is recovered, this value reverts to `user:`
250
- # emailid`` and the recovered user retains the role in the binding. * `deleted:
251
- # serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus unique
252
- # identifier) representing a service account that has been recently deleted. For
253
- # example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
254
- # If the service account is undeleted, this value reverts to `serviceAccount:`
255
- # emailid`` and the undeleted service account retains the role in the binding. *
256
- # `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique
257
- # identifier) representing a Google group that has been recently deleted. For
258
- # example, `admins@example.com?uid=123456789012345678901`. If the group is
259
- # recovered, this value reverts to `group:`emailid`` and the recovered group
260
- # retains the role in the binding. * `domain:`domain``: The G Suite domain (
261
- # primary) that represents all the users of that domain. For example, `google.
262
- # com` or `example.com`.
241
+ # anyone who is authenticated with a Google account or a service account. Does
242
+ # not include identities that come from external identity providers (IdPs)
243
+ # through identity federation. * `user:`emailid``: An email address that
244
+ # represents a specific Google account. For example, `alice@example.com` . * `
245
+ # serviceAccount:`emailid``: An email address that represents a Google service
246
+ # account. For example, `my-other-app@appspot.gserviceaccount.com`. * `
247
+ # serviceAccount:`projectid`.svc.id.goog[`namespace`/`kubernetes-sa`]`: An
248
+ # identifier for a [Kubernetes service account](https://cloud.google.com/
249
+ # kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-
250
+ # project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:`emailid``: An
251
+ # email address that represents a Google group. For example, `admins@example.com`
252
+ # . * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique
253
+ # identifier) representing a user that has been recently deleted. For example, `
254
+ # alice@example.com?uid=123456789012345678901`. If the user is recovered, this
255
+ # value reverts to `user:`emailid`` and the recovered user retains the role in
256
+ # the binding. * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email
257
+ # address (plus unique identifier) representing a service account that has been
258
+ # recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=
259
+ # 123456789012345678901`. If the service account is undeleted, this value
260
+ # reverts to `serviceAccount:`emailid`` and the undeleted service account
261
+ # retains the role in the binding. * `deleted:group:`emailid`?uid=`uniqueid``:
262
+ # An email address (plus unique identifier) representing a Google group that has
263
+ # been recently deleted. For example, `admins@example.com?uid=
264
+ # 123456789012345678901`. If the group is recovered, this value reverts to `
265
+ # group:`emailid`` and the recovered group retains the role in the binding. * `
266
+ # domain:`domain``: The G Suite domain (primary) that represents all the users
267
+ # of that domain. For example, `google.com` or `example.com`.
263
268
  # Corresponds to the JSON property `members`
264
269
  # @return [Array<String>]
265
270
  attr_accessor :members
@@ -437,7 +442,8 @@ module Google
437
442
  attr_accessor :config_variables
438
443
 
439
444
  # Required. Connector version on which the connection is created. The format is:
440
- # projects/*/locations/global/providers/*/connectors/*/versions/*
445
+ # projects/*/locations/*/providers/*/connectors/*/versions/* Only global
446
+ # location is supported for ConnectorVersion resource.
441
447
  # Corresponds to the JSON property `connectorVersion`
442
448
  # @return [String]
443
449
  attr_accessor :connector_version
@@ -452,6 +458,12 @@ module Google
452
458
  # @return [String]
453
459
  attr_accessor :description
454
460
 
461
+ # Optional. Configuration of the Connector's destination. Only accepted for
462
+ # Connectors that accepts user defined destination(s).
463
+ # Corresponds to the JSON property `destinationConfigs`
464
+ # @return [Array<Google::Apis::ConnectorsV1::DestinationConfig>]
465
+ attr_accessor :destination_configs
466
+
455
467
  # Output only. GCR location where the envoy image is stored. formatted like: gcr.
456
468
  # io/`bucketName`/`imageName`
457
469
  # Corresponds to the JSON property `envoyImageLocation`
@@ -483,6 +495,11 @@ module Google
483
495
  # @return [String]
484
496
  attr_accessor :name
485
497
 
498
+ # Configuration for the connection.
499
+ # Corresponds to the JSON property `nodeConfig`
500
+ # @return [Google::Apis::ConnectorsV1::NodeConfig]
501
+ attr_accessor :node_config
502
+
486
503
  # Optional. Service account needed for runtime plane to access GCP resources.
487
504
  # Corresponds to the JSON property `serviceAccount`
488
505
  # @return [String]
@@ -523,11 +540,13 @@ module Google
523
540
  @connector_version = args[:connector_version] if args.key?(:connector_version)
524
541
  @create_time = args[:create_time] if args.key?(:create_time)
525
542
  @description = args[:description] if args.key?(:description)
543
+ @destination_configs = args[:destination_configs] if args.key?(:destination_configs)
526
544
  @envoy_image_location = args[:envoy_image_location] if args.key?(:envoy_image_location)
527
545
  @image_location = args[:image_location] if args.key?(:image_location)
528
546
  @labels = args[:labels] if args.key?(:labels)
529
547
  @lock_config = args[:lock_config] if args.key?(:lock_config)
530
548
  @name = args[:name] if args.key?(:name)
549
+ @node_config = args[:node_config] if args.key?(:node_config)
531
550
  @service_account = args[:service_account] if args.key?(:service_account)
532
551
  @service_directory = args[:service_directory] if args.key?(:service_directory)
533
552
  @status = args[:status] if args.key?(:status)
@@ -634,7 +653,8 @@ module Google
634
653
  attr_accessor :launch_stage
635
654
 
636
655
  # Output only. Resource name of the Connector. Format: projects/`project`/
637
- # locations/`location`/providers/`provider`/connectors/`connector`
656
+ # locations/`location`/providers/`provider`/connectors/`connector` Only global
657
+ # location is supported for Connector resource.
638
658
  # Corresponds to the JSON property `name`
639
659
  # @return [String]
640
660
  attr_accessor :name
@@ -714,7 +734,7 @@ module Google
714
734
 
715
735
  # Output only. Resource name of the Version. Format: projects/`project`/
716
736
  # locations/`location`/providers/`provider`/connectors/`connector`/versions/`
717
- # version`
737
+ # version` Only global location is supported for Connector resource.
718
738
  # Corresponds to the JSON property `name`
719
739
  # @return [String]
720
740
  attr_accessor :name
@@ -773,6 +793,62 @@ module Google
773
793
  end
774
794
  end
775
795
 
796
+ #
797
+ class Destination
798
+ include Google::Apis::Core::Hashable
799
+
800
+ # For publicly routable host.
801
+ # Corresponds to the JSON property `host`
802
+ # @return [String]
803
+ attr_accessor :host
804
+
805
+ # The port is the target port number that is accepted by the destination.
806
+ # Corresponds to the JSON property `port`
807
+ # @return [Fixnum]
808
+ attr_accessor :port
809
+
810
+ # PSC service attachments. Format: projects/*/regions/*/serviceAttachments/*
811
+ # Corresponds to the JSON property `serviceAttachment`
812
+ # @return [String]
813
+ attr_accessor :service_attachment
814
+
815
+ def initialize(**args)
816
+ update!(**args)
817
+ end
818
+
819
+ # Update properties of this object
820
+ def update!(**args)
821
+ @host = args[:host] if args.key?(:host)
822
+ @port = args[:port] if args.key?(:port)
823
+ @service_attachment = args[:service_attachment] if args.key?(:service_attachment)
824
+ end
825
+ end
826
+
827
+ # Define the Connectors target endpoint.
828
+ class DestinationConfig
829
+ include Google::Apis::Core::Hashable
830
+
831
+ # The destinations for the key.
832
+ # Corresponds to the JSON property `destinations`
833
+ # @return [Array<Google::Apis::ConnectorsV1::Destination>]
834
+ attr_accessor :destinations
835
+
836
+ # The key is the destination identifier that is supported by the Connector.
837
+ # Corresponds to the JSON property `key`
838
+ # @return [String]
839
+ attr_accessor :key
840
+
841
+ def initialize(**args)
842
+ update!(**args)
843
+ end
844
+
845
+ # Update properties of this object
846
+ def update!(**args)
847
+ @destinations = args[:destinations] if args.key?(:destinations)
848
+ @key = args[:key] if args.key?(:key)
849
+ end
850
+ end
851
+
776
852
  # Egress control config for connector runtime. These configurations define the
777
853
  # rules to identify which outbound domains/hosts needs to be whitelisted. It may
778
854
  # be a static information for a particular connector version or it is derived
@@ -1386,6 +1462,31 @@ module Google
1386
1462
  end
1387
1463
  end
1388
1464
 
1465
+ # Configuration for the connection.
1466
+ class NodeConfig
1467
+ include Google::Apis::Core::Hashable
1468
+
1469
+ # Maximum number of nodes in the runtime nodes.
1470
+ # Corresponds to the JSON property `maxNodeCount`
1471
+ # @return [Fixnum]
1472
+ attr_accessor :max_node_count
1473
+
1474
+ # Minimum number of nodes in the runtime nodes.
1475
+ # Corresponds to the JSON property `minNodeCount`
1476
+ # @return [Fixnum]
1477
+ attr_accessor :min_node_count
1478
+
1479
+ def initialize(**args)
1480
+ update!(**args)
1481
+ end
1482
+
1483
+ # Update properties of this object
1484
+ def update!(**args)
1485
+ @max_node_count = args[:max_node_count] if args.key?(:max_node_count)
1486
+ @min_node_count = args[:min_node_count] if args.key?(:min_node_count)
1487
+ end
1488
+ end
1489
+
1389
1490
  # Parameters to support Oauth 2.0 Client Credentials Grant Authentication. See
1390
1491
  # https://tools.ietf.org/html/rfc6749#section-1.3.4 for more details.
1391
1492
  class Oauth2ClientCredentials
@@ -1697,7 +1798,8 @@ module Google
1697
1798
  attr_accessor :launch_stage
1698
1799
 
1699
1800
  # Output only. Resource name of the Provider. Format: projects/`project`/
1700
- # locations/`location`/providers/`provider`
1801
+ # locations/`location`/providers/`provider` Only global location is supported
1802
+ # for Provider resource.
1701
1803
  # Corresponds to the JSON property `name`
1702
1804
  # @return [String]
1703
1805
  attr_accessor :name
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ConnectorsV1
18
18
  # Version of the google-apis-connectors_v1 gem
19
- GEM_VERSION = "0.17.0"
19
+ GEM_VERSION = "0.19.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.9.0"
22
+ GENERATOR_VERSION = "0.10.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220724"
25
+ REVISION = "20220912"
26
26
  end
27
27
  end
28
28
  end
@@ -106,6 +106,18 @@ module Google
106
106
  include Google::Apis::Core::JsonObjectSupport
107
107
  end
108
108
 
109
+ class Destination
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class DestinationConfig
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
109
121
  class EgressControlConfig
110
122
  class Representation < Google::Apis::Core::JsonRepresentation; end
111
123
 
@@ -220,6 +232,12 @@ module Google
220
232
  include Google::Apis::Core::JsonObjectSupport
221
233
  end
222
234
 
235
+ class NodeConfig
236
+ class Representation < Google::Apis::Core::JsonRepresentation; end
237
+
238
+ include Google::Apis::Core::JsonObjectSupport
239
+ end
240
+
223
241
  class Oauth2ClientCredentials
224
242
  class Representation < Google::Apis::Core::JsonRepresentation; end
225
243
 
@@ -456,12 +474,16 @@ module Google
456
474
  property :connector_version, as: 'connectorVersion'
457
475
  property :create_time, as: 'createTime'
458
476
  property :description, as: 'description'
477
+ collection :destination_configs, as: 'destinationConfigs', class: Google::Apis::ConnectorsV1::DestinationConfig, decorator: Google::Apis::ConnectorsV1::DestinationConfig::Representation
478
+
459
479
  property :envoy_image_location, as: 'envoyImageLocation'
460
480
  property :image_location, as: 'imageLocation'
461
481
  hash :labels, as: 'labels'
462
482
  property :lock_config, as: 'lockConfig', class: Google::Apis::ConnectorsV1::LockConfig, decorator: Google::Apis::ConnectorsV1::LockConfig::Representation
463
483
 
464
484
  property :name, as: 'name'
485
+ property :node_config, as: 'nodeConfig', class: Google::Apis::ConnectorsV1::NodeConfig, decorator: Google::Apis::ConnectorsV1::NodeConfig::Representation
486
+
465
487
  property :service_account, as: 'serviceAccount'
466
488
  property :service_directory, as: 'serviceDirectory'
467
489
  property :status, as: 'status', class: Google::Apis::ConnectorsV1::ConnectionStatus, decorator: Google::Apis::ConnectorsV1::ConnectionStatus::Representation
@@ -529,6 +551,24 @@ module Google
529
551
  end
530
552
  end
531
553
 
554
+ class Destination
555
+ # @private
556
+ class Representation < Google::Apis::Core::JsonRepresentation
557
+ property :host, as: 'host'
558
+ property :port, as: 'port'
559
+ property :service_attachment, as: 'serviceAttachment'
560
+ end
561
+ end
562
+
563
+ class DestinationConfig
564
+ # @private
565
+ class Representation < Google::Apis::Core::JsonRepresentation
566
+ collection :destinations, as: 'destinations', class: Google::Apis::ConnectorsV1::Destination, decorator: Google::Apis::ConnectorsV1::Destination::Representation
567
+
568
+ property :key, as: 'key'
569
+ end
570
+ end
571
+
532
572
  class EgressControlConfig
533
573
  # @private
534
574
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -708,6 +748,14 @@ module Google
708
748
  end
709
749
  end
710
750
 
751
+ class NodeConfig
752
+ # @private
753
+ class Representation < Google::Apis::Core::JsonRepresentation
754
+ property :max_node_count, as: 'maxNodeCount'
755
+ property :min_node_count, as: 'minNodeCount'
756
+ end
757
+ end
758
+
711
759
  class Oauth2ClientCredentials
712
760
  # @private
713
761
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -581,9 +581,17 @@ module Google
581
581
  execute_or_queue_command(command, &block)
582
582
  end
583
583
 
584
- # Gets details of a single Provider.
584
+ # Starts asynchronous cancellation on a long-running operation. The server makes
585
+ # a best effort to cancel the operation, but success is not guaranteed. If the
586
+ # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
587
+ # Clients can use Operations.GetOperation or other methods to check whether the
588
+ # cancellation succeeded or whether the operation completed despite cancellation.
589
+ # On successful cancellation, the operation is not deleted; instead, it becomes
590
+ # an operation with an Operation.error value with a google.rpc.Status.code of 1,
591
+ # corresponding to `Code.CANCELLED`.
585
592
  # @param [String] name
586
- # Required. Resource name of the form: `projects/*/locations/*/providers/*`
593
+ # The name of the operation resource to be cancelled.
594
+ # @param [Google::Apis::ConnectorsV1::CancelOperationRequest] cancel_operation_request_object
587
595
  # @param [String] fields
588
596
  # Selector specifying which fields to include in a partial response.
589
597
  # @param [String] quota_user
@@ -593,31 +601,32 @@ module Google
593
601
  # Request-specific options
594
602
  #
595
603
  # @yield [result, err] Result & error if block supplied
596
- # @yieldparam result [Google::Apis::ConnectorsV1::Provider] parsed result object
604
+ # @yieldparam result [Google::Apis::ConnectorsV1::Empty] parsed result object
597
605
  # @yieldparam err [StandardError] error object if request failed
598
606
  #
599
- # @return [Google::Apis::ConnectorsV1::Provider]
607
+ # @return [Google::Apis::ConnectorsV1::Empty]
600
608
  #
601
609
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
602
610
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
603
611
  # @raise [Google::Apis::AuthorizationError] Authorization is required
604
- def get_project_location_global_provider(name, fields: nil, quota_user: nil, options: nil, &block)
605
- command = make_simple_command(:get, 'v1/{+name}', options)
606
- command.response_representation = Google::Apis::ConnectorsV1::Provider::Representation
607
- command.response_class = Google::Apis::ConnectorsV1::Provider
612
+ def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
613
+ command = make_simple_command(:post, 'v1/{+name}:cancel', options)
614
+ command.request_representation = Google::Apis::ConnectorsV1::CancelOperationRequest::Representation
615
+ command.request_object = cancel_operation_request_object
616
+ command.response_representation = Google::Apis::ConnectorsV1::Empty::Representation
617
+ command.response_class = Google::Apis::ConnectorsV1::Empty
608
618
  command.params['name'] = name unless name.nil?
609
619
  command.query['fields'] = fields unless fields.nil?
610
620
  command.query['quotaUser'] = quota_user unless quota_user.nil?
611
621
  execute_or_queue_command(command, &block)
612
622
  end
613
623
 
614
- # Lists Providers in a given project and location.
615
- # @param [String] parent
616
- # Required. Parent resource of the API, of the form: `projects/*/locations/*`
617
- # @param [Fixnum] page_size
618
- # Page size.
619
- # @param [String] page_token
620
- # Page token.
624
+ # Deletes a long-running operation. This method indicates that the client is no
625
+ # longer interested in the operation result. It does not cancel the operation.
626
+ # If the server doesn't support this method, it returns `google.rpc.Code.
627
+ # UNIMPLEMENTED`.
628
+ # @param [String] name
629
+ # The name of the operation resource to be deleted.
621
630
  # @param [String] fields
622
631
  # Selector specifying which fields to include in a partial response.
623
632
  # @param [String] quota_user
@@ -627,30 +636,28 @@ module Google
627
636
  # Request-specific options
628
637
  #
629
638
  # @yield [result, err] Result & error if block supplied
630
- # @yieldparam result [Google::Apis::ConnectorsV1::ListProvidersResponse] parsed result object
639
+ # @yieldparam result [Google::Apis::ConnectorsV1::Empty] parsed result object
631
640
  # @yieldparam err [StandardError] error object if request failed
632
641
  #
633
- # @return [Google::Apis::ConnectorsV1::ListProvidersResponse]
642
+ # @return [Google::Apis::ConnectorsV1::Empty]
634
643
  #
635
644
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
636
645
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
637
646
  # @raise [Google::Apis::AuthorizationError] Authorization is required
638
- def list_project_location_global_providers(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
639
- command = make_simple_command(:get, 'v1/{+parent}/providers', options)
640
- command.response_representation = Google::Apis::ConnectorsV1::ListProvidersResponse::Representation
641
- command.response_class = Google::Apis::ConnectorsV1::ListProvidersResponse
642
- command.params['parent'] = parent unless parent.nil?
643
- command.query['pageSize'] = page_size unless page_size.nil?
644
- command.query['pageToken'] = page_token unless page_token.nil?
647
+ def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
648
+ command = make_simple_command(:delete, 'v1/{+name}', options)
649
+ command.response_representation = Google::Apis::ConnectorsV1::Empty::Representation
650
+ command.response_class = Google::Apis::ConnectorsV1::Empty
651
+ command.params['name'] = name unless name.nil?
645
652
  command.query['fields'] = fields unless fields.nil?
646
653
  command.query['quotaUser'] = quota_user unless quota_user.nil?
647
654
  execute_or_queue_command(command, &block)
648
655
  end
649
656
 
650
- # Gets details of a single Connector.
657
+ # Gets the latest state of a long-running operation. Clients can use this method
658
+ # to poll the operation result at intervals as recommended by the API service.
651
659
  # @param [String] name
652
- # Required. Resource name of the form: `projects/*/locations/*/providers/*/
653
- # connectors/*`
660
+ # The name of the operation resource.
654
661
  # @param [String] fields
655
662
  # Selector specifying which fields to include in a partial response.
656
663
  # @param [String] quota_user
@@ -660,32 +667,40 @@ module Google
660
667
  # Request-specific options
661
668
  #
662
669
  # @yield [result, err] Result & error if block supplied
663
- # @yieldparam result [Google::Apis::ConnectorsV1::Connector] parsed result object
670
+ # @yieldparam result [Google::Apis::ConnectorsV1::Operation] parsed result object
664
671
  # @yieldparam err [StandardError] error object if request failed
665
672
  #
666
- # @return [Google::Apis::ConnectorsV1::Connector]
673
+ # @return [Google::Apis::ConnectorsV1::Operation]
667
674
  #
668
675
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
669
676
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
670
677
  # @raise [Google::Apis::AuthorizationError] Authorization is required
671
- def get_project_location_global_provider_connector(name, fields: nil, quota_user: nil, options: nil, &block)
678
+ def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
672
679
  command = make_simple_command(:get, 'v1/{+name}', options)
673
- command.response_representation = Google::Apis::ConnectorsV1::Connector::Representation
674
- command.response_class = Google::Apis::ConnectorsV1::Connector
680
+ command.response_representation = Google::Apis::ConnectorsV1::Operation::Representation
681
+ command.response_class = Google::Apis::ConnectorsV1::Operation
675
682
  command.params['name'] = name unless name.nil?
676
683
  command.query['fields'] = fields unless fields.nil?
677
684
  command.query['quotaUser'] = quota_user unless quota_user.nil?
678
685
  execute_or_queue_command(command, &block)
679
686
  end
680
687
 
681
- # Lists Connectors in a given project and location.
682
- # @param [String] parent
683
- # Required. Parent resource of the connectors, of the form: `projects/*/
684
- # locations/*/providers/*`
688
+ # Lists operations that match the specified filter in the request. If the server
689
+ # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
690
+ # binding allows API services to override the binding to use different resource
691
+ # name schemes, such as `users/*/operations`. To override the binding, API
692
+ # services can add a binding such as `"/v1/`name=users/*`/operations"` to their
693
+ # service configuration. For backwards compatibility, the default name includes
694
+ # the operations collection id, however overriding users must ensure the name
695
+ # binding is the parent resource, without the operations collection id.
696
+ # @param [String] name
697
+ # The name of the operation's parent resource.
698
+ # @param [String] filter
699
+ # The standard list filter.
685
700
  # @param [Fixnum] page_size
686
- # Page size.
701
+ # The standard list page size.
687
702
  # @param [String] page_token
688
- # Page token.
703
+ # The standard list page token.
689
704
  # @param [String] fields
690
705
  # Selector specifying which fields to include in a partial response.
691
706
  # @param [String] quota_user
@@ -695,19 +710,20 @@ module Google
695
710
  # Request-specific options
696
711
  #
697
712
  # @yield [result, err] Result & error if block supplied
698
- # @yieldparam result [Google::Apis::ConnectorsV1::ListConnectorsResponse] parsed result object
713
+ # @yieldparam result [Google::Apis::ConnectorsV1::ListOperationsResponse] parsed result object
699
714
  # @yieldparam err [StandardError] error object if request failed
700
715
  #
701
- # @return [Google::Apis::ConnectorsV1::ListConnectorsResponse]
716
+ # @return [Google::Apis::ConnectorsV1::ListOperationsResponse]
702
717
  #
703
718
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
704
719
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
705
720
  # @raise [Google::Apis::AuthorizationError] Authorization is required
706
- def list_project_location_global_provider_connectors(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
707
- command = make_simple_command(:get, 'v1/{+parent}/connectors', options)
708
- command.response_representation = Google::Apis::ConnectorsV1::ListConnectorsResponse::Representation
709
- command.response_class = Google::Apis::ConnectorsV1::ListConnectorsResponse
710
- command.params['parent'] = parent unless parent.nil?
721
+ def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
722
+ command = make_simple_command(:get, 'v1/{+name}/operations', options)
723
+ command.response_representation = Google::Apis::ConnectorsV1::ListOperationsResponse::Representation
724
+ command.response_class = Google::Apis::ConnectorsV1::ListOperationsResponse
725
+ command.params['name'] = name unless name.nil?
726
+ command.query['filter'] = filter unless filter.nil?
711
727
  command.query['pageSize'] = page_size unless page_size.nil?
712
728
  command.query['pageToken'] = page_token unless page_token.nil?
713
729
  command.query['fields'] = fields unless fields.nil?
@@ -715,13 +731,10 @@ module Google
715
731
  execute_or_queue_command(command, &block)
716
732
  end
717
733
 
718
- # Gets details of a single connector version.
734
+ # Gets details of a provider.
719
735
  # @param [String] name
720
- # Required. Resource name of the form: `projects/*/locations/*/providers/*/
721
- # connectors/*/versions/*`
722
- # @param [String] view
723
- # Specifies which fields of the ConnectorVersion are returned in the response.
724
- # Defaults to `CUSTOMER` view.
736
+ # Required. Resource name of the form: `projects/*/locations/*/providers/*` Only
737
+ # global location is supported for Provider resource.
725
738
  # @param [String] fields
726
739
  # Selector specifying which fields to include in a partial response.
727
740
  # @param [String] quota_user
@@ -731,36 +744,41 @@ module Google
731
744
  # Request-specific options
732
745
  #
733
746
  # @yield [result, err] Result & error if block supplied
734
- # @yieldparam result [Google::Apis::ConnectorsV1::ConnectorVersion] parsed result object
747
+ # @yieldparam result [Google::Apis::ConnectorsV1::Provider] parsed result object
735
748
  # @yieldparam err [StandardError] error object if request failed
736
749
  #
737
- # @return [Google::Apis::ConnectorsV1::ConnectorVersion]
750
+ # @return [Google::Apis::ConnectorsV1::Provider]
738
751
  #
739
752
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
740
753
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
741
754
  # @raise [Google::Apis::AuthorizationError] Authorization is required
742
- def get_project_location_global_provider_connector_version(name, view: nil, fields: nil, quota_user: nil, options: nil, &block)
755
+ def get_project_location_provider(name, fields: nil, quota_user: nil, options: nil, &block)
743
756
  command = make_simple_command(:get, 'v1/{+name}', options)
744
- command.response_representation = Google::Apis::ConnectorsV1::ConnectorVersion::Representation
745
- command.response_class = Google::Apis::ConnectorsV1::ConnectorVersion
757
+ command.response_representation = Google::Apis::ConnectorsV1::Provider::Representation
758
+ command.response_class = Google::Apis::ConnectorsV1::Provider
746
759
  command.params['name'] = name unless name.nil?
747
- command.query['view'] = view unless view.nil?
748
760
  command.query['fields'] = fields unless fields.nil?
749
761
  command.query['quotaUser'] = quota_user unless quota_user.nil?
750
762
  execute_or_queue_command(command, &block)
751
763
  end
752
764
 
753
- # Lists Connector Versions in a given project and location.
754
- # @param [String] parent
755
- # Required. Parent resource of the connectors, of the form: `projects/*/
756
- # locations/*/providers/*/connectors/*`
757
- # @param [Fixnum] page_size
758
- # Page size.
759
- # @param [String] page_token
760
- # Page token.
761
- # @param [String] view
762
- # Specifies which fields of the ConnectorVersion are returned in the response.
763
- # Defaults to `CUSTOMER` view.
765
+ # Gets the access control policy for a resource. Returns an empty policy if the
766
+ # resource exists and does not have a policy set.
767
+ # @param [String] resource
768
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
769
+ # names](https://cloud.google.com/apis/design/resource_names) for the
770
+ # appropriate value for this field.
771
+ # @param [Fixnum] options_requested_policy_version
772
+ # Optional. The maximum policy version that will be used to format the policy.
773
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
774
+ # rejected. Requests for policies with any conditional role bindings must
775
+ # specify version 3. Policies with no conditional role bindings may specify any
776
+ # valid value or leave the field unset. The policy in the response might use the
777
+ # policy version that you specified, or it might use a lower policy version. For
778
+ # example, if you specify version 3, but the policy has no conditional role
779
+ # bindings, the response uses version 1. To learn which resources support
780
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
781
+ # google.com/iam/help/conditions/resource-policies).
764
782
  # @param [String] fields
765
783
  # Selector specifying which fields to include in a partial response.
766
784
  # @param [String] quota_user
@@ -770,38 +788,33 @@ module Google
770
788
  # Request-specific options
771
789
  #
772
790
  # @yield [result, err] Result & error if block supplied
773
- # @yieldparam result [Google::Apis::ConnectorsV1::ListConnectorVersionsResponse] parsed result object
791
+ # @yieldparam result [Google::Apis::ConnectorsV1::Policy] parsed result object
774
792
  # @yieldparam err [StandardError] error object if request failed
775
793
  #
776
- # @return [Google::Apis::ConnectorsV1::ListConnectorVersionsResponse]
794
+ # @return [Google::Apis::ConnectorsV1::Policy]
777
795
  #
778
796
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
779
797
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
780
798
  # @raise [Google::Apis::AuthorizationError] Authorization is required
781
- def list_project_location_global_provider_connector_versions(parent, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
782
- command = make_simple_command(:get, 'v1/{+parent}/versions', options)
783
- command.response_representation = Google::Apis::ConnectorsV1::ListConnectorVersionsResponse::Representation
784
- command.response_class = Google::Apis::ConnectorsV1::ListConnectorVersionsResponse
785
- command.params['parent'] = parent unless parent.nil?
786
- command.query['pageSize'] = page_size unless page_size.nil?
787
- command.query['pageToken'] = page_token unless page_token.nil?
788
- command.query['view'] = view unless view.nil?
799
+ def get_project_location_provider_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
800
+ command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
801
+ command.response_representation = Google::Apis::ConnectorsV1::Policy::Representation
802
+ command.response_class = Google::Apis::ConnectorsV1::Policy
803
+ command.params['resource'] = resource unless resource.nil?
804
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
789
805
  command.query['fields'] = fields unless fields.nil?
790
806
  command.query['quotaUser'] = quota_user unless quota_user.nil?
791
807
  execute_or_queue_command(command, &block)
792
808
  end
793
809
 
794
- # Starts asynchronous cancellation on a long-running operation. The server makes
795
- # a best effort to cancel the operation, but success is not guaranteed. If the
796
- # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
797
- # Clients can use Operations.GetOperation or other methods to check whether the
798
- # cancellation succeeded or whether the operation completed despite cancellation.
799
- # On successful cancellation, the operation is not deleted; instead, it becomes
800
- # an operation with an Operation.error value with a google.rpc.Status.code of 1,
801
- # corresponding to `Code.CANCELLED`.
802
- # @param [String] name
803
- # The name of the operation resource to be cancelled.
804
- # @param [Google::Apis::ConnectorsV1::CancelOperationRequest] cancel_operation_request_object
810
+ # Lists Providers in a given project and location.
811
+ # @param [String] parent
812
+ # Required. Parent resource of the API, of the form: `projects/*/locations/*`
813
+ # Only global location is supported for Provider resource.
814
+ # @param [Fixnum] page_size
815
+ # Page size.
816
+ # @param [String] page_token
817
+ # Page token.
805
818
  # @param [String] fields
806
819
  # Selector specifying which fields to include in a partial response.
807
820
  # @param [String] quota_user
@@ -811,32 +824,34 @@ module Google
811
824
  # Request-specific options
812
825
  #
813
826
  # @yield [result, err] Result & error if block supplied
814
- # @yieldparam result [Google::Apis::ConnectorsV1::Empty] parsed result object
827
+ # @yieldparam result [Google::Apis::ConnectorsV1::ListProvidersResponse] parsed result object
815
828
  # @yieldparam err [StandardError] error object if request failed
816
829
  #
817
- # @return [Google::Apis::ConnectorsV1::Empty]
830
+ # @return [Google::Apis::ConnectorsV1::ListProvidersResponse]
818
831
  #
819
832
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
820
833
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
821
834
  # @raise [Google::Apis::AuthorizationError] Authorization is required
822
- def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
823
- command = make_simple_command(:post, 'v1/{+name}:cancel', options)
824
- command.request_representation = Google::Apis::ConnectorsV1::CancelOperationRequest::Representation
825
- command.request_object = cancel_operation_request_object
826
- command.response_representation = Google::Apis::ConnectorsV1::Empty::Representation
827
- command.response_class = Google::Apis::ConnectorsV1::Empty
828
- command.params['name'] = name unless name.nil?
835
+ def list_project_location_providers(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
836
+ command = make_simple_command(:get, 'v1/{+parent}/providers', options)
837
+ command.response_representation = Google::Apis::ConnectorsV1::ListProvidersResponse::Representation
838
+ command.response_class = Google::Apis::ConnectorsV1::ListProvidersResponse
839
+ command.params['parent'] = parent unless parent.nil?
840
+ command.query['pageSize'] = page_size unless page_size.nil?
841
+ command.query['pageToken'] = page_token unless page_token.nil?
829
842
  command.query['fields'] = fields unless fields.nil?
830
843
  command.query['quotaUser'] = quota_user unless quota_user.nil?
831
844
  execute_or_queue_command(command, &block)
832
845
  end
833
846
 
834
- # Deletes a long-running operation. This method indicates that the client is no
835
- # longer interested in the operation result. It does not cancel the operation.
836
- # If the server doesn't support this method, it returns `google.rpc.Code.
837
- # UNIMPLEMENTED`.
838
- # @param [String] name
839
- # The name of the operation resource to be deleted.
847
+ # Sets the access control policy on the specified resource. Replaces any
848
+ # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
849
+ # PERMISSION_DENIED` errors.
850
+ # @param [String] resource
851
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
852
+ # names](https://cloud.google.com/apis/design/resource_names) for the
853
+ # appropriate value for this field.
854
+ # @param [Google::Apis::ConnectorsV1::SetIamPolicyRequest] set_iam_policy_request_object
840
855
  # @param [String] fields
841
856
  # Selector specifying which fields to include in a partial response.
842
857
  # @param [String] quota_user
@@ -846,28 +861,36 @@ module Google
846
861
  # Request-specific options
847
862
  #
848
863
  # @yield [result, err] Result & error if block supplied
849
- # @yieldparam result [Google::Apis::ConnectorsV1::Empty] parsed result object
864
+ # @yieldparam result [Google::Apis::ConnectorsV1::Policy] parsed result object
850
865
  # @yieldparam err [StandardError] error object if request failed
851
866
  #
852
- # @return [Google::Apis::ConnectorsV1::Empty]
867
+ # @return [Google::Apis::ConnectorsV1::Policy]
853
868
  #
854
869
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
855
870
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
856
871
  # @raise [Google::Apis::AuthorizationError] Authorization is required
857
- def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
858
- command = make_simple_command(:delete, 'v1/{+name}', options)
859
- command.response_representation = Google::Apis::ConnectorsV1::Empty::Representation
860
- command.response_class = Google::Apis::ConnectorsV1::Empty
861
- command.params['name'] = name unless name.nil?
872
+ def set_provider_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
873
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
874
+ command.request_representation = Google::Apis::ConnectorsV1::SetIamPolicyRequest::Representation
875
+ command.request_object = set_iam_policy_request_object
876
+ command.response_representation = Google::Apis::ConnectorsV1::Policy::Representation
877
+ command.response_class = Google::Apis::ConnectorsV1::Policy
878
+ command.params['resource'] = resource unless resource.nil?
862
879
  command.query['fields'] = fields unless fields.nil?
863
880
  command.query['quotaUser'] = quota_user unless quota_user.nil?
864
881
  execute_or_queue_command(command, &block)
865
882
  end
866
883
 
867
- # Gets the latest state of a long-running operation. Clients can use this method
868
- # to poll the operation result at intervals as recommended by the API service.
869
- # @param [String] name
870
- # The name of the operation resource.
884
+ # Returns permissions that a caller has on the specified resource. If the
885
+ # resource does not exist, this will return an empty set of permissions, not a `
886
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
887
+ # permission-aware UIs and command-line tools, not for authorization checking.
888
+ # This operation may "fail open" without warning.
889
+ # @param [String] resource
890
+ # REQUIRED: The resource for which the policy detail is being requested. See [
891
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
892
+ # appropriate value for this field.
893
+ # @param [Google::Apis::ConnectorsV1::TestIamPermissionsRequest] test_iam_permissions_request_object
871
894
  # @param [String] fields
872
895
  # Selector specifying which fields to include in a partial response.
873
896
  # @param [String] quota_user
@@ -877,40 +900,30 @@ module Google
877
900
  # Request-specific options
878
901
  #
879
902
  # @yield [result, err] Result & error if block supplied
880
- # @yieldparam result [Google::Apis::ConnectorsV1::Operation] parsed result object
903
+ # @yieldparam result [Google::Apis::ConnectorsV1::TestIamPermissionsResponse] parsed result object
881
904
  # @yieldparam err [StandardError] error object if request failed
882
905
  #
883
- # @return [Google::Apis::ConnectorsV1::Operation]
906
+ # @return [Google::Apis::ConnectorsV1::TestIamPermissionsResponse]
884
907
  #
885
908
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
886
909
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
887
910
  # @raise [Google::Apis::AuthorizationError] Authorization is required
888
- def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
889
- command = make_simple_command(:get, 'v1/{+name}', options)
890
- command.response_representation = Google::Apis::ConnectorsV1::Operation::Representation
891
- command.response_class = Google::Apis::ConnectorsV1::Operation
892
- command.params['name'] = name unless name.nil?
911
+ def test_provider_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
912
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
913
+ command.request_representation = Google::Apis::ConnectorsV1::TestIamPermissionsRequest::Representation
914
+ command.request_object = test_iam_permissions_request_object
915
+ command.response_representation = Google::Apis::ConnectorsV1::TestIamPermissionsResponse::Representation
916
+ command.response_class = Google::Apis::ConnectorsV1::TestIamPermissionsResponse
917
+ command.params['resource'] = resource unless resource.nil?
893
918
  command.query['fields'] = fields unless fields.nil?
894
919
  command.query['quotaUser'] = quota_user unless quota_user.nil?
895
920
  execute_or_queue_command(command, &block)
896
921
  end
897
922
 
898
- # Lists operations that match the specified filter in the request. If the server
899
- # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
900
- # binding allows API services to override the binding to use different resource
901
- # name schemes, such as `users/*/operations`. To override the binding, API
902
- # services can add a binding such as `"/v1/`name=users/*`/operations"` to their
903
- # service configuration. For backwards compatibility, the default name includes
904
- # the operations collection id, however overriding users must ensure the name
905
- # binding is the parent resource, without the operations collection id.
923
+ # Gets details of a single Connector.
906
924
  # @param [String] name
907
- # The name of the operation's parent resource.
908
- # @param [String] filter
909
- # The standard list filter.
910
- # @param [Fixnum] page_size
911
- # The standard list page size.
912
- # @param [String] page_token
913
- # The standard list page token.
925
+ # Required. Resource name of the form: `projects/*/locations/*/providers/*/
926
+ # connectors/*` Only global location is supported for Connector resource.
914
927
  # @param [String] fields
915
928
  # Selector specifying which fields to include in a partial response.
916
929
  # @param [String] quota_user
@@ -920,44 +933,33 @@ module Google
920
933
  # Request-specific options
921
934
  #
922
935
  # @yield [result, err] Result & error if block supplied
923
- # @yieldparam result [Google::Apis::ConnectorsV1::ListOperationsResponse] parsed result object
936
+ # @yieldparam result [Google::Apis::ConnectorsV1::Connector] parsed result object
924
937
  # @yieldparam err [StandardError] error object if request failed
925
938
  #
926
- # @return [Google::Apis::ConnectorsV1::ListOperationsResponse]
939
+ # @return [Google::Apis::ConnectorsV1::Connector]
927
940
  #
928
941
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
929
942
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
930
943
  # @raise [Google::Apis::AuthorizationError] Authorization is required
931
- def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
932
- command = make_simple_command(:get, 'v1/{+name}/operations', options)
933
- command.response_representation = Google::Apis::ConnectorsV1::ListOperationsResponse::Representation
934
- command.response_class = Google::Apis::ConnectorsV1::ListOperationsResponse
944
+ def get_project_location_provider_connector(name, fields: nil, quota_user: nil, options: nil, &block)
945
+ command = make_simple_command(:get, 'v1/{+name}', options)
946
+ command.response_representation = Google::Apis::ConnectorsV1::Connector::Representation
947
+ command.response_class = Google::Apis::ConnectorsV1::Connector
935
948
  command.params['name'] = name unless name.nil?
936
- command.query['filter'] = filter unless filter.nil?
937
- command.query['pageSize'] = page_size unless page_size.nil?
938
- command.query['pageToken'] = page_token unless page_token.nil?
939
949
  command.query['fields'] = fields unless fields.nil?
940
950
  command.query['quotaUser'] = quota_user unless quota_user.nil?
941
951
  execute_or_queue_command(command, &block)
942
952
  end
943
953
 
944
- # Gets the access control policy for a resource. Returns an empty policy if the
945
- # resource exists and does not have a policy set.
946
- # @param [String] resource
947
- # REQUIRED: The resource for which the policy is being requested. See [Resource
948
- # names](https://cloud.google.com/apis/design/resource_names) for the
949
- # appropriate value for this field.
950
- # @param [Fixnum] options_requested_policy_version
951
- # Optional. The maximum policy version that will be used to format the policy.
952
- # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
953
- # rejected. Requests for policies with any conditional role bindings must
954
- # specify version 3. Policies with no conditional role bindings may specify any
955
- # valid value or leave the field unset. The policy in the response might use the
956
- # policy version that you specified, or it might use a lower policy version. For
957
- # example, if you specify version 3, but the policy has no conditional role
958
- # bindings, the response uses version 1. To learn which resources support
959
- # conditions in their IAM policies, see the [IAM documentation](https://cloud.
960
- # google.com/iam/help/conditions/resource-policies).
954
+ # Lists Connectors in a given project and location.
955
+ # @param [String] parent
956
+ # Required. Parent resource of the connectors, of the form: `projects/*/
957
+ # locations/*/providers/*` Only global location is supported for Connector
958
+ # resource.
959
+ # @param [Fixnum] page_size
960
+ # Page size.
961
+ # @param [String] page_token
962
+ # Page token.
961
963
  # @param [String] fields
962
964
  # Selector specifying which fields to include in a partial response.
963
965
  # @param [String] quota_user
@@ -967,33 +969,34 @@ module Google
967
969
  # Request-specific options
968
970
  #
969
971
  # @yield [result, err] Result & error if block supplied
970
- # @yieldparam result [Google::Apis::ConnectorsV1::Policy] parsed result object
972
+ # @yieldparam result [Google::Apis::ConnectorsV1::ListConnectorsResponse] parsed result object
971
973
  # @yieldparam err [StandardError] error object if request failed
972
974
  #
973
- # @return [Google::Apis::ConnectorsV1::Policy]
975
+ # @return [Google::Apis::ConnectorsV1::ListConnectorsResponse]
974
976
  #
975
977
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
976
978
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
977
979
  # @raise [Google::Apis::AuthorizationError] Authorization is required
978
- def get_project_location_provider_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
979
- command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
980
- command.response_representation = Google::Apis::ConnectorsV1::Policy::Representation
981
- command.response_class = Google::Apis::ConnectorsV1::Policy
982
- command.params['resource'] = resource unless resource.nil?
983
- command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
980
+ def list_project_location_provider_connectors(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
981
+ command = make_simple_command(:get, 'v1/{+parent}/connectors', options)
982
+ command.response_representation = Google::Apis::ConnectorsV1::ListConnectorsResponse::Representation
983
+ command.response_class = Google::Apis::ConnectorsV1::ListConnectorsResponse
984
+ command.params['parent'] = parent unless parent.nil?
985
+ command.query['pageSize'] = page_size unless page_size.nil?
986
+ command.query['pageToken'] = page_token unless page_token.nil?
984
987
  command.query['fields'] = fields unless fields.nil?
985
988
  command.query['quotaUser'] = quota_user unless quota_user.nil?
986
989
  execute_or_queue_command(command, &block)
987
990
  end
988
991
 
989
- # Sets the access control policy on the specified resource. Replaces any
990
- # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
991
- # PERMISSION_DENIED` errors.
992
- # @param [String] resource
993
- # REQUIRED: The resource for which the policy is being specified. See [Resource
994
- # names](https://cloud.google.com/apis/design/resource_names) for the
995
- # appropriate value for this field.
996
- # @param [Google::Apis::ConnectorsV1::SetIamPolicyRequest] set_iam_policy_request_object
992
+ # Gets details of a single connector version.
993
+ # @param [String] name
994
+ # Required. Resource name of the form: `projects/*/locations/*/providers/*/
995
+ # connectors/*/versions/*` Only global location is supported for
996
+ # ConnectorVersion resource.
997
+ # @param [String] view
998
+ # Specifies which fields of the ConnectorVersion are returned in the response.
999
+ # Defaults to `CUSTOMER` view.
997
1000
  # @param [String] fields
998
1001
  # Selector specifying which fields to include in a partial response.
999
1002
  # @param [String] quota_user
@@ -1003,36 +1006,37 @@ module Google
1003
1006
  # Request-specific options
1004
1007
  #
1005
1008
  # @yield [result, err] Result & error if block supplied
1006
- # @yieldparam result [Google::Apis::ConnectorsV1::Policy] parsed result object
1009
+ # @yieldparam result [Google::Apis::ConnectorsV1::ConnectorVersion] parsed result object
1007
1010
  # @yieldparam err [StandardError] error object if request failed
1008
1011
  #
1009
- # @return [Google::Apis::ConnectorsV1::Policy]
1012
+ # @return [Google::Apis::ConnectorsV1::ConnectorVersion]
1010
1013
  #
1011
1014
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1012
1015
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1013
1016
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1014
- def set_provider_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1015
- command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
1016
- command.request_representation = Google::Apis::ConnectorsV1::SetIamPolicyRequest::Representation
1017
- command.request_object = set_iam_policy_request_object
1018
- command.response_representation = Google::Apis::ConnectorsV1::Policy::Representation
1019
- command.response_class = Google::Apis::ConnectorsV1::Policy
1020
- command.params['resource'] = resource unless resource.nil?
1017
+ def get_project_location_provider_connector_version(name, view: nil, fields: nil, quota_user: nil, options: nil, &block)
1018
+ command = make_simple_command(:get, 'v1/{+name}', options)
1019
+ command.response_representation = Google::Apis::ConnectorsV1::ConnectorVersion::Representation
1020
+ command.response_class = Google::Apis::ConnectorsV1::ConnectorVersion
1021
+ command.params['name'] = name unless name.nil?
1022
+ command.query['view'] = view unless view.nil?
1021
1023
  command.query['fields'] = fields unless fields.nil?
1022
1024
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1023
1025
  execute_or_queue_command(command, &block)
1024
1026
  end
1025
1027
 
1026
- # Returns permissions that a caller has on the specified resource. If the
1027
- # resource does not exist, this will return an empty set of permissions, not a `
1028
- # NOT_FOUND` error. Note: This operation is designed to be used for building
1029
- # permission-aware UIs and command-line tools, not for authorization checking.
1030
- # This operation may "fail open" without warning.
1031
- # @param [String] resource
1032
- # REQUIRED: The resource for which the policy detail is being requested. See [
1033
- # Resource names](https://cloud.google.com/apis/design/resource_names) for the
1034
- # appropriate value for this field.
1035
- # @param [Google::Apis::ConnectorsV1::TestIamPermissionsRequest] test_iam_permissions_request_object
1028
+ # Lists Connector Versions in a given project and location.
1029
+ # @param [String] parent
1030
+ # Required. Parent resource of the connectors, of the form: `projects/*/
1031
+ # locations/*/providers/*/connectors/*` Only global location is supported for
1032
+ # ConnectorVersion resource.
1033
+ # @param [Fixnum] page_size
1034
+ # Page size.
1035
+ # @param [String] page_token
1036
+ # Page token.
1037
+ # @param [String] view
1038
+ # Specifies which fields of the ConnectorVersion are returned in the response.
1039
+ # Defaults to `BASIC` view.
1036
1040
  # @param [String] fields
1037
1041
  # Selector specifying which fields to include in a partial response.
1038
1042
  # @param [String] quota_user
@@ -1042,21 +1046,22 @@ module Google
1042
1046
  # Request-specific options
1043
1047
  #
1044
1048
  # @yield [result, err] Result & error if block supplied
1045
- # @yieldparam result [Google::Apis::ConnectorsV1::TestIamPermissionsResponse] parsed result object
1049
+ # @yieldparam result [Google::Apis::ConnectorsV1::ListConnectorVersionsResponse] parsed result object
1046
1050
  # @yieldparam err [StandardError] error object if request failed
1047
1051
  #
1048
- # @return [Google::Apis::ConnectorsV1::TestIamPermissionsResponse]
1052
+ # @return [Google::Apis::ConnectorsV1::ListConnectorVersionsResponse]
1049
1053
  #
1050
1054
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1051
1055
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1052
1056
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1053
- def test_provider_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1054
- command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
1055
- command.request_representation = Google::Apis::ConnectorsV1::TestIamPermissionsRequest::Representation
1056
- command.request_object = test_iam_permissions_request_object
1057
- command.response_representation = Google::Apis::ConnectorsV1::TestIamPermissionsResponse::Representation
1058
- command.response_class = Google::Apis::ConnectorsV1::TestIamPermissionsResponse
1059
- command.params['resource'] = resource unless resource.nil?
1057
+ def list_project_location_provider_connector_versions(parent, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
1058
+ command = make_simple_command(:get, 'v1/{+parent}/versions', options)
1059
+ command.response_representation = Google::Apis::ConnectorsV1::ListConnectorVersionsResponse::Representation
1060
+ command.response_class = Google::Apis::ConnectorsV1::ListConnectorVersionsResponse
1061
+ command.params['parent'] = parent unless parent.nil?
1062
+ command.query['pageSize'] = page_size unless page_size.nil?
1063
+ command.query['pageToken'] = page_token unless page_token.nil?
1064
+ command.query['view'] = view unless view.nil?
1060
1065
  command.query['fields'] = fields unless fields.nil?
1061
1066
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1062
1067
  execute_or_queue_command(command, &block)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-connectors_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.0
4
+ version: 0.19.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: 2022-08-08 00:00:00.000000000 Z
11
+ date: 2022-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.7'
19
+ version: 0.9.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.7'
29
+ version: 0.9.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-connectors_v1/v0.17.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-connectors_v1/v0.19.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-connectors_v1
63
63
  post_install_message:
64
64
  rdoc_options: []