google-apis-managedidentities_v1 0.17.0 → 0.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c4aa029e73de5e32f9fd420e30d1ddcd1ee4a03ae8a0dcc76c4372e423fffa04
4
- data.tar.gz: 68fd5dba2768296b7b9676789328c5c83e97a319fc375a0db6a9bb9537d07b68
3
+ metadata.gz: 967d59bbbff547bf5f17a5fa32fd3753641d3ed9b8fd4964644bea212cc331c4
4
+ data.tar.gz: bb97d18108c203ecd39f6a71568e2bfd4d8ca0765571ced03cb639180654a9b5
5
5
  SHA512:
6
- metadata.gz: f27db3bd5b20fb709bdef3b123dcc13fbecb729728d84597820cda23d47e963cce190bbfda5346162f7d491b8956ff6775fbee4b5be407b7667213537b81088b
7
- data.tar.gz: 4a7596085dea953769a7ccdf1ba5fe6181954829cbed610a4fdf4d007ba026a79bc1dcdfe1b900dce899fd54100abc4443f01cacd390c922c9e95410d2182efc
6
+ metadata.gz: bbb796a0cfcd258333a6a6d2102fa1d84eadab3be2c37fd17fdea3c9792024b56739d063917666059504c6c7d85395549d7e450b69471321bcf1e42df256f1c5
7
+ data.tar.gz: 8bd1de76f1f00d52cb25b5acb6ed2c1738b056811a641cec31ef03452d8078a0e1f704d79880869cca8b14b366226b5161636d3dce20ea9f5cb772f3d8b733bb
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Release history for google-apis-managedidentities_v1
2
2
 
3
+ ### v0.20.0 (2022-04-29)
4
+
5
+ * Regenerated from discovery document revision 20220331
6
+
7
+ ### v0.19.0 (2022-02-27)
8
+
9
+ * Regenerated from discovery document revision 20220216
10
+ * Regenerated using generator version 0.4.1
11
+
12
+ ### v0.18.0 (2021-12-14)
13
+
14
+ * Unspecified changes
15
+
3
16
  ### v0.17.0 (2021-11-14)
4
17
 
5
18
  * Regenerated from discovery document revision 20211108
data/OVERVIEW.md CHANGED
@@ -51,7 +51,7 @@ require "google/apis/managedidentities_v1"
51
51
  client = Google::Apis::ManagedidentitiesV1::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.
@@ -44,6 +44,63 @@ module Google
44
44
  end
45
45
  end
46
46
 
47
+ # Represents a Managed Microsoft Identities backup.
48
+ class Backup
49
+ include Google::Apis::Core::Hashable
50
+
51
+ # Output only. The time the backups was created.
52
+ # Corresponds to the JSON property `createTime`
53
+ # @return [String]
54
+ attr_accessor :create_time
55
+
56
+ # Optional. Resource labels to represent user provided metadata.
57
+ # Corresponds to the JSON property `labels`
58
+ # @return [Hash<String,String>]
59
+ attr_accessor :labels
60
+
61
+ # Output only. The unique name of the Backup in the form of `projects/`
62
+ # project_id`/locations/global/domains/`domain_name`/backups/`name``
63
+ # Corresponds to the JSON property `name`
64
+ # @return [String]
65
+ attr_accessor :name
66
+
67
+ # Output only. The current state of the backup.
68
+ # Corresponds to the JSON property `state`
69
+ # @return [String]
70
+ attr_accessor :state
71
+
72
+ # Output only. Additional information about the current status of this backup,
73
+ # if available.
74
+ # Corresponds to the JSON property `statusMessage`
75
+ # @return [String]
76
+ attr_accessor :status_message
77
+
78
+ # Output only. Indicates whether it’s an on-demand backup or scheduled.
79
+ # Corresponds to the JSON property `type`
80
+ # @return [String]
81
+ attr_accessor :type
82
+
83
+ # Output only. Last update time.
84
+ # Corresponds to the JSON property `updateTime`
85
+ # @return [String]
86
+ attr_accessor :update_time
87
+
88
+ def initialize(**args)
89
+ update!(**args)
90
+ end
91
+
92
+ # Update properties of this object
93
+ def update!(**args)
94
+ @create_time = args[:create_time] if args.key?(:create_time)
95
+ @labels = args[:labels] if args.key?(:labels)
96
+ @name = args[:name] if args.key?(:name)
97
+ @state = args[:state] if args.key?(:state)
98
+ @status_message = args[:status_message] if args.key?(:status_message)
99
+ @type = args[:type] if args.key?(:type)
100
+ @update_time = args[:update_time] if args.key?(:update_time)
101
+ end
102
+ end
103
+
47
104
  # Associates `members`, or principals, with a `role`.
48
105
  class Binding
49
106
  include Google::Apis::Core::Hashable
@@ -201,11 +258,11 @@ module Google
201
258
  # Represents a whole or partial calendar date, such as a birthday. The time of
202
259
  # day and time zone are either specified elsewhere or are insignificant. The
203
260
  # date is relative to the Gregorian Calendar. This can represent one of the
204
- # following: * A full date, with non-zero year, month, and day values * A month
205
- # and day value, with a zero year, such as an anniversary * A year on its own,
206
- # with zero month and day values * A year and month value, with a zero day, such
207
- # as a credit card expiration date Related types are google.type.TimeOfDay and `
208
- # google.protobuf.Timestamp`.
261
+ # following: * A full date, with non-zero year, month, and day values. * A month
262
+ # and day, with a zero year (for example, an anniversary). * A year on its own,
263
+ # with a zero month and a zero day. * A year and month, with a zero day (for
264
+ # example, a credit card expiration date). Related types: * google.type.
265
+ # TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
209
266
  class Date
210
267
  include Google::Apis::Core::Hashable
211
268
 
@@ -247,11 +304,11 @@ module Google
247
304
  # Represents a whole or partial calendar date, such as a birthday. The time of
248
305
  # day and time zone are either specified elsewhere or are insignificant. The
249
306
  # date is relative to the Gregorian Calendar. This can represent one of the
250
- # following: * A full date, with non-zero year, month, and day values * A month
251
- # and day value, with a zero year, such as an anniversary * A year on its own,
252
- # with zero month and day values * A year and month value, with a zero day, such
253
- # as a credit card expiration date Related types are google.type.TimeOfDay and `
254
- # google.protobuf.Timestamp`.
307
+ # following: * A full date, with non-zero year, month, and day values. * A month
308
+ # and day, with a zero year (for example, an anniversary). * A year on its own,
309
+ # with a zero month and a zero day. * A year and month, with a zero day (for
310
+ # example, a credit card expiration date). Related types: * google.type.
311
+ # TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
255
312
  # Corresponds to the JSON property `endDate`
256
313
  # @return [Google::Apis::ManagedidentitiesV1::Date]
257
314
  attr_accessor :end_date
@@ -259,11 +316,11 @@ module Google
259
316
  # Represents a whole or partial calendar date, such as a birthday. The time of
260
317
  # day and time zone are either specified elsewhere or are insignificant. The
261
318
  # date is relative to the Gregorian Calendar. This can represent one of the
262
- # following: * A full date, with non-zero year, month, and day values * A month
263
- # and day value, with a zero year, such as an anniversary * A year on its own,
264
- # with zero month and day values * A year and month value, with a zero day, such
265
- # as a credit card expiration date Related types are google.type.TimeOfDay and `
266
- # google.protobuf.Timestamp`.
319
+ # following: * A full date, with non-zero year, month, and day values. * A month
320
+ # and day, with a zero year (for example, an anniversary). * A year on its own,
321
+ # with a zero month and a zero day. * A year and month, with a zero day (for
322
+ # example, a credit card expiration date). Related types: * google.type.
323
+ # TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
267
324
  # Corresponds to the JSON property `startDate`
268
325
  # @return [Google::Apis::ManagedidentitiesV1::Date]
269
326
  attr_accessor :start_date
@@ -421,8 +478,7 @@ module Google
421
478
  # A generic empty message that you can re-use to avoid defining duplicated empty
422
479
  # messages in your APIs. A typical example is to use it as the request or the
423
480
  # response type of an API method. For instance: service Foo ` rpc Bar(google.
424
- # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
425
- # `Empty` is empty JSON object ````.
481
+ # protobuf.Empty) returns (google.protobuf.Empty); `
426
482
  class Empty
427
483
  include Google::Apis::Core::Hashable
428
484
 
@@ -665,6 +721,15 @@ module Google
665
721
  # @return [String]
666
722
  attr_accessor :create_time
667
723
 
724
+ # Optional. The instance_type of this instance of format: projects/`project_id`/
725
+ # locations/`location_id`/instanceTypes/`instance_type_id`. Instance Type
726
+ # represents a high-level tier or SKU of the service that this instance belong
727
+ # to. When enabled(eg: Maintenance Rollout), Rollout uses 'instance_type' along
728
+ # with 'software_versions' to determine whether instance needs an update or not.
729
+ # Corresponds to the JSON property `instanceType`
730
+ # @return [String]
731
+ attr_accessor :instance_type
732
+
668
733
  # Optional. Resource labels to represent user provided metadata. Each label is a
669
734
  # key-value pair, where both the key and the value are arbitrary strings
670
735
  # provided by the user.
@@ -700,6 +765,13 @@ module Google
700
765
  # @return [String]
701
766
  attr_accessor :name
702
767
 
768
+ # Optional. notification_parameter are information that service producers may
769
+ # like to include that is not relevant to Rollout. This parameter will only be
770
+ # passed to Gamma and Cloud Logging for notification/logging purpose.
771
+ # Corresponds to the JSON property `notificationParameters`
772
+ # @return [Hash<String,Google::Apis::ManagedidentitiesV1::GoogleCloudSaasacceleratorManagementProvidersV1NotificationParameter>]
773
+ attr_accessor :notification_parameters
774
+
703
775
  # Output only. Custom string attributes used primarily to expose producer-
704
776
  # specific information in monitoring dashboards. See go/get-instance-metadata.
705
777
  # Corresponds to the JSON property `producerMetadata`
@@ -757,11 +829,13 @@ module Google
757
829
  def update!(**args)
758
830
  @consumer_defined_name = args[:consumer_defined_name] if args.key?(:consumer_defined_name)
759
831
  @create_time = args[:create_time] if args.key?(:create_time)
832
+ @instance_type = args[:instance_type] if args.key?(:instance_type)
760
833
  @labels = args[:labels] if args.key?(:labels)
761
834
  @maintenance_policy_names = args[:maintenance_policy_names] if args.key?(:maintenance_policy_names)
762
835
  @maintenance_schedules = args[:maintenance_schedules] if args.key?(:maintenance_schedules)
763
836
  @maintenance_settings = args[:maintenance_settings] if args.key?(:maintenance_settings)
764
837
  @name = args[:name] if args.key?(:name)
838
+ @notification_parameters = args[:notification_parameters] if args.key?(:notification_parameters)
765
839
  @producer_metadata = args[:producer_metadata] if args.key?(:producer_metadata)
766
840
  @provisioned_resources = args[:provisioned_resources] if args.key?(:provisioned_resources)
767
841
  @slm_instance_template = args[:slm_instance_template] if args.key?(:slm_instance_template)
@@ -900,6 +974,25 @@ module Google
900
974
  end
901
975
  end
902
976
 
977
+ # Contains notification related data.
978
+ class GoogleCloudSaasacceleratorManagementProvidersV1NotificationParameter
979
+ include Google::Apis::Core::Hashable
980
+
981
+ # Optional. Array of string values. e.g. instance's replica information.
982
+ # Corresponds to the JSON property `values`
983
+ # @return [Array<String>]
984
+ attr_accessor :values
985
+
986
+ def initialize(**args)
987
+ update!(**args)
988
+ end
989
+
990
+ # Update properties of this object
991
+ def update!(**args)
992
+ @values = args[:values] if args.key?(:values)
993
+ end
994
+ end
995
+
903
996
  # PerSliSloEligibility is a mapping from an SLI name to eligibility.
904
997
  class GoogleCloudSaasacceleratorManagementProvidersV1PerSliSloEligibility
905
998
  include Google::Apis::Core::Hashable
@@ -1095,6 +1188,38 @@ module Google
1095
1188
  end
1096
1189
  end
1097
1190
 
1191
+ # ListBackupsResponse is the response message for ListBackups method.
1192
+ class ListBackupsResponse
1193
+ include Google::Apis::Core::Hashable
1194
+
1195
+ # A list of Cloud AD backups in the domain.
1196
+ # Corresponds to the JSON property `backups`
1197
+ # @return [Array<Google::Apis::ManagedidentitiesV1::Backup>]
1198
+ attr_accessor :backups
1199
+
1200
+ # Token to retrieve the next page of results, or empty if there are no more
1201
+ # results in the list.
1202
+ # Corresponds to the JSON property `nextPageToken`
1203
+ # @return [String]
1204
+ attr_accessor :next_page_token
1205
+
1206
+ # Locations that could not be reached.
1207
+ # Corresponds to the JSON property `unreachable`
1208
+ # @return [Array<String>]
1209
+ attr_accessor :unreachable
1210
+
1211
+ def initialize(**args)
1212
+ update!(**args)
1213
+ end
1214
+
1215
+ # Update properties of this object
1216
+ def update!(**args)
1217
+ @backups = args[:backups] if args.key?(:backups)
1218
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1219
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
1220
+ end
1221
+ end
1222
+
1098
1223
  # Response message for ListDomains
1099
1224
  class ListDomainsResponse
1100
1225
  include Google::Apis::Core::Hashable
@@ -1714,6 +1839,25 @@ module Google
1714
1839
  end
1715
1840
  end
1716
1841
 
1842
+ # RestoreDomainRequest is the request received by RestoreDomain rpc
1843
+ class RestoreDomainRequest
1844
+ include Google::Apis::Core::Hashable
1845
+
1846
+ # Required. ID of the backup to be restored
1847
+ # Corresponds to the JSON property `backupId`
1848
+ # @return [String]
1849
+ attr_accessor :backup_id
1850
+
1851
+ def initialize(**args)
1852
+ update!(**args)
1853
+ end
1854
+
1855
+ # Update properties of this object
1856
+ def update!(**args)
1857
+ @backup_id = args[:backup_id] if args.key?(:backup_id)
1858
+ end
1859
+ end
1860
+
1717
1861
  # Configure the schedule.
1718
1862
  class Schedule
1719
1863
  include Google::Apis::Core::Hashable
@@ -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.17.0"
19
+ GEM_VERSION = "0.20.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.4.0"
22
+ GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20211108"
25
+ REVISION = "20220331"
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
 
@@ -130,6 +136,12 @@ module Google
130
136
  include Google::Apis::Core::JsonObjectSupport
131
137
  end
132
138
 
139
+ class GoogleCloudSaasacceleratorManagementProvidersV1NotificationParameter
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
133
145
  class GoogleCloudSaasacceleratorManagementProvidersV1PerSliSloEligibility
134
146
  class Representation < Google::Apis::Core::JsonRepresentation; end
135
147
 
@@ -160,6 +172,12 @@ module Google
160
172
  include Google::Apis::Core::JsonObjectSupport
161
173
  end
162
174
 
175
+ class ListBackupsResponse
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
163
181
  class ListDomainsResponse
164
182
  class Representation < Google::Apis::Core::JsonRepresentation; end
165
183
 
@@ -250,6 +268,12 @@ module Google
250
268
  include Google::Apis::Core::JsonObjectSupport
251
269
  end
252
270
 
271
+ class RestoreDomainRequest
272
+ class Representation < Google::Apis::Core::JsonRepresentation; end
273
+
274
+ include Google::Apis::Core::JsonObjectSupport
275
+ end
276
+
253
277
  class Schedule
254
278
  class Representation < Google::Apis::Core::JsonRepresentation; end
255
279
 
@@ -324,6 +348,19 @@ module Google
324
348
  end
325
349
  end
326
350
 
351
+ class Backup
352
+ # @private
353
+ class Representation < Google::Apis::Core::JsonRepresentation
354
+ property :create_time, as: 'createTime'
355
+ hash :labels, as: 'labels'
356
+ property :name, as: 'name'
357
+ property :state, as: 'state'
358
+ property :status_message, as: 'statusMessage'
359
+ property :type, as: 'type'
360
+ property :update_time, as: 'updateTime'
361
+ end
362
+ end
363
+
327
364
  class Binding
328
365
  # @private
329
366
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -467,6 +504,7 @@ module Google
467
504
  class Representation < Google::Apis::Core::JsonRepresentation
468
505
  property :consumer_defined_name, as: 'consumerDefinedName'
469
506
  property :create_time, as: 'createTime'
507
+ property :instance_type, as: 'instanceType'
470
508
  hash :labels, as: 'labels'
471
509
  hash :maintenance_policy_names, as: 'maintenancePolicyNames'
472
510
  hash :maintenance_schedules, as: 'maintenanceSchedules', class: Google::Apis::ManagedidentitiesV1::GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSchedule, decorator: Google::Apis::ManagedidentitiesV1::GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSchedule::Representation
@@ -474,6 +512,8 @@ module Google
474
512
  property :maintenance_settings, as: 'maintenanceSettings', class: Google::Apis::ManagedidentitiesV1::GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings, decorator: Google::Apis::ManagedidentitiesV1::GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings::Representation
475
513
 
476
514
  property :name, as: 'name'
515
+ hash :notification_parameters, as: 'notificationParameters', class: Google::Apis::ManagedidentitiesV1::GoogleCloudSaasacceleratorManagementProvidersV1NotificationParameter, decorator: Google::Apis::ManagedidentitiesV1::GoogleCloudSaasacceleratorManagementProvidersV1NotificationParameter::Representation
516
+
477
517
  hash :producer_metadata, as: 'producerMetadata'
478
518
  collection :provisioned_resources, as: 'provisionedResources', class: Google::Apis::ManagedidentitiesV1::GoogleCloudSaasacceleratorManagementProvidersV1ProvisionedResource, decorator: Google::Apis::ManagedidentitiesV1::GoogleCloudSaasacceleratorManagementProvidersV1ProvisionedResource::Representation
479
519
 
@@ -518,6 +558,13 @@ module Google
518
558
  end
519
559
  end
520
560
 
561
+ class GoogleCloudSaasacceleratorManagementProvidersV1NotificationParameter
562
+ # @private
563
+ class Representation < Google::Apis::Core::JsonRepresentation
564
+ collection :values, as: 'values'
565
+ end
566
+ end
567
+
521
568
  class GoogleCloudSaasacceleratorManagementProvidersV1PerSliSloEligibility
522
569
  # @private
523
570
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -566,6 +613,16 @@ module Google
566
613
  end
567
614
  end
568
615
 
616
+ class ListBackupsResponse
617
+ # @private
618
+ class Representation < Google::Apis::Core::JsonRepresentation
619
+ collection :backups, as: 'backups', class: Google::Apis::ManagedidentitiesV1::Backup, decorator: Google::Apis::ManagedidentitiesV1::Backup::Representation
620
+
621
+ property :next_page_token, as: 'nextPageToken'
622
+ collection :unreachable, as: 'unreachable'
623
+ end
624
+ end
625
+
569
626
  class ListDomainsResponse
570
627
  # @private
571
628
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -719,6 +776,13 @@ module Google
719
776
  end
720
777
  end
721
778
 
779
+ class RestoreDomainRequest
780
+ # @private
781
+ class Representation < Google::Apis::Core::JsonRepresentation
782
+ property :backup_id, as: 'backupId'
783
+ end
784
+ end
785
+
722
786
  class Schedule
723
787
  # @private
724
788
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -85,8 +85,8 @@ module Google
85
85
  # The resource that owns the locations collection, if applicable.
86
86
  # @param [String] filter
87
87
  # A filter to narrow down results to a preferred subset. The filtering language
88
- # accepts strings like "displayName=tokyo", and is documented in more detail in [
89
- # AIP-160](https://google.aip.dev/160).
88
+ # accepts strings like `"displayName=tokyo"`, and is documented in more detail
89
+ # in [AIP-160](https://google.aip.dev/160).
90
90
  # @param [Fixnum] page_size
91
91
  # The maximum number of results to return. If not set, the service selects a
92
92
  # default.
@@ -527,6 +527,39 @@ module Google
527
527
  execute_or_queue_command(command, &block)
528
528
  end
529
529
 
530
+ # RestoreDomain restores domain backup mentioned in the RestoreDomainRequest
531
+ # @param [String] name
532
+ # Required. Resource name for the domain to which the backup belongs
533
+ # @param [Google::Apis::ManagedidentitiesV1::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::ManagedidentitiesV1::Operation] parsed result object
544
+ # @yieldparam err [StandardError] error object if request failed
545
+ #
546
+ # @return [Google::Apis::ManagedidentitiesV1::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, 'v1/{+name}:restore', options)
553
+ command.request_representation = Google::Apis::ManagedidentitiesV1::RestoreDomainRequest::Representation
554
+ command.request_object = restore_domain_request_object
555
+ command.response_representation = Google::Apis::ManagedidentitiesV1::Operation::Representation
556
+ command.response_class = Google::Apis::ManagedidentitiesV1::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
+
530
563
  # Sets the access control policy on the specified resource. Replaces any
531
564
  # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
532
565
  # PERMISSION_DENIED` errors.
@@ -675,6 +708,314 @@ module Google
675
708
  execute_or_queue_command(command, &block)
676
709
  end
677
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::ManagedidentitiesV1::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::ManagedidentitiesV1::Operation] parsed result object
731
+ # @yieldparam err [StandardError] error object if request failed
732
+ #
733
+ # @return [Google::Apis::ManagedidentitiesV1::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, 'v1/{+parent}/backups', options)
740
+ command.request_representation = Google::Apis::ManagedidentitiesV1::Backup::Representation
741
+ command.request_object = backup_object
742
+ command.response_representation = Google::Apis::ManagedidentitiesV1::Operation::Representation
743
+ command.response_class = Google::Apis::ManagedidentitiesV1::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::ManagedidentitiesV1::Operation] parsed result object
765
+ # @yieldparam err [StandardError] error object if request failed
766
+ #
767
+ # @return [Google::Apis::ManagedidentitiesV1::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, 'v1/{+name}', options)
774
+ command.response_representation = Google::Apis::ManagedidentitiesV1::Operation::Representation
775
+ command.response_class = Google::Apis::ManagedidentitiesV1::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::ManagedidentitiesV1::Backup] parsed result object
796
+ # @yieldparam err [StandardError] error object if request failed
797
+ #
798
+ # @return [Google::Apis::ManagedidentitiesV1::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, 'v1/{+name}', options)
805
+ command.response_representation = Google::Apis::ManagedidentitiesV1::Backup::Representation
806
+ command.response_class = Google::Apis::ManagedidentitiesV1::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
+
813
+ # Gets the access control policy for a resource. Returns an empty policy if the
814
+ # resource exists and does not have a policy set.
815
+ # @param [String] resource
816
+ # REQUIRED: The resource for which the policy is being requested. See the
817
+ # operation documentation for the appropriate value for this field.
818
+ # @param [Fixnum] options_requested_policy_version
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).
829
+ # @param [String] fields
830
+ # Selector specifying which fields to include in a partial response.
831
+ # @param [String] quota_user
832
+ # Available to use for quota purposes for server-side applications. Can be any
833
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
834
+ # @param [Google::Apis::RequestOptions] options
835
+ # Request-specific options
836
+ #
837
+ # @yield [result, err] Result & error if block supplied
838
+ # @yieldparam result [Google::Apis::ManagedidentitiesV1::Policy] parsed result object
839
+ # @yieldparam err [StandardError] error object if request failed
840
+ #
841
+ # @return [Google::Apis::ManagedidentitiesV1::Policy]
842
+ #
843
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
844
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
845
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
846
+ def get_project_location_global_domain_backup_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
847
+ command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
848
+ command.response_representation = Google::Apis::ManagedidentitiesV1::Policy::Representation
849
+ command.response_class = Google::Apis::ManagedidentitiesV1::Policy
850
+ command.params['resource'] = resource unless resource.nil?
851
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
852
+ command.query['fields'] = fields unless fields.nil?
853
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
854
+ execute_or_queue_command(command, &block)
855
+ end
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.
863
+ # @param [String] order_by
864
+ # Optional. Specifies the ordering of results following syntax at https://cloud.
865
+ # google.com/apis/design/design_patterns#sorting_order.
866
+ # @param [Fixnum] page_size
867
+ # Optional. The maximum number of items to return. If not specified, a default
868
+ # value of 1000 will be used by the service. Regardless of the page_size value,
869
+ # the response may include a partial list and a caller should only rely on
870
+ # response's next_page_token to determine if there are more instances left to be
871
+ # queried.
872
+ # @param [String] page_token
873
+ # Optional. The `next_page_token` value returned from a previous List request,
874
+ # if any.
875
+ # @param [String] fields
876
+ # Selector specifying which fields to include in a partial response.
877
+ # @param [String] quota_user
878
+ # Available to use for quota purposes for server-side applications. Can be any
879
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
880
+ # @param [Google::Apis::RequestOptions] options
881
+ # Request-specific options
882
+ #
883
+ # @yield [result, err] Result & error if block supplied
884
+ # @yieldparam result [Google::Apis::ManagedidentitiesV1::ListBackupsResponse] parsed result object
885
+ # @yieldparam err [StandardError] error object if request failed
886
+ #
887
+ # @return [Google::Apis::ManagedidentitiesV1::ListBackupsResponse]
888
+ #
889
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
890
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
891
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
892
+ 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)
893
+ command = make_simple_command(:get, 'v1/{+parent}/backups', options)
894
+ command.response_representation = Google::Apis::ManagedidentitiesV1::ListBackupsResponse::Representation
895
+ command.response_class = Google::Apis::ManagedidentitiesV1::ListBackupsResponse
896
+ command.params['parent'] = parent unless parent.nil?
897
+ command.query['filter'] = filter unless filter.nil?
898
+ command.query['orderBy'] = order_by unless order_by.nil?
899
+ command.query['pageSize'] = page_size unless page_size.nil?
900
+ command.query['pageToken'] = page_token unless page_token.nil?
901
+ command.query['fields'] = fields unless fields.nil?
902
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
903
+ execute_or_queue_command(command, &block)
904
+ end
905
+
906
+ # Updates the labels for specified Backup.
907
+ # @param [String] name
908
+ # Output only. The unique name of the Backup in the form of `projects/`
909
+ # project_id`/locations/global/domains/`domain_name`/backups/`name``
910
+ # @param [Google::Apis::ManagedidentitiesV1::Backup] backup_object
911
+ # @param [String] update_mask
912
+ # Required. Mask of fields to update. At least one path must be supplied in this
913
+ # field. The elements of the repeated paths field may only include these fields
914
+ # from Backup: * `labels`
915
+ # @param [String] fields
916
+ # Selector specifying which fields to include in a partial response.
917
+ # @param [String] quota_user
918
+ # Available to use for quota purposes for server-side applications. Can be any
919
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
920
+ # @param [Google::Apis::RequestOptions] options
921
+ # Request-specific options
922
+ #
923
+ # @yield [result, err] Result & error if block supplied
924
+ # @yieldparam result [Google::Apis::ManagedidentitiesV1::Operation] parsed result object
925
+ # @yieldparam err [StandardError] error object if request failed
926
+ #
927
+ # @return [Google::Apis::ManagedidentitiesV1::Operation]
928
+ #
929
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
930
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
931
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
932
+ def patch_project_location_global_domain_backup(name, backup_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
933
+ command = make_simple_command(:patch, 'v1/{+name}', options)
934
+ command.request_representation = Google::Apis::ManagedidentitiesV1::Backup::Representation
935
+ command.request_object = backup_object
936
+ command.response_representation = Google::Apis::ManagedidentitiesV1::Operation::Representation
937
+ command.response_class = Google::Apis::ManagedidentitiesV1::Operation
938
+ command.params['name'] = name unless name.nil?
939
+ command.query['updateMask'] = update_mask unless update_mask.nil?
940
+ command.query['fields'] = fields unless fields.nil?
941
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
942
+ execute_or_queue_command(command, &block)
943
+ end
944
+
945
+ # Sets the access control policy on the specified resource. Replaces any
946
+ # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
947
+ # PERMISSION_DENIED` errors.
948
+ # @param [String] resource
949
+ # REQUIRED: The resource for which the policy is being specified. See the
950
+ # operation documentation for the appropriate value for this field.
951
+ # @param [Google::Apis::ManagedidentitiesV1::SetIamPolicyRequest] set_iam_policy_request_object
952
+ # @param [String] fields
953
+ # Selector specifying which fields to include in a partial response.
954
+ # @param [String] quota_user
955
+ # Available to use for quota purposes for server-side applications. Can be any
956
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
957
+ # @param [Google::Apis::RequestOptions] options
958
+ # Request-specific options
959
+ #
960
+ # @yield [result, err] Result & error if block supplied
961
+ # @yieldparam result [Google::Apis::ManagedidentitiesV1::Policy] parsed result object
962
+ # @yieldparam err [StandardError] error object if request failed
963
+ #
964
+ # @return [Google::Apis::ManagedidentitiesV1::Policy]
965
+ #
966
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
967
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
968
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
969
+ def set_backup_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
970
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
971
+ command.request_representation = Google::Apis::ManagedidentitiesV1::SetIamPolicyRequest::Representation
972
+ command.request_object = set_iam_policy_request_object
973
+ command.response_representation = Google::Apis::ManagedidentitiesV1::Policy::Representation
974
+ command.response_class = Google::Apis::ManagedidentitiesV1::Policy
975
+ command.params['resource'] = resource unless resource.nil?
976
+ command.query['fields'] = fields unless fields.nil?
977
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
978
+ execute_or_queue_command(command, &block)
979
+ end
980
+
981
+ # Returns permissions that a caller has on the specified resource. If the
982
+ # resource does not exist, this will return an empty set of permissions, not a `
983
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
984
+ # permission-aware UIs and command-line tools, not for authorization checking.
985
+ # This operation may "fail open" without warning.
986
+ # @param [String] resource
987
+ # REQUIRED: The resource for which the policy detail is being requested. See the
988
+ # operation documentation for the appropriate value for this field.
989
+ # @param [Google::Apis::ManagedidentitiesV1::TestIamPermissionsRequest] test_iam_permissions_request_object
990
+ # @param [String] fields
991
+ # Selector specifying which fields to include in a partial response.
992
+ # @param [String] quota_user
993
+ # Available to use for quota purposes for server-side applications. Can be any
994
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
995
+ # @param [Google::Apis::RequestOptions] options
996
+ # Request-specific options
997
+ #
998
+ # @yield [result, err] Result & error if block supplied
999
+ # @yieldparam result [Google::Apis::ManagedidentitiesV1::TestIamPermissionsResponse] parsed result object
1000
+ # @yieldparam err [StandardError] error object if request failed
1001
+ #
1002
+ # @return [Google::Apis::ManagedidentitiesV1::TestIamPermissionsResponse]
1003
+ #
1004
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1005
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1006
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1007
+ def test_backup_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1008
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
1009
+ command.request_representation = Google::Apis::ManagedidentitiesV1::TestIamPermissionsRequest::Representation
1010
+ command.request_object = test_iam_permissions_request_object
1011
+ command.response_representation = Google::Apis::ManagedidentitiesV1::TestIamPermissionsResponse::Representation
1012
+ command.response_class = Google::Apis::ManagedidentitiesV1::TestIamPermissionsResponse
1013
+ command.params['resource'] = resource unless resource.nil?
1014
+ command.query['fields'] = fields unless fields.nil?
1015
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1016
+ execute_or_queue_command(command, &block)
1017
+ end
1018
+
678
1019
  # Gets details of a single sqlIntegration.
679
1020
  # @param [String] name
680
1021
  # Required. SQLIntegration resource name using the form: `projects/`project_id`/
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.17.0
4
+ version: 0.20.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-11-15 00:00:00.000000000 Z
11
+ date: 2022-05-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -59,7 +59,7 @@ licenses:
59
59
  metadata:
60
60
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
61
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
62
+ documentation_uri: https://googleapis.dev/ruby/google-apis-managedidentities_v1/v0.20.0
63
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: []
@@ -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.5
80
80
  signing_key:
81
81
  specification_version: 4
82
82
  summary: Simple REST client for Managed Service for Microsoft Active Directory API