google-apis-managedidentities_v1beta1 0.8.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 597d48079534aa31ec90a2a3367ead6ac2b4491567b5b3c72de9a1ece14c3a69
4
- data.tar.gz: 9e79cce39807041b76414c544a89159f4aa2dac594bb09b9d4e5b6f4189d3871
3
+ metadata.gz: df0d299d646e439830c1fe074d59ff6cae06913b39b7ab96830be58c63290bcc
4
+ data.tar.gz: 063ee794c1d592a9fe23ddb5bcfb62584a51f13a24fbdec1cb845c10d1f2fafc
5
5
  SHA512:
6
- metadata.gz: 630332f36546a99ee45b7a57f915fff13504a0e80427e2ebcb61069c391b9870fa0b189d6f73f26f28baf1936fe29fc7f933ca1f2ea6940f2fb9509cbe2321b9
7
- data.tar.gz: bd74ba986a3011b876f259f54a297574a2e05c05f6fd4fbedab775952c246a3fe878c98e2034d0d99c1883e0423559f70dcb99839b769aa9e57821b68b28a151
6
+ metadata.gz: e8187817f25da647e5b7bc12a5f49de6d33615c1dcb3ba95844ec268d8f6798cd1304481c1dbb5ae6b7d72facb9200a3c8ac0711ccd65adced661d626260f644
7
+ data.tar.gz: 2ba2c951c3fe2ee3aec6ee8ce882b4e6ece3cd891b3a4dc6bc93bbf17ecef9577a2c3689b617146379559fd5113ca531881ef7fc28f2350d47c74a8ba76b51aa
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-managedidentities_v1beta1
2
2
 
3
+ ### v0.9.0 (2021-06-17)
4
+
5
+ * Regenerated from discovery document revision 20210614
6
+
3
7
  ### v0.8.0 (2021-06-10)
4
8
 
5
9
  * Regenerated from discovery document revision 20210601
@@ -126,6 +126,49 @@ module Google
126
126
  end
127
127
  end
128
128
 
129
+ # Certificate used to configure LDAPS.
130
+ class Certificate
131
+ include Google::Apis::Core::Hashable
132
+
133
+ # The certificate expire time.
134
+ # Corresponds to the JSON property `expireTime`
135
+ # @return [String]
136
+ attr_accessor :expire_time
137
+
138
+ # Certificate used to configure LDAPS.
139
+ # Corresponds to the JSON property `issuingCertificate`
140
+ # @return [Google::Apis::ManagedidentitiesV1beta1::Certificate]
141
+ attr_accessor :issuing_certificate
142
+
143
+ # The certificate subject.
144
+ # Corresponds to the JSON property `subject`
145
+ # @return [String]
146
+ attr_accessor :subject
147
+
148
+ # The additional hostnames for the domain.
149
+ # Corresponds to the JSON property `subjectAlternativeName`
150
+ # @return [Array<String>]
151
+ attr_accessor :subject_alternative_name
152
+
153
+ # The certificate thumbprint which uniquely identifies the certificate.
154
+ # Corresponds to the JSON property `thumbprint`
155
+ # @return [String]
156
+ attr_accessor :thumbprint
157
+
158
+ def initialize(**args)
159
+ update!(**args)
160
+ end
161
+
162
+ # Update properties of this object
163
+ def update!(**args)
164
+ @expire_time = args[:expire_time] if args.key?(:expire_time)
165
+ @issuing_certificate = args[:issuing_certificate] if args.key?(:issuing_certificate)
166
+ @subject = args[:subject] if args.key?(:subject)
167
+ @subject_alternative_name = args[:subject_alternative_name] if args.key?(:subject_alternative_name)
168
+ @thumbprint = args[:thumbprint] if args.key?(:thumbprint)
169
+ end
170
+ end
171
+
129
172
  # Time window specified for daily operations.
130
173
  class DailyCycle
131
174
  include Google::Apis::Core::Hashable
@@ -1042,6 +1085,76 @@ module Google
1042
1085
  end
1043
1086
  end
1044
1087
 
1088
+ # LDAPSSettings represents the ldaps settings for domain resource. LDAP is the
1089
+ # Lightweight Directory Access Protocol, defined in https://tools.ietf.org/html/
1090
+ # rfc4511. The settings object configures LDAP over SSL/TLS, whether it is over
1091
+ # port 636 or the StartTLS operation. If LDAPSSettings is being changed, it will
1092
+ # be placed into the UPDATING state, which indicates that the resource is being
1093
+ # reconciled. At this point, Get will reflect an intermediate state.
1094
+ class LdapsSettings
1095
+ include Google::Apis::Core::Hashable
1096
+
1097
+ # Certificate used to configure LDAPS.
1098
+ # Corresponds to the JSON property `certificate`
1099
+ # @return [Google::Apis::ManagedidentitiesV1beta1::Certificate]
1100
+ attr_accessor :certificate
1101
+
1102
+ # Input only. The password used to encrypt the uploaded pfx certificate.
1103
+ # Corresponds to the JSON property `certificatePassword`
1104
+ # @return [String]
1105
+ attr_accessor :certificate_password
1106
+
1107
+ # Input only. The uploaded PKCS12-formatted certificate to configure LDAPS with.
1108
+ # It will enable the domain controllers in this domain to accept LDAPS
1109
+ # connections (either LDAP over SSL/TLS or the StartTLS operation). A valid
1110
+ # certificate chain must form a valid x.509 certificate chain (or be comprised
1111
+ # of a single self-signed certificate. It must be encrypted with either: 1)
1112
+ # PBES2 + PBKDF2 + AES256 encryption and SHA256 PRF; or 2) pbeWithSHA1And3-
1113
+ # KeyTripleDES-CBC Private key must be included for the leaf / single self-
1114
+ # signed certificate. Note: For a fqdn your-example-domain.com, the wildcard
1115
+ # fqdn is *.your-example-domain.com. Specifically the leaf certificate must have:
1116
+ # - Either a blank subject or a subject with CN matching the wildcard fqdn. -
1117
+ # Exactly two SANs - the fqdn and wildcard fqdn. - Encipherment and digital key
1118
+ # signature key usages. - Server authentication extended key usage (OID=1.3.6.1.
1119
+ # 5.5.7.3.1) - Private key must be in one of the following formats: RSA, ECDSA,
1120
+ # ED25519. - Private key must have appropriate key length: 2048 for RSA, 256 for
1121
+ # ECDSA - Signature algorithm of the leaf certificate cannot be MD2, MD5 or SHA1.
1122
+ # Corresponds to the JSON property `certificatePfx`
1123
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1124
+ # @return [String]
1125
+ attr_accessor :certificate_pfx
1126
+
1127
+ # The resource name of the LDAPS settings. Uses the form: `projects/`project`/
1128
+ # locations/`location`/domains/`domain``.
1129
+ # Corresponds to the JSON property `name`
1130
+ # @return [String]
1131
+ attr_accessor :name
1132
+
1133
+ # Output only. The current state of this LDAPS settings.
1134
+ # Corresponds to the JSON property `state`
1135
+ # @return [String]
1136
+ attr_accessor :state
1137
+
1138
+ # Output only. Last update time.
1139
+ # Corresponds to the JSON property `updateTime`
1140
+ # @return [String]
1141
+ attr_accessor :update_time
1142
+
1143
+ def initialize(**args)
1144
+ update!(**args)
1145
+ end
1146
+
1147
+ # Update properties of this object
1148
+ def update!(**args)
1149
+ @certificate = args[:certificate] if args.key?(:certificate)
1150
+ @certificate_password = args[:certificate_password] if args.key?(:certificate_password)
1151
+ @certificate_pfx = args[:certificate_pfx] if args.key?(:certificate_pfx)
1152
+ @name = args[:name] if args.key?(:name)
1153
+ @state = args[:state] if args.key?(:state)
1154
+ @update_time = args[:update_time] if args.key?(:update_time)
1155
+ end
1156
+ end
1157
+
1045
1158
  # Response message for ListDomains
1046
1159
  class ListDomainsResponse
1047
1160
  include Google::Apis::Core::Hashable
@@ -1124,6 +1237,38 @@ module Google
1124
1237
  end
1125
1238
  end
1126
1239
 
1240
+ # ListPeeringsResponse is the response message for ListPeerings method.
1241
+ class ListPeeringsResponse
1242
+ include Google::Apis::Core::Hashable
1243
+
1244
+ # Token to retrieve the next page of results, or empty if there are no more
1245
+ # results in the list.
1246
+ # Corresponds to the JSON property `nextPageToken`
1247
+ # @return [String]
1248
+ attr_accessor :next_page_token
1249
+
1250
+ # A list of Managed Identities Service Peerings in the project.
1251
+ # Corresponds to the JSON property `peerings`
1252
+ # @return [Array<Google::Apis::ManagedidentitiesV1beta1::Peering>]
1253
+ attr_accessor :peerings
1254
+
1255
+ # Locations that could not be reached.
1256
+ # Corresponds to the JSON property `unreachable`
1257
+ # @return [Array<String>]
1258
+ attr_accessor :unreachable
1259
+
1260
+ def initialize(**args)
1261
+ update!(**args)
1262
+ end
1263
+
1264
+ # Update properties of this object
1265
+ def update!(**args)
1266
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1267
+ @peerings = args[:peerings] if args.key?(:peerings)
1268
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
1269
+ end
1270
+ end
1271
+
1127
1272
  # ListSqlIntegrationsResponse is the response message for ListSqlIntegrations
1128
1273
  # method.
1129
1274
  class ListSqlIntegrationsResponse
@@ -1412,6 +1557,75 @@ module Google
1412
1557
  end
1413
1558
  end
1414
1559
 
1560
+ # Represents a Managed Microsoft Identities Peering.
1561
+ class Peering
1562
+ include Google::Apis::Core::Hashable
1563
+
1564
+ # Required. The full names of the Google Compute Engine [networks](/compute/docs/
1565
+ # networks-and-firewalls#networks) to which the instance is connected. Caller
1566
+ # needs to make sure that CIDR subnets do not overlap between networks, else
1567
+ # peering creation will fail.
1568
+ # Corresponds to the JSON property `authorizedNetwork`
1569
+ # @return [String]
1570
+ attr_accessor :authorized_network
1571
+
1572
+ # Output only. The time the instance was created.
1573
+ # Corresponds to the JSON property `createTime`
1574
+ # @return [String]
1575
+ attr_accessor :create_time
1576
+
1577
+ # Required. Full domain resource path for the Managed AD Domain involved in
1578
+ # peering. The resource path should be in the form: `projects/`project_id`/
1579
+ # locations/global/domains/`domain_name``
1580
+ # Corresponds to the JSON property `domainResource`
1581
+ # @return [String]
1582
+ attr_accessor :domain_resource
1583
+
1584
+ # Optional. Resource labels to represent user provided metadata.
1585
+ # Corresponds to the JSON property `labels`
1586
+ # @return [Hash<String,String>]
1587
+ attr_accessor :labels
1588
+
1589
+ # Output only. Unique name of the peering in this scope including projects and
1590
+ # location using the form: `projects/`project_id`/locations/global/peerings/`
1591
+ # peering_id``.
1592
+ # Corresponds to the JSON property `name`
1593
+ # @return [String]
1594
+ attr_accessor :name
1595
+
1596
+ # Output only. The current state of this Peering.
1597
+ # Corresponds to the JSON property `state`
1598
+ # @return [String]
1599
+ attr_accessor :state
1600
+
1601
+ # Output only. Additional information about the current status of this peering,
1602
+ # if available.
1603
+ # Corresponds to the JSON property `statusMessage`
1604
+ # @return [String]
1605
+ attr_accessor :status_message
1606
+
1607
+ # Output only. Last update time.
1608
+ # Corresponds to the JSON property `updateTime`
1609
+ # @return [String]
1610
+ attr_accessor :update_time
1611
+
1612
+ def initialize(**args)
1613
+ update!(**args)
1614
+ end
1615
+
1616
+ # Update properties of this object
1617
+ def update!(**args)
1618
+ @authorized_network = args[:authorized_network] if args.key?(:authorized_network)
1619
+ @create_time = args[:create_time] if args.key?(:create_time)
1620
+ @domain_resource = args[:domain_resource] if args.key?(:domain_resource)
1621
+ @labels = args[:labels] if args.key?(:labels)
1622
+ @name = args[:name] if args.key?(:name)
1623
+ @state = args[:state] if args.key?(:state)
1624
+ @status_message = args[:status_message] if args.key?(:status_message)
1625
+ @update_time = args[:update_time] if args.key?(:update_time)
1626
+ end
1627
+ end
1628
+
1415
1629
  # An Identity and Access Management (IAM) policy, which specifies access
1416
1630
  # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
1417
1631
  # A `binding` binds one or more `members` to a single `role`. Members can be
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ManagedidentitiesV1beta1
18
18
  # Version of the google-apis-managedidentities_v1beta1 gem
19
- GEM_VERSION = "0.8.0"
19
+ GEM_VERSION = "0.9.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.3.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210601"
25
+ REVISION = "20210614"
26
26
  end
27
27
  end
28
28
  end
@@ -40,6 +40,12 @@ module Google
40
40
  include Google::Apis::Core::JsonObjectSupport
41
41
  end
42
42
 
43
+ class Certificate
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
43
49
  class DailyCycle
44
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
51
 
@@ -154,6 +160,12 @@ module Google
154
160
  include Google::Apis::Core::JsonObjectSupport
155
161
  end
156
162
 
163
+ class LdapsSettings
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
157
169
  class ListDomainsResponse
158
170
  class Representation < Google::Apis::Core::JsonRepresentation; end
159
171
 
@@ -172,6 +184,12 @@ module Google
172
184
  include Google::Apis::Core::JsonObjectSupport
173
185
  end
174
186
 
187
+ class ListPeeringsResponse
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
175
193
  class ListSqlIntegrationsResponse
176
194
  class Representation < Google::Apis::Core::JsonRepresentation; end
177
195
 
@@ -208,6 +226,12 @@ module Google
208
226
  include Google::Apis::Core::JsonObjectSupport
209
227
  end
210
228
 
229
+ class Peering
230
+ class Representation < Google::Apis::Core::JsonRepresentation; end
231
+
232
+ include Google::Apis::Core::JsonObjectSupport
233
+ end
234
+
211
235
  class Policy
212
236
  class Representation < Google::Apis::Core::JsonRepresentation; end
213
237
 
@@ -322,6 +346,18 @@ module Google
322
346
  end
323
347
  end
324
348
 
349
+ class Certificate
350
+ # @private
351
+ class Representation < Google::Apis::Core::JsonRepresentation
352
+ property :expire_time, as: 'expireTime'
353
+ property :issuing_certificate, as: 'issuingCertificate', class: Google::Apis::ManagedidentitiesV1beta1::Certificate, decorator: Google::Apis::ManagedidentitiesV1beta1::Certificate::Representation
354
+
355
+ property :subject, as: 'subject'
356
+ collection :subject_alternative_name, as: 'subjectAlternativeName'
357
+ property :thumbprint, as: 'thumbprint'
358
+ end
359
+ end
360
+
325
361
  class DailyCycle
326
362
  # @private
327
363
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -535,6 +571,19 @@ module Google
535
571
  end
536
572
  end
537
573
 
574
+ class LdapsSettings
575
+ # @private
576
+ class Representation < Google::Apis::Core::JsonRepresentation
577
+ property :certificate, as: 'certificate', class: Google::Apis::ManagedidentitiesV1beta1::Certificate, decorator: Google::Apis::ManagedidentitiesV1beta1::Certificate::Representation
578
+
579
+ property :certificate_password, as: 'certificatePassword'
580
+ property :certificate_pfx, :base64 => true, as: 'certificatePfx'
581
+ property :name, as: 'name'
582
+ property :state, as: 'state'
583
+ property :update_time, as: 'updateTime'
584
+ end
585
+ end
586
+
538
587
  class ListDomainsResponse
539
588
  # @private
540
589
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -563,6 +612,16 @@ module Google
563
612
  end
564
613
  end
565
614
 
615
+ class ListPeeringsResponse
616
+ # @private
617
+ class Representation < Google::Apis::Core::JsonRepresentation
618
+ property :next_page_token, as: 'nextPageToken'
619
+ collection :peerings, as: 'peerings', class: Google::Apis::ManagedidentitiesV1beta1::Peering, decorator: Google::Apis::ManagedidentitiesV1beta1::Peering::Representation
620
+
621
+ collection :unreachable, as: 'unreachable'
622
+ end
623
+ end
624
+
566
625
  class ListSqlIntegrationsResponse
567
626
  # @private
568
627
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -633,6 +692,20 @@ module Google
633
692
  end
634
693
  end
635
694
 
695
+ class Peering
696
+ # @private
697
+ class Representation < Google::Apis::Core::JsonRepresentation
698
+ property :authorized_network, as: 'authorizedNetwork'
699
+ property :create_time, as: 'createTime'
700
+ property :domain_resource, as: 'domainResource'
701
+ hash :labels, as: 'labels'
702
+ property :name, as: 'name'
703
+ property :state, as: 'state'
704
+ property :status_message, as: 'statusMessage'
705
+ property :update_time, as: 'updateTime'
706
+ end
707
+ end
708
+
636
709
  class Policy
637
710
  # @private
638
711
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -337,6 +337,37 @@ module Google
337
337
  execute_or_queue_command(command, &block)
338
338
  end
339
339
 
340
+ # Gets the domain ldaps settings.
341
+ # @param [String] name
342
+ # Required. The domain resource name using the form: `projects/`project_id`/
343
+ # locations/global/domains/`domain_name``
344
+ # @param [String] fields
345
+ # Selector specifying which fields to include in a partial response.
346
+ # @param [String] quota_user
347
+ # Available to use for quota purposes for server-side applications. Can be any
348
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
349
+ # @param [Google::Apis::RequestOptions] options
350
+ # Request-specific options
351
+ #
352
+ # @yield [result, err] Result & error if block supplied
353
+ # @yieldparam result [Google::Apis::ManagedidentitiesV1beta1::LdapsSettings] parsed result object
354
+ # @yieldparam err [StandardError] error object if request failed
355
+ #
356
+ # @return [Google::Apis::ManagedidentitiesV1beta1::LdapsSettings]
357
+ #
358
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
359
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
360
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
361
+ def get_project_location_global_domain_ldapssettings(name, fields: nil, quota_user: nil, options: nil, &block)
362
+ command = make_simple_command(:get, 'v1beta1/{+name}/ldapssettings', options)
363
+ command.response_representation = Google::Apis::ManagedidentitiesV1beta1::LdapsSettings::Representation
364
+ command.response_class = Google::Apis::ManagedidentitiesV1beta1::LdapsSettings
365
+ command.params['name'] = name unless name.nil?
366
+ command.query['fields'] = fields unless fields.nil?
367
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
368
+ execute_or_queue_command(command, &block)
369
+ end
370
+
340
371
  # Lists domains in a project.
341
372
  # @param [String] parent
342
373
  # Required. The resource name of the domain location using the form: `projects/`
@@ -567,6 +598,45 @@ module Google
567
598
  execute_or_queue_command(command, &block)
568
599
  end
569
600
 
601
+ # Patches a single ldaps settings.
602
+ # @param [String] name
603
+ # The resource name of the LDAPS settings. Uses the form: `projects/`project`/
604
+ # locations/`location`/domains/`domain``.
605
+ # @param [Google::Apis::ManagedidentitiesV1beta1::LdapsSettings] ldaps_settings_object
606
+ # @param [String] update_mask
607
+ # Required. Mask of fields to update. At least one path must be supplied in this
608
+ # field. For the `FieldMask` definition, see https://developers.google.com/
609
+ # protocol-buffers/docs/reference/google.protobuf#fieldmask
610
+ # @param [String] fields
611
+ # Selector specifying which fields to include in a partial response.
612
+ # @param [String] quota_user
613
+ # Available to use for quota purposes for server-side applications. Can be any
614
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
615
+ # @param [Google::Apis::RequestOptions] options
616
+ # Request-specific options
617
+ #
618
+ # @yield [result, err] Result & error if block supplied
619
+ # @yieldparam result [Google::Apis::ManagedidentitiesV1beta1::Operation] parsed result object
620
+ # @yieldparam err [StandardError] error object if request failed
621
+ #
622
+ # @return [Google::Apis::ManagedidentitiesV1beta1::Operation]
623
+ #
624
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
625
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
626
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
627
+ def update_project_location_global_domain_ldapssettings(name, ldaps_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
628
+ command = make_simple_command(:patch, 'v1beta1/{+name}/ldapssettings', options)
629
+ command.request_representation = Google::Apis::ManagedidentitiesV1beta1::LdapsSettings::Representation
630
+ command.request_object = ldaps_settings_object
631
+ command.response_representation = Google::Apis::ManagedidentitiesV1beta1::Operation::Representation
632
+ command.response_class = Google::Apis::ManagedidentitiesV1beta1::Operation
633
+ command.params['name'] = name unless name.nil?
634
+ command.query['updateMask'] = update_mask unless update_mask.nil?
635
+ command.query['fields'] = fields unless fields.nil?
636
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
637
+ execute_or_queue_command(command, &block)
638
+ end
639
+
570
640
  # Validates a trust state, that the target domain is reachable, and that the
571
641
  # target domain is able to accept incoming trust requests.
572
642
  # @param [String] name
@@ -833,6 +903,105 @@ module Google
833
903
  execute_or_queue_command(command, &block)
834
904
  end
835
905
 
906
+ # Creates a Peering for Managed AD instance.
907
+ # @param [String] parent
908
+ # Required. Resource project name and location using the form: `projects/`
909
+ # project_id`/locations/global`
910
+ # @param [Google::Apis::ManagedidentitiesV1beta1::Peering] peering_object
911
+ # @param [String] peering_id
912
+ # Required. Peering Id, unique name to identify peering.
913
+ # @param [String] fields
914
+ # Selector specifying which fields to include in a partial response.
915
+ # @param [String] quota_user
916
+ # Available to use for quota purposes for server-side applications. Can be any
917
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
918
+ # @param [Google::Apis::RequestOptions] options
919
+ # Request-specific options
920
+ #
921
+ # @yield [result, err] Result & error if block supplied
922
+ # @yieldparam result [Google::Apis::ManagedidentitiesV1beta1::Operation] parsed result object
923
+ # @yieldparam err [StandardError] error object if request failed
924
+ #
925
+ # @return [Google::Apis::ManagedidentitiesV1beta1::Operation]
926
+ #
927
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
928
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
929
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
930
+ def create_project_location_global_peering(parent, peering_object = nil, peering_id: nil, fields: nil, quota_user: nil, options: nil, &block)
931
+ command = make_simple_command(:post, 'v1beta1/{+parent}/peerings', options)
932
+ command.request_representation = Google::Apis::ManagedidentitiesV1beta1::Peering::Representation
933
+ command.request_object = peering_object
934
+ command.response_representation = Google::Apis::ManagedidentitiesV1beta1::Operation::Representation
935
+ command.response_class = Google::Apis::ManagedidentitiesV1beta1::Operation
936
+ command.params['parent'] = parent unless parent.nil?
937
+ command.query['peeringId'] = peering_id unless peering_id.nil?
938
+ command.query['fields'] = fields unless fields.nil?
939
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
940
+ execute_or_queue_command(command, &block)
941
+ end
942
+
943
+ # Deletes identified Peering.
944
+ # @param [String] name
945
+ # Required. Peering resource name using the form: `projects/`project_id`/
946
+ # locations/global/peerings/`peering_id``
947
+ # @param [String] fields
948
+ # Selector specifying which fields to include in a partial response.
949
+ # @param [String] quota_user
950
+ # Available to use for quota purposes for server-side applications. Can be any
951
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
952
+ # @param [Google::Apis::RequestOptions] options
953
+ # Request-specific options
954
+ #
955
+ # @yield [result, err] Result & error if block supplied
956
+ # @yieldparam result [Google::Apis::ManagedidentitiesV1beta1::Operation] parsed result object
957
+ # @yieldparam err [StandardError] error object if request failed
958
+ #
959
+ # @return [Google::Apis::ManagedidentitiesV1beta1::Operation]
960
+ #
961
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
962
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
963
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
964
+ def delete_project_location_global_peering(name, fields: nil, quota_user: nil, options: nil, &block)
965
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
966
+ command.response_representation = Google::Apis::ManagedidentitiesV1beta1::Operation::Representation
967
+ command.response_class = Google::Apis::ManagedidentitiesV1beta1::Operation
968
+ command.params['name'] = name unless name.nil?
969
+ command.query['fields'] = fields unless fields.nil?
970
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
971
+ execute_or_queue_command(command, &block)
972
+ end
973
+
974
+ # Gets details of a single Peering.
975
+ # @param [String] name
976
+ # Required. Peering resource name using the form: `projects/`project_id`/
977
+ # locations/global/domains/`peering_id``
978
+ # @param [String] fields
979
+ # Selector specifying which fields to include in a partial response.
980
+ # @param [String] quota_user
981
+ # Available to use for quota purposes for server-side applications. Can be any
982
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
983
+ # @param [Google::Apis::RequestOptions] options
984
+ # Request-specific options
985
+ #
986
+ # @yield [result, err] Result & error if block supplied
987
+ # @yieldparam result [Google::Apis::ManagedidentitiesV1beta1::Peering] parsed result object
988
+ # @yieldparam err [StandardError] error object if request failed
989
+ #
990
+ # @return [Google::Apis::ManagedidentitiesV1beta1::Peering]
991
+ #
992
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
993
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
994
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
995
+ def get_project_location_global_peering(name, fields: nil, quota_user: nil, options: nil, &block)
996
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
997
+ command.response_representation = Google::Apis::ManagedidentitiesV1beta1::Peering::Representation
998
+ command.response_class = Google::Apis::ManagedidentitiesV1beta1::Peering
999
+ command.params['name'] = name unless name.nil?
1000
+ command.query['fields'] = fields unless fields.nil?
1001
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1002
+ execute_or_queue_command(command, &block)
1003
+ end
1004
+
836
1005
  # Gets the access control policy for a resource. Returns an empty policy if the
837
1006
  # resource exists and does not have a policy set.
838
1007
  # @param [String] resource
@@ -874,6 +1043,96 @@ module Google
874
1043
  execute_or_queue_command(command, &block)
875
1044
  end
876
1045
 
1046
+ # Lists Peerings in a given project.
1047
+ # @param [String] parent
1048
+ # Required. The resource name of the domain location using the form: `projects/`
1049
+ # project_id`/locations/global`
1050
+ # @param [String] filter
1051
+ # Optional. Filter specifying constraints of a list operation. For example, `
1052
+ # peering.authoized_network ="/projects/myprojectid"`.
1053
+ # @param [String] order_by
1054
+ # Optional. Specifies the ordering of results following syntax at https://cloud.
1055
+ # google.com/apis/design/design_patterns#sorting_order.
1056
+ # @param [Fixnum] page_size
1057
+ # Optional. The maximum number of items to return. If not specified, a default
1058
+ # value of 1000 will be used by the service. Regardless of the page_size value,
1059
+ # the response may include a partial list and a caller should only rely on
1060
+ # response's next_page_token to determine if there are more instances left to be
1061
+ # queried.
1062
+ # @param [String] page_token
1063
+ # Optional. The next_page_token value returned from a previous List request, if
1064
+ # any.
1065
+ # @param [String] fields
1066
+ # Selector specifying which fields to include in a partial response.
1067
+ # @param [String] quota_user
1068
+ # Available to use for quota purposes for server-side applications. Can be any
1069
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1070
+ # @param [Google::Apis::RequestOptions] options
1071
+ # Request-specific options
1072
+ #
1073
+ # @yield [result, err] Result & error if block supplied
1074
+ # @yieldparam result [Google::Apis::ManagedidentitiesV1beta1::ListPeeringsResponse] parsed result object
1075
+ # @yieldparam err [StandardError] error object if request failed
1076
+ #
1077
+ # @return [Google::Apis::ManagedidentitiesV1beta1::ListPeeringsResponse]
1078
+ #
1079
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1080
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1081
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1082
+ def list_project_location_global_peerings(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1083
+ command = make_simple_command(:get, 'v1beta1/{+parent}/peerings', options)
1084
+ command.response_representation = Google::Apis::ManagedidentitiesV1beta1::ListPeeringsResponse::Representation
1085
+ command.response_class = Google::Apis::ManagedidentitiesV1beta1::ListPeeringsResponse
1086
+ command.params['parent'] = parent unless parent.nil?
1087
+ command.query['filter'] = filter unless filter.nil?
1088
+ command.query['orderBy'] = order_by unless order_by.nil?
1089
+ command.query['pageSize'] = page_size unless page_size.nil?
1090
+ command.query['pageToken'] = page_token unless page_token.nil?
1091
+ command.query['fields'] = fields unless fields.nil?
1092
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1093
+ execute_or_queue_command(command, &block)
1094
+ end
1095
+
1096
+ # Updates the labels for specified Peering.
1097
+ # @param [String] name
1098
+ # Output only. Unique name of the peering in this scope including projects and
1099
+ # location using the form: `projects/`project_id`/locations/global/peerings/`
1100
+ # peering_id``.
1101
+ # @param [Google::Apis::ManagedidentitiesV1beta1::Peering] peering_object
1102
+ # @param [String] update_mask
1103
+ # Required. Mask of fields to update. At least one path must be supplied in this
1104
+ # field. The elements of the repeated paths field may only include these fields
1105
+ # from Peering: * `labels`
1106
+ # @param [String] fields
1107
+ # Selector specifying which fields to include in a partial response.
1108
+ # @param [String] quota_user
1109
+ # Available to use for quota purposes for server-side applications. Can be any
1110
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1111
+ # @param [Google::Apis::RequestOptions] options
1112
+ # Request-specific options
1113
+ #
1114
+ # @yield [result, err] Result & error if block supplied
1115
+ # @yieldparam result [Google::Apis::ManagedidentitiesV1beta1::Operation] parsed result object
1116
+ # @yieldparam err [StandardError] error object if request failed
1117
+ #
1118
+ # @return [Google::Apis::ManagedidentitiesV1beta1::Operation]
1119
+ #
1120
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1121
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1122
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1123
+ def patch_project_location_global_peering(name, peering_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1124
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
1125
+ command.request_representation = Google::Apis::ManagedidentitiesV1beta1::Peering::Representation
1126
+ command.request_object = peering_object
1127
+ command.response_representation = Google::Apis::ManagedidentitiesV1beta1::Operation::Representation
1128
+ command.response_class = Google::Apis::ManagedidentitiesV1beta1::Operation
1129
+ command.params['name'] = name unless name.nil?
1130
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1131
+ command.query['fields'] = fields unless fields.nil?
1132
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1133
+ execute_or_queue_command(command, &block)
1134
+ end
1135
+
877
1136
  # Sets the access control policy on the specified resource. Replaces any
878
1137
  # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
879
1138
  # PERMISSION_DENIED` errors.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-managedidentities_v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-14 00:00:00.000000000 Z
11
+ date: 2021-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -53,7 +53,7 @@ licenses:
53
53
  metadata:
54
54
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
55
55
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-managedidentities_v1beta1/CHANGELOG.md
56
- documentation_uri: https://googleapis.dev/ruby/google-apis-managedidentities_v1beta1/v0.8.0
56
+ documentation_uri: https://googleapis.dev/ruby/google-apis-managedidentities_v1beta1/v0.9.0
57
57
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-managedidentities_v1beta1
58
58
  post_install_message:
59
59
  rdoc_options: []