google-apis-file_v1beta1 0.8.0 → 0.12.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: 14b8d76b146fa9a94489c5be8779122312d35aa934364b91fac9f12746a6eeb0
|
4
|
+
data.tar.gz: 95c4dfbb7cc37790262e7405a771f9ad9c4a127778930a8ac53b77d9751a1d31
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 66feae34f6b44b9541912a6e454101c47a6d7aef2c4fb3f41f8a79af044e8c832d5b42e7c385fd071bdd24d40de256d8113ffcbed70cd3b7e291728ff97467bb
|
7
|
+
data.tar.gz: d81cf7d3ae3ad1d200c6a2d043d5bb5f368bbac0c44f0602741787ef3dda3f7feeb154720d1f55b677778f32d7742baa8ff44c05eadd1b3b9a3ef0ec25b89b6b
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# Release history for google-apis-file_v1beta1
|
2
2
|
|
3
|
+
### v0.12.0 (2021-08-04)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20210727
|
6
|
+
|
7
|
+
### v0.11.0 (2021-07-29)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20210721
|
10
|
+
|
11
|
+
### v0.10.0 (2021-07-13)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20210708
|
14
|
+
|
15
|
+
### v0.9.0 (2021-06-29)
|
16
|
+
|
17
|
+
* Regenerated using generator version 0.4.0
|
18
|
+
|
3
19
|
### v0.8.0 (2021-06-24)
|
4
20
|
|
5
21
|
* Regenerated from discovery document revision 20210524
|
@@ -271,7 +271,8 @@ module Google
|
|
271
271
|
# @return [Fixnum]
|
272
272
|
attr_accessor :capacity_gb
|
273
273
|
|
274
|
-
# The name of the file share (must be
|
274
|
+
# The name of the file share (must be 32 characters or less for Enterprise and
|
275
|
+
# High Scale SSD tiers and 16 characters or less for all other tiers).
|
275
276
|
# Corresponds to the JSON property `name`
|
276
277
|
# @return [String]
|
277
278
|
attr_accessor :name
|
@@ -543,6 +544,11 @@ module Google
|
|
543
544
|
# @return [String]
|
544
545
|
attr_accessor :node_id
|
545
546
|
|
547
|
+
# PerSliSloEligibility is a mapping from an SLI name to eligibility.
|
548
|
+
# Corresponds to the JSON property `perSliEligibility`
|
549
|
+
# @return [Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1PerSliSloEligibility]
|
550
|
+
attr_accessor :per_sli_eligibility
|
551
|
+
|
546
552
|
def initialize(**args)
|
547
553
|
update!(**args)
|
548
554
|
end
|
@@ -552,6 +558,7 @@ module Google
|
|
552
558
|
@exclusions = args[:exclusions] if args.key?(:exclusions)
|
553
559
|
@location = args[:location] if args.key?(:location)
|
554
560
|
@node_id = args[:node_id] if args.key?(:node_id)
|
561
|
+
@per_sli_eligibility = args[:per_sli_eligibility] if args.key?(:per_sli_eligibility)
|
555
562
|
end
|
556
563
|
end
|
557
564
|
|
@@ -947,6 +954,32 @@ module Google
|
|
947
954
|
end
|
948
955
|
end
|
949
956
|
|
957
|
+
# ListSnapshotsResponse is the result of ListSnapshotsRequest.
|
958
|
+
class ListSnapshotsResponse
|
959
|
+
include Google::Apis::Core::Hashable
|
960
|
+
|
961
|
+
# The token you can use to retrieve the next page of results. Not returned if
|
962
|
+
# there are no more results in the list.
|
963
|
+
# Corresponds to the JSON property `nextPageToken`
|
964
|
+
# @return [String]
|
965
|
+
attr_accessor :next_page_token
|
966
|
+
|
967
|
+
# A list of snapshots in the project for the specified instance.
|
968
|
+
# Corresponds to the JSON property `snapshots`
|
969
|
+
# @return [Array<Google::Apis::FileV1beta1::Snapshot>]
|
970
|
+
attr_accessor :snapshots
|
971
|
+
|
972
|
+
def initialize(**args)
|
973
|
+
update!(**args)
|
974
|
+
end
|
975
|
+
|
976
|
+
# Update properties of this object
|
977
|
+
def update!(**args)
|
978
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
979
|
+
@snapshots = args[:snapshots] if args.key?(:snapshots)
|
980
|
+
end
|
981
|
+
end
|
982
|
+
|
950
983
|
# A resource that represents Google Cloud Platform location.
|
951
984
|
class Location
|
952
985
|
include Google::Apis::Core::Hashable
|
@@ -1085,6 +1118,12 @@ module Google
|
|
1085
1118
|
class NetworkConfig
|
1086
1119
|
include Google::Apis::Core::Hashable
|
1087
1120
|
|
1121
|
+
# The network connect mode of the Filestore instance. If not provided, the
|
1122
|
+
# connect mode defaults to DIRECT_PEERING.
|
1123
|
+
# Corresponds to the JSON property `connectMode`
|
1124
|
+
# @return [String]
|
1125
|
+
attr_accessor :connect_mode
|
1126
|
+
|
1088
1127
|
# Output only. IPv4 addresses in the format `octet 1`.`octet 2`.`octet 3`.`octet
|
1089
1128
|
# 4` or IPv6 addresses in the format `block 1`:`block 2`:`block 3`:`block 4`:`
|
1090
1129
|
# block 5`:`block 6`:`block 7`:`block 8`.
|
@@ -1104,12 +1143,19 @@ module Google
|
|
1104
1143
|
# @return [String]
|
1105
1144
|
attr_accessor :network
|
1106
1145
|
|
1107
|
-
#
|
1108
|
-
#
|
1109
|
-
#
|
1110
|
-
#
|
1111
|
-
#
|
1112
|
-
#
|
1146
|
+
# Optional, reserved_ip_range can have one of the following two types of values.
|
1147
|
+
# * CIDR range value when using DIRECT_PEERING connect mode. * [Allocated IP
|
1148
|
+
# address range](https://cloud.google.com/compute/docs/ip-addresses/reserve-
|
1149
|
+
# static-internal-ip-address) when using PRIVATE_SERVICE_ACCESS connect mode.
|
1150
|
+
# When the name of an allocated IP address range is specified, it must be one of
|
1151
|
+
# the ranges associated with the private service access connection. When
|
1152
|
+
# specified as a direct CIDR value, it must be a /29 CIDR block for Basic tier
|
1153
|
+
# or a /23 CIDR block for High Scale or Enterprise tier in one of the [internal
|
1154
|
+
# IP address ranges](https://www.arin.net/knowledge/address_filters.html) that
|
1155
|
+
# identifies the range of IP addresses reserved for this instance. For example,
|
1156
|
+
# 10.0.0.0/29 or 192.168.0.0/23. The range you specify can't overlap with either
|
1157
|
+
# existing subnets or assigned IP address ranges for other Cloud Filestore
|
1158
|
+
# instances in the selected VPC network.
|
1113
1159
|
# Corresponds to the JSON property `reservedIpRange`
|
1114
1160
|
# @return [String]
|
1115
1161
|
attr_accessor :reserved_ip_range
|
@@ -1120,6 +1166,7 @@ module Google
|
|
1120
1166
|
|
1121
1167
|
# Update properties of this object
|
1122
1168
|
def update!(**args)
|
1169
|
+
@connect_mode = args[:connect_mode] if args.key?(:connect_mode)
|
1123
1170
|
@ip_addresses = args[:ip_addresses] if args.key?(:ip_addresses)
|
1124
1171
|
@modes = args[:modes] if args.key?(:modes)
|
1125
1172
|
@network = args[:network] if args.key?(:network)
|
@@ -1248,12 +1295,12 @@ module Google
|
|
1248
1295
|
class OperationMetadata
|
1249
1296
|
include Google::Apis::Core::Hashable
|
1250
1297
|
|
1251
|
-
#
|
1298
|
+
# Output only. API version used to start the operation.
|
1252
1299
|
# Corresponds to the JSON property `apiVersion`
|
1253
1300
|
# @return [String]
|
1254
1301
|
attr_accessor :api_version
|
1255
1302
|
|
1256
|
-
#
|
1303
|
+
# Output only. Identifies whether the user has requested cancellation of the
|
1257
1304
|
# operation. Operations that have successfully been cancelled have Operation.
|
1258
1305
|
# error value with a google.rpc.Status.code of 1, corresponding to `Code.
|
1259
1306
|
# CANCELLED`.
|
@@ -1262,27 +1309,27 @@ module Google
|
|
1262
1309
|
attr_accessor :cancel_requested
|
1263
1310
|
alias_method :cancel_requested?, :cancel_requested
|
1264
1311
|
|
1265
|
-
#
|
1312
|
+
# Output only. The time the operation was created.
|
1266
1313
|
# Corresponds to the JSON property `createTime`
|
1267
1314
|
# @return [String]
|
1268
1315
|
attr_accessor :create_time
|
1269
1316
|
|
1270
|
-
#
|
1317
|
+
# Output only. The time the operation finished running.
|
1271
1318
|
# Corresponds to the JSON property `endTime`
|
1272
1319
|
# @return [String]
|
1273
1320
|
attr_accessor :end_time
|
1274
1321
|
|
1275
|
-
#
|
1322
|
+
# Output only. Human-readable status of the operation, if any.
|
1276
1323
|
# Corresponds to the JSON property `statusDetail`
|
1277
1324
|
# @return [String]
|
1278
1325
|
attr_accessor :status_detail
|
1279
1326
|
|
1280
|
-
#
|
1327
|
+
# Output only. Server-defined resource path for the target of the operation.
|
1281
1328
|
# Corresponds to the JSON property `target`
|
1282
1329
|
# @return [String]
|
1283
1330
|
attr_accessor :target
|
1284
1331
|
|
1285
|
-
#
|
1332
|
+
# Output only. Name of the verb executed by the operation.
|
1286
1333
|
# Corresponds to the JSON property `verb`
|
1287
1334
|
# @return [String]
|
1288
1335
|
attr_accessor :verb
|
@@ -1371,6 +1418,59 @@ module Google
|
|
1371
1418
|
end
|
1372
1419
|
end
|
1373
1420
|
|
1421
|
+
# A Cloud Filestore snapshot.
|
1422
|
+
class Snapshot
|
1423
|
+
include Google::Apis::Core::Hashable
|
1424
|
+
|
1425
|
+
# Output only. The time when the snapshot was created.
|
1426
|
+
# Corresponds to the JSON property `createTime`
|
1427
|
+
# @return [String]
|
1428
|
+
attr_accessor :create_time
|
1429
|
+
|
1430
|
+
# A description of the snapshot with 2048 characters or less. Requests with
|
1431
|
+
# longer descriptions will be rejected.
|
1432
|
+
# Corresponds to the JSON property `description`
|
1433
|
+
# @return [String]
|
1434
|
+
attr_accessor :description
|
1435
|
+
|
1436
|
+
# Output only. The amount of bytes needed to allocate a full copy of the
|
1437
|
+
# snapshot content
|
1438
|
+
# Corresponds to the JSON property `filesystemUsedBytes`
|
1439
|
+
# @return [Fixnum]
|
1440
|
+
attr_accessor :filesystem_used_bytes
|
1441
|
+
|
1442
|
+
# Resource labels to represent user provided metadata.
|
1443
|
+
# Corresponds to the JSON property `labels`
|
1444
|
+
# @return [Hash<String,String>]
|
1445
|
+
attr_accessor :labels
|
1446
|
+
|
1447
|
+
# Output only. The resource name of the snapshot, in the format projects/`
|
1448
|
+
# project_id`/locations/`location_id`/instances/`instance_id`/snapshots/`
|
1449
|
+
# snapshot_id`.
|
1450
|
+
# Corresponds to the JSON property `name`
|
1451
|
+
# @return [String]
|
1452
|
+
attr_accessor :name
|
1453
|
+
|
1454
|
+
# Output only. The snapshot state.
|
1455
|
+
# Corresponds to the JSON property `state`
|
1456
|
+
# @return [String]
|
1457
|
+
attr_accessor :state
|
1458
|
+
|
1459
|
+
def initialize(**args)
|
1460
|
+
update!(**args)
|
1461
|
+
end
|
1462
|
+
|
1463
|
+
# Update properties of this object
|
1464
|
+
def update!(**args)
|
1465
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
1466
|
+
@description = args[:description] if args.key?(:description)
|
1467
|
+
@filesystem_used_bytes = args[:filesystem_used_bytes] if args.key?(:filesystem_used_bytes)
|
1468
|
+
@labels = args[:labels] if args.key?(:labels)
|
1469
|
+
@name = args[:name] if args.key?(:name)
|
1470
|
+
@state = args[:state] if args.key?(:state)
|
1471
|
+
end
|
1472
|
+
end
|
1473
|
+
|
1374
1474
|
# The `Status` type defines a logical error model that is suitable for different
|
1375
1475
|
# programming environments, including REST APIs and RPC APIs. It is used by [
|
1376
1476
|
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
@@ -1462,8 +1562,7 @@ module Google
|
|
1462
1562
|
|
1463
1563
|
# Deny Maintenance Period that is applied to resource to indicate when
|
1464
1564
|
# maintenance is forbidden. User can specify zero or more non-overlapping deny
|
1465
|
-
# periods.
|
1466
|
-
# one.
|
1565
|
+
# periods. Maximum number of deny_maintenance_periods expected is one.
|
1467
1566
|
# Corresponds to the JSON property `denyMaintenancePeriods`
|
1468
1567
|
# @return [Array<Google::Apis::FileV1beta1::DenyMaintenancePeriod>]
|
1469
1568
|
attr_accessor :deny_maintenance_periods
|
@@ -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.
|
19
|
+
GEM_VERSION = "0.12.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210727"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -148,6 +148,12 @@ module Google
|
|
148
148
|
include Google::Apis::Core::JsonObjectSupport
|
149
149
|
end
|
150
150
|
|
151
|
+
class ListSnapshotsResponse
|
152
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
153
|
+
|
154
|
+
include Google::Apis::Core::JsonObjectSupport
|
155
|
+
end
|
156
|
+
|
151
157
|
class Location
|
152
158
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
153
159
|
|
@@ -202,6 +208,12 @@ module Google
|
|
202
208
|
include Google::Apis::Core::JsonObjectSupport
|
203
209
|
end
|
204
210
|
|
211
|
+
class Snapshot
|
212
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
213
|
+
|
214
|
+
include Google::Apis::Core::JsonObjectSupport
|
215
|
+
end
|
216
|
+
|
205
217
|
class Status
|
206
218
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
207
219
|
|
@@ -350,6 +362,8 @@ module Google
|
|
350
362
|
|
351
363
|
property :location, as: 'location'
|
352
364
|
property :node_id, as: 'nodeId'
|
365
|
+
property :per_sli_eligibility, as: 'perSliEligibility', class: Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1PerSliSloEligibility, decorator: Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1PerSliSloEligibility::Representation
|
366
|
+
|
353
367
|
end
|
354
368
|
end
|
355
369
|
|
@@ -457,6 +471,15 @@ module Google
|
|
457
471
|
end
|
458
472
|
end
|
459
473
|
|
474
|
+
class ListSnapshotsResponse
|
475
|
+
# @private
|
476
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
477
|
+
property :next_page_token, as: 'nextPageToken'
|
478
|
+
collection :snapshots, as: 'snapshots', class: Google::Apis::FileV1beta1::Snapshot, decorator: Google::Apis::FileV1beta1::Snapshot::Representation
|
479
|
+
|
480
|
+
end
|
481
|
+
end
|
482
|
+
|
460
483
|
class Location
|
461
484
|
# @private
|
462
485
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -495,6 +518,7 @@ module Google
|
|
495
518
|
class NetworkConfig
|
496
519
|
# @private
|
497
520
|
class Representation < Google::Apis::Core::JsonRepresentation
|
521
|
+
property :connect_mode, as: 'connectMode'
|
498
522
|
collection :ip_addresses, as: 'ipAddresses'
|
499
523
|
collection :modes, as: 'modes'
|
500
524
|
property :network, as: 'network'
|
@@ -557,6 +581,18 @@ module Google
|
|
557
581
|
end
|
558
582
|
end
|
559
583
|
|
584
|
+
class Snapshot
|
585
|
+
# @private
|
586
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
587
|
+
property :create_time, as: 'createTime'
|
588
|
+
property :description, as: 'description'
|
589
|
+
property :filesystem_used_bytes, :numeric_string => true, as: 'filesystemUsedBytes'
|
590
|
+
hash :labels, as: 'labels'
|
591
|
+
property :name, as: 'name'
|
592
|
+
property :state, as: 'state'
|
593
|
+
end
|
594
|
+
end
|
595
|
+
|
560
596
|
class Status
|
561
597
|
# @private
|
562
598
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -540,6 +540,191 @@ module Google
|
|
540
540
|
execute_or_queue_command(command, &block)
|
541
541
|
end
|
542
542
|
|
543
|
+
# Creates a snapshot.
|
544
|
+
# @param [String] parent
|
545
|
+
# Required. The Filestore Instance to create the snapshots of, in the format
|
546
|
+
# projects/`project_id`/locations/`location`/instances/`instance_id`
|
547
|
+
# @param [Google::Apis::FileV1beta1::Snapshot] snapshot_object
|
548
|
+
# @param [String] snapshot_id
|
549
|
+
# Required. The ID to use for the snapshot. The ID must be unique within the
|
550
|
+
# specified instance. This value must start with a lowercase letter followed by
|
551
|
+
# up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
|
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 create_project_location_instance_snapshot(parent, snapshot_object = nil, snapshot_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
570
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/snapshots', options)
|
571
|
+
command.request_representation = Google::Apis::FileV1beta1::Snapshot::Representation
|
572
|
+
command.request_object = snapshot_object
|
573
|
+
command.response_representation = Google::Apis::FileV1beta1::Operation::Representation
|
574
|
+
command.response_class = Google::Apis::FileV1beta1::Operation
|
575
|
+
command.params['parent'] = parent unless parent.nil?
|
576
|
+
command.query['snapshotId'] = snapshot_id unless snapshot_id.nil?
|
577
|
+
command.query['fields'] = fields unless fields.nil?
|
578
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
579
|
+
execute_or_queue_command(command, &block)
|
580
|
+
end
|
581
|
+
|
582
|
+
# Deletes a snapshot.
|
583
|
+
# @param [String] name
|
584
|
+
# Required. The snapshot resource name, in the format projects/`project_id`/
|
585
|
+
# locations/`location`/instances/`instance_id`/snapshots/`snapshot_id`
|
586
|
+
# @param [String] fields
|
587
|
+
# Selector specifying which fields to include in a partial response.
|
588
|
+
# @param [String] quota_user
|
589
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
590
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
591
|
+
# @param [Google::Apis::RequestOptions] options
|
592
|
+
# Request-specific options
|
593
|
+
#
|
594
|
+
# @yield [result, err] Result & error if block supplied
|
595
|
+
# @yieldparam result [Google::Apis::FileV1beta1::Operation] parsed result object
|
596
|
+
# @yieldparam err [StandardError] error object if request failed
|
597
|
+
#
|
598
|
+
# @return [Google::Apis::FileV1beta1::Operation]
|
599
|
+
#
|
600
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
601
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
602
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
603
|
+
def delete_project_location_instance_snapshot(name, fields: nil, quota_user: nil, options: nil, &block)
|
604
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
605
|
+
command.response_representation = Google::Apis::FileV1beta1::Operation::Representation
|
606
|
+
command.response_class = Google::Apis::FileV1beta1::Operation
|
607
|
+
command.params['name'] = name unless name.nil?
|
608
|
+
command.query['fields'] = fields unless fields.nil?
|
609
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
610
|
+
execute_or_queue_command(command, &block)
|
611
|
+
end
|
612
|
+
|
613
|
+
# Gets the details of a specific snapshot.
|
614
|
+
# @param [String] name
|
615
|
+
# Required. The snapshot resource name, in the format projects/`project_id`/
|
616
|
+
# locations/`location`/instances/`instance_id`/snapshots/`snapshot_id`
|
617
|
+
# @param [String] fields
|
618
|
+
# Selector specifying which fields to include in a partial response.
|
619
|
+
# @param [String] quota_user
|
620
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
621
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
622
|
+
# @param [Google::Apis::RequestOptions] options
|
623
|
+
# Request-specific options
|
624
|
+
#
|
625
|
+
# @yield [result, err] Result & error if block supplied
|
626
|
+
# @yieldparam result [Google::Apis::FileV1beta1::Snapshot] parsed result object
|
627
|
+
# @yieldparam err [StandardError] error object if request failed
|
628
|
+
#
|
629
|
+
# @return [Google::Apis::FileV1beta1::Snapshot]
|
630
|
+
#
|
631
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
632
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
633
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
634
|
+
def get_project_location_instance_snapshot(name, fields: nil, quota_user: nil, options: nil, &block)
|
635
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
636
|
+
command.response_representation = Google::Apis::FileV1beta1::Snapshot::Representation
|
637
|
+
command.response_class = Google::Apis::FileV1beta1::Snapshot
|
638
|
+
command.params['name'] = name unless name.nil?
|
639
|
+
command.query['fields'] = fields unless fields.nil?
|
640
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
641
|
+
execute_or_queue_command(command, &block)
|
642
|
+
end
|
643
|
+
|
644
|
+
# Lists all snapshots in a project for either a specified location or for all
|
645
|
+
# locations.
|
646
|
+
# @param [String] parent
|
647
|
+
# Required. The instance for which to retrieve snapshot information, in the
|
648
|
+
# format projects/`project_id`/locations/`location`/instances/`instance_id`.
|
649
|
+
# @param [String] filter
|
650
|
+
# List filter.
|
651
|
+
# @param [String] order_by
|
652
|
+
# Sort results. Supported values are "name", "name desc" or "" (unsorted).
|
653
|
+
# @param [Fixnum] page_size
|
654
|
+
# The maximum number of items to return.
|
655
|
+
# @param [String] page_token
|
656
|
+
# The next_page_token value to use if there are additional results to retrieve
|
657
|
+
# for this list request.
|
658
|
+
# @param [String] fields
|
659
|
+
# Selector specifying which fields to include in a partial response.
|
660
|
+
# @param [String] quota_user
|
661
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
662
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
663
|
+
# @param [Google::Apis::RequestOptions] options
|
664
|
+
# Request-specific options
|
665
|
+
#
|
666
|
+
# @yield [result, err] Result & error if block supplied
|
667
|
+
# @yieldparam result [Google::Apis::FileV1beta1::ListSnapshotsResponse] parsed result object
|
668
|
+
# @yieldparam err [StandardError] error object if request failed
|
669
|
+
#
|
670
|
+
# @return [Google::Apis::FileV1beta1::ListSnapshotsResponse]
|
671
|
+
#
|
672
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
673
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
674
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
675
|
+
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)
|
676
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}/snapshots', options)
|
677
|
+
command.response_representation = Google::Apis::FileV1beta1::ListSnapshotsResponse::Representation
|
678
|
+
command.response_class = Google::Apis::FileV1beta1::ListSnapshotsResponse
|
679
|
+
command.params['parent'] = parent unless parent.nil?
|
680
|
+
command.query['filter'] = filter unless filter.nil?
|
681
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
682
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
683
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
684
|
+
command.query['fields'] = fields unless fields.nil?
|
685
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
686
|
+
execute_or_queue_command(command, &block)
|
687
|
+
end
|
688
|
+
|
689
|
+
# Updates the settings of a specific snapshot.
|
690
|
+
# @param [String] name
|
691
|
+
# Output only. The resource name of the snapshot, in the format projects/`
|
692
|
+
# project_id`/locations/`location_id`/instances/`instance_id`/snapshots/`
|
693
|
+
# snapshot_id`.
|
694
|
+
# @param [Google::Apis::FileV1beta1::Snapshot] snapshot_object
|
695
|
+
# @param [String] update_mask
|
696
|
+
# Required. Mask of fields to update. At least one path must be supplied in this
|
697
|
+
# field.
|
698
|
+
# @param [String] fields
|
699
|
+
# Selector specifying which fields to include in a partial response.
|
700
|
+
# @param [String] quota_user
|
701
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
702
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
703
|
+
# @param [Google::Apis::RequestOptions] options
|
704
|
+
# Request-specific options
|
705
|
+
#
|
706
|
+
# @yield [result, err] Result & error if block supplied
|
707
|
+
# @yieldparam result [Google::Apis::FileV1beta1::Operation] parsed result object
|
708
|
+
# @yieldparam err [StandardError] error object if request failed
|
709
|
+
#
|
710
|
+
# @return [Google::Apis::FileV1beta1::Operation]
|
711
|
+
#
|
712
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
713
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
714
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
715
|
+
def patch_project_location_instance_snapshot(name, snapshot_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
716
|
+
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
|
717
|
+
command.request_representation = Google::Apis::FileV1beta1::Snapshot::Representation
|
718
|
+
command.request_object = snapshot_object
|
719
|
+
command.response_representation = Google::Apis::FileV1beta1::Operation::Representation
|
720
|
+
command.response_class = Google::Apis::FileV1beta1::Operation
|
721
|
+
command.params['name'] = name unless name.nil?
|
722
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
723
|
+
command.query['fields'] = fields unless fields.nil?
|
724
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
725
|
+
execute_or_queue_command(command, &block)
|
726
|
+
end
|
727
|
+
|
543
728
|
# Starts asynchronous cancellation on a long-running operation. The server makes
|
544
729
|
# a best effort to cancel the operation, but success is not guaranteed. If the
|
545
730
|
# 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_v1beta1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.12.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-08-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.4'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.4'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -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/master/generated/google-apis-file_v1beta1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-file_v1beta1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-file_v1beta1/v0.12.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-file_v1beta1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|