google-apis-file_v1 0.31.0 → 0.32.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 633bc22816f97ae56ef5841c5692bd355c02075c9df8777eb376482a431cc444
|
4
|
+
data.tar.gz: 1348342aa23b7fb446395df080f807c91fbb10462006da32ad863143ea9b5673
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8108616e7f51bb67a7755bcb7346f993e3bee0c2ecece08dc2ead274755bb96c9f4a73436d1ad2f54163868a4f7e4cb83ad52e2e8f60e5ef66f0383234810da
|
7
|
+
data.tar.gz: 0d53cef3080b39ebfe970d21fd6d87ace7d74d0051d95fa0c148e43a73aa56ce515513630c3dbe2f28ee85c8c9b75586db857717c3098b3f16d8f733df971939
|
data/CHANGELOG.md
CHANGED
@@ -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.
|
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 = "
|
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.
|
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-
|
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.
|
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: []
|