google-apis-connectors_v1 0.28.0 → 0.30.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: 883c613dc1b7a9d154e2c49028b36df378b4158a4e37ac598cc8ff6afa0f8efb
4
+ data.tar.gz: 898668f61797807ab3ef2a996d834ed148d14f9a60caf0b08a530d10615a350e
5
5
  SHA512:
6
- metadata.gz: 6441367af859b018855714ca3b5c20fc5296d02b35c7125a05e5da2a098355967f8263643f8a1cb1ae797e58f7db2f4a13e450a6621bfa698dcc2d09aca1a8b3
7
- data.tar.gz: 940eccc6c7b9bb2d88630ed5979d8776e545774289d3e2de63df83e2f1cdf2562b3bf977184ce87c1d093003c13760a18fbd80213dd5d1253b3c49e147ad47b3
6
+ metadata.gz: edf651c9e097e7b6290775f40c6c90d846bcc8e51377ac7aefb6e7e3d51cc2a64846077ab2421c15000771f29819a29ec6b225a23436ce5dbce840119ce32a71
7
+ data.tar.gz: c424cbcf37867e171dcb5b38eae6cc36b074015d75761fa07af9fa611f129a85556c1609b86448106a08a93fb0ce8e16b79f39313b750eda7d1b9bc7a82c99c6
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-connectors_v1
2
2
 
3
+ ### v0.30.0 (2023-05-21)
4
+
5
+ * Regenerated from discovery document revision 20230514
6
+
7
+ ### v0.29.0 (2023-05-14)
8
+
9
+ * Regenerated from discovery document revision 20230503
10
+
3
11
  ### v0.28.0 (2023-04-30)
4
12
 
5
13
  * Regenerated from discovery document revision 20230417
@@ -486,6 +486,11 @@ module Google
486
486
  # @return [String]
487
487
  attr_accessor :connector_version
488
488
 
489
+ # Output only. Flag to mark the version indicating the launch stage.
490
+ # Corresponds to the JSON property `connectorVersionLaunchStage`
491
+ # @return [String]
492
+ attr_accessor :connector_version_launch_stage
493
+
489
494
  # Output only. Created time.
490
495
  # Corresponds to the JSON property `createTime`
491
496
  # @return [String]
@@ -566,6 +571,12 @@ module Google
566
571
  # @return [Google::Apis::ConnectorsV1::ConnectionStatus]
567
572
  attr_accessor :status
568
573
 
574
+ # Output only. This subscription type enum states the subscription type of the
575
+ # project.
576
+ # Corresponds to the JSON property `subscriptionType`
577
+ # @return [String]
578
+ attr_accessor :subscription_type
579
+
569
580
  # Optional. Suspended indicates if a user has suspended a connection or not.
570
581
  # Corresponds to the JSON property `suspended`
571
582
  # @return [Boolean]
@@ -586,6 +597,7 @@ module Google
586
597
  @auth_config = args[:auth_config] if args.key?(:auth_config)
587
598
  @config_variables = args[:config_variables] if args.key?(:config_variables)
588
599
  @connector_version = args[:connector_version] if args.key?(:connector_version)
600
+ @connector_version_launch_stage = args[:connector_version_launch_stage] if args.key?(:connector_version_launch_stage)
589
601
  @create_time = args[:create_time] if args.key?(:create_time)
590
602
  @description = args[:description] if args.key?(:description)
591
603
  @destination_configs = args[:destination_configs] if args.key?(:destination_configs)
@@ -600,6 +612,7 @@ module Google
600
612
  @service_directory = args[:service_directory] if args.key?(:service_directory)
601
613
  @ssl_config = args[:ssl_config] if args.key?(:ssl_config)
602
614
  @status = args[:status] if args.key?(:status)
615
+ @subscription_type = args[:subscription_type] if args.key?(:subscription_type)
603
616
  @suspended = args[:suspended] if args.key?(:suspended)
604
617
  @update_time = args[:update_time] if args.key?(:update_time)
605
618
  end
@@ -1075,6 +1088,64 @@ module Google
1075
1088
  end
1076
1089
  end
1077
1090
 
1091
+ # represents the Connector's Endpoint Attachment resource
1092
+ class EndpointAttachment
1093
+ include Google::Apis::Core::Hashable
1094
+
1095
+ # Output only. Created time.
1096
+ # Corresponds to the JSON property `createTime`
1097
+ # @return [String]
1098
+ attr_accessor :create_time
1099
+
1100
+ # Optional. Description of the resource.
1101
+ # Corresponds to the JSON property `description`
1102
+ # @return [String]
1103
+ attr_accessor :description
1104
+
1105
+ # Output only. The Private Service Connect connection endpoint ip
1106
+ # Corresponds to the JSON property `endpointIp`
1107
+ # @return [String]
1108
+ attr_accessor :endpoint_ip
1109
+
1110
+ # Optional. Resource labels to represent user-provided metadata. Refer to cloud
1111
+ # documentation on labels for more details. https://cloud.google.com/compute/
1112
+ # docs/labeling-resources
1113
+ # Corresponds to the JSON property `labels`
1114
+ # @return [Hash<String,String>]
1115
+ attr_accessor :labels
1116
+
1117
+ # Output only. Resource name of the Endpoint Attachment. Format: projects/`
1118
+ # project`/locations/`location`/endpointAttachments/`endpoint_attachment`
1119
+ # Corresponds to the JSON property `name`
1120
+ # @return [String]
1121
+ attr_accessor :name
1122
+
1123
+ # Required. The path of the service attachment
1124
+ # Corresponds to the JSON property `serviceAttachment`
1125
+ # @return [String]
1126
+ attr_accessor :service_attachment
1127
+
1128
+ # Output only. Updated time.
1129
+ # Corresponds to the JSON property `updateTime`
1130
+ # @return [String]
1131
+ attr_accessor :update_time
1132
+
1133
+ def initialize(**args)
1134
+ update!(**args)
1135
+ end
1136
+
1137
+ # Update properties of this object
1138
+ def update!(**args)
1139
+ @create_time = args[:create_time] if args.key?(:create_time)
1140
+ @description = args[:description] if args.key?(:description)
1141
+ @endpoint_ip = args[:endpoint_ip] if args.key?(:endpoint_ip)
1142
+ @labels = args[:labels] if args.key?(:labels)
1143
+ @name = args[:name] if args.key?(:name)
1144
+ @service_attachment = args[:service_attachment] if args.key?(:service_attachment)
1145
+ @update_time = args[:update_time] if args.key?(:update_time)
1146
+ end
1147
+ end
1148
+
1078
1149
  # EnumOption definition
1079
1150
  class EnumOption
1080
1151
  include Google::Apis::Core::Hashable
@@ -1436,6 +1507,37 @@ module Google
1436
1507
  end
1437
1508
  end
1438
1509
 
1510
+ # Response message for ConnectorsService.ListEndpointAttachments
1511
+ class ListEndpointAttachmentsResponse
1512
+ include Google::Apis::Core::Hashable
1513
+
1514
+ # EndpointAttachments.
1515
+ # Corresponds to the JSON property `endpointAttachments`
1516
+ # @return [Array<Google::Apis::ConnectorsV1::EndpointAttachment>]
1517
+ attr_accessor :endpoint_attachments
1518
+
1519
+ # Next page token.
1520
+ # Corresponds to the JSON property `nextPageToken`
1521
+ # @return [String]
1522
+ attr_accessor :next_page_token
1523
+
1524
+ # Locations that could not be reached.
1525
+ # Corresponds to the JSON property `unreachable`
1526
+ # @return [Array<String>]
1527
+ attr_accessor :unreachable
1528
+
1529
+ def initialize(**args)
1530
+ update!(**args)
1531
+ end
1532
+
1533
+ # Update properties of this object
1534
+ def update!(**args)
1535
+ @endpoint_attachments = args[:endpoint_attachments] if args.key?(:endpoint_attachments)
1536
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1537
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
1538
+ end
1539
+ end
1540
+
1439
1541
  # The response message for Locations.ListLocations.
1440
1542
  class ListLocationsResponse
1441
1543
  include Google::Apis::Core::Hashable
@@ -1461,6 +1563,31 @@ module Google
1461
1563
  end
1462
1564
  end
1463
1565
 
1566
+ # Response message for ConnectorsService.ListManagedZones
1567
+ class ListManagedZonesResponse
1568
+ include Google::Apis::Core::Hashable
1569
+
1570
+ # ManagedZones.
1571
+ # Corresponds to the JSON property `managedZones`
1572
+ # @return [Array<Google::Apis::ConnectorsV1::ManagedZone>]
1573
+ attr_accessor :managed_zones
1574
+
1575
+ # Next page token.
1576
+ # Corresponds to the JSON property `nextPageToken`
1577
+ # @return [String]
1578
+ attr_accessor :next_page_token
1579
+
1580
+ def initialize(**args)
1581
+ update!(**args)
1582
+ end
1583
+
1584
+ # Update properties of this object
1585
+ def update!(**args)
1586
+ @managed_zones = args[:managed_zones] if args.key?(:managed_zones)
1587
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1588
+ end
1589
+ end
1590
+
1464
1591
  # The response message for Operations.ListOperations.
1465
1592
  class ListOperationsResponse
1466
1593
  include Google::Apis::Core::Hashable
@@ -1567,7 +1694,7 @@ module Google
1567
1694
  end
1568
1695
  end
1569
1696
 
1570
- # A resource that represents Google Cloud Platform location.
1697
+ # A resource that represents a Google Cloud location.
1571
1698
  class Location
1572
1699
  include Google::Apis::Core::Hashable
1573
1700
 
@@ -1641,6 +1768,70 @@ module Google
1641
1768
  end
1642
1769
  end
1643
1770
 
1771
+ # represents the Connector's Managed Zone resource
1772
+ class ManagedZone
1773
+ include Google::Apis::Core::Hashable
1774
+
1775
+ # Output only. Created time.
1776
+ # Corresponds to the JSON property `createTime`
1777
+ # @return [String]
1778
+ attr_accessor :create_time
1779
+
1780
+ # Optional. Description of the resource.
1781
+ # Corresponds to the JSON property `description`
1782
+ # @return [String]
1783
+ attr_accessor :description
1784
+
1785
+ # Required. DNS Name of the resource
1786
+ # Corresponds to the JSON property `dns`
1787
+ # @return [String]
1788
+ attr_accessor :dns
1789
+
1790
+ # Optional. Resource labels to represent user-provided metadata. Refer to cloud
1791
+ # documentation on labels for more details. https://cloud.google.com/compute/
1792
+ # docs/labeling-resources
1793
+ # Corresponds to the JSON property `labels`
1794
+ # @return [Hash<String,String>]
1795
+ attr_accessor :labels
1796
+
1797
+ # Output only. Resource name of the Managed Zone. Format: projects/`project`/
1798
+ # locations/global/managedZones/`managed_zone`
1799
+ # Corresponds to the JSON property `name`
1800
+ # @return [String]
1801
+ attr_accessor :name
1802
+
1803
+ # Required. The name of the Target Project
1804
+ # Corresponds to the JSON property `targetProject`
1805
+ # @return [String]
1806
+ attr_accessor :target_project
1807
+
1808
+ # Required. The name of the Target Project VPC Network
1809
+ # Corresponds to the JSON property `targetVpc`
1810
+ # @return [String]
1811
+ attr_accessor :target_vpc
1812
+
1813
+ # Output only. Updated time.
1814
+ # Corresponds to the JSON property `updateTime`
1815
+ # @return [String]
1816
+ attr_accessor :update_time
1817
+
1818
+ def initialize(**args)
1819
+ update!(**args)
1820
+ end
1821
+
1822
+ # Update properties of this object
1823
+ def update!(**args)
1824
+ @create_time = args[:create_time] if args.key?(:create_time)
1825
+ @description = args[:description] if args.key?(:description)
1826
+ @dns = args[:dns] if args.key?(:dns)
1827
+ @labels = args[:labels] if args.key?(:labels)
1828
+ @name = args[:name] if args.key?(:name)
1829
+ @target_project = args[:target_project] if args.key?(:target_project)
1830
+ @target_vpc = args[:target_vpc] if args.key?(:target_vpc)
1831
+ @update_time = args[:update_time] if args.key?(:update_time)
1832
+ end
1833
+ end
1834
+
1644
1835
  # Node configuration for the connection.
1645
1836
  class NodeConfig
1646
1837
  include Google::Apis::Core::Hashable
@@ -1676,6 +1867,11 @@ module Google
1676
1867
  # @return [String]
1677
1868
  attr_accessor :auth_code
1678
1869
 
1870
+ # Auth URL for Authorization Code Flow
1871
+ # Corresponds to the JSON property `authUri`
1872
+ # @return [String]
1873
+ attr_accessor :auth_uri
1874
+
1679
1875
  # Client ID for user-provided OAuth app.
1680
1876
  # Corresponds to the JSON property `clientId`
1681
1877
  # @return [String]
@@ -1714,6 +1910,7 @@ module Google
1714
1910
  # Update properties of this object
1715
1911
  def update!(**args)
1716
1912
  @auth_code = args[:auth_code] if args.key?(:auth_code)
1913
+ @auth_uri = args[:auth_uri] if args.key?(:auth_uri)
1717
1914
  @client_id = args[:client_id] if args.key?(:client_id)
1718
1915
  @client_secret = args[:client_secret] if args.key?(:client_secret)
1719
1916
  @enable_pkce = args[:enable_pkce] if args.key?(:enable_pkce)
@@ -2406,6 +2603,11 @@ module Google
2406
2603
  attr_accessor :payg
2407
2604
  alias_method :payg?, :payg
2408
2605
 
2606
+ # Output only. Tenant project id of the consumer project.
2607
+ # Corresponds to the JSON property `tenantProjectId`
2608
+ # @return [String]
2609
+ attr_accessor :tenant_project_id
2610
+
2409
2611
  # Optional. Flag indicates whether vpc-sc is enabled.
2410
2612
  # Corresponds to the JSON property `vpcsc`
2411
2613
  # @return [Boolean]
@@ -2420,6 +2622,7 @@ module Google
2420
2622
  def update!(**args)
2421
2623
  @name = args[:name] if args.key?(:name)
2422
2624
  @payg = args[:payg] if args.key?(:payg)
2625
+ @tenant_project_id = args[:tenant_project_id] if args.key?(:tenant_project_id)
2423
2626
  @vpcsc = args[:vpcsc] if args.key?(:vpcsc)
2424
2627
  end
2425
2628
  end
@@ -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.30.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 = "20230514"
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
 
@@ -521,6 +545,7 @@ module Google
521
545
  collection :config_variables, as: 'configVariables', class: Google::Apis::ConnectorsV1::ConfigVariable, decorator: Google::Apis::ConnectorsV1::ConfigVariable::Representation
522
546
 
523
547
  property :connector_version, as: 'connectorVersion'
548
+ property :connector_version_launch_stage, as: 'connectorVersionLaunchStage'
524
549
  property :create_time, as: 'createTime'
525
550
  property :description, as: 'description'
526
551
  collection :destination_configs, as: 'destinationConfigs', class: Google::Apis::ConnectorsV1::DestinationConfig, decorator: Google::Apis::ConnectorsV1::DestinationConfig::Representation
@@ -541,6 +566,7 @@ module Google
541
566
 
542
567
  property :status, as: 'status', class: Google::Apis::ConnectorsV1::ConnectionStatus, decorator: Google::Apis::ConnectorsV1::ConnectionStatus::Representation
543
568
 
569
+ property :subscription_type, as: 'subscriptionType'
544
570
  property :suspended, as: 'suspended'
545
571
  property :update_time, as: 'updateTime'
546
572
  end
@@ -667,6 +693,19 @@ module Google
667
693
  end
668
694
  end
669
695
 
696
+ class EndpointAttachment
697
+ # @private
698
+ class Representation < Google::Apis::Core::JsonRepresentation
699
+ property :create_time, as: 'createTime'
700
+ property :description, as: 'description'
701
+ property :endpoint_ip, as: 'endpointIp'
702
+ hash :labels, as: 'labels'
703
+ property :name, as: 'name'
704
+ property :service_attachment, as: 'serviceAttachment'
705
+ property :update_time, as: 'updateTime'
706
+ end
707
+ end
708
+
670
709
  class EnumOption
671
710
  # @private
672
711
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -766,6 +805,16 @@ module Google
766
805
  end
767
806
  end
768
807
 
808
+ class ListEndpointAttachmentsResponse
809
+ # @private
810
+ class Representation < Google::Apis::Core::JsonRepresentation
811
+ collection :endpoint_attachments, as: 'endpointAttachments', class: Google::Apis::ConnectorsV1::EndpointAttachment, decorator: Google::Apis::ConnectorsV1::EndpointAttachment::Representation
812
+
813
+ property :next_page_token, as: 'nextPageToken'
814
+ collection :unreachable, as: 'unreachable'
815
+ end
816
+ end
817
+
769
818
  class ListLocationsResponse
770
819
  # @private
771
820
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -775,6 +824,15 @@ module Google
775
824
  end
776
825
  end
777
826
 
827
+ class ListManagedZonesResponse
828
+ # @private
829
+ class Representation < Google::Apis::Core::JsonRepresentation
830
+ collection :managed_zones, as: 'managedZones', class: Google::Apis::ConnectorsV1::ManagedZone, decorator: Google::Apis::ConnectorsV1::ManagedZone::Representation
831
+
832
+ property :next_page_token, as: 'nextPageToken'
833
+ end
834
+ end
835
+
778
836
  class ListOperationsResponse
779
837
  # @private
780
838
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -831,6 +889,20 @@ module Google
831
889
  end
832
890
  end
833
891
 
892
+ class ManagedZone
893
+ # @private
894
+ class Representation < Google::Apis::Core::JsonRepresentation
895
+ property :create_time, as: 'createTime'
896
+ property :description, as: 'description'
897
+ property :dns, as: 'dns'
898
+ hash :labels, as: 'labels'
899
+ property :name, as: 'name'
900
+ property :target_project, as: 'targetProject'
901
+ property :target_vpc, as: 'targetVpc'
902
+ property :update_time, as: 'updateTime'
903
+ end
904
+ end
905
+
834
906
  class NodeConfig
835
907
  # @private
836
908
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -843,6 +915,7 @@ module Google
843
915
  # @private
844
916
  class Representation < Google::Apis::Core::JsonRepresentation
845
917
  property :auth_code, as: 'authCode'
918
+ property :auth_uri, as: 'authUri'
846
919
  property :client_id, as: 'clientId'
847
920
  property :client_secret, as: 'clientSecret', class: Google::Apis::ConnectorsV1::Secret, decorator: Google::Apis::ConnectorsV1::Secret::Representation
848
921
 
@@ -1016,6 +1089,7 @@ module Google
1016
1089
  class Representation < Google::Apis::Core::JsonRepresentation
1017
1090
  property :name, as: 'name'
1018
1091
  property :payg, as: 'payg'
1092
+ property :tenant_project_id, as: 'tenantProjectId'
1019
1093
  property :vpcsc, as: 'vpcsc'
1020
1094
  end
1021
1095
  end
@@ -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.30.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-28 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.30.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: []