google-apis-file_v1 0.14.0 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/file_v1/classes.rb +112 -6
- data/lib/google/apis/file_v1/gem_version.rb +2 -2
- data/lib/google/apis/file_v1/representations.rb +36 -0
- data/lib/google/apis/file_v1/service.rb +190 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 787d697cfe4ad63fcce2c2cf3048ea7e26cd7db8913bbfeaedb40182780e4330
|
4
|
+
data.tar.gz: 3b65899fcd3cf5cc49e92ed7adede8d89e64a42523dc6a0c2760f630e787c4a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b20dfb340d55ead4fe5e01072d55c6a167b4dc05c328f365cfae1e52d3ae6c4cbf79031d1ca67e73fa0b539cbd3a1abdd960ab09382b545d9e8d864afdec668
|
7
|
+
data.tar.gz: 4b9a1f702c311ccd520a85ef3306eb7f1acda6e252d3781d3f3158c052aa3f00d731eac8092b3754ee20d3891e629351379c52507f3dc80995c3a5ecb4ca89ed
|
data/CHANGELOG.md
CHANGED
@@ -706,6 +706,11 @@ module Google
|
|
706
706
|
# @return [Array<Google::Apis::FileV1::FileShareConfig>]
|
707
707
|
attr_accessor :file_shares
|
708
708
|
|
709
|
+
# KMS key name used for data encryption.
|
710
|
+
# Corresponds to the JSON property `kmsKeyName`
|
711
|
+
# @return [String]
|
712
|
+
attr_accessor :kms_key_name
|
713
|
+
|
709
714
|
# Resource labels to represent user provided metadata.
|
710
715
|
# Corresponds to the JSON property `labels`
|
711
716
|
# @return [Hash<String,String>]
|
@@ -739,6 +744,12 @@ module Google
|
|
739
744
|
# @return [String]
|
740
745
|
attr_accessor :status_message
|
741
746
|
|
747
|
+
# Output only. field indicates all the reasons the instance is in "SUSPENDED"
|
748
|
+
# state.
|
749
|
+
# Corresponds to the JSON property `suspensionReasons`
|
750
|
+
# @return [Array<String>]
|
751
|
+
attr_accessor :suspension_reasons
|
752
|
+
|
742
753
|
# The service tier of the instance.
|
743
754
|
# Corresponds to the JSON property `tier`
|
744
755
|
# @return [String]
|
@@ -754,12 +765,14 @@ module Google
|
|
754
765
|
@description = args[:description] if args.key?(:description)
|
755
766
|
@etag = args[:etag] if args.key?(:etag)
|
756
767
|
@file_shares = args[:file_shares] if args.key?(:file_shares)
|
768
|
+
@kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
|
757
769
|
@labels = args[:labels] if args.key?(:labels)
|
758
770
|
@name = args[:name] if args.key?(:name)
|
759
771
|
@networks = args[:networks] if args.key?(:networks)
|
760
772
|
@satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs)
|
761
773
|
@state = args[:state] if args.key?(:state)
|
762
774
|
@status_message = args[:status_message] if args.key?(:status_message)
|
775
|
+
@suspension_reasons = args[:suspension_reasons] if args.key?(:suspension_reasons)
|
763
776
|
@tier = args[:tier] if args.key?(:tier)
|
764
777
|
end
|
765
778
|
end
|
@@ -886,6 +899,32 @@ module Google
|
|
886
899
|
end
|
887
900
|
end
|
888
901
|
|
902
|
+
# ListSnapshotsResponse is the result of ListSnapshotsRequest.
|
903
|
+
class ListSnapshotsResponse
|
904
|
+
include Google::Apis::Core::Hashable
|
905
|
+
|
906
|
+
# The token you can use to retrieve the next page of results. Not returned if
|
907
|
+
# there are no more results in the list.
|
908
|
+
# Corresponds to the JSON property `nextPageToken`
|
909
|
+
# @return [String]
|
910
|
+
attr_accessor :next_page_token
|
911
|
+
|
912
|
+
# A list of snapshots in the project for the specified instance.
|
913
|
+
# Corresponds to the JSON property `snapshots`
|
914
|
+
# @return [Array<Google::Apis::FileV1::Snapshot>]
|
915
|
+
attr_accessor :snapshots
|
916
|
+
|
917
|
+
def initialize(**args)
|
918
|
+
update!(**args)
|
919
|
+
end
|
920
|
+
|
921
|
+
# Update properties of this object
|
922
|
+
def update!(**args)
|
923
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
924
|
+
@snapshots = args[:snapshots] if args.key?(:snapshots)
|
925
|
+
end
|
926
|
+
end
|
927
|
+
|
889
928
|
# A resource that represents Google Cloud Platform location.
|
890
929
|
class Location
|
891
930
|
include Google::Apis::Core::Hashable
|
@@ -1024,6 +1063,12 @@ module Google
|
|
1024
1063
|
class NetworkConfig
|
1025
1064
|
include Google::Apis::Core::Hashable
|
1026
1065
|
|
1066
|
+
# The network connect mode of the Filestore instance. If not provided, the
|
1067
|
+
# connect mode defaults to DIRECT_PEERING.
|
1068
|
+
# Corresponds to the JSON property `connectMode`
|
1069
|
+
# @return [String]
|
1070
|
+
attr_accessor :connect_mode
|
1071
|
+
|
1027
1072
|
# Output only. IPv4 addresses in the format ``octet1`.`octet2`.`octet3`.`octet4``
|
1028
1073
|
# or IPv6 addresses in the format ``block1`:`block2`:`block3`:`block4`:`block5`:
|
1029
1074
|
# `block6`:`block7`:`block8``.
|
@@ -1043,12 +1088,19 @@ module Google
|
|
1043
1088
|
# @return [String]
|
1044
1089
|
attr_accessor :network
|
1045
1090
|
|
1046
|
-
#
|
1047
|
-
#
|
1048
|
-
#
|
1049
|
-
#
|
1050
|
-
#
|
1051
|
-
#
|
1091
|
+
# Optional, reserved_ip_range can have one of the following two types of values.
|
1092
|
+
# * CIDR range value when using DIRECT_PEERING connect mode. * [Allocated IP
|
1093
|
+
# address range](https://cloud.google.com/compute/docs/ip-addresses/reserve-
|
1094
|
+
# static-internal-ip-address) when using PRIVATE_SERVICE_ACCESS connect mode.
|
1095
|
+
# When the name of an allocated IP address range is specified, it must be one of
|
1096
|
+
# the ranges associated with the private service access connection. When
|
1097
|
+
# specified as a direct CIDR value, it must be a /29 CIDR block for Basic tier
|
1098
|
+
# or a /24 CIDR block for High Scale or Enterprise tier in one of the [internal
|
1099
|
+
# IP address ranges](https://www.arin.net/reference/research/statistics/
|
1100
|
+
# address_filters/) that identifies the range of IP addresses reserved for this
|
1101
|
+
# instance. For example, 10.0.0.0/29 or 192.168.0.0/24. The range you specify
|
1102
|
+
# can't overlap with either existing subnets or assigned IP address ranges for
|
1103
|
+
# other Cloud Filestore instances in the selected VPC network.
|
1052
1104
|
# Corresponds to the JSON property `reservedIpRange`
|
1053
1105
|
# @return [String]
|
1054
1106
|
attr_accessor :reserved_ip_range
|
@@ -1059,6 +1111,7 @@ module Google
|
|
1059
1111
|
|
1060
1112
|
# Update properties of this object
|
1061
1113
|
def update!(**args)
|
1114
|
+
@connect_mode = args[:connect_mode] if args.key?(:connect_mode)
|
1062
1115
|
@ip_addresses = args[:ip_addresses] if args.key?(:ip_addresses)
|
1063
1116
|
@modes = args[:modes] if args.key?(:modes)
|
1064
1117
|
@network = args[:network] if args.key?(:network)
|
@@ -1303,6 +1356,59 @@ module Google
|
|
1303
1356
|
end
|
1304
1357
|
end
|
1305
1358
|
|
1359
|
+
# A Filestore snapshot.
|
1360
|
+
class Snapshot
|
1361
|
+
include Google::Apis::Core::Hashable
|
1362
|
+
|
1363
|
+
# Output only. The time when the snapshot was created.
|
1364
|
+
# Corresponds to the JSON property `createTime`
|
1365
|
+
# @return [String]
|
1366
|
+
attr_accessor :create_time
|
1367
|
+
|
1368
|
+
# A description of the snapshot with 2048 characters or less. Requests with
|
1369
|
+
# longer descriptions will be rejected.
|
1370
|
+
# Corresponds to the JSON property `description`
|
1371
|
+
# @return [String]
|
1372
|
+
attr_accessor :description
|
1373
|
+
|
1374
|
+
# Output only. The amount of bytes needed to allocate a full copy of the
|
1375
|
+
# snapshot content
|
1376
|
+
# Corresponds to the JSON property `filesystemUsedBytes`
|
1377
|
+
# @return [Fixnum]
|
1378
|
+
attr_accessor :filesystem_used_bytes
|
1379
|
+
|
1380
|
+
# Resource labels to represent user provided metadata.
|
1381
|
+
# Corresponds to the JSON property `labels`
|
1382
|
+
# @return [Hash<String,String>]
|
1383
|
+
attr_accessor :labels
|
1384
|
+
|
1385
|
+
# Output only. The resource name of the snapshot, in the format `projects/`
|
1386
|
+
# project_id`/locations/`location_id`/instances/`instance_id`/snapshots/`
|
1387
|
+
# snapshot_id``.
|
1388
|
+
# Corresponds to the JSON property `name`
|
1389
|
+
# @return [String]
|
1390
|
+
attr_accessor :name
|
1391
|
+
|
1392
|
+
# Output only. The snapshot state.
|
1393
|
+
# Corresponds to the JSON property `state`
|
1394
|
+
# @return [String]
|
1395
|
+
attr_accessor :state
|
1396
|
+
|
1397
|
+
def initialize(**args)
|
1398
|
+
update!(**args)
|
1399
|
+
end
|
1400
|
+
|
1401
|
+
# Update properties of this object
|
1402
|
+
def update!(**args)
|
1403
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
1404
|
+
@description = args[:description] if args.key?(:description)
|
1405
|
+
@filesystem_used_bytes = args[:filesystem_used_bytes] if args.key?(:filesystem_used_bytes)
|
1406
|
+
@labels = args[:labels] if args.key?(:labels)
|
1407
|
+
@name = args[:name] if args.key?(:name)
|
1408
|
+
@state = args[:state] if args.key?(:state)
|
1409
|
+
end
|
1410
|
+
end
|
1411
|
+
|
1306
1412
|
# The `Status` type defines a logical error model that is suitable for different
|
1307
1413
|
# programming environments, including REST APIs and RPC APIs. It is used by [
|
1308
1414
|
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
@@ -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.15.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 = "
|
25
|
+
REVISION = "20211105"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -142,6 +142,12 @@ module Google
|
|
142
142
|
include Google::Apis::Core::JsonObjectSupport
|
143
143
|
end
|
144
144
|
|
145
|
+
class ListSnapshotsResponse
|
146
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
|
+
|
148
|
+
include Google::Apis::Core::JsonObjectSupport
|
149
|
+
end
|
150
|
+
|
145
151
|
class Location
|
146
152
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
153
|
|
@@ -196,6 +202,12 @@ module Google
|
|
196
202
|
include Google::Apis::Core::JsonObjectSupport
|
197
203
|
end
|
198
204
|
|
205
|
+
class Snapshot
|
206
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
207
|
+
|
208
|
+
include Google::Apis::Core::JsonObjectSupport
|
209
|
+
end
|
210
|
+
|
199
211
|
class Status
|
200
212
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
201
213
|
|
@@ -390,6 +402,7 @@ module Google
|
|
390
402
|
property :etag, as: 'etag'
|
391
403
|
collection :file_shares, as: 'fileShares', class: Google::Apis::FileV1::FileShareConfig, decorator: Google::Apis::FileV1::FileShareConfig::Representation
|
392
404
|
|
405
|
+
property :kms_key_name, as: 'kmsKeyName'
|
393
406
|
hash :labels, as: 'labels'
|
394
407
|
property :name, as: 'name'
|
395
408
|
collection :networks, as: 'networks', class: Google::Apis::FileV1::NetworkConfig, decorator: Google::Apis::FileV1::NetworkConfig::Representation
|
@@ -397,6 +410,7 @@ module Google
|
|
397
410
|
property :satisfies_pzs, as: 'satisfiesPzs'
|
398
411
|
property :state, as: 'state'
|
399
412
|
property :status_message, as: 'statusMessage'
|
413
|
+
collection :suspension_reasons, as: 'suspensionReasons'
|
400
414
|
property :tier, as: 'tier'
|
401
415
|
end
|
402
416
|
end
|
@@ -439,6 +453,15 @@ module Google
|
|
439
453
|
end
|
440
454
|
end
|
441
455
|
|
456
|
+
class ListSnapshotsResponse
|
457
|
+
# @private
|
458
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
459
|
+
property :next_page_token, as: 'nextPageToken'
|
460
|
+
collection :snapshots, as: 'snapshots', class: Google::Apis::FileV1::Snapshot, decorator: Google::Apis::FileV1::Snapshot::Representation
|
461
|
+
|
462
|
+
end
|
463
|
+
end
|
464
|
+
|
442
465
|
class Location
|
443
466
|
# @private
|
444
467
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -477,6 +500,7 @@ module Google
|
|
477
500
|
class NetworkConfig
|
478
501
|
# @private
|
479
502
|
class Representation < Google::Apis::Core::JsonRepresentation
|
503
|
+
property :connect_mode, as: 'connectMode'
|
480
504
|
collection :ip_addresses, as: 'ipAddresses'
|
481
505
|
collection :modes, as: 'modes'
|
482
506
|
property :network, as: 'network'
|
@@ -538,6 +562,18 @@ module Google
|
|
538
562
|
end
|
539
563
|
end
|
540
564
|
|
565
|
+
class Snapshot
|
566
|
+
# @private
|
567
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
568
|
+
property :create_time, as: 'createTime'
|
569
|
+
property :description, as: 'description'
|
570
|
+
property :filesystem_used_bytes, :numeric_string => true, as: 'filesystemUsedBytes'
|
571
|
+
hash :labels, as: 'labels'
|
572
|
+
property :name, as: 'name'
|
573
|
+
property :state, as: 'state'
|
574
|
+
end
|
575
|
+
end
|
576
|
+
|
541
577
|
class Status
|
542
578
|
# @private
|
543
579
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -360,6 +360,9 @@ module Google
|
|
360
360
|
# @param [String] name
|
361
361
|
# Required. The instance resource name, in the format `projects/`project_id`/
|
362
362
|
# locations/`location`/instances/`instance_id``
|
363
|
+
# @param [Boolean] force
|
364
|
+
# If set to true, all snapshots of the instance will also be deleted. (Otherwise,
|
365
|
+
# the request will only work if the instance has no snapshots.)
|
363
366
|
# @param [String] fields
|
364
367
|
# Selector specifying which fields to include in a partial response.
|
365
368
|
# @param [String] quota_user
|
@@ -377,11 +380,12 @@ module Google
|
|
377
380
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
378
381
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
379
382
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
380
|
-
def delete_project_location_instance(name, fields: nil, quota_user: nil, options: nil, &block)
|
383
|
+
def delete_project_location_instance(name, force: nil, fields: nil, quota_user: nil, options: nil, &block)
|
381
384
|
command = make_simple_command(:delete, 'v1/{+name}', options)
|
382
385
|
command.response_representation = Google::Apis::FileV1::Operation::Representation
|
383
386
|
command.response_class = Google::Apis::FileV1::Operation
|
384
387
|
command.params['name'] = name unless name.nil?
|
388
|
+
command.query['force'] = force unless force.nil?
|
385
389
|
command.query['fields'] = fields unless fields.nil?
|
386
390
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
387
391
|
execute_or_queue_command(command, &block)
|
@@ -540,6 +544,191 @@ module Google
|
|
540
544
|
execute_or_queue_command(command, &block)
|
541
545
|
end
|
542
546
|
|
547
|
+
# Creates a snapshot.
|
548
|
+
# @param [String] parent
|
549
|
+
# Required. The Filestore Instance to create the snapshots of, in the format `
|
550
|
+
# projects/`project_id`/locations/`location`/instances/`instance_id``
|
551
|
+
# @param [Google::Apis::FileV1::Snapshot] snapshot_object
|
552
|
+
# @param [String] snapshot_id
|
553
|
+
# Required. The ID to use for the snapshot. The ID must be unique within the
|
554
|
+
# specified instance. This value must start with a lowercase letter followed by
|
555
|
+
# up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
|
556
|
+
# @param [String] fields
|
557
|
+
# Selector specifying which fields to include in a partial response.
|
558
|
+
# @param [String] quota_user
|
559
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
560
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
561
|
+
# @param [Google::Apis::RequestOptions] options
|
562
|
+
# Request-specific options
|
563
|
+
#
|
564
|
+
# @yield [result, err] Result & error if block supplied
|
565
|
+
# @yieldparam result [Google::Apis::FileV1::Operation] parsed result object
|
566
|
+
# @yieldparam err [StandardError] error object if request failed
|
567
|
+
#
|
568
|
+
# @return [Google::Apis::FileV1::Operation]
|
569
|
+
#
|
570
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
571
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
572
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
573
|
+
def create_project_location_instance_snapshot(parent, snapshot_object = nil, snapshot_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
574
|
+
command = make_simple_command(:post, 'v1/{+parent}/snapshots', options)
|
575
|
+
command.request_representation = Google::Apis::FileV1::Snapshot::Representation
|
576
|
+
command.request_object = snapshot_object
|
577
|
+
command.response_representation = Google::Apis::FileV1::Operation::Representation
|
578
|
+
command.response_class = Google::Apis::FileV1::Operation
|
579
|
+
command.params['parent'] = parent unless parent.nil?
|
580
|
+
command.query['snapshotId'] = snapshot_id unless snapshot_id.nil?
|
581
|
+
command.query['fields'] = fields unless fields.nil?
|
582
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
583
|
+
execute_or_queue_command(command, &block)
|
584
|
+
end
|
585
|
+
|
586
|
+
# Deletes a snapshot.
|
587
|
+
# @param [String] name
|
588
|
+
# Required. The snapshot resource name, in the format `projects/`project_id`/
|
589
|
+
# locations/`location`/instances/`instance_id`/snapshots/`snapshot_id``
|
590
|
+
# @param [String] fields
|
591
|
+
# Selector specifying which fields to include in a partial response.
|
592
|
+
# @param [String] quota_user
|
593
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
594
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
595
|
+
# @param [Google::Apis::RequestOptions] options
|
596
|
+
# Request-specific options
|
597
|
+
#
|
598
|
+
# @yield [result, err] Result & error if block supplied
|
599
|
+
# @yieldparam result [Google::Apis::FileV1::Operation] parsed result object
|
600
|
+
# @yieldparam err [StandardError] error object if request failed
|
601
|
+
#
|
602
|
+
# @return [Google::Apis::FileV1::Operation]
|
603
|
+
#
|
604
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
605
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
606
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
607
|
+
def delete_project_location_instance_snapshot(name, fields: nil, quota_user: nil, options: nil, &block)
|
608
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
609
|
+
command.response_representation = Google::Apis::FileV1::Operation::Representation
|
610
|
+
command.response_class = Google::Apis::FileV1::Operation
|
611
|
+
command.params['name'] = name unless name.nil?
|
612
|
+
command.query['fields'] = fields unless fields.nil?
|
613
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
614
|
+
execute_or_queue_command(command, &block)
|
615
|
+
end
|
616
|
+
|
617
|
+
# Gets the details of a specific snapshot.
|
618
|
+
# @param [String] name
|
619
|
+
# Required. The snapshot resource name, in the format `projects/`project_id`/
|
620
|
+
# locations/`location`/instances/`instance_id`/snapshots/`snapshot_id``
|
621
|
+
# @param [String] fields
|
622
|
+
# Selector specifying which fields to include in a partial response.
|
623
|
+
# @param [String] quota_user
|
624
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
625
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
626
|
+
# @param [Google::Apis::RequestOptions] options
|
627
|
+
# Request-specific options
|
628
|
+
#
|
629
|
+
# @yield [result, err] Result & error if block supplied
|
630
|
+
# @yieldparam result [Google::Apis::FileV1::Snapshot] parsed result object
|
631
|
+
# @yieldparam err [StandardError] error object if request failed
|
632
|
+
#
|
633
|
+
# @return [Google::Apis::FileV1::Snapshot]
|
634
|
+
#
|
635
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
636
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
637
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
638
|
+
def get_project_location_instance_snapshot(name, fields: nil, quota_user: nil, options: nil, &block)
|
639
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
640
|
+
command.response_representation = Google::Apis::FileV1::Snapshot::Representation
|
641
|
+
command.response_class = Google::Apis::FileV1::Snapshot
|
642
|
+
command.params['name'] = name unless name.nil?
|
643
|
+
command.query['fields'] = fields unless fields.nil?
|
644
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
645
|
+
execute_or_queue_command(command, &block)
|
646
|
+
end
|
647
|
+
|
648
|
+
# Lists all snapshots in a project for either a specified location or for all
|
649
|
+
# locations.
|
650
|
+
# @param [String] parent
|
651
|
+
# Required. The instance for which to retrieve snapshot information, in the
|
652
|
+
# format `projects/`project_id`/locations/`location`/instances/`instance_id``.
|
653
|
+
# @param [String] filter
|
654
|
+
# List filter.
|
655
|
+
# @param [String] order_by
|
656
|
+
# Sort results. Supported values are "name", "name desc" or "" (unsorted).
|
657
|
+
# @param [Fixnum] page_size
|
658
|
+
# The maximum number of items to return.
|
659
|
+
# @param [String] page_token
|
660
|
+
# The next_page_token value to use if there are additional results to retrieve
|
661
|
+
# for this list request.
|
662
|
+
# @param [String] fields
|
663
|
+
# Selector specifying which fields to include in a partial response.
|
664
|
+
# @param [String] quota_user
|
665
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
666
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
667
|
+
# @param [Google::Apis::RequestOptions] options
|
668
|
+
# Request-specific options
|
669
|
+
#
|
670
|
+
# @yield [result, err] Result & error if block supplied
|
671
|
+
# @yieldparam result [Google::Apis::FileV1::ListSnapshotsResponse] parsed result object
|
672
|
+
# @yieldparam err [StandardError] error object if request failed
|
673
|
+
#
|
674
|
+
# @return [Google::Apis::FileV1::ListSnapshotsResponse]
|
675
|
+
#
|
676
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
677
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
678
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
679
|
+
def list_project_location_instance_snapshots(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
680
|
+
command = make_simple_command(:get, 'v1/{+parent}/snapshots', options)
|
681
|
+
command.response_representation = Google::Apis::FileV1::ListSnapshotsResponse::Representation
|
682
|
+
command.response_class = Google::Apis::FileV1::ListSnapshotsResponse
|
683
|
+
command.params['parent'] = parent unless parent.nil?
|
684
|
+
command.query['filter'] = filter unless filter.nil?
|
685
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
686
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
687
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
688
|
+
command.query['fields'] = fields unless fields.nil?
|
689
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
690
|
+
execute_or_queue_command(command, &block)
|
691
|
+
end
|
692
|
+
|
693
|
+
# Updates the settings of a specific snapshot.
|
694
|
+
# @param [String] name
|
695
|
+
# Output only. The resource name of the snapshot, in the format `projects/`
|
696
|
+
# project_id`/locations/`location_id`/instances/`instance_id`/snapshots/`
|
697
|
+
# snapshot_id``.
|
698
|
+
# @param [Google::Apis::FileV1::Snapshot] snapshot_object
|
699
|
+
# @param [String] update_mask
|
700
|
+
# Required. Mask of fields to update. At least one path must be supplied in this
|
701
|
+
# field.
|
702
|
+
# @param [String] fields
|
703
|
+
# Selector specifying which fields to include in a partial response.
|
704
|
+
# @param [String] quota_user
|
705
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
706
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
707
|
+
# @param [Google::Apis::RequestOptions] options
|
708
|
+
# Request-specific options
|
709
|
+
#
|
710
|
+
# @yield [result, err] Result & error if block supplied
|
711
|
+
# @yieldparam result [Google::Apis::FileV1::Operation] parsed result object
|
712
|
+
# @yieldparam err [StandardError] error object if request failed
|
713
|
+
#
|
714
|
+
# @return [Google::Apis::FileV1::Operation]
|
715
|
+
#
|
716
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
717
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
718
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
719
|
+
def patch_project_location_instance_snapshot(name, snapshot_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
720
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
721
|
+
command.request_representation = Google::Apis::FileV1::Snapshot::Representation
|
722
|
+
command.request_object = snapshot_object
|
723
|
+
command.response_representation = Google::Apis::FileV1::Operation::Representation
|
724
|
+
command.response_class = Google::Apis::FileV1::Operation
|
725
|
+
command.params['name'] = name unless name.nil?
|
726
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
727
|
+
command.query['fields'] = fields unless fields.nil?
|
728
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
729
|
+
execute_or_queue_command(command, &block)
|
730
|
+
end
|
731
|
+
|
543
732
|
# Starts asynchronous cancellation on a long-running operation. The server makes
|
544
733
|
# a best effort to cancel the operation, but success is not guaranteed. If the
|
545
734
|
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
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.15.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-
|
11
|
+
date: 2021-11-15 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.15.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: []
|