google-apis-file_v1 0.31.0 → 0.33.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb18c541983afcbdea5f5f6fe672f95afbbe5c55bf86a6b697b814dba47669fc
|
4
|
+
data.tar.gz: 13419801304fa17bece60406567ce4498b80b8fd41ecbccd3cc3b87a4c053b87
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b3f2724cd84aa86151ba8b257e1f906256a278fcc45043849cc1e63bd4a46556d9139aed9c8184824231a86164309d643e033161f40c5f2a22080123badab5c
|
7
|
+
data.tar.gz: 3bef9e4ee9784957a16abd3c2f99b2916fa733b041dc2dca6c3a1dec511180359fd9302807ef17f55fbaea62ce3318d7f277fc7e102e05cd2c280ea21494fb2c
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-file_v1
|
2
2
|
|
3
|
+
### v0.33.0 (2023-04-30)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20230422
|
6
|
+
|
7
|
+
### v0.32.0 (2023-04-16)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20230405
|
10
|
+
|
3
11
|
### v0.31.0 (2023-03-19)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20230312
|
@@ -986,7 +986,7 @@ module Google
|
|
986
986
|
end
|
987
987
|
end
|
988
988
|
|
989
|
-
# A resource that represents Google Cloud
|
989
|
+
# A resource that represents a Google Cloud location.
|
990
990
|
class Location
|
991
991
|
include Google::Apis::Core::Hashable
|
992
992
|
|
@@ -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.33.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 = "20230422"
|
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.33.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-30 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.33.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: []
|