google-apis-connectors_v1 0.17.0 → 0.18.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: 3b02109d060e3231fa82bca8df3f48b5ba95a4a486fcde6c693fa02ef457d21d
4
+ data.tar.gz: 01b8ba4b861f2d071a22c31409cd00130800338e49180922a87895f74a201fa8
5
5
  SHA512:
6
- metadata.gz: 9c921dbf6061731e76e753039d08aa76a256e529df997388c1002022c7b0317150687ed977bcdcfa97bff4cc6c764143f7316491570f9656764b98ef32669217
7
- data.tar.gz: cba10965b19bacdcc9f274cf11421bfcf80c8d29d09abc9af513349f5fc8533f5fadad3a40cb4b9167d40866359b6b6c60846c6c59c986366f775a86d230679e
6
+ metadata.gz: 2053187033288d10c760efafbdd310cc94f0f8e54187f89ac409fafffbbe503e5d3b3bf66f9a0fc6dabd7a80159ade2ae3421621d9c0d15d14279e07c6f59230
7
+ data.tar.gz: 0c0960caa92efb2946516d28b7b61c3b442726ebd14906396c41949ee337a36f2429a6004a4b232171c6284d9485295d256863541774ca1cbcd43ab7a35a5322
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-connectors_v1
2
2
 
3
+ ### v0.18.0 (2022-08-14)
4
+
5
+ * Regenerated from discovery document revision 20220808
6
+
3
7
  ### v0.17.0 (2022-08-07)
4
8
 
5
9
  * Regenerated from discovery document revision 20220724
@@ -241,25 +241,28 @@ module Google
241
241
  # anyone who is authenticated with a Google account or a service account. * `
242
242
  # user:`emailid``: An email address that represents a specific Google account.
243
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`.
244
+ # address that represents a Google service account. For example, `my-other-app@
245
+ # appspot.gserviceaccount.com`. * `serviceAccount:`projectid`.svc.id.goog[`
246
+ # namespace`/`kubernetes-sa`]`: An identifier for a [Kubernetes service account](
247
+ # https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-
248
+ # accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`
249
+ # . * `group:`emailid``: An email address that represents a Google group. For
250
+ # example, `admins@example.com`. * `deleted:user:`emailid`?uid=`uniqueid``: An
251
+ # email address (plus unique identifier) representing a user that has been
252
+ # recently deleted. For example, `alice@example.com?uid=123456789012345678901`.
253
+ # If the user is recovered, this value reverts to `user:`emailid`` and the
254
+ # recovered user retains the role in the binding. * `deleted:serviceAccount:`
255
+ # emailid`?uid=`uniqueid``: An email address (plus unique identifier)
256
+ # representing a service account that has been recently deleted. For example, `
257
+ # my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the
258
+ # service account is undeleted, this value reverts to `serviceAccount:`emailid``
259
+ # and the undeleted service account retains the role in the binding. * `deleted:
260
+ # group:`emailid`?uid=`uniqueid``: An email address (plus unique identifier)
261
+ # representing a Google group that has been recently deleted. For example, `
262
+ # admins@example.com?uid=123456789012345678901`. If the group is recovered, this
263
+ # value reverts to `group:`emailid`` and the recovered group retains the role in
264
+ # the binding. * `domain:`domain``: The G Suite domain (primary) that represents
265
+ # all the users of that domain. For example, `google.com` or `example.com`.
263
266
  # Corresponds to the JSON property `members`
264
267
  # @return [Array<String>]
265
268
  attr_accessor :members
@@ -437,7 +440,8 @@ module Google
437
440
  attr_accessor :config_variables
438
441
 
439
442
  # Required. Connector version on which the connection is created. The format is:
440
- # projects/*/locations/global/providers/*/connectors/*/versions/*
443
+ # projects/*/locations/*/providers/*/connectors/*/versions/* Only global
444
+ # location is supported for ConnectorVersion resource.
441
445
  # Corresponds to the JSON property `connectorVersion`
442
446
  # @return [String]
443
447
  attr_accessor :connector_version
@@ -452,6 +456,12 @@ module Google
452
456
  # @return [String]
453
457
  attr_accessor :description
454
458
 
459
+ # Optional. Configuration of the Connector's destination. Only accepted for
460
+ # Connectors that accepts user defined destination(s).
461
+ # Corresponds to the JSON property `destinationConfigs`
462
+ # @return [Array<Google::Apis::ConnectorsV1::DestinationConfig>]
463
+ attr_accessor :destination_configs
464
+
455
465
  # Output only. GCR location where the envoy image is stored. formatted like: gcr.
456
466
  # io/`bucketName`/`imageName`
457
467
  # Corresponds to the JSON property `envoyImageLocation`
@@ -483,6 +493,11 @@ module Google
483
493
  # @return [String]
484
494
  attr_accessor :name
485
495
 
496
+ # Configuration for the connection.
497
+ # Corresponds to the JSON property `nodeConfig`
498
+ # @return [Google::Apis::ConnectorsV1::NodeConfig]
499
+ attr_accessor :node_config
500
+
486
501
  # Optional. Service account needed for runtime plane to access GCP resources.
487
502
  # Corresponds to the JSON property `serviceAccount`
488
503
  # @return [String]
@@ -523,11 +538,13 @@ module Google
523
538
  @connector_version = args[:connector_version] if args.key?(:connector_version)
524
539
  @create_time = args[:create_time] if args.key?(:create_time)
525
540
  @description = args[:description] if args.key?(:description)
541
+ @destination_configs = args[:destination_configs] if args.key?(:destination_configs)
526
542
  @envoy_image_location = args[:envoy_image_location] if args.key?(:envoy_image_location)
527
543
  @image_location = args[:image_location] if args.key?(:image_location)
528
544
  @labels = args[:labels] if args.key?(:labels)
529
545
  @lock_config = args[:lock_config] if args.key?(:lock_config)
530
546
  @name = args[:name] if args.key?(:name)
547
+ @node_config = args[:node_config] if args.key?(:node_config)
531
548
  @service_account = args[:service_account] if args.key?(:service_account)
532
549
  @service_directory = args[:service_directory] if args.key?(:service_directory)
533
550
  @status = args[:status] if args.key?(:status)
@@ -634,7 +651,8 @@ module Google
634
651
  attr_accessor :launch_stage
635
652
 
636
653
  # Output only. Resource name of the Connector. Format: projects/`project`/
637
- # locations/`location`/providers/`provider`/connectors/`connector`
654
+ # locations/`location`/providers/`provider`/connectors/`connector` Only global
655
+ # location is supported for Connector resource.
638
656
  # Corresponds to the JSON property `name`
639
657
  # @return [String]
640
658
  attr_accessor :name
@@ -714,7 +732,7 @@ module Google
714
732
 
715
733
  # Output only. Resource name of the Version. Format: projects/`project`/
716
734
  # locations/`location`/providers/`provider`/connectors/`connector`/versions/`
717
- # version`
735
+ # version` Only global location is supported for Connector resource.
718
736
  # Corresponds to the JSON property `name`
719
737
  # @return [String]
720
738
  attr_accessor :name
@@ -773,6 +791,62 @@ module Google
773
791
  end
774
792
  end
775
793
 
794
+ #
795
+ class Destination
796
+ include Google::Apis::Core::Hashable
797
+
798
+ # For publicly routable host.
799
+ # Corresponds to the JSON property `host`
800
+ # @return [String]
801
+ attr_accessor :host
802
+
803
+ # The port is the target port number that is accepted by the destination.
804
+ # Corresponds to the JSON property `port`
805
+ # @return [Fixnum]
806
+ attr_accessor :port
807
+
808
+ # PSC service attachments. Format: projects/*/regions/*/serviceAttachments/*
809
+ # Corresponds to the JSON property `serviceAttachment`
810
+ # @return [String]
811
+ attr_accessor :service_attachment
812
+
813
+ def initialize(**args)
814
+ update!(**args)
815
+ end
816
+
817
+ # Update properties of this object
818
+ def update!(**args)
819
+ @host = args[:host] if args.key?(:host)
820
+ @port = args[:port] if args.key?(:port)
821
+ @service_attachment = args[:service_attachment] if args.key?(:service_attachment)
822
+ end
823
+ end
824
+
825
+ # Define the Connectors target endpoint.
826
+ class DestinationConfig
827
+ include Google::Apis::Core::Hashable
828
+
829
+ # The destinations for the key.
830
+ # Corresponds to the JSON property `destinations`
831
+ # @return [Array<Google::Apis::ConnectorsV1::Destination>]
832
+ attr_accessor :destinations
833
+
834
+ # The key is the destination identifier that is supported by the Connector.
835
+ # Corresponds to the JSON property `key`
836
+ # @return [String]
837
+ attr_accessor :key
838
+
839
+ def initialize(**args)
840
+ update!(**args)
841
+ end
842
+
843
+ # Update properties of this object
844
+ def update!(**args)
845
+ @destinations = args[:destinations] if args.key?(:destinations)
846
+ @key = args[:key] if args.key?(:key)
847
+ end
848
+ end
849
+
776
850
  # Egress control config for connector runtime. These configurations define the
777
851
  # rules to identify which outbound domains/hosts needs to be whitelisted. It may
778
852
  # be a static information for a particular connector version or it is derived
@@ -1386,6 +1460,31 @@ module Google
1386
1460
  end
1387
1461
  end
1388
1462
 
1463
+ # Configuration for the connection.
1464
+ class NodeConfig
1465
+ include Google::Apis::Core::Hashable
1466
+
1467
+ # Maximum number of nodes in the runtime nodes.
1468
+ # Corresponds to the JSON property `maxNodeCount`
1469
+ # @return [Fixnum]
1470
+ attr_accessor :max_node_count
1471
+
1472
+ # Minimum number of nodes in the runtime nodes.
1473
+ # Corresponds to the JSON property `minNodeCount`
1474
+ # @return [Fixnum]
1475
+ attr_accessor :min_node_count
1476
+
1477
+ def initialize(**args)
1478
+ update!(**args)
1479
+ end
1480
+
1481
+ # Update properties of this object
1482
+ def update!(**args)
1483
+ @max_node_count = args[:max_node_count] if args.key?(:max_node_count)
1484
+ @min_node_count = args[:min_node_count] if args.key?(:min_node_count)
1485
+ end
1486
+ end
1487
+
1389
1488
  # Parameters to support Oauth 2.0 Client Credentials Grant Authentication. See
1390
1489
  # https://tools.ietf.org/html/rfc6749#section-1.3.4 for more details.
1391
1490
  class Oauth2ClientCredentials
@@ -1697,7 +1796,8 @@ module Google
1697
1796
  attr_accessor :launch_stage
1698
1797
 
1699
1798
  # Output only. Resource name of the Provider. Format: projects/`project`/
1700
- # locations/`location`/providers/`provider`
1799
+ # locations/`location`/providers/`provider` Only global location is supported
1800
+ # for Provider resource.
1701
1801
  # Corresponds to the JSON property `name`
1702
1802
  # @return [String]
1703
1803
  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.18.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.9.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220724"
25
+ REVISION = "20220808"
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.18.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-08-15 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_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.18.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: []