google-apis-file_v1 0.31.0 → 0.32.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: 07a073f632c9a05fddeff6d8d32c3fc7b482c60f5102d1209de66c593e6e696d
4
- data.tar.gz: fbb07b794c248d75947fcd368e7142f4e441e360023dec74a7d6ab00e72671b0
3
+ metadata.gz: 633bc22816f97ae56ef5841c5692bd355c02075c9df8777eb376482a431cc444
4
+ data.tar.gz: 1348342aa23b7fb446395df080f807c91fbb10462006da32ad863143ea9b5673
5
5
  SHA512:
6
- metadata.gz: c4328b6b3978089ed33d618a80f3f9144e4d04e27932456b83d3b474bd47cf1d181fd6bad9e92154056ee595582352a8d30b37eb4fe1528ad1c39d06caeb9500
7
- data.tar.gz: 0cd8e2ba749af7883050135db4fc4cd6d32a34a0638f3e0322a62e9998bce1051b26bd83cb5d788714a83d9e629149b4fed71dc0339a2195db5228aee7ddec10
6
+ metadata.gz: f8108616e7f51bb67a7755bcb7346f993e3bee0c2ecece08dc2ead274755bb96c9f4a73436d1ad2f54163868a4f7e4cb83ad52e2e8f60e5ef66f0383234810da
7
+ data.tar.gz: 0d53cef3080b39ebfe970d21fd6d87ace7d74d0051d95fa0c148e43a73aa56ce515513630c3dbe2f28ee85c8c9b75586db857717c3098b3f16d8f733df971939
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-file_v1
2
2
 
3
+ ### v0.32.0 (2023-04-16)
4
+
5
+ * Regenerated from discovery document revision 20230405
6
+
3
7
  ### v0.31.0 (2023-03-19)
4
8
 
5
9
  * Regenerated from discovery document revision 20230312
@@ -1385,6 +1385,29 @@ module Google
1385
1385
  end
1386
1386
  end
1387
1387
 
1388
+ # RevertInstanceRequest reverts the given instance's file share to the specified
1389
+ # snapshot.
1390
+ class RevertInstanceRequest
1391
+ include Google::Apis::Core::Hashable
1392
+
1393
+ # Required. The snapshot resource ID, in the format 'my-snapshot', where the
1394
+ # specified ID is the `snapshot_id` of the fully qualified name like projects/`
1395
+ # project_id`/locations/`location_id`/instances/`instance_id`/snapshots/`
1396
+ # snapshot_id`
1397
+ # Corresponds to the JSON property `targetSnapshotId`
1398
+ # @return [String]
1399
+ attr_accessor :target_snapshot_id
1400
+
1401
+ def initialize(**args)
1402
+ update!(**args)
1403
+ end
1404
+
1405
+ # Update properties of this object
1406
+ def update!(**args)
1407
+ @target_snapshot_id = args[:target_snapshot_id] if args.key?(:target_snapshot_id)
1408
+ end
1409
+ end
1410
+
1388
1411
  # Configure the schedule.
1389
1412
  class Schedule
1390
1413
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module FileV1
18
18
  # Version of the google-apis-file_v1 gem
19
- GEM_VERSION = "0.31.0"
19
+ GEM_VERSION = "0.32.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230312"
25
+ REVISION = "20230405"
26
26
  end
27
27
  end
28
28
  end
@@ -202,6 +202,12 @@ module Google
202
202
  include Google::Apis::Core::JsonObjectSupport
203
203
  end
204
204
 
205
+ class RevertInstanceRequest
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
209
+ end
210
+
205
211
  class Schedule
206
212
  class Representation < Google::Apis::Core::JsonRepresentation; end
207
213
 
@@ -569,6 +575,13 @@ module Google
569
575
  end
570
576
  end
571
577
 
578
+ class RevertInstanceRequest
579
+ # @private
580
+ class Representation < Google::Apis::Core::JsonRepresentation
581
+ property :target_snapshot_id, as: 'targetSnapshotId'
582
+ end
583
+ end
584
+
572
585
  class Schedule
573
586
  # @private
574
587
  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::FileV1::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::FileV1::Operation] parsed result object
562
+ # @yieldparam err [StandardError] error object if request failed
563
+ #
564
+ # @return [Google::Apis::FileV1::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, 'v1/{+name}:revert', options)
571
+ command.request_representation = Google::Apis::FileV1::RevertInstanceRequest::Representation
572
+ command.request_object = revert_instance_request_object
573
+ command.response_representation = Google::Apis::FileV1::Operation::Representation
574
+ command.response_class = Google::Apis::FileV1::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_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.31.0
4
+ version: 0.32.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: 2023-03-19 00:00:00.000000000 Z
11
+ date: 2023-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-file_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-file_v1/v0.31.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-file_v1/v0.32.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-file_v1
63
63
  post_install_message:
64
64
  rdoc_options: []