google-apis-file_v1beta1 0.15.0 → 0.16.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: 662df2fcc08f701b24f9b78c8ff6800ae2a63c8843a5c4ddf43b3eb3e8535b17
4
+ data.tar.gz: de573b1e3fbb95a5345c12649c87c8aa450d7cf322015ff90fab837677c4e6df
5
5
  SHA512:
6
- metadata.gz: 9434e65585e6b083a30efdb355cdaa40190b981970d44376f89102afcad9af3c6c1b3c8da1b68f3e68582f85e905c63d80701adb801b61f92968601f81c9cd3b
7
- data.tar.gz: b8db4019cc2c6302b25b88685fa65db61e10a2f9ed7e8ef2cb9f6d14ce3e2966c72700aec14d477f98032215f213328043628a3d087e010be64665d2b1bb25aa
6
+ metadata.gz: d0685e555dabdb84f263296495e2dbd8f49c3002f0e6821f45b0872fc504156bc4d2aca6fb4ed585a4acabdb3a03e1ff976e17c81c9dfe8b78ff194adf476e28
7
+ data.tar.gz: b1dc8ea4fa3e8134d201cff3790122ecdf519a1759893bba150c64815a6322e4f2c1ee9a56a1fc78aeaed703f98354d2e312759ca255373055e7f82636d6801a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-file_v1beta1
2
2
 
3
+ ### v0.16.0 (2021-10-24)
4
+
5
+ * Regenerated from discovery document revision 20211017
6
+ * Unspecified changes
7
+
3
8
  ### v0.15.0 (2021-09-07)
4
9
 
5
10
  * Regenerated from discovery document revision 20210822
data/OVERVIEW.md CHANGED
@@ -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
 
@@ -1294,7 +1294,7 @@ module Google
1294
1294
  end
1295
1295
  end
1296
1296
 
1297
- # RestoreInstanceRequest restores an existing instances's file share from a
1297
+ # RestoreInstanceRequest restores an existing instance's file share from a
1298
1298
  # snapshot or backup.
1299
1299
  class RestoreInstanceRequest
1300
1300
  include Google::Apis::Core::Hashable
@@ -1329,6 +1329,29 @@ module Google
1329
1329
  end
1330
1330
  end
1331
1331
 
1332
+ # RevertInstanceRequest reverts the given instance's file share to the specified
1333
+ # snapshot.
1334
+ class RevertInstanceRequest
1335
+ include Google::Apis::Core::Hashable
1336
+
1337
+ # Required. The snapshot resource ID, in the format 'my-snapshot', where the
1338
+ # specified ID is the `snapshot_id` of the fully qualified name like projects/`
1339
+ # project_id`/locations/`location_id`/instances/`instance_id`/snapshots/`
1340
+ # snapshot_id`
1341
+ # Corresponds to the JSON property `targetSnapshotId`
1342
+ # @return [String]
1343
+ attr_accessor :target_snapshot_id
1344
+
1345
+ def initialize(**args)
1346
+ update!(**args)
1347
+ end
1348
+
1349
+ # Update properties of this object
1350
+ def update!(**args)
1351
+ @target_snapshot_id = args[:target_snapshot_id] if args.key?(:target_snapshot_id)
1352
+ end
1353
+ end
1354
+
1332
1355
  # Configure the schedule.
1333
1356
  class Schedule
1334
1357
  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.16.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210822"
25
+ REVISION = "20211017"
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
 
@@ -553,6 +559,13 @@ module Google
553
559
  end
554
560
  end
555
561
 
562
+ class RevertInstanceRequest
563
+ # @private
564
+ class Representation < Google::Apis::Core::JsonRepresentation
565
+ property :target_snapshot_id, as: 'targetSnapshotId'
566
+ end
567
+ end
568
+
556
569
  class Schedule
557
570
  # @private
558
571
  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.16.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: 2021-10-27 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.16.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: