google-apis-connectors_v1 0.28.0 → 0.29.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: beb86da61024256c7496c8d289753a32ac793ce613def508b75f90028a6cd988
4
- data.tar.gz: 566a46042c69039f04483ccd1a50c8654bf91a5fb6fe6d027171325a29abe3a4
3
+ metadata.gz: e71928c474f0005eaafe1e1045e820e2718eee54d096d984759c176fcc94f456
4
+ data.tar.gz: c563b75110bc98955011650b39ee2a1ffab451e2d6ce72eed9eb4e6819ae66ac
5
5
  SHA512:
6
- metadata.gz: 6441367af859b018855714ca3b5c20fc5296d02b35c7125a05e5da2a098355967f8263643f8a1cb1ae797e58f7db2f4a13e450a6621bfa698dcc2d09aca1a8b3
7
- data.tar.gz: 940eccc6c7b9bb2d88630ed5979d8776e545774289d3e2de63df83e2f1cdf2562b3bf977184ce87c1d093003c13760a18fbd80213dd5d1253b3c49e147ad47b3
6
+ metadata.gz: 1249f7e0ac783a6772d8ea38f28d5c52b5d7d9c13971daeeff6e192cf4ce2ea85ffb9440ef01fb25b54ab2240f1bd847561a74f2d93aca31888c199bf30ea259
7
+ data.tar.gz: ca0a1abd7ebffc4772cd49e3632b0c1151bc6d30bca6fdcda8ef454f088b4aa164f11941c6fd0a9ed17f1cc196383a8dfeb0e09a08de6f338d14f9b69454b94c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-connectors_v1
2
2
 
3
+ ### v0.29.0 (2023-05-14)
4
+
5
+ * Regenerated from discovery document revision 20230503
6
+
3
7
  ### v0.28.0 (2023-04-30)
4
8
 
5
9
  * Regenerated from discovery document revision 20230417
@@ -566,6 +566,12 @@ module Google
566
566
  # @return [Google::Apis::ConnectorsV1::ConnectionStatus]
567
567
  attr_accessor :status
568
568
 
569
+ # Output only. This subscription type enum states the subscription type of the
570
+ # project.
571
+ # Corresponds to the JSON property `subscriptionType`
572
+ # @return [String]
573
+ attr_accessor :subscription_type
574
+
569
575
  # Optional. Suspended indicates if a user has suspended a connection or not.
570
576
  # Corresponds to the JSON property `suspended`
571
577
  # @return [Boolean]
@@ -600,6 +606,7 @@ module Google
600
606
  @service_directory = args[:service_directory] if args.key?(:service_directory)
601
607
  @ssl_config = args[:ssl_config] if args.key?(:ssl_config)
602
608
  @status = args[:status] if args.key?(:status)
609
+ @subscription_type = args[:subscription_type] if args.key?(:subscription_type)
603
610
  @suspended = args[:suspended] if args.key?(:suspended)
604
611
  @update_time = args[:update_time] if args.key?(:update_time)
605
612
  end
@@ -1075,6 +1082,64 @@ module Google
1075
1082
  end
1076
1083
  end
1077
1084
 
1085
+ # represents the Connector's Endpoint Attachment resource
1086
+ class EndpointAttachment
1087
+ include Google::Apis::Core::Hashable
1088
+
1089
+ # Output only. Created time.
1090
+ # Corresponds to the JSON property `createTime`
1091
+ # @return [String]
1092
+ attr_accessor :create_time
1093
+
1094
+ # Optional. Description of the resource.
1095
+ # Corresponds to the JSON property `description`
1096
+ # @return [String]
1097
+ attr_accessor :description
1098
+
1099
+ # Output only. The Private Service Connect connection endpoint ip
1100
+ # Corresponds to the JSON property `endpointIp`
1101
+ # @return [String]
1102
+ attr_accessor :endpoint_ip
1103
+
1104
+ # Optional. Resource labels to represent user-provided metadata. Refer to cloud
1105
+ # documentation on labels for more details. https://cloud.google.com/compute/
1106
+ # docs/labeling-resources
1107
+ # Corresponds to the JSON property `labels`
1108
+ # @return [Hash<String,String>]
1109
+ attr_accessor :labels
1110
+
1111
+ # Output only. Resource name of the Endpoint Attachment. Format: projects/`
1112
+ # project`/locations/`location`/endpointAttachments/`endpoint_attachment`
1113
+ # Corresponds to the JSON property `name`
1114
+ # @return [String]
1115
+ attr_accessor :name
1116
+
1117
+ # Required. The path of the service attachment
1118
+ # Corresponds to the JSON property `serviceAttachment`
1119
+ # @return [String]
1120
+ attr_accessor :service_attachment
1121
+
1122
+ # Output only. Updated time.
1123
+ # Corresponds to the JSON property `updateTime`
1124
+ # @return [String]
1125
+ attr_accessor :update_time
1126
+
1127
+ def initialize(**args)
1128
+ update!(**args)
1129
+ end
1130
+
1131
+ # Update properties of this object
1132
+ def update!(**args)
1133
+ @create_time = args[:create_time] if args.key?(:create_time)
1134
+ @description = args[:description] if args.key?(:description)
1135
+ @endpoint_ip = args[:endpoint_ip] if args.key?(:endpoint_ip)
1136
+ @labels = args[:labels] if args.key?(:labels)
1137
+ @name = args[:name] if args.key?(:name)
1138
+ @service_attachment = args[:service_attachment] if args.key?(:service_attachment)
1139
+ @update_time = args[:update_time] if args.key?(:update_time)
1140
+ end
1141
+ end
1142
+
1078
1143
  # EnumOption definition
1079
1144
  class EnumOption
1080
1145
  include Google::Apis::Core::Hashable
@@ -1436,6 +1501,37 @@ module Google
1436
1501
  end
1437
1502
  end
1438
1503
 
1504
+ # Response message for ConnectorsService.ListEndpointAttachments
1505
+ class ListEndpointAttachmentsResponse
1506
+ include Google::Apis::Core::Hashable
1507
+
1508
+ # EndpointAttachments.
1509
+ # Corresponds to the JSON property `endpointAttachments`
1510
+ # @return [Array<Google::Apis::ConnectorsV1::EndpointAttachment>]
1511
+ attr_accessor :endpoint_attachments
1512
+
1513
+ # Next page token.
1514
+ # Corresponds to the JSON property `nextPageToken`
1515
+ # @return [String]
1516
+ attr_accessor :next_page_token
1517
+
1518
+ # Locations that could not be reached.
1519
+ # Corresponds to the JSON property `unreachable`
1520
+ # @return [Array<String>]
1521
+ attr_accessor :unreachable
1522
+
1523
+ def initialize(**args)
1524
+ update!(**args)
1525
+ end
1526
+
1527
+ # Update properties of this object
1528
+ def update!(**args)
1529
+ @endpoint_attachments = args[:endpoint_attachments] if args.key?(:endpoint_attachments)
1530
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1531
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
1532
+ end
1533
+ end
1534
+
1439
1535
  # The response message for Locations.ListLocations.
1440
1536
  class ListLocationsResponse
1441
1537
  include Google::Apis::Core::Hashable
@@ -1461,6 +1557,31 @@ module Google
1461
1557
  end
1462
1558
  end
1463
1559
 
1560
+ # Response message for ConnectorsService.ListManagedZones
1561
+ class ListManagedZonesResponse
1562
+ include Google::Apis::Core::Hashable
1563
+
1564
+ # ManagedZones.
1565
+ # Corresponds to the JSON property `managedZones`
1566
+ # @return [Array<Google::Apis::ConnectorsV1::ManagedZone>]
1567
+ attr_accessor :managed_zones
1568
+
1569
+ # Next page token.
1570
+ # Corresponds to the JSON property `nextPageToken`
1571
+ # @return [String]
1572
+ attr_accessor :next_page_token
1573
+
1574
+ def initialize(**args)
1575
+ update!(**args)
1576
+ end
1577
+
1578
+ # Update properties of this object
1579
+ def update!(**args)
1580
+ @managed_zones = args[:managed_zones] if args.key?(:managed_zones)
1581
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1582
+ end
1583
+ end
1584
+
1464
1585
  # The response message for Operations.ListOperations.
1465
1586
  class ListOperationsResponse
1466
1587
  include Google::Apis::Core::Hashable
@@ -1567,7 +1688,7 @@ module Google
1567
1688
  end
1568
1689
  end
1569
1690
 
1570
- # A resource that represents Google Cloud Platform location.
1691
+ # A resource that represents a Google Cloud location.
1571
1692
  class Location
1572
1693
  include Google::Apis::Core::Hashable
1573
1694
 
@@ -1641,6 +1762,70 @@ module Google
1641
1762
  end
1642
1763
  end
1643
1764
 
1765
+ # represents the Connector's Managed Zone resource
1766
+ class ManagedZone
1767
+ include Google::Apis::Core::Hashable
1768
+
1769
+ # Output only. Created time.
1770
+ # Corresponds to the JSON property `createTime`
1771
+ # @return [String]
1772
+ attr_accessor :create_time
1773
+
1774
+ # Optional. Description of the resource.
1775
+ # Corresponds to the JSON property `description`
1776
+ # @return [String]
1777
+ attr_accessor :description
1778
+
1779
+ # Required. DNS Name of the resource
1780
+ # Corresponds to the JSON property `dns`
1781
+ # @return [String]
1782
+ attr_accessor :dns
1783
+
1784
+ # Optional. Resource labels to represent user-provided metadata. Refer to cloud
1785
+ # documentation on labels for more details. https://cloud.google.com/compute/
1786
+ # docs/labeling-resources
1787
+ # Corresponds to the JSON property `labels`
1788
+ # @return [Hash<String,String>]
1789
+ attr_accessor :labels
1790
+
1791
+ # Output only. Resource name of the Managed Zone. Format: projects/`project`/
1792
+ # locations/global/managedZones/`managed_zone`
1793
+ # Corresponds to the JSON property `name`
1794
+ # @return [String]
1795
+ attr_accessor :name
1796
+
1797
+ # Required. The name of the Target Project
1798
+ # Corresponds to the JSON property `targetProject`
1799
+ # @return [String]
1800
+ attr_accessor :target_project
1801
+
1802
+ # Required. The name of the Target Project VPC Network
1803
+ # Corresponds to the JSON property `targetVpc`
1804
+ # @return [String]
1805
+ attr_accessor :target_vpc
1806
+
1807
+ # Output only. Updated time.
1808
+ # Corresponds to the JSON property `updateTime`
1809
+ # @return [String]
1810
+ attr_accessor :update_time
1811
+
1812
+ def initialize(**args)
1813
+ update!(**args)
1814
+ end
1815
+
1816
+ # Update properties of this object
1817
+ def update!(**args)
1818
+ @create_time = args[:create_time] if args.key?(:create_time)
1819
+ @description = args[:description] if args.key?(:description)
1820
+ @dns = args[:dns] if args.key?(:dns)
1821
+ @labels = args[:labels] if args.key?(:labels)
1822
+ @name = args[:name] if args.key?(:name)
1823
+ @target_project = args[:target_project] if args.key?(:target_project)
1824
+ @target_vpc = args[:target_vpc] if args.key?(:target_vpc)
1825
+ @update_time = args[:update_time] if args.key?(:update_time)
1826
+ end
1827
+ end
1828
+
1644
1829
  # Node configuration for the connection.
1645
1830
  class NodeConfig
1646
1831
  include Google::Apis::Core::Hashable
@@ -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.28.0"
19
+ GEM_VERSION = "0.29.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230417"
25
+ REVISION = "20230503"
26
26
  end
27
27
  end
28
28
  end
@@ -142,6 +142,12 @@ module Google
142
142
  include Google::Apis::Core::JsonObjectSupport
143
143
  end
144
144
 
145
+ class EndpointAttachment
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
145
151
  class EnumOption
146
152
  class Representation < Google::Apis::Core::JsonRepresentation; end
147
153
 
@@ -202,12 +208,24 @@ module Google
202
208
  include Google::Apis::Core::JsonObjectSupport
203
209
  end
204
210
 
211
+ class ListEndpointAttachmentsResponse
212
+ class Representation < Google::Apis::Core::JsonRepresentation; end
213
+
214
+ include Google::Apis::Core::JsonObjectSupport
215
+ end
216
+
205
217
  class ListLocationsResponse
206
218
  class Representation < Google::Apis::Core::JsonRepresentation; end
207
219
 
208
220
  include Google::Apis::Core::JsonObjectSupport
209
221
  end
210
222
 
223
+ class ListManagedZonesResponse
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
227
+ end
228
+
211
229
  class ListOperationsResponse
212
230
  class Representation < Google::Apis::Core::JsonRepresentation; end
213
231
 
@@ -244,6 +262,12 @@ module Google
244
262
  include Google::Apis::Core::JsonObjectSupport
245
263
  end
246
264
 
265
+ class ManagedZone
266
+ class Representation < Google::Apis::Core::JsonRepresentation; end
267
+
268
+ include Google::Apis::Core::JsonObjectSupport
269
+ end
270
+
247
271
  class NodeConfig
248
272
  class Representation < Google::Apis::Core::JsonRepresentation; end
249
273
 
@@ -541,6 +565,7 @@ module Google
541
565
 
542
566
  property :status, as: 'status', class: Google::Apis::ConnectorsV1::ConnectionStatus, decorator: Google::Apis::ConnectorsV1::ConnectionStatus::Representation
543
567
 
568
+ property :subscription_type, as: 'subscriptionType'
544
569
  property :suspended, as: 'suspended'
545
570
  property :update_time, as: 'updateTime'
546
571
  end
@@ -667,6 +692,19 @@ module Google
667
692
  end
668
693
  end
669
694
 
695
+ class EndpointAttachment
696
+ # @private
697
+ class Representation < Google::Apis::Core::JsonRepresentation
698
+ property :create_time, as: 'createTime'
699
+ property :description, as: 'description'
700
+ property :endpoint_ip, as: 'endpointIp'
701
+ hash :labels, as: 'labels'
702
+ property :name, as: 'name'
703
+ property :service_attachment, as: 'serviceAttachment'
704
+ property :update_time, as: 'updateTime'
705
+ end
706
+ end
707
+
670
708
  class EnumOption
671
709
  # @private
672
710
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -766,6 +804,16 @@ module Google
766
804
  end
767
805
  end
768
806
 
807
+ class ListEndpointAttachmentsResponse
808
+ # @private
809
+ class Representation < Google::Apis::Core::JsonRepresentation
810
+ collection :endpoint_attachments, as: 'endpointAttachments', class: Google::Apis::ConnectorsV1::EndpointAttachment, decorator: Google::Apis::ConnectorsV1::EndpointAttachment::Representation
811
+
812
+ property :next_page_token, as: 'nextPageToken'
813
+ collection :unreachable, as: 'unreachable'
814
+ end
815
+ end
816
+
769
817
  class ListLocationsResponse
770
818
  # @private
771
819
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -775,6 +823,15 @@ module Google
775
823
  end
776
824
  end
777
825
 
826
+ class ListManagedZonesResponse
827
+ # @private
828
+ class Representation < Google::Apis::Core::JsonRepresentation
829
+ collection :managed_zones, as: 'managedZones', class: Google::Apis::ConnectorsV1::ManagedZone, decorator: Google::Apis::ConnectorsV1::ManagedZone::Representation
830
+
831
+ property :next_page_token, as: 'nextPageToken'
832
+ end
833
+ end
834
+
778
835
  class ListOperationsResponse
779
836
  # @private
780
837
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -831,6 +888,20 @@ module Google
831
888
  end
832
889
  end
833
890
 
891
+ class ManagedZone
892
+ # @private
893
+ class Representation < Google::Apis::Core::JsonRepresentation
894
+ property :create_time, as: 'createTime'
895
+ property :description, as: 'description'
896
+ property :dns, as: 'dns'
897
+ hash :labels, as: 'labels'
898
+ property :name, as: 'name'
899
+ property :target_project, as: 'targetProject'
900
+ property :target_vpc, as: 'targetVpc'
901
+ property :update_time, as: 'updateTime'
902
+ end
903
+ end
904
+
834
905
  class NodeConfig
835
906
  # @private
836
907
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -614,6 +614,190 @@ module Google
614
614
  execute_or_queue_command(command, &block)
615
615
  end
616
616
 
617
+ # Creates a new EndpointAttachment in a given project and location.
618
+ # @param [String] parent
619
+ # Required. Parent resource of the EndpointAttachment, of the form: `projects/*/
620
+ # locations/*`
621
+ # @param [Google::Apis::ConnectorsV1::EndpointAttachment] endpoint_attachment_object
622
+ # @param [String] endpoint_attachment_id
623
+ # Required. Identifier to assign to the EndpointAttachment. Must be unique
624
+ # within scope of the parent resource.
625
+ # @param [String] fields
626
+ # Selector specifying which fields to include in a partial response.
627
+ # @param [String] quota_user
628
+ # Available to use for quota purposes for server-side applications. Can be any
629
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
630
+ # @param [Google::Apis::RequestOptions] options
631
+ # Request-specific options
632
+ #
633
+ # @yield [result, err] Result & error if block supplied
634
+ # @yieldparam result [Google::Apis::ConnectorsV1::Operation] parsed result object
635
+ # @yieldparam err [StandardError] error object if request failed
636
+ #
637
+ # @return [Google::Apis::ConnectorsV1::Operation]
638
+ #
639
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
640
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
641
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
642
+ def create_project_location_endpoint_attachment(parent, endpoint_attachment_object = nil, endpoint_attachment_id: nil, fields: nil, quota_user: nil, options: nil, &block)
643
+ command = make_simple_command(:post, 'v1/{+parent}/endpointAttachments', options)
644
+ command.request_representation = Google::Apis::ConnectorsV1::EndpointAttachment::Representation
645
+ command.request_object = endpoint_attachment_object
646
+ command.response_representation = Google::Apis::ConnectorsV1::Operation::Representation
647
+ command.response_class = Google::Apis::ConnectorsV1::Operation
648
+ command.params['parent'] = parent unless parent.nil?
649
+ command.query['endpointAttachmentId'] = endpoint_attachment_id unless endpoint_attachment_id.nil?
650
+ command.query['fields'] = fields unless fields.nil?
651
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
652
+ execute_or_queue_command(command, &block)
653
+ end
654
+
655
+ # Deletes a single EndpointAttachment.
656
+ # @param [String] name
657
+ # Required. Resource name of the form: `projects/*/locations/*/
658
+ # endpointAttachments/*`
659
+ # @param [String] fields
660
+ # Selector specifying which fields to include in a partial response.
661
+ # @param [String] quota_user
662
+ # Available to use for quota purposes for server-side applications. Can be any
663
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
664
+ # @param [Google::Apis::RequestOptions] options
665
+ # Request-specific options
666
+ #
667
+ # @yield [result, err] Result & error if block supplied
668
+ # @yieldparam result [Google::Apis::ConnectorsV1::Operation] parsed result object
669
+ # @yieldparam err [StandardError] error object if request failed
670
+ #
671
+ # @return [Google::Apis::ConnectorsV1::Operation]
672
+ #
673
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
674
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
675
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
676
+ def delete_project_location_endpoint_attachment(name, fields: nil, quota_user: nil, options: nil, &block)
677
+ command = make_simple_command(:delete, 'v1/{+name}', options)
678
+ command.response_representation = Google::Apis::ConnectorsV1::Operation::Representation
679
+ command.response_class = Google::Apis::ConnectorsV1::Operation
680
+ command.params['name'] = name unless name.nil?
681
+ command.query['fields'] = fields unless fields.nil?
682
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
683
+ execute_or_queue_command(command, &block)
684
+ end
685
+
686
+ # Gets details of a single EndpointAttachment.
687
+ # @param [String] name
688
+ # Required. Resource name of the form: `projects/*/locations/*/
689
+ # endpointAttachments/*`
690
+ # @param [String] fields
691
+ # Selector specifying which fields to include in a partial response.
692
+ # @param [String] quota_user
693
+ # Available to use for quota purposes for server-side applications. Can be any
694
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
695
+ # @param [Google::Apis::RequestOptions] options
696
+ # Request-specific options
697
+ #
698
+ # @yield [result, err] Result & error if block supplied
699
+ # @yieldparam result [Google::Apis::ConnectorsV1::EndpointAttachment] parsed result object
700
+ # @yieldparam err [StandardError] error object if request failed
701
+ #
702
+ # @return [Google::Apis::ConnectorsV1::EndpointAttachment]
703
+ #
704
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
705
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
706
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
707
+ def get_project_location_endpoint_attachment(name, fields: nil, quota_user: nil, options: nil, &block)
708
+ command = make_simple_command(:get, 'v1/{+name}', options)
709
+ command.response_representation = Google::Apis::ConnectorsV1::EndpointAttachment::Representation
710
+ command.response_class = Google::Apis::ConnectorsV1::EndpointAttachment
711
+ command.params['name'] = name unless name.nil?
712
+ command.query['fields'] = fields unless fields.nil?
713
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
714
+ execute_or_queue_command(command, &block)
715
+ end
716
+
717
+ # List EndpointAttachments in a given project
718
+ # @param [String] parent
719
+ # Required. Parent resource od the EndpointAttachment, of the form: `projects/*/
720
+ # locations/*`
721
+ # @param [String] filter
722
+ # Filter. https://g3doc.corp.google.com/cloud/control2/g3doc/dev/apihosting/
723
+ # list_filtering.md#filtering.
724
+ # @param [String] order_by
725
+ # Order by parameters.
726
+ # @param [Fixnum] page_size
727
+ # Page size.
728
+ # @param [String] page_token
729
+ # Page token.
730
+ # @param [String] fields
731
+ # Selector specifying which fields to include in a partial response.
732
+ # @param [String] quota_user
733
+ # Available to use for quota purposes for server-side applications. Can be any
734
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
735
+ # @param [Google::Apis::RequestOptions] options
736
+ # Request-specific options
737
+ #
738
+ # @yield [result, err] Result & error if block supplied
739
+ # @yieldparam result [Google::Apis::ConnectorsV1::ListEndpointAttachmentsResponse] parsed result object
740
+ # @yieldparam err [StandardError] error object if request failed
741
+ #
742
+ # @return [Google::Apis::ConnectorsV1::ListEndpointAttachmentsResponse]
743
+ #
744
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
745
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
746
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
747
+ def list_project_location_endpoint_attachments(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
748
+ command = make_simple_command(:get, 'v1/{+parent}/endpointAttachments', options)
749
+ command.response_representation = Google::Apis::ConnectorsV1::ListEndpointAttachmentsResponse::Representation
750
+ command.response_class = Google::Apis::ConnectorsV1::ListEndpointAttachmentsResponse
751
+ command.params['parent'] = parent unless parent.nil?
752
+ command.query['filter'] = filter unless filter.nil?
753
+ command.query['orderBy'] = order_by unless order_by.nil?
754
+ command.query['pageSize'] = page_size unless page_size.nil?
755
+ command.query['pageToken'] = page_token unless page_token.nil?
756
+ command.query['fields'] = fields unless fields.nil?
757
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
758
+ execute_or_queue_command(command, &block)
759
+ end
760
+
761
+ # Updates the parameters of a single EndpointAttachment.
762
+ # @param [String] name
763
+ # Output only. Resource name of the Endpoint Attachment. Format: projects/`
764
+ # project`/locations/`location`/endpointAttachments/`endpoint_attachment`
765
+ # @param [Google::Apis::ConnectorsV1::EndpointAttachment] endpoint_attachment_object
766
+ # @param [String] update_mask
767
+ # Required. The list of fields to update. Fields are specified relative to the
768
+ # endpointAttachment. A field will be overwritten if it is in the mask. You can
769
+ # modify only the fields listed below. To update the endpointAttachment details:
770
+ # * `description` * `labels`
771
+ # @param [String] fields
772
+ # Selector specifying which fields to include in a partial response.
773
+ # @param [String] quota_user
774
+ # Available to use for quota purposes for server-side applications. Can be any
775
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
776
+ # @param [Google::Apis::RequestOptions] options
777
+ # Request-specific options
778
+ #
779
+ # @yield [result, err] Result & error if block supplied
780
+ # @yieldparam result [Google::Apis::ConnectorsV1::Operation] parsed result object
781
+ # @yieldparam err [StandardError] error object if request failed
782
+ #
783
+ # @return [Google::Apis::ConnectorsV1::Operation]
784
+ #
785
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
786
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
787
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
788
+ def patch_project_location_endpoint_attachment(name, endpoint_attachment_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
789
+ command = make_simple_command(:patch, 'v1/{+name}', options)
790
+ command.request_representation = Google::Apis::ConnectorsV1::EndpointAttachment::Representation
791
+ command.request_object = endpoint_attachment_object
792
+ command.response_representation = Google::Apis::ConnectorsV1::Operation::Representation
793
+ command.response_class = Google::Apis::ConnectorsV1::Operation
794
+ command.params['name'] = name unless name.nil?
795
+ command.query['updateMask'] = update_mask unless update_mask.nil?
796
+ command.query['fields'] = fields unless fields.nil?
797
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
798
+ execute_or_queue_command(command, &block)
799
+ end
800
+
617
801
  # GetGlobalSettings gets settings of a project. GlobalSettings is a singleton
618
802
  # resource.
619
803
  # @param [String] name
@@ -645,6 +829,190 @@ module Google
645
829
  execute_or_queue_command(command, &block)
646
830
  end
647
831
 
832
+ # Creates a new ManagedZone in a given project and location.
833
+ # @param [String] parent
834
+ # Required. Parent resource of the ManagedZone, of the form: `projects/*/
835
+ # locations/global`
836
+ # @param [Google::Apis::ConnectorsV1::ManagedZone] managed_zone_object
837
+ # @param [String] managed_zone_id
838
+ # Required. Identifier to assign to the ManagedZone. Must be unique within scope
839
+ # of the parent resource.
840
+ # @param [String] fields
841
+ # Selector specifying which fields to include in a partial response.
842
+ # @param [String] quota_user
843
+ # Available to use for quota purposes for server-side applications. Can be any
844
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
845
+ # @param [Google::Apis::RequestOptions] options
846
+ # Request-specific options
847
+ #
848
+ # @yield [result, err] Result & error if block supplied
849
+ # @yieldparam result [Google::Apis::ConnectorsV1::Operation] parsed result object
850
+ # @yieldparam err [StandardError] error object if request failed
851
+ #
852
+ # @return [Google::Apis::ConnectorsV1::Operation]
853
+ #
854
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
855
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
856
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
857
+ def create_project_location_global_managed_zone(parent, managed_zone_object = nil, managed_zone_id: nil, fields: nil, quota_user: nil, options: nil, &block)
858
+ command = make_simple_command(:post, 'v1/{+parent}/managedZones', options)
859
+ command.request_representation = Google::Apis::ConnectorsV1::ManagedZone::Representation
860
+ command.request_object = managed_zone_object
861
+ command.response_representation = Google::Apis::ConnectorsV1::Operation::Representation
862
+ command.response_class = Google::Apis::ConnectorsV1::Operation
863
+ command.params['parent'] = parent unless parent.nil?
864
+ command.query['managedZoneId'] = managed_zone_id unless managed_zone_id.nil?
865
+ command.query['fields'] = fields unless fields.nil?
866
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
867
+ execute_or_queue_command(command, &block)
868
+ end
869
+
870
+ # Deletes a single ManagedZone.
871
+ # @param [String] name
872
+ # Required. Resource name of the form: `projects/*/locations/global/managedZones/
873
+ # *`
874
+ # @param [String] fields
875
+ # Selector specifying which fields to include in a partial response.
876
+ # @param [String] quota_user
877
+ # Available to use for quota purposes for server-side applications. Can be any
878
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
879
+ # @param [Google::Apis::RequestOptions] options
880
+ # Request-specific options
881
+ #
882
+ # @yield [result, err] Result & error if block supplied
883
+ # @yieldparam result [Google::Apis::ConnectorsV1::Operation] parsed result object
884
+ # @yieldparam err [StandardError] error object if request failed
885
+ #
886
+ # @return [Google::Apis::ConnectorsV1::Operation]
887
+ #
888
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
889
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
890
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
891
+ def delete_project_location_global_managed_zone(name, fields: nil, quota_user: nil, options: nil, &block)
892
+ command = make_simple_command(:delete, 'v1/{+name}', options)
893
+ command.response_representation = Google::Apis::ConnectorsV1::Operation::Representation
894
+ command.response_class = Google::Apis::ConnectorsV1::Operation
895
+ command.params['name'] = name unless name.nil?
896
+ command.query['fields'] = fields unless fields.nil?
897
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
898
+ execute_or_queue_command(command, &block)
899
+ end
900
+
901
+ # Gets details of a single ManagedZone.
902
+ # @param [String] name
903
+ # Required. Resource name of the form: `projects/*/locations/global/managedZones/
904
+ # *`
905
+ # @param [String] fields
906
+ # Selector specifying which fields to include in a partial response.
907
+ # @param [String] quota_user
908
+ # Available to use for quota purposes for server-side applications. Can be any
909
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
910
+ # @param [Google::Apis::RequestOptions] options
911
+ # Request-specific options
912
+ #
913
+ # @yield [result, err] Result & error if block supplied
914
+ # @yieldparam result [Google::Apis::ConnectorsV1::ManagedZone] parsed result object
915
+ # @yieldparam err [StandardError] error object if request failed
916
+ #
917
+ # @return [Google::Apis::ConnectorsV1::ManagedZone]
918
+ #
919
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
920
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
921
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
922
+ def get_project_location_global_managed_zone(name, fields: nil, quota_user: nil, options: nil, &block)
923
+ command = make_simple_command(:get, 'v1/{+name}', options)
924
+ command.response_representation = Google::Apis::ConnectorsV1::ManagedZone::Representation
925
+ command.response_class = Google::Apis::ConnectorsV1::ManagedZone
926
+ command.params['name'] = name unless name.nil?
927
+ command.query['fields'] = fields unless fields.nil?
928
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
929
+ execute_or_queue_command(command, &block)
930
+ end
931
+
932
+ # List ManagedZones in a given project
933
+ # @param [String] parent
934
+ # Required. Parent resource of the Managed Zone, of the form: `projects/*/
935
+ # locations/global`
936
+ # @param [String] filter
937
+ # Filter. https://g3doc.corp.google.com/cloud/control2/g3doc/dev/apihosting/
938
+ # list_filtering.md#filtering.
939
+ # @param [String] order_by
940
+ # Order by parameters.
941
+ # @param [Fixnum] page_size
942
+ # Page size.
943
+ # @param [String] page_token
944
+ # Page token.
945
+ # @param [String] fields
946
+ # Selector specifying which fields to include in a partial response.
947
+ # @param [String] quota_user
948
+ # Available to use for quota purposes for server-side applications. Can be any
949
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
950
+ # @param [Google::Apis::RequestOptions] options
951
+ # Request-specific options
952
+ #
953
+ # @yield [result, err] Result & error if block supplied
954
+ # @yieldparam result [Google::Apis::ConnectorsV1::ListManagedZonesResponse] parsed result object
955
+ # @yieldparam err [StandardError] error object if request failed
956
+ #
957
+ # @return [Google::Apis::ConnectorsV1::ListManagedZonesResponse]
958
+ #
959
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
960
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
961
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
962
+ def list_project_location_global_managed_zones(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
963
+ command = make_simple_command(:get, 'v1/{+parent}/managedZones', options)
964
+ command.response_representation = Google::Apis::ConnectorsV1::ListManagedZonesResponse::Representation
965
+ command.response_class = Google::Apis::ConnectorsV1::ListManagedZonesResponse
966
+ command.params['parent'] = parent unless parent.nil?
967
+ command.query['filter'] = filter unless filter.nil?
968
+ command.query['orderBy'] = order_by unless order_by.nil?
969
+ command.query['pageSize'] = page_size unless page_size.nil?
970
+ command.query['pageToken'] = page_token unless page_token.nil?
971
+ command.query['fields'] = fields unless fields.nil?
972
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
973
+ execute_or_queue_command(command, &block)
974
+ end
975
+
976
+ # Updates the parameters of a single ManagedZone.
977
+ # @param [String] name
978
+ # Output only. Resource name of the Managed Zone. Format: projects/`project`/
979
+ # locations/global/managedZones/`managed_zone`
980
+ # @param [Google::Apis::ConnectorsV1::ManagedZone] managed_zone_object
981
+ # @param [String] update_mask
982
+ # Required. The list of fields to update. Fields are specified relative to the
983
+ # managedZone. A field will be overwritten if it is in the mask. You can modify
984
+ # only the fields listed below. To update the managedZone details: * `
985
+ # description` * `labels` * `target_project` * `target_network`
986
+ # @param [String] fields
987
+ # Selector specifying which fields to include in a partial response.
988
+ # @param [String] quota_user
989
+ # Available to use for quota purposes for server-side applications. Can be any
990
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
991
+ # @param [Google::Apis::RequestOptions] options
992
+ # Request-specific options
993
+ #
994
+ # @yield [result, err] Result & error if block supplied
995
+ # @yieldparam result [Google::Apis::ConnectorsV1::Operation] parsed result object
996
+ # @yieldparam err [StandardError] error object if request failed
997
+ #
998
+ # @return [Google::Apis::ConnectorsV1::Operation]
999
+ #
1000
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1001
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1002
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1003
+ def patch_project_location_global_managed_zone(name, managed_zone_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1004
+ command = make_simple_command(:patch, 'v1/{+name}', options)
1005
+ command.request_representation = Google::Apis::ConnectorsV1::ManagedZone::Representation
1006
+ command.request_object = managed_zone_object
1007
+ command.response_representation = Google::Apis::ConnectorsV1::Operation::Representation
1008
+ command.response_class = Google::Apis::ConnectorsV1::Operation
1009
+ command.params['name'] = name unless name.nil?
1010
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1011
+ command.query['fields'] = fields unless fields.nil?
1012
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1013
+ execute_or_queue_command(command, &block)
1014
+ end
1015
+
648
1016
  # Starts asynchronous cancellation on a long-running operation. The server makes
649
1017
  # a best effort to cancel the operation, but success is not guaranteed. If the
650
1018
  # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
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.28.0
4
+ version: 0.29.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-30 00:00:00.000000000 Z
11
+ date: 2023-05-14 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.28.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-connectors_v1/v0.29.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: []