google-apis-file_v1beta1 0.15.0 → 0.18.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: b2775b6000e49c84437d4775cc7f29208442a5ad12c1cb1f0ef145025ad74aa1
4
- data.tar.gz: b496b0b8c4d93de283ee90c2dc481b9e51d873e92d5c4b5f3fbbeb783fc07bcb
3
+ metadata.gz: 680bdeb3699cbbe67245de9b365ff72c15ae86fc24445e5646cf8d111d825094
4
+ data.tar.gz: 4afd0718c826ec9e710b9b6090a88150d7afc9bdec515f0fa73e72236f467352
5
5
  SHA512:
6
- metadata.gz: 9434e65585e6b083a30efdb355cdaa40190b981970d44376f89102afcad9af3c6c1b3c8da1b68f3e68582f85e905c63d80701adb801b61f92968601f81c9cd3b
7
- data.tar.gz: b8db4019cc2c6302b25b88685fa65db61e10a2f9ed7e8ef2cb9f6d14ce3e2966c72700aec14d477f98032215f213328043628a3d087e010be64665d2b1bb25aa
6
+ metadata.gz: 1a017573257ad642d73879340d445128f5bad436e592d402c32128bb0e7f73495b2f577887b57b79e131600be9f4f2bfc5c959bd5b8688eba021ab1c781b317e
7
+ data.tar.gz: 908f3b0b0bd52db1be7d3339667fcfe0439e8d89cf54d6f429efdeddcb11e40f0f7ba9ddbddf7aa8c811b9518917493d9c01499a4d8d7ae2ca9f7e0176974675
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Release history for google-apis-file_v1beta1
2
2
 
3
+ ### v0.18.0 (2022-02-28)
4
+
5
+ * Regenerated from discovery document revision 20220214
6
+ * Regenerated using generator version 0.4.1
7
+
8
+ ### v0.17.0 (2021-12-14)
9
+
10
+ * Unspecified changes
11
+
12
+ ### v0.16.0 (2021-10-24)
13
+
14
+ * Regenerated from discovery document revision 20211017
15
+ * Unspecified changes
16
+
3
17
  ### v0.15.0 (2021-09-07)
4
18
 
5
19
  * Regenerated from discovery document revision 20210822
data/OVERVIEW.md CHANGED
@@ -51,7 +51,7 @@ require "google/apis/file_v1beta1"
51
51
  client = Google::Apis::FileV1beta1::CloudFilestoreService.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 File service in particular.)
67
67
 
@@ -159,10 +159,10 @@ module Google
159
159
  # day and time zone are either specified elsewhere or are insignificant. The
160
160
  # date is relative to the Gregorian Calendar. This can represent one of the
161
161
  # following: * A full date, with non-zero year, month, and day values * A month
162
- # and day value, with a zero year, such as an anniversary * A year on its own,
163
- # with zero month and day values * A year and month value, with a zero day, such
164
- # as a credit card expiration date Related types are google.type.TimeOfDay and `
165
- # google.protobuf.Timestamp`.
162
+ # and day, with a zero year (e.g., an anniversary) * A year on its own, with a
163
+ # zero month and a zero day * A year and month, with a zero day (e.g., a credit
164
+ # card expiration date) Related types: * google.type.TimeOfDay * google.type.
165
+ # DateTime * google.protobuf.Timestamp
166
166
  class Date
167
167
  include Google::Apis::Core::Hashable
168
168
 
@@ -205,10 +205,10 @@ module Google
205
205
  # day and time zone are either specified elsewhere or are insignificant. The
206
206
  # date is relative to the Gregorian Calendar. This can represent one of the
207
207
  # following: * A full date, with non-zero year, month, and day values * A month
208
- # and day value, with a zero year, such as an anniversary * A year on its own,
209
- # with zero month and day values * A year and month value, with a zero day, such
210
- # as a credit card expiration date Related types are google.type.TimeOfDay and `
211
- # google.protobuf.Timestamp`.
208
+ # and day, with a zero year (e.g., an anniversary) * A year on its own, with a
209
+ # zero month and a zero day * A year and month, with a zero day (e.g., a credit
210
+ # card expiration date) Related types: * google.type.TimeOfDay * google.type.
211
+ # DateTime * google.protobuf.Timestamp
212
212
  # Corresponds to the JSON property `endDate`
213
213
  # @return [Google::Apis::FileV1beta1::Date]
214
214
  attr_accessor :end_date
@@ -217,10 +217,10 @@ module Google
217
217
  # day and time zone are either specified elsewhere or are insignificant. The
218
218
  # date is relative to the Gregorian Calendar. This can represent one of the
219
219
  # following: * A full date, with non-zero year, month, and day values * A month
220
- # and day value, with a zero year, such as an anniversary * A year on its own,
221
- # with zero month and day values * A year and month value, with a zero day, such
222
- # as a credit card expiration date Related types are google.type.TimeOfDay and `
223
- # google.protobuf.Timestamp`.
220
+ # and day, with a zero year (e.g., an anniversary) * A year on its own, with a
221
+ # zero month and a zero day * A year and month, with a zero day (e.g., a credit
222
+ # card expiration date) Related types: * google.type.TimeOfDay * google.type.
223
+ # DateTime * google.protobuf.Timestamp
224
224
  # Corresponds to the JSON property `startDate`
225
225
  # @return [Google::Apis::FileV1beta1::Date]
226
226
  attr_accessor :start_date
@@ -319,6 +319,15 @@ module Google
319
319
  # @return [String]
320
320
  attr_accessor :create_time
321
321
 
322
+ # Optional. The instance_type of this instance of format: projects/`project_id`/
323
+ # locations/`location_id`/instanceTypes/`instance_type_id`. Instance Type
324
+ # represents a high-level tier or SKU of the service that this instance belong
325
+ # to. When enabled(eg: Maintenance Rollout), Rollout uses 'instance_type' along
326
+ # with 'software_versions' to determine whether instance needs an update or not.
327
+ # Corresponds to the JSON property `instanceType`
328
+ # @return [String]
329
+ attr_accessor :instance_type
330
+
322
331
  # Optional. Resource labels to represent user provided metadata. Each label is a
323
332
  # key-value pair, where both the key and the value are arbitrary strings
324
333
  # provided by the user.
@@ -354,6 +363,13 @@ module Google
354
363
  # @return [String]
355
364
  attr_accessor :name
356
365
 
366
+ # Optional. notification_parameters are information that service producers may
367
+ # like to include that is not relevant to Rollout. This parameter will only be
368
+ # passed to Gamma and Cloud Logging for notification/logging purpose.
369
+ # Corresponds to the JSON property `notificationParameters`
370
+ # @return [Hash<String,String>]
371
+ attr_accessor :notification_parameters
372
+
357
373
  # Output only. Custom string attributes used primarily to expose producer-
358
374
  # specific information in monitoring dashboards. See go/get-instance-metadata.
359
375
  # Corresponds to the JSON property `producerMetadata`
@@ -411,11 +427,13 @@ module Google
411
427
  def update!(**args)
412
428
  @consumer_defined_name = args[:consumer_defined_name] if args.key?(:consumer_defined_name)
413
429
  @create_time = args[:create_time] if args.key?(:create_time)
430
+ @instance_type = args[:instance_type] if args.key?(:instance_type)
414
431
  @labels = args[:labels] if args.key?(:labels)
415
432
  @maintenance_policy_names = args[:maintenance_policy_names] if args.key?(:maintenance_policy_names)
416
433
  @maintenance_schedules = args[:maintenance_schedules] if args.key?(:maintenance_schedules)
417
434
  @maintenance_settings = args[:maintenance_settings] if args.key?(:maintenance_settings)
418
435
  @name = args[:name] if args.key?(:name)
436
+ @notification_parameters = args[:notification_parameters] if args.key?(:notification_parameters)
419
437
  @producer_metadata = args[:producer_metadata] if args.key?(:producer_metadata)
420
438
  @provisioned_resources = args[:provisioned_resources] if args.key?(:provisioned_resources)
421
439
  @slm_instance_template = args[:slm_instance_template] if args.key?(:slm_instance_template)
@@ -715,6 +733,11 @@ module Google
715
733
  # @return [Hash<String,String>]
716
734
  attr_accessor :labels
717
735
 
736
+ # Output only. The max number of shares allowed.
737
+ # Corresponds to the JSON property `maxShareCount`
738
+ # @return [Fixnum]
739
+ attr_accessor :max_share_count
740
+
718
741
  # Output only. The resource name of the instance, in the format `projects/`
719
742
  # project_id`/locations/`location_id`/instances/`instance_id``.
720
743
  # Corresponds to the JSON property `name`
@@ -766,6 +789,7 @@ module Google
766
789
  @file_shares = args[:file_shares] if args.key?(:file_shares)
767
790
  @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
768
791
  @labels = args[:labels] if args.key?(:labels)
792
+ @max_share_count = args[:max_share_count] if args.key?(:max_share_count)
769
793
  @name = args[:name] if args.key?(:name)
770
794
  @networks = args[:networks] if args.key?(:networks)
771
795
  @satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs)
@@ -1294,7 +1318,7 @@ module Google
1294
1318
  end
1295
1319
  end
1296
1320
 
1297
- # RestoreInstanceRequest restores an existing instances's file share from a
1321
+ # RestoreInstanceRequest restores an existing instance's file share from a
1298
1322
  # snapshot or backup.
1299
1323
  class RestoreInstanceRequest
1300
1324
  include Google::Apis::Core::Hashable
@@ -1329,6 +1353,29 @@ module Google
1329
1353
  end
1330
1354
  end
1331
1355
 
1356
+ # RevertInstanceRequest reverts the given instance's file share to the specified
1357
+ # snapshot.
1358
+ class RevertInstanceRequest
1359
+ include Google::Apis::Core::Hashable
1360
+
1361
+ # Required. The snapshot resource ID, in the format 'my-snapshot', where the
1362
+ # specified ID is the `snapshot_id` of the fully qualified name like projects/`
1363
+ # project_id`/locations/`location_id`/instances/`instance_id`/snapshots/`
1364
+ # snapshot_id`
1365
+ # Corresponds to the JSON property `targetSnapshotId`
1366
+ # @return [String]
1367
+ attr_accessor :target_snapshot_id
1368
+
1369
+ def initialize(**args)
1370
+ update!(**args)
1371
+ end
1372
+
1373
+ # Update properties of this object
1374
+ def update!(**args)
1375
+ @target_snapshot_id = args[:target_snapshot_id] if args.key?(:target_snapshot_id)
1376
+ end
1377
+ end
1378
+
1332
1379
  # Configure the schedule.
1333
1380
  class Schedule
1334
1381
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module FileV1beta1
18
18
  # Version of the google-apis-file_v1beta1 gem
19
- GEM_VERSION = "0.15.0"
19
+ GEM_VERSION = "0.18.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 = "20210822"
25
+ REVISION = "20220214"
26
26
  end
27
27
  end
28
28
  end
@@ -196,6 +196,12 @@ module Google
196
196
  include Google::Apis::Core::JsonObjectSupport
197
197
  end
198
198
 
199
+ class RevertInstanceRequest
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
199
205
  class Schedule
200
206
  class Representation < Google::Apis::Core::JsonRepresentation; end
201
207
 
@@ -308,6 +314,7 @@ module Google
308
314
  class Representation < Google::Apis::Core::JsonRepresentation
309
315
  property :consumer_defined_name, as: 'consumerDefinedName'
310
316
  property :create_time, as: 'createTime'
317
+ property :instance_type, as: 'instanceType'
311
318
  hash :labels, as: 'labels'
312
319
  hash :maintenance_policy_names, as: 'maintenancePolicyNames'
313
320
  hash :maintenance_schedules, as: 'maintenanceSchedules', class: Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSchedule, decorator: Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSchedule::Representation
@@ -315,6 +322,7 @@ module Google
315
322
  property :maintenance_settings, as: 'maintenanceSettings', class: Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings, decorator: Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings::Representation
316
323
 
317
324
  property :name, as: 'name'
325
+ hash :notification_parameters, as: 'notificationParameters'
318
326
  hash :producer_metadata, as: 'producerMetadata'
319
327
  collection :provisioned_resources, as: 'provisionedResources', class: Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1ProvisionedResource, decorator: Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1ProvisionedResource::Representation
320
328
 
@@ -404,6 +412,7 @@ module Google
404
412
 
405
413
  property :kms_key_name, as: 'kmsKeyName'
406
414
  hash :labels, as: 'labels'
415
+ property :max_share_count, :numeric_string => true, as: 'maxShareCount'
407
416
  property :name, as: 'name'
408
417
  collection :networks, as: 'networks', class: Google::Apis::FileV1beta1::NetworkConfig, decorator: Google::Apis::FileV1beta1::NetworkConfig::Representation
409
418
 
@@ -553,6 +562,13 @@ module Google
553
562
  end
554
563
  end
555
564
 
565
+ class RevertInstanceRequest
566
+ # @private
567
+ class Representation < Google::Apis::Core::JsonRepresentation
568
+ property :target_snapshot_id, as: 'targetSnapshotId'
569
+ end
570
+ end
571
+
556
572
  class Schedule
557
573
  # @private
558
574
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -544,6 +544,40 @@ module Google
544
544
  execute_or_queue_command(command, &block)
545
545
  end
546
546
 
547
+ # Revert an existing instance's file system to a specified snapshot.
548
+ # @param [String] name
549
+ # Required. projects/`project_id`/locations/`location_id`/instances/`instance_id`
550
+ # . The resource name of the instance, in the format
551
+ # @param [Google::Apis::FileV1beta1::RevertInstanceRequest] revert_instance_request_object
552
+ # @param [String] fields
553
+ # Selector specifying which fields to include in a partial response.
554
+ # @param [String] quota_user
555
+ # Available to use for quota purposes for server-side applications. Can be any
556
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
557
+ # @param [Google::Apis::RequestOptions] options
558
+ # Request-specific options
559
+ #
560
+ # @yield [result, err] Result & error if block supplied
561
+ # @yieldparam result [Google::Apis::FileV1beta1::Operation] parsed result object
562
+ # @yieldparam err [StandardError] error object if request failed
563
+ #
564
+ # @return [Google::Apis::FileV1beta1::Operation]
565
+ #
566
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
567
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
568
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
569
+ def revert_instance(name, revert_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
570
+ command = make_simple_command(:post, 'v1beta1/{+name}:revert', options)
571
+ command.request_representation = Google::Apis::FileV1beta1::RevertInstanceRequest::Representation
572
+ command.request_object = revert_instance_request_object
573
+ command.response_representation = Google::Apis::FileV1beta1::Operation::Representation
574
+ command.response_class = Google::Apis::FileV1beta1::Operation
575
+ command.params['name'] = name unless name.nil?
576
+ command.query['fields'] = fields unless fields.nil?
577
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
578
+ execute_or_queue_command(command, &block)
579
+ end
580
+
547
581
  # Creates a snapshot.
548
582
  # @param [String] parent
549
583
  # Required. The Filestore Instance to create the snapshots of, in the format `
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-file_v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0
4
+ version: 0.18.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-09-13 00:00:00.000000000 Z
11
+ date: 2022-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -57,9 +57,9 @@ licenses:
57
57
  - Apache-2.0
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
- changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-file_v1beta1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-file_v1beta1/v0.15.0
62
- source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-file_v1beta1
60
+ changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-file_v1beta1/CHANGELOG.md
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-file_v1beta1/v0.18.0
62
+ source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-file_v1beta1
63
63
  post_install_message:
64
64
  rdoc_options: []
65
65
  require_paths:
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.2.17
78
+ rubygems_version: 3.3.5
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Cloud Filestore API V1beta1