google-apis-managedidentities_v1alpha1 0.8.0 → 0.9.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: 450eb69550b090b33869e3c7c7d04c5b6a67962a7ccc45073695a803a41b546e
4
- data.tar.gz: 436d7dd711da92a87e05f8a4fad0d1e86dd26fdc5edb44b707d3dbbb55c4400c
3
+ metadata.gz: 2e6ae638b0fb6c223c5038512a01c0ba6bead57b049bbc42a4bcae80b4cc363f
4
+ data.tar.gz: e548dcf4b2e648375d17b9f05dda6867631b25dab806da121ce9da11ee1ada1a
5
5
  SHA512:
6
- metadata.gz: 2bdb5b8d8ecba7a8b366a68299e89ff513954a145ded4de9441d67d49a4702387c51d02d3b6fa4dc32e0d40261740ea7684a62a1e816b321bb79f2171856e54d
7
- data.tar.gz: 7cec8c53b3a3e08340cca7f7a31d0dbf6445a72f77cb72ed4910062316aa2280c74281052550fb246aa330246dc37323cce5425e5788871b2c61925f9b17a675
6
+ metadata.gz: 12e7d1cbb3802c1e231a1ffc3009df69a54fb52a342515f0ac31e26f02910ebf7a93253d14739c52088c9fee98ab19b5f800ab89575f006a5a2fd9058f86abb8
7
+ data.tar.gz: d4588046e9ae476ceecf09b70ecc7f39b90757313a9bf583b0b9cf604741319ca512c1454673fc99bcb5d0685bd0659fa2ea8c97efcf73a6fa3003a4b902d0fa
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-managedidentities_v1alpha1
2
2
 
3
+ ### v0.9.0 (2021-06-16)
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
@@ -130,6 +130,49 @@ module Google
130
130
  end
131
131
  end
132
132
 
133
+ # Certificate used to configure LDAPS.
134
+ class Certificate
135
+ include Google::Apis::Core::Hashable
136
+
137
+ # The certificate expire time.
138
+ # Corresponds to the JSON property `expireTime`
139
+ # @return [String]
140
+ attr_accessor :expire_time
141
+
142
+ # Certificate used to configure LDAPS.
143
+ # Corresponds to the JSON property `issuingCertificate`
144
+ # @return [Google::Apis::ManagedidentitiesV1alpha1::Certificate]
145
+ attr_accessor :issuing_certificate
146
+
147
+ # The certificate subject.
148
+ # Corresponds to the JSON property `subject`
149
+ # @return [String]
150
+ attr_accessor :subject
151
+
152
+ # The additional hostnames for the domain.
153
+ # Corresponds to the JSON property `subjectAlternativeName`
154
+ # @return [Array<String>]
155
+ attr_accessor :subject_alternative_name
156
+
157
+ # The certificate thumbprint which uniquely identifies the certificate.
158
+ # Corresponds to the JSON property `thumbprint`
159
+ # @return [String]
160
+ attr_accessor :thumbprint
161
+
162
+ def initialize(**args)
163
+ update!(**args)
164
+ end
165
+
166
+ # Update properties of this object
167
+ def update!(**args)
168
+ @expire_time = args[:expire_time] if args.key?(:expire_time)
169
+ @issuing_certificate = args[:issuing_certificate] if args.key?(:issuing_certificate)
170
+ @subject = args[:subject] if args.key?(:subject)
171
+ @subject_alternative_name = args[:subject_alternative_name] if args.key?(:subject_alternative_name)
172
+ @thumbprint = args[:thumbprint] if args.key?(:thumbprint)
173
+ end
174
+ end
175
+
133
176
  # Time window specified for daily operations.
134
177
  class DailyCycle
135
178
  include Google::Apis::Core::Hashable
@@ -1052,6 +1095,76 @@ module Google
1052
1095
  end
1053
1096
  end
1054
1097
 
1098
+ # LDAPSSettings represents the ldaps settings for domain resource. LDAP is the
1099
+ # Lightweight Directory Access Protocol, defined in https://tools.ietf.org/html/
1100
+ # rfc4511. The settings object configures LDAP over SSL/TLS, whether it is over
1101
+ # port 636 or the StartTLS operation. If LDAPSSettings is being changed, it will
1102
+ # be placed into the UPDATING state, which indicates that the resource is being
1103
+ # reconciled. At this point, Get will reflect an intermediate state.
1104
+ class LdapsSettings
1105
+ include Google::Apis::Core::Hashable
1106
+
1107
+ # Certificate used to configure LDAPS.
1108
+ # Corresponds to the JSON property `certificate`
1109
+ # @return [Google::Apis::ManagedidentitiesV1alpha1::Certificate]
1110
+ attr_accessor :certificate
1111
+
1112
+ # Input only. The password used to encrypt the uploaded pfx certificate.
1113
+ # Corresponds to the JSON property `certificatePassword`
1114
+ # @return [String]
1115
+ attr_accessor :certificate_password
1116
+
1117
+ # Input only. The uploaded PKCS12-formatted certificate to configure LDAPS with.
1118
+ # It will enable the domain controllers in this domain to accept LDAPS
1119
+ # connections (either LDAP over SSL/TLS or the StartTLS operation). A valid
1120
+ # certificate chain must form a valid x.509 certificate chain (or be comprised
1121
+ # of a single self-signed certificate. It must be encrypted with either: 1)
1122
+ # PBES2 + PBKDF2 + AES256 encryption and SHA256 PRF; or 2) pbeWithSHA1And3-
1123
+ # KeyTripleDES-CBC Private key must be included for the leaf / single self-
1124
+ # signed certificate. Note: For a fqdn your-example-domain.com, the wildcard
1125
+ # fqdn is *.your-example-domain.com. Specifically the leaf certificate must have:
1126
+ # - Either a blank subject or a subject with CN matching the wildcard fqdn. -
1127
+ # Exactly two SANs - the fqdn and wildcard fqdn. - Encipherment and digital key
1128
+ # signature key usages. - Server authentication extended key usage (OID=1.3.6.1.
1129
+ # 5.5.7.3.1) - Private key must be in one of the following formats: RSA, ECDSA,
1130
+ # ED25519. - Private key must have appropriate key length: 2048 for RSA, 256 for
1131
+ # ECDSA - Signature algorithm of the leaf certificate cannot be MD2, MD5 or SHA1.
1132
+ # Corresponds to the JSON property `certificatePfx`
1133
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1134
+ # @return [String]
1135
+ attr_accessor :certificate_pfx
1136
+
1137
+ # The resource name of the LDAPS settings. Uses the form: `projects/`project`/
1138
+ # locations/`location`/domains/`domain``.
1139
+ # Corresponds to the JSON property `name`
1140
+ # @return [String]
1141
+ attr_accessor :name
1142
+
1143
+ # Output only. The current state of this LDAPS settings.
1144
+ # Corresponds to the JSON property `state`
1145
+ # @return [String]
1146
+ attr_accessor :state
1147
+
1148
+ # Output only. Last update time.
1149
+ # Corresponds to the JSON property `updateTime`
1150
+ # @return [String]
1151
+ attr_accessor :update_time
1152
+
1153
+ def initialize(**args)
1154
+ update!(**args)
1155
+ end
1156
+
1157
+ # Update properties of this object
1158
+ def update!(**args)
1159
+ @certificate = args[:certificate] if args.key?(:certificate)
1160
+ @certificate_password = args[:certificate_password] if args.key?(:certificate_password)
1161
+ @certificate_pfx = args[:certificate_pfx] if args.key?(:certificate_pfx)
1162
+ @name = args[:name] if args.key?(:name)
1163
+ @state = args[:state] if args.key?(:state)
1164
+ @update_time = args[:update_time] if args.key?(:update_time)
1165
+ end
1166
+ end
1167
+
1055
1168
  #
1056
1169
  class ListDomainsResponse
1057
1170
  include Google::Apis::Core::Hashable
@@ -1134,6 +1247,38 @@ module Google
1134
1247
  end
1135
1248
  end
1136
1249
 
1250
+ # ListPeeringsResponse is the response message for ListPeerings method.
1251
+ class ListPeeringsResponse
1252
+ include Google::Apis::Core::Hashable
1253
+
1254
+ # Token to retrieve the next page of results, or empty if there are no more
1255
+ # results in the list.
1256
+ # Corresponds to the JSON property `nextPageToken`
1257
+ # @return [String]
1258
+ attr_accessor :next_page_token
1259
+
1260
+ # A list of Managed Identities Service Peerings in the project.
1261
+ # Corresponds to the JSON property `peerings`
1262
+ # @return [Array<Google::Apis::ManagedidentitiesV1alpha1::Peering>]
1263
+ attr_accessor :peerings
1264
+
1265
+ # Locations that could not be reached.
1266
+ # Corresponds to the JSON property `unreachable`
1267
+ # @return [Array<String>]
1268
+ attr_accessor :unreachable
1269
+
1270
+ def initialize(**args)
1271
+ update!(**args)
1272
+ end
1273
+
1274
+ # Update properties of this object
1275
+ def update!(**args)
1276
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1277
+ @peerings = args[:peerings] if args.key?(:peerings)
1278
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
1279
+ end
1280
+ end
1281
+
1137
1282
  # ListSQLIntegrationsResponse is the response message for ListSQLIntegrations
1138
1283
  # method.
1139
1284
  class ListSqlIntegrationsResponse
@@ -1422,6 +1567,75 @@ module Google
1422
1567
  end
1423
1568
  end
1424
1569
 
1570
+ # Represents a Managed Microsoft Identities Peering.
1571
+ class Peering
1572
+ include Google::Apis::Core::Hashable
1573
+
1574
+ # Required. The full names of the Google Compute Engine [networks](/compute/docs/
1575
+ # networks-and-firewalls#networks) to which the instance is connected. Caller
1576
+ # needs to make sure that CIDR subnets do not overlap between networks, else
1577
+ # peering creation will fail.
1578
+ # Corresponds to the JSON property `authorizedNetwork`
1579
+ # @return [String]
1580
+ attr_accessor :authorized_network
1581
+
1582
+ # Output only. The time the instance was created.
1583
+ # Corresponds to the JSON property `createTime`
1584
+ # @return [String]
1585
+ attr_accessor :create_time
1586
+
1587
+ # Required. Full domain resource path for the Managed AD Domain involved in
1588
+ # peering. The resource path should be in the form: `projects/`project_id`/
1589
+ # locations/global/domains/`domain_name``
1590
+ # Corresponds to the JSON property `domainResource`
1591
+ # @return [String]
1592
+ attr_accessor :domain_resource
1593
+
1594
+ # Optional. Resource labels to represent user provided metadata.
1595
+ # Corresponds to the JSON property `labels`
1596
+ # @return [Hash<String,String>]
1597
+ attr_accessor :labels
1598
+
1599
+ # Output only. Unique name of the peering in this scope including projects and
1600
+ # location using the form: `projects/`project_id`/locations/global/peerings/`
1601
+ # peering_id``.
1602
+ # Corresponds to the JSON property `name`
1603
+ # @return [String]
1604
+ attr_accessor :name
1605
+
1606
+ # Output only. The current state of this Peering.
1607
+ # Corresponds to the JSON property `state`
1608
+ # @return [String]
1609
+ attr_accessor :state
1610
+
1611
+ # Output only. Additional information about the current status of this peering,
1612
+ # if available.
1613
+ # Corresponds to the JSON property `statusMessage`
1614
+ # @return [String]
1615
+ attr_accessor :status_message
1616
+
1617
+ # Output only. Last update time.
1618
+ # Corresponds to the JSON property `updateTime`
1619
+ # @return [String]
1620
+ attr_accessor :update_time
1621
+
1622
+ def initialize(**args)
1623
+ update!(**args)
1624
+ end
1625
+
1626
+ # Update properties of this object
1627
+ def update!(**args)
1628
+ @authorized_network = args[:authorized_network] if args.key?(:authorized_network)
1629
+ @create_time = args[:create_time] if args.key?(:create_time)
1630
+ @domain_resource = args[:domain_resource] if args.key?(:domain_resource)
1631
+ @labels = args[:labels] if args.key?(:labels)
1632
+ @name = args[:name] if args.key?(:name)
1633
+ @state = args[:state] if args.key?(:state)
1634
+ @status_message = args[:status_message] if args.key?(:status_message)
1635
+ @update_time = args[:update_time] if args.key?(:update_time)
1636
+ end
1637
+ end
1638
+
1425
1639
  # An Identity and Access Management (IAM) policy, which specifies access
1426
1640
  # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
1427
1641
  # 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 ManagedidentitiesV1alpha1
18
18
  # Version of the google-apis-managedidentities_v1alpha1 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::ManagedidentitiesV1alpha1::Certificate, decorator: Google::Apis::ManagedidentitiesV1alpha1::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::ManagedidentitiesV1alpha1::Certificate, decorator: Google::Apis::ManagedidentitiesV1alpha1::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::ManagedidentitiesV1alpha1::Peering, decorator: Google::Apis::ManagedidentitiesV1alpha1::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::ManagedidentitiesV1alpha1::LdapsSettings] parsed result object
354
+ # @yieldparam err [StandardError] error object if request failed
355
+ #
356
+ # @return [Google::Apis::ManagedidentitiesV1alpha1::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, 'v1alpha1/{+name}/ldapssettings', options)
363
+ command.response_representation = Google::Apis::ManagedidentitiesV1alpha1::LdapsSettings::Representation
364
+ command.response_class = Google::Apis::ManagedidentitiesV1alpha1::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 given project.
341
372
  # @param [String] parent
342
373
  # Required. The resource name of the domain location using the form: `projects/`
@@ -568,6 +599,45 @@ module Google
568
599
  execute_or_queue_command(command, &block)
569
600
  end
570
601
 
602
+ # Patches a single ldaps settings.
603
+ # @param [String] name
604
+ # The resource name of the LDAPS settings. Uses the form: `projects/`project`/
605
+ # locations/`location`/domains/`domain``.
606
+ # @param [Google::Apis::ManagedidentitiesV1alpha1::LdapsSettings] ldaps_settings_object
607
+ # @param [String] update_mask
608
+ # Required. Mask of fields to update. At least one path must be supplied in this
609
+ # field. For the `FieldMask` definition, see https://developers.google.com/
610
+ # protocol-buffers/docs/reference/google.protobuf#fieldmask
611
+ # @param [String] fields
612
+ # Selector specifying which fields to include in a partial response.
613
+ # @param [String] quota_user
614
+ # Available to use for quota purposes for server-side applications. Can be any
615
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
616
+ # @param [Google::Apis::RequestOptions] options
617
+ # Request-specific options
618
+ #
619
+ # @yield [result, err] Result & error if block supplied
620
+ # @yieldparam result [Google::Apis::ManagedidentitiesV1alpha1::Operation] parsed result object
621
+ # @yieldparam err [StandardError] error object if request failed
622
+ #
623
+ # @return [Google::Apis::ManagedidentitiesV1alpha1::Operation]
624
+ #
625
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
626
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
627
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
628
+ def update_project_location_global_domain_ldapssettings(name, ldaps_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
629
+ command = make_simple_command(:patch, 'v1alpha1/{+name}/ldapssettings', options)
630
+ command.request_representation = Google::Apis::ManagedidentitiesV1alpha1::LdapsSettings::Representation
631
+ command.request_object = ldaps_settings_object
632
+ command.response_representation = Google::Apis::ManagedidentitiesV1alpha1::Operation::Representation
633
+ command.response_class = Google::Apis::ManagedidentitiesV1alpha1::Operation
634
+ command.params['name'] = name unless name.nil?
635
+ command.query['updateMask'] = update_mask unless update_mask.nil?
636
+ command.query['fields'] = fields unless fields.nil?
637
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
638
+ execute_or_queue_command(command, &block)
639
+ end
640
+
571
641
  # Validate the trust state Operation
572
642
  # @param [String] name
573
643
  # The resource domain name, project name, and location using the form: `projects/
@@ -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::ManagedidentitiesV1alpha1::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::ManagedidentitiesV1alpha1::Operation] parsed result object
923
+ # @yieldparam err [StandardError] error object if request failed
924
+ #
925
+ # @return [Google::Apis::ManagedidentitiesV1alpha1::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, 'v1alpha1/{+parent}/peerings', options)
932
+ command.request_representation = Google::Apis::ManagedidentitiesV1alpha1::Peering::Representation
933
+ command.request_object = peering_object
934
+ command.response_representation = Google::Apis::ManagedidentitiesV1alpha1::Operation::Representation
935
+ command.response_class = Google::Apis::ManagedidentitiesV1alpha1::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::ManagedidentitiesV1alpha1::Operation] parsed result object
957
+ # @yieldparam err [StandardError] error object if request failed
958
+ #
959
+ # @return [Google::Apis::ManagedidentitiesV1alpha1::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, 'v1alpha1/{+name}', options)
966
+ command.response_representation = Google::Apis::ManagedidentitiesV1alpha1::Operation::Representation
967
+ command.response_class = Google::Apis::ManagedidentitiesV1alpha1::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::ManagedidentitiesV1alpha1::Peering] parsed result object
988
+ # @yieldparam err [StandardError] error object if request failed
989
+ #
990
+ # @return [Google::Apis::ManagedidentitiesV1alpha1::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, 'v1alpha1/{+name}', options)
997
+ command.response_representation = Google::Apis::ManagedidentitiesV1alpha1::Peering::Representation
998
+ command.response_class = Google::Apis::ManagedidentitiesV1alpha1::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::ManagedidentitiesV1alpha1::ListPeeringsResponse] parsed result object
1075
+ # @yieldparam err [StandardError] error object if request failed
1076
+ #
1077
+ # @return [Google::Apis::ManagedidentitiesV1alpha1::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, 'v1alpha1/{+parent}/peerings', options)
1084
+ command.response_representation = Google::Apis::ManagedidentitiesV1alpha1::ListPeeringsResponse::Representation
1085
+ command.response_class = Google::Apis::ManagedidentitiesV1alpha1::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::ManagedidentitiesV1alpha1::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::ManagedidentitiesV1alpha1::Operation] parsed result object
1116
+ # @yieldparam err [StandardError] error object if request failed
1117
+ #
1118
+ # @return [Google::Apis::ManagedidentitiesV1alpha1::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, 'v1alpha1/{+name}', options)
1125
+ command.request_representation = Google::Apis::ManagedidentitiesV1alpha1::Peering::Representation
1126
+ command.request_object = peering_object
1127
+ command.response_representation = Google::Apis::ManagedidentitiesV1alpha1::Operation::Representation
1128
+ command.response_class = Google::Apis::ManagedidentitiesV1alpha1::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_v1alpha1
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_v1alpha1/CHANGELOG.md
56
- documentation_uri: https://googleapis.dev/ruby/google-apis-managedidentities_v1alpha1/v0.8.0
56
+ documentation_uri: https://googleapis.dev/ruby/google-apis-managedidentities_v1alpha1/v0.9.0
57
57
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-managedidentities_v1alpha1
58
58
  post_install_message:
59
59
  rdoc_options: []