google-apis-managedidentities_v1beta1 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: 1a9f1b832a4b21eaa14e606863930c3925382bbf541817d3103cb70845324ef1
4
- data.tar.gz: 8e43b9bdea4f0daeacf56342c8b20d8d722b6dd0e523a42cb63f5cd7dc1380ea
3
+ metadata.gz: 9299f9f9fee4039567deddac8c4f8d9ba5ee866422d27ff0be50ce17030f6e03
4
+ data.tar.gz: '082bab907558eda6f4dcb6ef180ac02f8e5f00750b570d36ff2b695aa9579142'
5
5
  SHA512:
6
- metadata.gz: 18830e2a4dd3f0f567a15233945164463a08294bf688d9fac7d887b681485335c3cf0ba0f3930212828d6da098e2d6af584e84b7116e41442f1c980ebb3719f1
7
- data.tar.gz: f54f0456bd114bbe182ecd91a87a7655090288c3675eee0a230be53337edb72ac697dc304327f11b68d73adc0de184c43089b404970cf3b0ebc73b9791c733c9
6
+ metadata.gz: 6071d230dbd6f57931e3726a60aba8eb203a3649b2ecab5b1ec1d90b5b023303e767f2e2ed35beb9b3304abd154da3266181e3e4821917ab58c3acada579d157
7
+ data.tar.gz: 21786028e845641ef3732fb6ec4fceb1035b96922d872c63d77fdf0a1d0b1f17521017f744cb5df68f92d8f086f98563ffa876ced4acced9d43f4957ce46d0dc
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Release history for google-apis-managedidentities_v1beta1
2
2
 
3
+ ### v0.17.0 (2021-12-14)
4
+
5
+ * Unspecified changes
6
+
7
+ ### v0.16.0 (2021-11-14)
8
+
9
+ * Regenerated from discovery document revision 20211108
10
+
11
+ ### v0.15.0 (2021-10-21)
12
+
13
+ * Unspecified changes
14
+
15
+ ### v0.14.0 (2021-10-10)
16
+
17
+ * Regenerated from discovery document revision 20211004
18
+
3
19
  ### v0.13.0 (2021-08-28)
4
20
 
5
21
  * Regenerated from discovery document revision 20210819
data/OVERVIEW.md CHANGED
@@ -51,7 +51,7 @@ require "google/apis/managedidentities_v1beta1"
51
51
  client = Google::Apis::ManagedidentitiesV1beta1::ManagedServiceforMicrosoftActiveDirectoryConsumerAPIService.new
52
52
 
53
53
  # Authenticate calls
54
- client.authentication = # ... use the googleauth gem to create credentials
54
+ client.authorization = # ... use the googleauth gem to create credentials
55
55
  ```
56
56
 
57
57
  See the class reference docs for information on the methods you can call from a client.
@@ -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
 
@@ -42,7 +42,64 @@ module Google
42
42
  end
43
43
  end
44
44
 
45
- # Associates `members` with a `role`.
45
+ # Represents a Managed Microsoft Identities backup.
46
+ class Backup
47
+ include Google::Apis::Core::Hashable
48
+
49
+ # Output only. The time the backups was created.
50
+ # Corresponds to the JSON property `createTime`
51
+ # @return [String]
52
+ attr_accessor :create_time
53
+
54
+ # Optional. Resource labels to represent user provided metadata.
55
+ # Corresponds to the JSON property `labels`
56
+ # @return [Hash<String,String>]
57
+ attr_accessor :labels
58
+
59
+ # Output only. The unique name of the Backup in the form of projects/`project_id`
60
+ # /locations/global/domains/`domain_name`/backups/`name`
61
+ # Corresponds to the JSON property `name`
62
+ # @return [String]
63
+ attr_accessor :name
64
+
65
+ # Output only. The current state of the backup.
66
+ # Corresponds to the JSON property `state`
67
+ # @return [String]
68
+ attr_accessor :state
69
+
70
+ # Output only. Additional information about the current status of this backup,
71
+ # if available.
72
+ # Corresponds to the JSON property `statusMessage`
73
+ # @return [String]
74
+ attr_accessor :status_message
75
+
76
+ # Output only. Indicates whether it’s an on-demand backup or scheduled.
77
+ # Corresponds to the JSON property `type`
78
+ # @return [String]
79
+ attr_accessor :type
80
+
81
+ # Output only. Last update time.
82
+ # Corresponds to the JSON property `updateTime`
83
+ # @return [String]
84
+ attr_accessor :update_time
85
+
86
+ def initialize(**args)
87
+ update!(**args)
88
+ end
89
+
90
+ # Update properties of this object
91
+ def update!(**args)
92
+ @create_time = args[:create_time] if args.key?(:create_time)
93
+ @labels = args[:labels] if args.key?(:labels)
94
+ @name = args[:name] if args.key?(:name)
95
+ @state = args[:state] if args.key?(:state)
96
+ @status_message = args[:status_message] if args.key?(:status_message)
97
+ @type = args[:type] if args.key?(:type)
98
+ @update_time = args[:update_time] if args.key?(:update_time)
99
+ end
100
+ end
101
+
102
+ # Associates `members`, or principals, with a `role`.
46
103
  class Binding
47
104
  include Google::Apis::Core::Hashable
48
105
 
@@ -65,7 +122,7 @@ module Google
65
122
  # @return [Google::Apis::ManagedidentitiesV1beta1::Expr]
66
123
  attr_accessor :condition
67
124
 
68
- # Specifies the identities requesting access for a Cloud Platform resource. `
125
+ # Specifies the principals requesting access for a Cloud Platform resource. `
69
126
  # members` can have the following values: * `allUsers`: A special identifier
70
127
  # that represents anyone who is on the internet; with or without a Google
71
128
  # account. * `allAuthenticatedUsers`: A special identifier that represents
@@ -95,8 +152,8 @@ module Google
95
152
  # @return [Array<String>]
96
153
  attr_accessor :members
97
154
 
98
- # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`
99
- # , or `roles/owner`.
155
+ # Role that is assigned to the list of `members`, or principals. For example, `
156
+ # roles/viewer`, `roles/editor`, or `roles/owner`.
100
157
  # Corresponds to the JSON property `role`
101
158
  # @return [String]
102
159
  attr_accessor :role
@@ -1091,6 +1148,38 @@ module Google
1091
1148
  end
1092
1149
  end
1093
1150
 
1151
+ # ListBackupsResponse is the response message for ListBackups method.
1152
+ class ListBackupsResponse
1153
+ include Google::Apis::Core::Hashable
1154
+
1155
+ # A list of Cloud AD backups in the domain.
1156
+ # Corresponds to the JSON property `backups`
1157
+ # @return [Array<Google::Apis::ManagedidentitiesV1beta1::Backup>]
1158
+ attr_accessor :backups
1159
+
1160
+ # Token to retrieve the next page of results, or empty if there are no more
1161
+ # results in the list.
1162
+ # Corresponds to the JSON property `nextPageToken`
1163
+ # @return [String]
1164
+ attr_accessor :next_page_token
1165
+
1166
+ # Locations that could not be reached.
1167
+ # Corresponds to the JSON property `unreachable`
1168
+ # @return [Array<String>]
1169
+ attr_accessor :unreachable
1170
+
1171
+ def initialize(**args)
1172
+ update!(**args)
1173
+ end
1174
+
1175
+ # Update properties of this object
1176
+ def update!(**args)
1177
+ @backups = args[:backups] if args.key?(:backups)
1178
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1179
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
1180
+ end
1181
+ end
1182
+
1094
1183
  # Response message for ListDomains
1095
1184
  class ListDomainsResponse
1096
1185
  include Google::Apis::Core::Hashable
@@ -1564,37 +1653,42 @@ module Google
1564
1653
 
1565
1654
  # An Identity and Access Management (IAM) policy, which specifies access
1566
1655
  # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
1567
- # A `binding` binds one or more `members` to a single `role`. Members can be
1568
- # user accounts, service accounts, Google groups, and domains (such as G Suite).
1569
- # A `role` is a named list of permissions; each `role` can be an IAM predefined
1570
- # role or a user-created custom role. For some types of Google Cloud resources,
1571
- # a `binding` can also specify a `condition`, which is a logical expression that
1572
- # allows access to a resource only if the expression evaluates to `true`. A
1573
- # condition can add constraints based on attributes of the request, the resource,
1574
- # or both. To learn which resources support conditions in their IAM policies,
1575
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
1576
- # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
1577
- # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
1578
- # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
1579
- # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
1580
- # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
1581
- # title": "expirable access", "description": "Does not grant access after Sep
1582
- # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
1583
- # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
1584
- # members: - user:mike@example.com - group:admins@example.com - domain:google.
1585
- # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
1586
- # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
1587
- # roles/resourcemanager.organizationViewer condition: title: expirable access
1588
- # description: Does not grant access after Sep 2020 expression: request.time <
1589
- # timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a
1590
- # description of IAM and its features, see the [IAM documentation](https://cloud.
1591
- # google.com/iam/docs/).
1656
+ # A `binding` binds one or more `members`, or principals, to a single `role`.
1657
+ # Principals can be user accounts, service accounts, Google groups, and domains (
1658
+ # such as G Suite). A `role` is a named list of permissions; each `role` can be
1659
+ # an IAM predefined role or a user-created custom role. For some types of Google
1660
+ # Cloud resources, a `binding` can also specify a `condition`, which is a
1661
+ # logical expression that allows access to a resource only if the expression
1662
+ # evaluates to `true`. A condition can add constraints based on attributes of
1663
+ # the request, the resource, or both. To learn which resources support
1664
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
1665
+ # google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
1666
+ # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
1667
+ # "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
1668
+ # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
1669
+ # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
1670
+ # ], "condition": ` "title": "expirable access", "description": "Does not grant
1671
+ # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
1672
+ # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
1673
+ # bindings: - members: - user:mike@example.com - group:admins@example.com -
1674
+ # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
1675
+ # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
1676
+ # com role: roles/resourcemanager.organizationViewer condition: title: expirable
1677
+ # access description: Does not grant access after Sep 2020 expression: request.
1678
+ # time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
1679
+ # a description of IAM and its features, see the [IAM documentation](https://
1680
+ # cloud.google.com/iam/docs/).
1592
1681
  class Policy
1593
1682
  include Google::Apis::Core::Hashable
1594
1683
 
1595
- # Associates a list of `members` to a `role`. Optionally, may specify a `
1596
- # condition` that determines how and when the `bindings` are applied. Each of
1597
- # the `bindings` must contain at least one member.
1684
+ # Associates a list of `members`, or principals, with a `role`. Optionally, may
1685
+ # specify a `condition` that determines how and when the `bindings` are applied.
1686
+ # Each of the `bindings` must contain at least one principal. The `bindings` in
1687
+ # a `Policy` can refer to up to 1,500 principals; up to 250 of these principals
1688
+ # can be Google groups. Each occurrence of a principal counts towards these
1689
+ # limits. For example, if the `bindings` grant 50 different roles to `user:alice@
1690
+ # example.com`, and not to any other principal, then you can add another 1,450
1691
+ # principals to the `bindings` in the `Policy`.
1598
1692
  # Corresponds to the JSON property `bindings`
1599
1693
  # @return [Array<Google::Apis::ManagedidentitiesV1beta1::Binding>]
1600
1694
  attr_accessor :bindings
@@ -1705,6 +1799,25 @@ module Google
1705
1799
  end
1706
1800
  end
1707
1801
 
1802
+ # RestoreDomainRequest is the request received by RestoreDomain rpc
1803
+ class RestoreDomainRequest
1804
+ include Google::Apis::Core::Hashable
1805
+
1806
+ # Required. ID of the backup to be restored
1807
+ # Corresponds to the JSON property `backupId`
1808
+ # @return [String]
1809
+ attr_accessor :backup_id
1810
+
1811
+ def initialize(**args)
1812
+ update!(**args)
1813
+ end
1814
+
1815
+ # Update properties of this object
1816
+ def update!(**args)
1817
+ @backup_id = args[:backup_id] if args.key?(:backup_id)
1818
+ end
1819
+ end
1820
+
1708
1821
  # Configure the schedule.
1709
1822
  class Schedule
1710
1823
  include Google::Apis::Core::Hashable
@@ -1744,31 +1857,31 @@ module Google
1744
1857
 
1745
1858
  # An Identity and Access Management (IAM) policy, which specifies access
1746
1859
  # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
1747
- # A `binding` binds one or more `members` to a single `role`. Members can be
1748
- # user accounts, service accounts, Google groups, and domains (such as G Suite).
1749
- # A `role` is a named list of permissions; each `role` can be an IAM predefined
1750
- # role or a user-created custom role. For some types of Google Cloud resources,
1751
- # a `binding` can also specify a `condition`, which is a logical expression that
1752
- # allows access to a resource only if the expression evaluates to `true`. A
1753
- # condition can add constraints based on attributes of the request, the resource,
1754
- # or both. To learn which resources support conditions in their IAM policies,
1755
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
1756
- # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
1757
- # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
1758
- # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
1759
- # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
1760
- # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
1761
- # title": "expirable access", "description": "Does not grant access after Sep
1762
- # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
1763
- # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
1764
- # members: - user:mike@example.com - group:admins@example.com - domain:google.
1765
- # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
1766
- # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
1767
- # roles/resourcemanager.organizationViewer condition: title: expirable access
1768
- # description: Does not grant access after Sep 2020 expression: request.time <
1769
- # timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a
1770
- # description of IAM and its features, see the [IAM documentation](https://cloud.
1771
- # google.com/iam/docs/).
1860
+ # A `binding` binds one or more `members`, or principals, to a single `role`.
1861
+ # Principals can be user accounts, service accounts, Google groups, and domains (
1862
+ # such as G Suite). A `role` is a named list of permissions; each `role` can be
1863
+ # an IAM predefined role or a user-created custom role. For some types of Google
1864
+ # Cloud resources, a `binding` can also specify a `condition`, which is a
1865
+ # logical expression that allows access to a resource only if the expression
1866
+ # evaluates to `true`. A condition can add constraints based on attributes of
1867
+ # the request, the resource, or both. To learn which resources support
1868
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
1869
+ # google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
1870
+ # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
1871
+ # "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
1872
+ # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
1873
+ # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
1874
+ # ], "condition": ` "title": "expirable access", "description": "Does not grant
1875
+ # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
1876
+ # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
1877
+ # bindings: - members: - user:mike@example.com - group:admins@example.com -
1878
+ # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
1879
+ # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
1880
+ # com role: roles/resourcemanager.organizationViewer condition: title: expirable
1881
+ # access description: Does not grant access after Sep 2020 expression: request.
1882
+ # time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
1883
+ # a description of IAM and its features, see the [IAM documentation](https://
1884
+ # cloud.google.com/iam/docs/).
1772
1885
  # Corresponds to the JSON property `policy`
1773
1886
  # @return [Google::Apis::ManagedidentitiesV1beta1::Policy]
1774
1887
  attr_accessor :policy
@@ -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.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
@@ -28,6 +28,12 @@ module Google
28
28
  include Google::Apis::Core::JsonObjectSupport
29
29
  end
30
30
 
31
+ class Backup
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
31
37
  class Binding
32
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
39
 
@@ -160,6 +166,12 @@ module Google
160
166
  include Google::Apis::Core::JsonObjectSupport
161
167
  end
162
168
 
169
+ class ListBackupsResponse
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
163
175
  class ListDomainsResponse
164
176
  class Representation < Google::Apis::Core::JsonRepresentation; end
165
177
 
@@ -250,6 +262,12 @@ module Google
250
262
  include Google::Apis::Core::JsonObjectSupport
251
263
  end
252
264
 
265
+ class RestoreDomainRequest
266
+ class Representation < Google::Apis::Core::JsonRepresentation; end
267
+
268
+ include Google::Apis::Core::JsonObjectSupport
269
+ end
270
+
253
271
  class Schedule
254
272
  class Representation < Google::Apis::Core::JsonRepresentation; end
255
273
 
@@ -324,6 +342,19 @@ module Google
324
342
  end
325
343
  end
326
344
 
345
+ class Backup
346
+ # @private
347
+ class Representation < Google::Apis::Core::JsonRepresentation
348
+ property :create_time, as: 'createTime'
349
+ hash :labels, as: 'labels'
350
+ property :name, as: 'name'
351
+ property :state, as: 'state'
352
+ property :status_message, as: 'statusMessage'
353
+ property :type, as: 'type'
354
+ property :update_time, as: 'updateTime'
355
+ end
356
+ end
357
+
327
358
  class Binding
328
359
  # @private
329
360
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -566,6 +597,16 @@ module Google
566
597
  end
567
598
  end
568
599
 
600
+ class ListBackupsResponse
601
+ # @private
602
+ class Representation < Google::Apis::Core::JsonRepresentation
603
+ collection :backups, as: 'backups', class: Google::Apis::ManagedidentitiesV1beta1::Backup, decorator: Google::Apis::ManagedidentitiesV1beta1::Backup::Representation
604
+
605
+ property :next_page_token, as: 'nextPageToken'
606
+ collection :unreachable, as: 'unreachable'
607
+ end
608
+ end
609
+
569
610
  class ListDomainsResponse
570
611
  # @private
571
612
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -719,6 +760,13 @@ module Google
719
760
  end
720
761
  end
721
762
 
763
+ class RestoreDomainRequest
764
+ # @private
765
+ class Representation < Google::Apis::Core::JsonRepresentation
766
+ property :backup_id, as: 'backupId'
767
+ end
768
+ end
769
+
722
770
  class Schedule
723
771
  # @private
724
772
  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
@@ -524,6 +527,39 @@ module Google
524
527
  execute_or_queue_command(command, &block)
525
528
  end
526
529
 
530
+ # RestoreBackup restores domain mentioned in the RestoreBackupRequest
531
+ # @param [String] name
532
+ # Required. resource name for the domain to which the backup belongs
533
+ # @param [Google::Apis::ManagedidentitiesV1beta1::RestoreDomainRequest] restore_domain_request_object
534
+ # @param [String] fields
535
+ # Selector specifying which fields to include in a partial response.
536
+ # @param [String] quota_user
537
+ # Available to use for quota purposes for server-side applications. Can be any
538
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
539
+ # @param [Google::Apis::RequestOptions] options
540
+ # Request-specific options
541
+ #
542
+ # @yield [result, err] Result & error if block supplied
543
+ # @yieldparam result [Google::Apis::ManagedidentitiesV1beta1::Operation] parsed result object
544
+ # @yieldparam err [StandardError] error object if request failed
545
+ #
546
+ # @return [Google::Apis::ManagedidentitiesV1beta1::Operation]
547
+ #
548
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
549
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
550
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
551
+ def restore_domain(name, restore_domain_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
552
+ command = make_simple_command(:post, 'v1beta1/{+name}:restore', options)
553
+ command.request_representation = Google::Apis::ManagedidentitiesV1beta1::RestoreDomainRequest::Representation
554
+ command.request_object = restore_domain_request_object
555
+ command.response_representation = Google::Apis::ManagedidentitiesV1beta1::Operation::Representation
556
+ command.response_class = Google::Apis::ManagedidentitiesV1beta1::Operation
557
+ command.params['name'] = name unless name.nil?
558
+ command.query['fields'] = fields unless fields.nil?
559
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
560
+ execute_or_queue_command(command, &block)
561
+ end
562
+
527
563
  # Sets the access control policy on the specified resource. Replaces any
528
564
  # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
529
565
  # PERMISSION_DENIED` errors.
@@ -672,19 +708,124 @@ module Google
672
708
  execute_or_queue_command(command, &block)
673
709
  end
674
710
 
711
+ # Creates a Backup for a domain.
712
+ # @param [String] parent
713
+ # Required. The domain resource name using the form: `projects/`project_id`/
714
+ # locations/global/domains/`domain_name``
715
+ # @param [Google::Apis::ManagedidentitiesV1beta1::Backup] backup_object
716
+ # @param [String] backup_id
717
+ # Required. Backup Id, unique name to identify the backups with the following
718
+ # restrictions: * Must be lowercase letters, numbers, and hyphens * Must start
719
+ # with a letter. * Must contain between 1-63 characters. * Must end with a
720
+ # number or a letter. * Must be unique within the domain.
721
+ # @param [String] fields
722
+ # Selector specifying which fields to include in a partial response.
723
+ # @param [String] quota_user
724
+ # Available to use for quota purposes for server-side applications. Can be any
725
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
726
+ # @param [Google::Apis::RequestOptions] options
727
+ # Request-specific options
728
+ #
729
+ # @yield [result, err] Result & error if block supplied
730
+ # @yieldparam result [Google::Apis::ManagedidentitiesV1beta1::Operation] parsed result object
731
+ # @yieldparam err [StandardError] error object if request failed
732
+ #
733
+ # @return [Google::Apis::ManagedidentitiesV1beta1::Operation]
734
+ #
735
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
736
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
737
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
738
+ def create_project_location_global_domain_backup(parent, backup_object = nil, backup_id: nil, fields: nil, quota_user: nil, options: nil, &block)
739
+ command = make_simple_command(:post, 'v1beta1/{+parent}/backups', options)
740
+ command.request_representation = Google::Apis::ManagedidentitiesV1beta1::Backup::Representation
741
+ command.request_object = backup_object
742
+ command.response_representation = Google::Apis::ManagedidentitiesV1beta1::Operation::Representation
743
+ command.response_class = Google::Apis::ManagedidentitiesV1beta1::Operation
744
+ command.params['parent'] = parent unless parent.nil?
745
+ command.query['backupId'] = backup_id unless backup_id.nil?
746
+ command.query['fields'] = fields unless fields.nil?
747
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
748
+ execute_or_queue_command(command, &block)
749
+ end
750
+
751
+ # Deletes identified Backup.
752
+ # @param [String] name
753
+ # Required. The backup resource name using the form: `projects/`project_id`/
754
+ # locations/global/domains/`domain_name`/backups/`backup_id``
755
+ # @param [String] fields
756
+ # Selector specifying which fields to include in a partial response.
757
+ # @param [String] quota_user
758
+ # Available to use for quota purposes for server-side applications. Can be any
759
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
760
+ # @param [Google::Apis::RequestOptions] options
761
+ # Request-specific options
762
+ #
763
+ # @yield [result, err] Result & error if block supplied
764
+ # @yieldparam result [Google::Apis::ManagedidentitiesV1beta1::Operation] parsed result object
765
+ # @yieldparam err [StandardError] error object if request failed
766
+ #
767
+ # @return [Google::Apis::ManagedidentitiesV1beta1::Operation]
768
+ #
769
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
770
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
771
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
772
+ def delete_project_location_global_domain_backup(name, fields: nil, quota_user: nil, options: nil, &block)
773
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
774
+ command.response_representation = Google::Apis::ManagedidentitiesV1beta1::Operation::Representation
775
+ command.response_class = Google::Apis::ManagedidentitiesV1beta1::Operation
776
+ command.params['name'] = name unless name.nil?
777
+ command.query['fields'] = fields unless fields.nil?
778
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
779
+ execute_or_queue_command(command, &block)
780
+ end
781
+
782
+ # Gets details of a single Backup.
783
+ # @param [String] name
784
+ # Required. The backup resource name using the form: `projects/`project_id`/
785
+ # locations/global/domains/`domain_name`/backups/`backup_id``
786
+ # @param [String] fields
787
+ # Selector specifying which fields to include in a partial response.
788
+ # @param [String] quota_user
789
+ # Available to use for quota purposes for server-side applications. Can be any
790
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
791
+ # @param [Google::Apis::RequestOptions] options
792
+ # Request-specific options
793
+ #
794
+ # @yield [result, err] Result & error if block supplied
795
+ # @yieldparam result [Google::Apis::ManagedidentitiesV1beta1::Backup] parsed result object
796
+ # @yieldparam err [StandardError] error object if request failed
797
+ #
798
+ # @return [Google::Apis::ManagedidentitiesV1beta1::Backup]
799
+ #
800
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
801
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
802
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
803
+ def get_project_location_global_domain_backup(name, fields: nil, quota_user: nil, options: nil, &block)
804
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
805
+ command.response_representation = Google::Apis::ManagedidentitiesV1beta1::Backup::Representation
806
+ command.response_class = Google::Apis::ManagedidentitiesV1beta1::Backup
807
+ command.params['name'] = name unless name.nil?
808
+ command.query['fields'] = fields unless fields.nil?
809
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
810
+ execute_or_queue_command(command, &block)
811
+ end
812
+
675
813
  # Gets the access control policy for a resource. Returns an empty policy if the
676
814
  # resource exists and does not have a policy set.
677
815
  # @param [String] resource
678
816
  # REQUIRED: The resource for which the policy is being requested. See the
679
817
  # operation documentation for the appropriate value for this field.
680
818
  # @param [Fixnum] options_requested_policy_version
681
- # Optional. The policy format version to be returned. Valid values are 0, 1, and
682
- # 3. Requests specifying an invalid value will be rejected. Requests for
683
- # policies with any conditional bindings must specify version 3. Policies
684
- # without any conditional bindings may specify any valid value or leave the
685
- # field unset. To learn which resources support conditions in their IAM policies,
686
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
687
- # resource-policies).
819
+ # Optional. The maximum policy version that will be used to format the policy.
820
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
821
+ # rejected. Requests for policies with any conditional role bindings must
822
+ # specify version 3. Policies with no conditional role bindings may specify any
823
+ # valid value or leave the field unset. The policy in the response might use the
824
+ # policy version that you specified, or it might use a lower policy version. For
825
+ # example, if you specify version 3, but the policy has no conditional role
826
+ # bindings, the response uses version 1. To learn which resources support
827
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
828
+ # google.com/iam/help/conditions/resource-policies).
688
829
  # @param [String] fields
689
830
  # Selector specifying which fields to include in a partial response.
690
831
  # @param [String] quota_user
@@ -713,6 +854,95 @@ module Google
713
854
  execute_or_queue_command(command, &block)
714
855
  end
715
856
 
857
+ # Lists Backup in a given project.
858
+ # @param [String] parent
859
+ # Required. The domain resource name using the form: `projects/`project_id`/
860
+ # locations/global/domains/`domain_name``
861
+ # @param [String] filter
862
+ # Optional. Filter specifying constraints of a list operation. For example, `
863
+ # backup.location ="us-west1-a"`.
864
+ # @param [String] order_by
865
+ # Optional. Specifies the ordering of results following syntax at https://cloud.
866
+ # google.com/apis/design/design_patterns#sorting_order.
867
+ # @param [Fixnum] page_size
868
+ # Optional. The maximum number of items to return. If not specified, a default
869
+ # value of 1000 will be used by the service. Regardless of the page_size value,
870
+ # the response may include a partial list and a caller should only rely on
871
+ # response's next_page_token to determine if there are more instances left to be
872
+ # queried.
873
+ # @param [String] page_token
874
+ # Optional. The next_page_token value returned from a previous List request, if
875
+ # any.
876
+ # @param [String] fields
877
+ # Selector specifying which fields to include in a partial response.
878
+ # @param [String] quota_user
879
+ # Available to use for quota purposes for server-side applications. Can be any
880
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
881
+ # @param [Google::Apis::RequestOptions] options
882
+ # Request-specific options
883
+ #
884
+ # @yield [result, err] Result & error if block supplied
885
+ # @yieldparam result [Google::Apis::ManagedidentitiesV1beta1::ListBackupsResponse] parsed result object
886
+ # @yieldparam err [StandardError] error object if request failed
887
+ #
888
+ # @return [Google::Apis::ManagedidentitiesV1beta1::ListBackupsResponse]
889
+ #
890
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
891
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
892
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
893
+ def list_project_location_global_domain_backups(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
894
+ command = make_simple_command(:get, 'v1beta1/{+parent}/backups', options)
895
+ command.response_representation = Google::Apis::ManagedidentitiesV1beta1::ListBackupsResponse::Representation
896
+ command.response_class = Google::Apis::ManagedidentitiesV1beta1::ListBackupsResponse
897
+ command.params['parent'] = parent unless parent.nil?
898
+ command.query['filter'] = filter unless filter.nil?
899
+ command.query['orderBy'] = order_by unless order_by.nil?
900
+ command.query['pageSize'] = page_size unless page_size.nil?
901
+ command.query['pageToken'] = page_token unless page_token.nil?
902
+ command.query['fields'] = fields unless fields.nil?
903
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
904
+ execute_or_queue_command(command, &block)
905
+ end
906
+
907
+ # Updates the labels for specified Backup.
908
+ # @param [String] name
909
+ # Output only. The unique name of the Backup in the form of projects/`project_id`
910
+ # /locations/global/domains/`domain_name`/backups/`name`
911
+ # @param [Google::Apis::ManagedidentitiesV1beta1::Backup] backup_object
912
+ # @param [String] update_mask
913
+ # Required. Mask of fields to update. At least one path must be supplied in this
914
+ # field. The elements of the repeated paths field may only include these fields
915
+ # from Backup: * `labels`
916
+ # @param [String] fields
917
+ # Selector specifying which fields to include in a partial response.
918
+ # @param [String] quota_user
919
+ # Available to use for quota purposes for server-side applications. Can be any
920
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
921
+ # @param [Google::Apis::RequestOptions] options
922
+ # Request-specific options
923
+ #
924
+ # @yield [result, err] Result & error if block supplied
925
+ # @yieldparam result [Google::Apis::ManagedidentitiesV1beta1::Operation] parsed result object
926
+ # @yieldparam err [StandardError] error object if request failed
927
+ #
928
+ # @return [Google::Apis::ManagedidentitiesV1beta1::Operation]
929
+ #
930
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
931
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
932
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
933
+ def patch_project_location_global_domain_backup(name, backup_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
934
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
935
+ command.request_representation = Google::Apis::ManagedidentitiesV1beta1::Backup::Representation
936
+ command.request_object = backup_object
937
+ command.response_representation = Google::Apis::ManagedidentitiesV1beta1::Operation::Representation
938
+ command.response_class = Google::Apis::ManagedidentitiesV1beta1::Operation
939
+ command.params['name'] = name unless name.nil?
940
+ command.query['updateMask'] = update_mask unless update_mask.nil?
941
+ command.query['fields'] = fields unless fields.nil?
942
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
943
+ execute_or_queue_command(command, &block)
944
+ end
945
+
716
946
  # Sets the access control policy on the specified resource. Replaces any
717
947
  # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
718
948
  # PERMISSION_DENIED` errors.
@@ -1089,7 +1319,7 @@ module Google
1089
1319
  # Gets details of a single Peering.
1090
1320
  # @param [String] name
1091
1321
  # Required. Peering resource name using the form: `projects/`project_id`/
1092
- # locations/global/domains/`peering_id``
1322
+ # locations/global/peerings/`peering_id``
1093
1323
  # @param [String] fields
1094
1324
  # Selector specifying which fields to include in a partial response.
1095
1325
  # @param [String] quota_user
@@ -1123,13 +1353,16 @@ module Google
1123
1353
  # REQUIRED: The resource for which the policy is being requested. See the
1124
1354
  # operation documentation for the appropriate value for this field.
1125
1355
  # @param [Fixnum] options_requested_policy_version
1126
- # Optional. The policy format version to be returned. Valid values are 0, 1, and
1127
- # 3. Requests specifying an invalid value will be rejected. Requests for
1128
- # policies with any conditional bindings must specify version 3. Policies
1129
- # without any conditional bindings may specify any valid value or leave the
1130
- # field unset. To learn which resources support conditions in their IAM policies,
1131
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
1132
- # resource-policies).
1356
+ # Optional. The maximum policy version that will be used to format the policy.
1357
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
1358
+ # rejected. Requests for policies with any conditional role bindings must
1359
+ # specify version 3. Policies with no conditional role bindings may specify any
1360
+ # valid value or leave the field unset. The policy in the response might use the
1361
+ # policy version that you specified, or it might use a lower policy version. For
1362
+ # example, if you specify version 3, but the policy has no conditional role
1363
+ # bindings, the response uses version 1. To learn which resources support
1364
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
1365
+ # google.com/iam/help/conditions/resource-policies).
1133
1366
  # @param [String] fields
1134
1367
  # Selector specifying which fields to include in a partial response.
1135
1368
  # @param [String] quota_user
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.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: 2022-01-10 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_v1beta1/CHANGELOG.md
62
- documentation_uri: https://googleapis.dev/ruby/google-apis-managedidentities_v1beta1/v0.13.0
63
- source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-managedidentities_v1beta1
61
+ changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-managedidentities_v1beta1/CHANGELOG.md
62
+ documentation_uri: https://googleapis.dev/ruby/google-apis-managedidentities_v1beta1/v0.17.0
63
+ source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-managedidentities_v1beta1
64
64
  post_install_message:
65
65
  rdoc_options: []
66
66
  require_paths:
@@ -76,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
76
76
  - !ruby/object:Gem::Version
77
77
  version: '0'
78
78
  requirements: []
79
- rubygems_version: 3.2.17
79
+ rubygems_version: 3.3.4
80
80
  signing_key:
81
81
  specification_version: 4
82
82
  summary: Simple REST client for Managed Service for Microsoft Active Directory API