google-apis-managedidentities_v1 0.13.0 → 0.17.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: 14c6fd964f78de0c4fb8e9ee4ac8be3442dc2dabc6386d575588742099596ab4
4
- data.tar.gz: 9dd0c1725734a15caee46999b5914aeac493ba6fa35cd88b4bcccc4ccc148aab
3
+ metadata.gz: c4aa029e73de5e32f9fd420e30d1ddcd1ee4a03ae8a0dcc76c4372e423fffa04
4
+ data.tar.gz: 68fd5dba2768296b7b9676789328c5c83e97a319fc375a0db6a9bb9537d07b68
5
5
  SHA512:
6
- metadata.gz: 62e45d89baf15dd47d2eaf0e6a0282bb6a780c829cb7e4bca2e69e11e4fa4a0e24dc5d423fc19c6f4acdd8e0ca915f12f839c0e0d36a6e257f382ae845020eb2
7
- data.tar.gz: a53fc48911a794488663155956f36f9bd62337064959c402ca32feb374c6f7f6eb0c1ac45cb5105e60fbfe6b38e2074181d38cfee8ac4d2aafe9104343552fd8
6
+ metadata.gz: f27db3bd5b20fb709bdef3b123dcc13fbecb729728d84597820cda23d47e963cce190bbfda5346162f7d491b8956ff6775fbee4b5be407b7667213537b81088b
7
+ data.tar.gz: 4a7596085dea953769a7ccdf1ba5fe6181954829cbed610a4fdf4d007ba026a79bc1dcdfe1b900dce899fd54100abc4443f01cacd390c922c9e95410d2182efc
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Release history for google-apis-managedidentities_v1
2
2
 
3
+ ### v0.17.0 (2021-11-14)
4
+
5
+ * Regenerated from discovery document revision 20211108
6
+
7
+ ### v0.16.0 (2021-10-21)
8
+
9
+ * Unspecified changes
10
+
11
+ ### v0.15.0 (2021-10-10)
12
+
13
+ * Regenerated from discovery document revision 20211004
14
+
15
+ ### v0.14.0 (2021-09-03)
16
+
17
+ * Regenerated from discovery document revision 20210824
18
+
3
19
  ### v0.13.0 (2021-08-28)
4
20
 
5
21
  * Regenerated from discovery document revision 20210819
data/OVERVIEW.md CHANGED
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
60
60
 
61
61
  More detailed descriptions of the Google simple REST clients are available in two documents.
62
62
 
63
- * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
- * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
63
+ * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
+ * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
65
65
 
66
66
  (Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Managedidentities service in particular.)
67
67
 
@@ -44,7 +44,7 @@ module Google
44
44
  end
45
45
  end
46
46
 
47
- # Associates `members` with a `role`.
47
+ # Associates `members`, or principals, with a `role`.
48
48
  class Binding
49
49
  include Google::Apis::Core::Hashable
50
50
 
@@ -67,7 +67,7 @@ module Google
67
67
  # @return [Google::Apis::ManagedidentitiesV1::Expr]
68
68
  attr_accessor :condition
69
69
 
70
- # Specifies the identities requesting access for a Cloud Platform resource. `
70
+ # Specifies the principals requesting access for a Cloud Platform resource. `
71
71
  # members` can have the following values: * `allUsers`: A special identifier
72
72
  # that represents anyone who is on the internet; with or without a Google
73
73
  # account. * `allAuthenticatedUsers`: A special identifier that represents
@@ -97,8 +97,8 @@ module Google
97
97
  # @return [Array<String>]
98
98
  attr_accessor :members
99
99
 
100
- # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`
101
- # , or `roles/owner`.
100
+ # Role that is assigned to the list of `members`, or principals. For example, `
101
+ # roles/viewer`, `roles/editor`, or `roles/owner`.
102
102
  # Corresponds to the JSON property `role`
103
103
  # @return [String]
104
104
  attr_accessor :role
@@ -1177,6 +1177,38 @@ module Google
1177
1177
  end
1178
1178
  end
1179
1179
 
1180
+ # ListPeeringsResponse is the response message for ListPeerings method.
1181
+ class ListPeeringsResponse
1182
+ include Google::Apis::Core::Hashable
1183
+
1184
+ # Token to retrieve the next page of results, or empty if there are no more
1185
+ # results in the list.
1186
+ # Corresponds to the JSON property `nextPageToken`
1187
+ # @return [String]
1188
+ attr_accessor :next_page_token
1189
+
1190
+ # A list of Managed Identities Service Peerings in the project.
1191
+ # Corresponds to the JSON property `peerings`
1192
+ # @return [Array<Google::Apis::ManagedidentitiesV1::Peering>]
1193
+ attr_accessor :peerings
1194
+
1195
+ # Locations that could not be reached.
1196
+ # Corresponds to the JSON property `unreachable`
1197
+ # @return [Array<String>]
1198
+ attr_accessor :unreachable
1199
+
1200
+ def initialize(**args)
1201
+ update!(**args)
1202
+ end
1203
+
1204
+ # Update properties of this object
1205
+ def update!(**args)
1206
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1207
+ @peerings = args[:peerings] if args.key?(:peerings)
1208
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
1209
+ end
1210
+ end
1211
+
1180
1212
  # ListSqlIntegrationsResponse is the response message for ListSqlIntegrations
1181
1213
  # method.
1182
1214
  class ListSqlIntegrationsResponse
@@ -1465,39 +1497,113 @@ module Google
1465
1497
  end
1466
1498
  end
1467
1499
 
1500
+ # Represents a Managed Service for Microsoft Active Directory Peering.
1501
+ class Peering
1502
+ include Google::Apis::Core::Hashable
1503
+
1504
+ # Required. The full names of the Google Compute Engine [networks](/compute/docs/
1505
+ # networks-and-firewalls#networks) to which the instance is connected. Caller
1506
+ # needs to make sure that CIDR subnets do not overlap between networks, else
1507
+ # peering creation will fail.
1508
+ # Corresponds to the JSON property `authorizedNetwork`
1509
+ # @return [String]
1510
+ attr_accessor :authorized_network
1511
+
1512
+ # Output only. The time the instance was created.
1513
+ # Corresponds to the JSON property `createTime`
1514
+ # @return [String]
1515
+ attr_accessor :create_time
1516
+
1517
+ # Required. Full domain resource path for the Managed AD Domain involved in
1518
+ # peering. The resource path should be in the form: `projects/`project_id`/
1519
+ # locations/global/domains/`domain_name``
1520
+ # Corresponds to the JSON property `domainResource`
1521
+ # @return [String]
1522
+ attr_accessor :domain_resource
1523
+
1524
+ # Optional. Resource labels to represent user-provided metadata.
1525
+ # Corresponds to the JSON property `labels`
1526
+ # @return [Hash<String,String>]
1527
+ attr_accessor :labels
1528
+
1529
+ # Output only. Unique name of the peering in this scope including projects and
1530
+ # location using the form: `projects/`project_id`/locations/global/peerings/`
1531
+ # peering_id``.
1532
+ # Corresponds to the JSON property `name`
1533
+ # @return [String]
1534
+ attr_accessor :name
1535
+
1536
+ # Output only. The current state of this Peering.
1537
+ # Corresponds to the JSON property `state`
1538
+ # @return [String]
1539
+ attr_accessor :state
1540
+
1541
+ # Output only. Additional information about the current status of this peering,
1542
+ # if available.
1543
+ # Corresponds to the JSON property `statusMessage`
1544
+ # @return [String]
1545
+ attr_accessor :status_message
1546
+
1547
+ # Output only. Last update time.
1548
+ # Corresponds to the JSON property `updateTime`
1549
+ # @return [String]
1550
+ attr_accessor :update_time
1551
+
1552
+ def initialize(**args)
1553
+ update!(**args)
1554
+ end
1555
+
1556
+ # Update properties of this object
1557
+ def update!(**args)
1558
+ @authorized_network = args[:authorized_network] if args.key?(:authorized_network)
1559
+ @create_time = args[:create_time] if args.key?(:create_time)
1560
+ @domain_resource = args[:domain_resource] if args.key?(:domain_resource)
1561
+ @labels = args[:labels] if args.key?(:labels)
1562
+ @name = args[:name] if args.key?(:name)
1563
+ @state = args[:state] if args.key?(:state)
1564
+ @status_message = args[:status_message] if args.key?(:status_message)
1565
+ @update_time = args[:update_time] if args.key?(:update_time)
1566
+ end
1567
+ end
1568
+
1468
1569
  # An Identity and Access Management (IAM) policy, which specifies access
1469
1570
  # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
1470
- # A `binding` binds one or more `members` to a single `role`. Members can be
1471
- # user accounts, service accounts, Google groups, and domains (such as G Suite).
1472
- # A `role` is a named list of permissions; each `role` can be an IAM predefined
1473
- # role or a user-created custom role. For some types of Google Cloud resources,
1474
- # a `binding` can also specify a `condition`, which is a logical expression that
1475
- # allows access to a resource only if the expression evaluates to `true`. A
1476
- # condition can add constraints based on attributes of the request, the resource,
1477
- # or both. To learn which resources support conditions in their IAM policies,
1478
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
1479
- # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
1480
- # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
1481
- # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
1482
- # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
1483
- # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
1484
- # title": "expirable access", "description": "Does not grant access after Sep
1485
- # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
1486
- # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
1487
- # members: - user:mike@example.com - group:admins@example.com - domain:google.
1488
- # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
1489
- # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
1490
- # roles/resourcemanager.organizationViewer condition: title: expirable access
1491
- # description: Does not grant access after Sep 2020 expression: request.time <
1492
- # timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a
1493
- # description of IAM and its features, see the [IAM documentation](https://cloud.
1494
- # google.com/iam/docs/).
1571
+ # A `binding` binds one or more `members`, or principals, to a single `role`.
1572
+ # Principals can be user accounts, service accounts, Google groups, and domains (
1573
+ # such as G Suite). A `role` is a named list of permissions; each `role` can be
1574
+ # an IAM predefined role or a user-created custom role. For some types of Google
1575
+ # Cloud resources, a `binding` can also specify a `condition`, which is a
1576
+ # logical expression that allows access to a resource only if the expression
1577
+ # evaluates to `true`. A condition can add constraints based on attributes of
1578
+ # the request, the resource, or both. To learn which resources support
1579
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
1580
+ # google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
1581
+ # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
1582
+ # "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
1583
+ # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
1584
+ # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
1585
+ # ], "condition": ` "title": "expirable access", "description": "Does not grant
1586
+ # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
1587
+ # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
1588
+ # bindings: - members: - user:mike@example.com - group:admins@example.com -
1589
+ # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
1590
+ # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
1591
+ # com role: roles/resourcemanager.organizationViewer condition: title: expirable
1592
+ # access description: Does not grant access after Sep 2020 expression: request.
1593
+ # time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
1594
+ # a description of IAM and its features, see the [IAM documentation](https://
1595
+ # cloud.google.com/iam/docs/).
1495
1596
  class Policy
1496
1597
  include Google::Apis::Core::Hashable
1497
1598
 
1498
- # Associates a list of `members` to a `role`. Optionally, may specify a `
1499
- # condition` that determines how and when the `bindings` are applied. Each of
1500
- # the `bindings` must contain at least one member.
1599
+ # Associates a list of `members`, or principals, with a `role`. Optionally, may
1600
+ # specify a `condition` that determines how and when the `bindings` are applied.
1601
+ # Each of the `bindings` must contain at least one principal. The `bindings` in
1602
+ # a `Policy` can refer to up to 1,500 principals; up to 250 of these principals
1603
+ # can be Google groups. Each occurrence of a principal counts towards these
1604
+ # limits. For example, if the `bindings` grant 50 different roles to `user:alice@
1605
+ # example.com`, and not to any other principal, then you can add another 1,450
1606
+ # principals to the `bindings` in the `Policy`.
1501
1607
  # Corresponds to the JSON property `bindings`
1502
1608
  # @return [Array<Google::Apis::ManagedidentitiesV1::Binding>]
1503
1609
  attr_accessor :bindings
@@ -1647,31 +1753,31 @@ module Google
1647
1753
 
1648
1754
  # An Identity and Access Management (IAM) policy, which specifies access
1649
1755
  # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
1650
- # A `binding` binds one or more `members` to a single `role`. Members can be
1651
- # user accounts, service accounts, Google groups, and domains (such as G Suite).
1652
- # A `role` is a named list of permissions; each `role` can be an IAM predefined
1653
- # role or a user-created custom role. For some types of Google Cloud resources,
1654
- # a `binding` can also specify a `condition`, which is a logical expression that
1655
- # allows access to a resource only if the expression evaluates to `true`. A
1656
- # condition can add constraints based on attributes of the request, the resource,
1657
- # or both. To learn which resources support conditions in their IAM policies,
1658
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
1659
- # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
1660
- # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
1661
- # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
1662
- # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
1663
- # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
1664
- # title": "expirable access", "description": "Does not grant access after Sep
1665
- # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
1666
- # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
1667
- # members: - user:mike@example.com - group:admins@example.com - domain:google.
1668
- # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
1669
- # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
1670
- # roles/resourcemanager.organizationViewer condition: title: expirable access
1671
- # description: Does not grant access after Sep 2020 expression: request.time <
1672
- # timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a
1673
- # description of IAM and its features, see the [IAM documentation](https://cloud.
1674
- # google.com/iam/docs/).
1756
+ # A `binding` binds one or more `members`, or principals, to a single `role`.
1757
+ # Principals can be user accounts, service accounts, Google groups, and domains (
1758
+ # such as G Suite). A `role` is a named list of permissions; each `role` can be
1759
+ # an IAM predefined role or a user-created custom role. For some types of Google
1760
+ # Cloud resources, a `binding` can also specify a `condition`, which is a
1761
+ # logical expression that allows access to a resource only if the expression
1762
+ # evaluates to `true`. A condition can add constraints based on attributes of
1763
+ # the request, the resource, or both. To learn which resources support
1764
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
1765
+ # google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
1766
+ # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
1767
+ # "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
1768
+ # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
1769
+ # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
1770
+ # ], "condition": ` "title": "expirable access", "description": "Does not grant
1771
+ # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
1772
+ # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
1773
+ # bindings: - members: - user:mike@example.com - group:admins@example.com -
1774
+ # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
1775
+ # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
1776
+ # com role: roles/resourcemanager.organizationViewer condition: title: expirable
1777
+ # access description: Does not grant access after Sep 2020 expression: request.
1778
+ # time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
1779
+ # a description of IAM and its features, see the [IAM documentation](https://
1780
+ # cloud.google.com/iam/docs/).
1675
1781
  # Corresponds to the JSON property `policy`
1676
1782
  # @return [Google::Apis::ManagedidentitiesV1::Policy]
1677
1783
  attr_accessor :policy
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ManagedidentitiesV1
18
18
  # Version of the google-apis-managedidentities_v1 gem
19
- GEM_VERSION = "0.13.0"
19
+ GEM_VERSION = "0.17.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210819"
25
+ REVISION = "20211108"
26
26
  end
27
27
  end
28
28
  end
@@ -178,6 +178,12 @@ module Google
178
178
  include Google::Apis::Core::JsonObjectSupport
179
179
  end
180
180
 
181
+ class ListPeeringsResponse
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
181
187
  class ListSqlIntegrationsResponse
182
188
  class Representation < Google::Apis::Core::JsonRepresentation; end
183
189
 
@@ -214,6 +220,12 @@ module Google
214
220
  include Google::Apis::Core::JsonObjectSupport
215
221
  end
216
222
 
223
+ class Peering
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
227
+ end
228
+
217
229
  class Policy
218
230
  class Representation < Google::Apis::Core::JsonRepresentation; end
219
231
 
@@ -582,6 +594,16 @@ module Google
582
594
  end
583
595
  end
584
596
 
597
+ class ListPeeringsResponse
598
+ # @private
599
+ class Representation < Google::Apis::Core::JsonRepresentation
600
+ property :next_page_token, as: 'nextPageToken'
601
+ collection :peerings, as: 'peerings', class: Google::Apis::ManagedidentitiesV1::Peering, decorator: Google::Apis::ManagedidentitiesV1::Peering::Representation
602
+
603
+ collection :unreachable, as: 'unreachable'
604
+ end
605
+ end
606
+
585
607
  class ListSqlIntegrationsResponse
586
608
  # @private
587
609
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -652,6 +674,20 @@ module Google
652
674
  end
653
675
  end
654
676
 
677
+ class Peering
678
+ # @private
679
+ class Representation < Google::Apis::Core::JsonRepresentation
680
+ property :authorized_network, as: 'authorizedNetwork'
681
+ property :create_time, as: 'createTime'
682
+ property :domain_resource, as: 'domainResource'
683
+ hash :labels, as: 'labels'
684
+ property :name, as: 'name'
685
+ property :state, as: 'state'
686
+ property :status_message, as: 'statusMessage'
687
+ property :update_time, as: 'updateTime'
688
+ end
689
+ end
690
+
655
691
  class Policy
656
692
  # @private
657
693
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -302,13 +302,16 @@ module Google
302
302
  # REQUIRED: The resource for which the policy is being requested. See the
303
303
  # operation documentation for the appropriate value for this field.
304
304
  # @param [Fixnum] options_requested_policy_version
305
- # Optional. The policy format version to be returned. Valid values are 0, 1, and
306
- # 3. Requests specifying an invalid value will be rejected. Requests for
307
- # policies with any conditional bindings must specify version 3. Policies
308
- # without any conditional bindings may specify any valid value or leave the
309
- # field unset. To learn which resources support conditions in their IAM policies,
310
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
311
- # resource-policies).
305
+ # Optional. The maximum policy version that will be used to format the policy.
306
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
307
+ # rejected. Requests for policies with any conditional role bindings must
308
+ # specify version 3. Policies with no conditional role bindings may specify any
309
+ # valid value or leave the field unset. The policy in the response might use the
310
+ # policy version that you specified, or it might use a lower policy version. For
311
+ # example, if you specify version 3, but the policy has no conditional role
312
+ # bindings, the response uses version 1. To learn which resources support
313
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
314
+ # google.com/iam/help/conditions/resource-policies).
312
315
  # @param [String] fields
313
316
  # Selector specifying which fields to include in a partial response.
314
317
  # @param [String] quota_user
@@ -903,19 +906,122 @@ module Google
903
906
  execute_or_queue_command(command, &block)
904
907
  end
905
908
 
909
+ # Creates a Peering for Managed AD instance.
910
+ # @param [String] parent
911
+ # Required. Resource project name and location using the form: `projects/`
912
+ # project_id`/locations/global`
913
+ # @param [Google::Apis::ManagedidentitiesV1::Peering] peering_object
914
+ # @param [String] peering_id
915
+ # Required. Peering Id, unique name to identify peering. It should follow the
916
+ # regex format "^(?:[a-z](?:[-a-z0-9]`0,61`[a-z0-9])?)$"
917
+ # @param [String] fields
918
+ # Selector specifying which fields to include in a partial response.
919
+ # @param [String] quota_user
920
+ # Available to use for quota purposes for server-side applications. Can be any
921
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
922
+ # @param [Google::Apis::RequestOptions] options
923
+ # Request-specific options
924
+ #
925
+ # @yield [result, err] Result & error if block supplied
926
+ # @yieldparam result [Google::Apis::ManagedidentitiesV1::Operation] parsed result object
927
+ # @yieldparam err [StandardError] error object if request failed
928
+ #
929
+ # @return [Google::Apis::ManagedidentitiesV1::Operation]
930
+ #
931
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
932
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
933
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
934
+ def create_project_location_global_peering(parent, peering_object = nil, peering_id: nil, fields: nil, quota_user: nil, options: nil, &block)
935
+ command = make_simple_command(:post, 'v1/{+parent}/peerings', options)
936
+ command.request_representation = Google::Apis::ManagedidentitiesV1::Peering::Representation
937
+ command.request_object = peering_object
938
+ command.response_representation = Google::Apis::ManagedidentitiesV1::Operation::Representation
939
+ command.response_class = Google::Apis::ManagedidentitiesV1::Operation
940
+ command.params['parent'] = parent unless parent.nil?
941
+ command.query['peeringId'] = peering_id unless peering_id.nil?
942
+ command.query['fields'] = fields unless fields.nil?
943
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
944
+ execute_or_queue_command(command, &block)
945
+ end
946
+
947
+ # Deletes identified Peering.
948
+ # @param [String] name
949
+ # Required. Peering resource name using the form: `projects/`project_id`/
950
+ # locations/global/peerings/`peering_id``
951
+ # @param [String] fields
952
+ # Selector specifying which fields to include in a partial response.
953
+ # @param [String] quota_user
954
+ # Available to use for quota purposes for server-side applications. Can be any
955
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
956
+ # @param [Google::Apis::RequestOptions] options
957
+ # Request-specific options
958
+ #
959
+ # @yield [result, err] Result & error if block supplied
960
+ # @yieldparam result [Google::Apis::ManagedidentitiesV1::Operation] parsed result object
961
+ # @yieldparam err [StandardError] error object if request failed
962
+ #
963
+ # @return [Google::Apis::ManagedidentitiesV1::Operation]
964
+ #
965
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
966
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
967
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
968
+ def delete_project_location_global_peering(name, fields: nil, quota_user: nil, options: nil, &block)
969
+ command = make_simple_command(:delete, 'v1/{+name}', options)
970
+ command.response_representation = Google::Apis::ManagedidentitiesV1::Operation::Representation
971
+ command.response_class = Google::Apis::ManagedidentitiesV1::Operation
972
+ command.params['name'] = name unless name.nil?
973
+ command.query['fields'] = fields unless fields.nil?
974
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
975
+ execute_or_queue_command(command, &block)
976
+ end
977
+
978
+ # Gets details of a single Peering.
979
+ # @param [String] name
980
+ # Required. Peering resource name using the form: `projects/`project_id`/
981
+ # locations/global/peerings/`peering_id``
982
+ # @param [String] fields
983
+ # Selector specifying which fields to include in a partial response.
984
+ # @param [String] quota_user
985
+ # Available to use for quota purposes for server-side applications. Can be any
986
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
987
+ # @param [Google::Apis::RequestOptions] options
988
+ # Request-specific options
989
+ #
990
+ # @yield [result, err] Result & error if block supplied
991
+ # @yieldparam result [Google::Apis::ManagedidentitiesV1::Peering] parsed result object
992
+ # @yieldparam err [StandardError] error object if request failed
993
+ #
994
+ # @return [Google::Apis::ManagedidentitiesV1::Peering]
995
+ #
996
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
997
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
998
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
999
+ def get_project_location_global_peering(name, fields: nil, quota_user: nil, options: nil, &block)
1000
+ command = make_simple_command(:get, 'v1/{+name}', options)
1001
+ command.response_representation = Google::Apis::ManagedidentitiesV1::Peering::Representation
1002
+ command.response_class = Google::Apis::ManagedidentitiesV1::Peering
1003
+ command.params['name'] = name unless name.nil?
1004
+ command.query['fields'] = fields unless fields.nil?
1005
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1006
+ execute_or_queue_command(command, &block)
1007
+ end
1008
+
906
1009
  # Gets the access control policy for a resource. Returns an empty policy if the
907
1010
  # resource exists and does not have a policy set.
908
1011
  # @param [String] resource
909
1012
  # REQUIRED: The resource for which the policy is being requested. See the
910
1013
  # operation documentation for the appropriate value for this field.
911
1014
  # @param [Fixnum] options_requested_policy_version
912
- # Optional. The policy format version to be returned. Valid values are 0, 1, and
913
- # 3. Requests specifying an invalid value will be rejected. Requests for
914
- # policies with any conditional bindings must specify version 3. Policies
915
- # without any conditional bindings may specify any valid value or leave the
916
- # field unset. To learn which resources support conditions in their IAM policies,
917
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
918
- # resource-policies).
1015
+ # Optional. The maximum policy version that will be used to format the policy.
1016
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
1017
+ # rejected. Requests for policies with any conditional role bindings must
1018
+ # specify version 3. Policies with no conditional role bindings may specify any
1019
+ # valid value or leave the field unset. The policy in the response might use the
1020
+ # policy version that you specified, or it might use a lower policy version. For
1021
+ # example, if you specify version 3, but the policy has no conditional role
1022
+ # bindings, the response uses version 1. To learn which resources support
1023
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
1024
+ # google.com/iam/help/conditions/resource-policies).
919
1025
  # @param [String] fields
920
1026
  # Selector specifying which fields to include in a partial response.
921
1027
  # @param [String] quota_user
@@ -944,6 +1050,96 @@ module Google
944
1050
  execute_or_queue_command(command, &block)
945
1051
  end
946
1052
 
1053
+ # Lists Peerings in a given project.
1054
+ # @param [String] parent
1055
+ # Required. The resource name of the peering location using the form: `projects/`
1056
+ # project_id`/locations/global`
1057
+ # @param [String] filter
1058
+ # Optional. Filter specifying constraints of a list operation. For example, `
1059
+ # peering.authorized_network="projects/myprojectid/global/networks/mynetwork"`.
1060
+ # @param [String] order_by
1061
+ # Optional. Specifies the ordering of results following syntax at https://cloud.
1062
+ # google.com/apis/design/design_patterns#sorting_order.
1063
+ # @param [Fixnum] page_size
1064
+ # Optional. The maximum number of items to return. If not specified, a default
1065
+ # value of 1000 will be used by the service. Regardless of the page_size value,
1066
+ # the response may include a partial list and a caller should only rely on
1067
+ # response's next_page_token to determine if there are more instances left to be
1068
+ # queried.
1069
+ # @param [String] page_token
1070
+ # Optional. The next_page_token value returned from a previous List request, if
1071
+ # any.
1072
+ # @param [String] fields
1073
+ # Selector specifying which fields to include in a partial response.
1074
+ # @param [String] quota_user
1075
+ # Available to use for quota purposes for server-side applications. Can be any
1076
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1077
+ # @param [Google::Apis::RequestOptions] options
1078
+ # Request-specific options
1079
+ #
1080
+ # @yield [result, err] Result & error if block supplied
1081
+ # @yieldparam result [Google::Apis::ManagedidentitiesV1::ListPeeringsResponse] parsed result object
1082
+ # @yieldparam err [StandardError] error object if request failed
1083
+ #
1084
+ # @return [Google::Apis::ManagedidentitiesV1::ListPeeringsResponse]
1085
+ #
1086
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1087
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1088
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1089
+ 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)
1090
+ command = make_simple_command(:get, 'v1/{+parent}/peerings', options)
1091
+ command.response_representation = Google::Apis::ManagedidentitiesV1::ListPeeringsResponse::Representation
1092
+ command.response_class = Google::Apis::ManagedidentitiesV1::ListPeeringsResponse
1093
+ command.params['parent'] = parent unless parent.nil?
1094
+ command.query['filter'] = filter unless filter.nil?
1095
+ command.query['orderBy'] = order_by unless order_by.nil?
1096
+ command.query['pageSize'] = page_size unless page_size.nil?
1097
+ command.query['pageToken'] = page_token unless page_token.nil?
1098
+ command.query['fields'] = fields unless fields.nil?
1099
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1100
+ execute_or_queue_command(command, &block)
1101
+ end
1102
+
1103
+ # Updates the labels for specified Peering.
1104
+ # @param [String] name
1105
+ # Output only. Unique name of the peering in this scope including projects and
1106
+ # location using the form: `projects/`project_id`/locations/global/peerings/`
1107
+ # peering_id``.
1108
+ # @param [Google::Apis::ManagedidentitiesV1::Peering] peering_object
1109
+ # @param [String] update_mask
1110
+ # Required. Mask of fields to update. At least one path must be supplied in this
1111
+ # field. The elements of the repeated paths field may only include these fields
1112
+ # from Peering: * `labels`
1113
+ # @param [String] fields
1114
+ # Selector specifying which fields to include in a partial response.
1115
+ # @param [String] quota_user
1116
+ # Available to use for quota purposes for server-side applications. Can be any
1117
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1118
+ # @param [Google::Apis::RequestOptions] options
1119
+ # Request-specific options
1120
+ #
1121
+ # @yield [result, err] Result & error if block supplied
1122
+ # @yieldparam result [Google::Apis::ManagedidentitiesV1::Operation] parsed result object
1123
+ # @yieldparam err [StandardError] error object if request failed
1124
+ #
1125
+ # @return [Google::Apis::ManagedidentitiesV1::Operation]
1126
+ #
1127
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1128
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1129
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1130
+ def patch_project_location_global_peering(name, peering_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1131
+ command = make_simple_command(:patch, 'v1/{+name}', options)
1132
+ command.request_representation = Google::Apis::ManagedidentitiesV1::Peering::Representation
1133
+ command.request_object = peering_object
1134
+ command.response_representation = Google::Apis::ManagedidentitiesV1::Operation::Representation
1135
+ command.response_class = Google::Apis::ManagedidentitiesV1::Operation
1136
+ command.params['name'] = name unless name.nil?
1137
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1138
+ command.query['fields'] = fields unless fields.nil?
1139
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1140
+ execute_or_queue_command(command, &block)
1141
+ end
1142
+
947
1143
  # Sets the access control policy on the specified resource. Replaces any
948
1144
  # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
949
1145
  # PERMISSION_DENIED` errors.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-managedidentities_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.17.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-08-30 00:00:00.000000000 Z
11
+ date: 2021-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,9 +58,9 @@ licenses:
58
58
  - Apache-2.0
59
59
  metadata:
60
60
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
61
- changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-managedidentities_v1/CHANGELOG.md
62
- documentation_uri: https://googleapis.dev/ruby/google-apis-managedidentities_v1/v0.13.0
63
- source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-managedidentities_v1
61
+ changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-managedidentities_v1/CHANGELOG.md
62
+ documentation_uri: https://googleapis.dev/ruby/google-apis-managedidentities_v1/v0.17.0
63
+ source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-managedidentities_v1
64
64
  post_install_message:
65
65
  rdoc_options: []
66
66
  require_paths: