google-apis-file_v1beta1 0.9.0 → 0.13.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: 3bfa44f2137a22e67bcf0c0e3d020aff34301e853a260216064a072721c96c4b
4
- data.tar.gz: 021f974ae3f7cae1cde93e653c4266546e053c8a47b1b17ac62fe83447ce6b25
3
+ metadata.gz: 695cae4e5972dc360a9db757f3b17017acbaee731cf462d96b8bf0b5cf22c34d
4
+ data.tar.gz: 6d489a42c36bbff5443195f739f034387f7a37ba4520969c5b4965c2f0b89859
5
5
  SHA512:
6
- metadata.gz: a1477f9b811234a2b45add0e9d03012839f0a97f0ef59f5525a47429e6ddd79aa3ea902a0084cc86b0fb10804110738490ba3cab30d5697a1e7f08c198822e06
7
- data.tar.gz: 191bf2159cdefae7c2dba734e7db82a426b01b0fe168f1d16be741a17b3d73c82e4b54be6ea08129c1fdf2a3ffa5c57274b2a031cff8cc8e9eb9281077b78620
6
+ metadata.gz: 842d5d60150c9af56f166dca9b3fe9498557d146484eda11376209c3d854ad2e522a1f3dff7e7c040d6b10ea7f04a1d75a68b0c812644364e9e9007f45adbec4
7
+ data.tar.gz: 2545c82819a434d8a5e27f10081260b61dcae77254d71afff2279071a6859cf197f81b57fd0ef7fc620848d28c08f917de3cec477c98cd9ee8bf6224d6b02426
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Release history for google-apis-file_v1beta1
2
2
 
3
+ ### v0.13.0 (2021-08-19)
4
+
5
+ * Regenerated from discovery document revision 20210804
6
+
7
+ ### v0.12.0 (2021-08-04)
8
+
9
+ * Regenerated from discovery document revision 20210727
10
+
11
+ ### v0.11.0 (2021-07-29)
12
+
13
+ * Regenerated from discovery document revision 20210721
14
+
15
+ ### v0.10.0 (2021-07-13)
16
+
17
+ * Regenerated from discovery document revision 20210708
18
+
3
19
  ### v0.9.0 (2021-06-29)
4
20
 
5
21
  * Regenerated using generator version 0.4.0
@@ -29,7 +29,7 @@ module Google
29
29
  # This is NOT the gem version.
30
30
  VERSION = 'V1beta1'
31
31
 
32
- # See, edit, configure, and delete your Google Cloud Platform data
32
+ # See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
33
33
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
34
34
  end
35
35
  end
@@ -52,8 +52,8 @@ module Google
52
52
  # @return [Hash<String,String>]
53
53
  attr_accessor :labels
54
54
 
55
- # Output only. The resource name of the backup, in the format projects/`
56
- # project_id`/locations/`location_id`/backups/`backup_id`.
55
+ # Output only. The resource name of the backup, in the format `projects/`
56
+ # project_id`/locations/`location_id`/backups/`backup_id``.
57
57
  # Corresponds to the JSON property `name`
58
58
  # @return [String]
59
59
  attr_accessor :name
@@ -70,9 +70,9 @@ module Google
70
70
  # @return [String]
71
71
  attr_accessor :source_file_share
72
72
 
73
- # The resource name of the source Cloud Filestore instance, in the format
74
- # projects/`project_id`/locations/`location_id`/instances/`instance_id`, used to
75
- # create this backup.
73
+ # The resource name of the source Cloud Filestore instance, in the format `
74
+ # projects/`project_id`/locations/`location_id`/instances/`instance_id``, used
75
+ # to create this backup.
76
76
  # Corresponds to the JSON property `sourceInstance`
77
77
  # @return [String]
78
78
  attr_accessor :source_instance
@@ -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 16 characters or less).
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
@@ -281,8 +282,9 @@ module Google
281
282
  # @return [Array<Google::Apis::FileV1beta1::NfsExportOptions>]
282
283
  attr_accessor :nfs_export_options
283
284
 
284
- # The resource name of the backup, in the format projects/`project_id`/locations/
285
- # `location_id`/backups/`backup_id`, that this file share has been restored from.
285
+ # The resource name of the backup, in the format `projects/`project_id`/
286
+ # locations/`location_id`/backups/`backup_id``, that this file share has been
287
+ # restored from.
286
288
  # Corresponds to the JSON property `sourceBackup`
287
289
  # @return [String]
288
290
  attr_accessor :source_backup
@@ -543,6 +545,11 @@ module Google
543
545
  # @return [String]
544
546
  attr_accessor :node_id
545
547
 
548
+ # PerSliSloEligibility is a mapping from an SLI name to eligibility.
549
+ # Corresponds to the JSON property `perSliEligibility`
550
+ # @return [Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1PerSliSloEligibility]
551
+ attr_accessor :per_sli_eligibility
552
+
546
553
  def initialize(**args)
547
554
  update!(**args)
548
555
  end
@@ -552,6 +559,7 @@ module Google
552
559
  @exclusions = args[:exclusions] if args.key?(:exclusions)
553
560
  @location = args[:location] if args.key?(:location)
554
561
  @node_id = args[:node_id] if args.key?(:node_id)
562
+ @per_sli_eligibility = args[:per_sli_eligibility] if args.key?(:per_sli_eligibility)
555
563
  end
556
564
  end
557
565
 
@@ -772,8 +780,8 @@ module Google
772
780
  # @return [Hash<String,String>]
773
781
  attr_accessor :labels
774
782
 
775
- # Output only. The resource name of the instance, in the format projects/`
776
- # project_id`/locations/`location_id`/instances/`instance_id`.
783
+ # Output only. The resource name of the instance, in the format `projects/`
784
+ # project_id`/locations/`location_id`/instances/`instance_id``.
777
785
  # Corresponds to the JSON property `name`
778
786
  # @return [String]
779
787
  attr_accessor :name
@@ -829,9 +837,9 @@ module Google
829
837
  class ListBackupsResponse
830
838
  include Google::Apis::Core::Hashable
831
839
 
832
- # A list of backups in the project for the specified location. If the `location`
833
- # value in the request is "-", the response contains a list of backups from all
834
- # locations. If any location is unreachable, the response will only return
840
+ # A list of backups in the project for the specified location. If the ``location`
841
+ # ` value in the request is "-", the response contains a list of backups from
842
+ # all locations. If any location is unreachable, the response will only return
835
843
  # backups in reachable locations and the "unreachable" field will be populated
836
844
  # with a list of unreachable locations.
837
845
  # Corresponds to the JSON property `backups`
@@ -865,8 +873,8 @@ module Google
865
873
  class ListInstancesResponse
866
874
  include Google::Apis::Core::Hashable
867
875
 
868
- # A list of instances in the project for the specified location. If the `
869
- # location` value in the request is "-", the response contains a list of
876
+ # A list of instances in the project for the specified location. If the ``
877
+ # location`` value in the request is "-", the response contains a list of
870
878
  # instances from all locations. If any location is unreachable, the response
871
879
  # will only return instances in reachable locations and the "unreachable" field
872
880
  # will be populated with a list of unreachable locations.
@@ -947,6 +955,32 @@ module Google
947
955
  end
948
956
  end
949
957
 
958
+ # ListSnapshotsResponse is the result of ListSnapshotsRequest.
959
+ class ListSnapshotsResponse
960
+ include Google::Apis::Core::Hashable
961
+
962
+ # The token you can use to retrieve the next page of results. Not returned if
963
+ # there are no more results in the list.
964
+ # Corresponds to the JSON property `nextPageToken`
965
+ # @return [String]
966
+ attr_accessor :next_page_token
967
+
968
+ # A list of snapshots in the project for the specified instance.
969
+ # Corresponds to the JSON property `snapshots`
970
+ # @return [Array<Google::Apis::FileV1beta1::Snapshot>]
971
+ attr_accessor :snapshots
972
+
973
+ def initialize(**args)
974
+ update!(**args)
975
+ end
976
+
977
+ # Update properties of this object
978
+ def update!(**args)
979
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
980
+ @snapshots = args[:snapshots] if args.key?(:snapshots)
981
+ end
982
+ end
983
+
950
984
  # A resource that represents Google Cloud Platform location.
951
985
  class Location
952
986
  include Google::Apis::Core::Hashable
@@ -1085,9 +1119,15 @@ module Google
1085
1119
  class NetworkConfig
1086
1120
  include Google::Apis::Core::Hashable
1087
1121
 
1088
- # Output only. IPv4 addresses in the format `octet 1`.`octet 2`.`octet 3`.`octet
1089
- # 4` or IPv6 addresses in the format `block 1`:`block 2`:`block 3`:`block 4`:`
1090
- # block 5`:`block 6`:`block 7`:`block 8`.
1122
+ # The network connect mode of the Filestore instance. If not provided, the
1123
+ # connect mode defaults to DIRECT_PEERING.
1124
+ # Corresponds to the JSON property `connectMode`
1125
+ # @return [String]
1126
+ attr_accessor :connect_mode
1127
+
1128
+ # Output only. IPv4 addresses in the format ``octet1`.`octet2`.`octet3`.`octet4``
1129
+ # or IPv6 addresses in the format ``block1`:`block2`:`block3`:`block4`:`block5`:
1130
+ # `block6`:`block7`:`block8``.
1091
1131
  # Corresponds to the JSON property `ipAddresses`
1092
1132
  # @return [Array<String>]
1093
1133
  attr_accessor :ip_addresses
@@ -1098,18 +1138,25 @@ module Google
1098
1138
  # @return [Array<String>]
1099
1139
  attr_accessor :modes
1100
1140
 
1101
- # The name of the Google Compute Engine [VPC network](/compute/docs/networks-and-
1102
- # firewalls#networks) to which the instance is connected.
1141
+ # The name of the Google Compute Engine [VPC network](https://cloud.google.com/
1142
+ # vpc/docs/vpc) to which the instance is connected.
1103
1143
  # Corresponds to the JSON property `network`
1104
1144
  # @return [String]
1105
1145
  attr_accessor :network
1106
1146
 
1107
- # A /29 CIDR block for Basic or a /23 CIDR block for High Scale in one of the [
1108
- # internal IP address ranges](https://www.arin.net/knowledge/address_filters.
1109
- # html) that identifies the range of IP addresses reserved for this instance.
1110
- # For example, 10.0.0.0/29 or 192.168.0.0/23. The range you specify can't
1111
- # overlap with either existing subnets or assigned IP address ranges for other
1112
- # Cloud Filestore instances in the selected VPC network.
1147
+ # Optional, reserved_ip_range can have one of the following two types of values.
1148
+ # * CIDR range value when using DIRECT_PEERING connect mode. * [Allocated IP
1149
+ # address range](https://cloud.google.com/compute/docs/ip-addresses/reserve-
1150
+ # static-internal-ip-address) when using PRIVATE_SERVICE_ACCESS connect mode.
1151
+ # When the name of an allocated IP address range is specified, it must be one of
1152
+ # the ranges associated with the private service access connection. When
1153
+ # specified as a direct CIDR value, it must be a /29 CIDR block for Basic tier
1154
+ # or a /24 CIDR block for High Scale or Enterprise tier in one of the [internal
1155
+ # IP address ranges](https://www.arin.net/reference/research/statistics/
1156
+ # address_filters/) that identifies the range of IP addresses reserved for this
1157
+ # instance. For example, 10.0.0.0/29 or 192.168.0.0/24. The range you specify
1158
+ # can't overlap with either existing subnets or assigned IP address ranges for
1159
+ # other Cloud Filestore instances in the selected VPC network.
1113
1160
  # Corresponds to the JSON property `reservedIpRange`
1114
1161
  # @return [String]
1115
1162
  attr_accessor :reserved_ip_range
@@ -1120,6 +1167,7 @@ module Google
1120
1167
 
1121
1168
  # Update properties of this object
1122
1169
  def update!(**args)
1170
+ @connect_mode = args[:connect_mode] if args.key?(:connect_mode)
1123
1171
  @ip_addresses = args[:ip_addresses] if args.key?(:ip_addresses)
1124
1172
  @modes = args[:modes] if args.key?(:modes)
1125
1173
  @network = args[:network] if args.key?(:network)
@@ -1152,9 +1200,9 @@ module Google
1152
1200
  # @return [Fixnum]
1153
1201
  attr_accessor :anon_uid
1154
1202
 
1155
- # List of either an IPv4 addresses in the format `octet 1`.`octet 2`.`octet 3`.`
1156
- # octet 4` or CIDR ranges in the format `octet 1`.`octet 2`.`octet 3`.`octet 4`/`
1157
- # mask size` which may mount the file share. Overlapping IP ranges are not
1203
+ # List of either an IPv4 addresses in the format ``octet1`.`octet2`.`octet3`.`
1204
+ # octet4`` or CIDR ranges in the format ``octet1`.`octet2`.`octet3`.`octet4`/`
1205
+ # mask size`` which may mount the file share. Overlapping IP ranges are not
1158
1206
  # allowed, both within and across NfsExportOptions. An error will be returned.
1159
1207
  # The limit is 64 IP ranges/addresses for each FileShareConfig among all
1160
1208
  # NfsExportOptions.
@@ -1248,13 +1296,13 @@ module Google
1248
1296
  class OperationMetadata
1249
1297
  include Google::Apis::Core::Hashable
1250
1298
 
1251
- # [Output only] API version used to start the operation.
1299
+ # Output only. API version used to start the operation.
1252
1300
  # Corresponds to the JSON property `apiVersion`
1253
1301
  # @return [String]
1254
1302
  attr_accessor :api_version
1255
1303
 
1256
- # [Output only] Identifies whether the user has requested cancellation of the
1257
- # operation. Operations that have successfully been cancelled have Operation.
1304
+ # Output only. Identifies whether the user has requested cancellation of the
1305
+ # operation. Operations that have been cancelled successfully have Operation.
1258
1306
  # error value with a google.rpc.Status.code of 1, corresponding to `Code.
1259
1307
  # CANCELLED`.
1260
1308
  # Corresponds to the JSON property `cancelRequested`
@@ -1262,27 +1310,27 @@ module Google
1262
1310
  attr_accessor :cancel_requested
1263
1311
  alias_method :cancel_requested?, :cancel_requested
1264
1312
 
1265
- # [Output only] The time the operation was created.
1313
+ # Output only. The time the operation was created.
1266
1314
  # Corresponds to the JSON property `createTime`
1267
1315
  # @return [String]
1268
1316
  attr_accessor :create_time
1269
1317
 
1270
- # [Output only] The time the operation finished running.
1318
+ # Output only. The time the operation finished running.
1271
1319
  # Corresponds to the JSON property `endTime`
1272
1320
  # @return [String]
1273
1321
  attr_accessor :end_time
1274
1322
 
1275
- # [Output only] Human-readable status of the operation, if any.
1323
+ # Output only. Human-readable status of the operation, if any.
1276
1324
  # Corresponds to the JSON property `statusDetail`
1277
1325
  # @return [String]
1278
1326
  attr_accessor :status_detail
1279
1327
 
1280
- # [Output only] Server-defined resource path for the target of the operation.
1328
+ # Output only. Server-defined resource path for the target of the operation.
1281
1329
  # Corresponds to the JSON property `target`
1282
1330
  # @return [String]
1283
1331
  attr_accessor :target
1284
1332
 
1285
- # [Output only] Name of the verb executed by the operation.
1333
+ # Output only. Name of the verb executed by the operation.
1286
1334
  # Corresponds to the JSON property `verb`
1287
1335
  # @return [String]
1288
1336
  attr_accessor :verb
@@ -1314,14 +1362,14 @@ module Google
1314
1362
  # @return [String]
1315
1363
  attr_accessor :file_share
1316
1364
 
1317
- # The resource name of the backup, in the format projects/`project_id`/locations/
1318
- # `location_id`/backups/`backup_id`.
1365
+ # The resource name of the backup, in the format `projects/`project_id`/
1366
+ # locations/`location_id`/backups/`backup_id``.
1319
1367
  # Corresponds to the JSON property `sourceBackup`
1320
1368
  # @return [String]
1321
1369
  attr_accessor :source_backup
1322
1370
 
1323
- # The resource name of the snapshot, in the format projects/`project_id`/
1324
- # locations/`location_id`/snapshots/`snapshot_id`.
1371
+ # The resource name of the snapshot, in the format `projects/`project_id`/
1372
+ # locations/`location_id`/snapshots/`snapshot_id``.
1325
1373
  # Corresponds to the JSON property `sourceSnapshot`
1326
1374
  # @return [String]
1327
1375
  attr_accessor :source_snapshot
@@ -1371,6 +1419,59 @@ module Google
1371
1419
  end
1372
1420
  end
1373
1421
 
1422
+ # A Cloud Filestore snapshot.
1423
+ class Snapshot
1424
+ include Google::Apis::Core::Hashable
1425
+
1426
+ # Output only. The time when the snapshot was created.
1427
+ # Corresponds to the JSON property `createTime`
1428
+ # @return [String]
1429
+ attr_accessor :create_time
1430
+
1431
+ # A description of the snapshot with 2048 characters or less. Requests with
1432
+ # longer descriptions will be rejected.
1433
+ # Corresponds to the JSON property `description`
1434
+ # @return [String]
1435
+ attr_accessor :description
1436
+
1437
+ # Output only. The amount of bytes needed to allocate a full copy of the
1438
+ # snapshot content
1439
+ # Corresponds to the JSON property `filesystemUsedBytes`
1440
+ # @return [Fixnum]
1441
+ attr_accessor :filesystem_used_bytes
1442
+
1443
+ # Resource labels to represent user provided metadata.
1444
+ # Corresponds to the JSON property `labels`
1445
+ # @return [Hash<String,String>]
1446
+ attr_accessor :labels
1447
+
1448
+ # Output only. The resource name of the snapshot, in the format `projects/`
1449
+ # project_id`/locations/`location_id`/instances/`instance_id`/snapshots/`
1450
+ # snapshot_id``.
1451
+ # Corresponds to the JSON property `name`
1452
+ # @return [String]
1453
+ attr_accessor :name
1454
+
1455
+ # Output only. The snapshot state.
1456
+ # Corresponds to the JSON property `state`
1457
+ # @return [String]
1458
+ attr_accessor :state
1459
+
1460
+ def initialize(**args)
1461
+ update!(**args)
1462
+ end
1463
+
1464
+ # Update properties of this object
1465
+ def update!(**args)
1466
+ @create_time = args[:create_time] if args.key?(:create_time)
1467
+ @description = args[:description] if args.key?(:description)
1468
+ @filesystem_used_bytes = args[:filesystem_used_bytes] if args.key?(:filesystem_used_bytes)
1469
+ @labels = args[:labels] if args.key?(:labels)
1470
+ @name = args[:name] if args.key?(:name)
1471
+ @state = args[:state] if args.key?(:state)
1472
+ end
1473
+ end
1474
+
1374
1475
  # The `Status` type defines a logical error model that is suitable for different
1375
1476
  # programming environments, including REST APIs and RPC APIs. It is used by [
1376
1477
  # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
@@ -1462,8 +1563,7 @@ module Google
1462
1563
 
1463
1564
  # Deny Maintenance Period that is applied to resource to indicate when
1464
1565
  # maintenance is forbidden. User can specify zero or more non-overlapping deny
1465
- # periods. For V1, Maximum number of deny_maintenance_periods is expected to be
1466
- # one.
1566
+ # periods. Maximum number of deny_maintenance_periods expected is one.
1467
1567
  # Corresponds to the JSON property `denyMaintenancePeriods`
1468
1568
  # @return [Array<Google::Apis::FileV1beta1::DenyMaintenancePeriod>]
1469
1569
  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.9.0"
19
+ GEM_VERSION = "0.13.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 = "20210524"
25
+ REVISION = "20210804"
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
@@ -127,8 +127,8 @@ module Google
127
127
 
128
128
  # Creates a backup.
129
129
  # @param [String] parent
130
- # Required. The backup's project and location, in the format projects/`
131
- # project_id`/locations/`location`. In Cloud Filestore, backup locations map to
130
+ # Required. The backup's project and location, in the format `projects/`
131
+ # project_id`/locations/`location``. In Cloud Filestore, backup locations map to
132
132
  # GCP regions, for example **us-west1**.
133
133
  # @param [Google::Apis::FileV1beta1::Backup] backup_object
134
134
  # @param [String] backup_id
@@ -168,8 +168,8 @@ module Google
168
168
 
169
169
  # Deletes a backup.
170
170
  # @param [String] name
171
- # Required. The backup resource name, in the format projects/`project_id`/
172
- # locations/`location`/backups/`backup_id`
171
+ # Required. The backup resource name, in the format `projects/`project_id`/
172
+ # locations/`location`/backups/`backup_id``
173
173
  # @param [String] fields
174
174
  # Selector specifying which fields to include in a partial response.
175
175
  # @param [String] quota_user
@@ -199,8 +199,8 @@ module Google
199
199
 
200
200
  # Gets the details of a specific backup.
201
201
  # @param [String] name
202
- # Required. The backup resource name, in the format projects/`project_id`/
203
- # locations/`location`/backups/`backup_id`.
202
+ # Required. The backup resource name, in the format `projects/`project_id`/
203
+ # locations/`location`/backups/`backup_id``.
204
204
  # @param [String] fields
205
205
  # Selector specifying which fields to include in a partial response.
206
206
  # @param [String] quota_user
@@ -232,9 +232,9 @@ module Google
232
232
  # locations.
233
233
  # @param [String] parent
234
234
  # Required. The project and location for which to retrieve backup information,
235
- # in the format projects/`project_id`/locations/`location`. In Cloud Filestore,
235
+ # in the format `projects/`project_id`/locations/`location``. In Cloud Filestore,
236
236
  # backup locations map to GCP regions, for example **us-west1**. To retrieve
237
- # backup information for all locations, use "-" for the `location` value.
237
+ # backup information for all locations, use "-" for the ``location`` value.
238
238
  # @param [String] filter
239
239
  # List filter.
240
240
  # @param [String] order_by
@@ -277,8 +277,8 @@ module Google
277
277
 
278
278
  # Updates the settings of a specific backup.
279
279
  # @param [String] name
280
- # Output only. The resource name of the backup, in the format projects/`
281
- # project_id`/locations/`location_id`/backups/`backup_id`.
280
+ # Output only. The resource name of the backup, in the format `projects/`
281
+ # project_id`/locations/`location_id`/backups/`backup_id``.
282
282
  # @param [Google::Apis::FileV1beta1::Backup] backup_object
283
283
  # @param [String] update_mask
284
284
  # Required. Mask of fields to update. At least one path must be supplied in this
@@ -317,8 +317,8 @@ module Google
317
317
  # instance needs to be equal to or larger than the capacity of the backup (and
318
318
  # also equal to or larger than the minimum capacity of the tier).
319
319
  # @param [String] parent
320
- # Required. The instance's project and location, in the format projects/`
321
- # project_id`/locations/`location`. In Cloud Filestore, locations map to GCP
320
+ # Required. The instance's project and location, in the format `projects/`
321
+ # project_id`/locations/`location``. In Cloud Filestore, locations map to GCP
322
322
  # zones, for example **us-west1-b**.
323
323
  # @param [Google::Apis::FileV1beta1::Instance] instance_object
324
324
  # @param [String] instance_id
@@ -358,8 +358,8 @@ module Google
358
358
 
359
359
  # Deletes an instance.
360
360
  # @param [String] name
361
- # Required. The instance resource name, in the format projects/`project_id`/
362
- # locations/`location`/instances/`instance_id`
361
+ # Required. The instance resource name, in the format `projects/`project_id`/
362
+ # locations/`location`/instances/`instance_id``
363
363
  # @param [String] fields
364
364
  # Selector specifying which fields to include in a partial response.
365
365
  # @param [String] quota_user
@@ -389,8 +389,8 @@ module Google
389
389
 
390
390
  # Gets the details of a specific instance.
391
391
  # @param [String] name
392
- # Required. The instance resource name, in the format projects/`project_id`/
393
- # locations/`location`/instances/`instance_id`.
392
+ # Required. The instance resource name, in the format `projects/`project_id`/
393
+ # locations/`location`/instances/`instance_id``.
394
394
  # @param [String] fields
395
395
  # Selector specifying which fields to include in a partial response.
396
396
  # @param [String] quota_user
@@ -422,9 +422,9 @@ module Google
422
422
  # locations.
423
423
  # @param [String] parent
424
424
  # Required. The project and location for which to retrieve instance information,
425
- # in the format projects/`project_id`/locations/`location`. In Cloud Filestore,
425
+ # in the format `projects/`project_id`/locations/`location``. In Cloud Filestore,
426
426
  # locations map to GCP zones, for example **us-west1-b**. To retrieve instance
427
- # information for all locations, use "-" for the `location` value.
427
+ # information for all locations, use "-" for the ``location`` value.
428
428
  # @param [String] filter
429
429
  # List filter.
430
430
  # @param [String] order_by
@@ -467,8 +467,8 @@ module Google
467
467
 
468
468
  # Updates the settings of a specific instance.
469
469
  # @param [String] name
470
- # Output only. The resource name of the instance, in the format projects/`
471
- # project_id`/locations/`location_id`/instances/`instance_id`.
470
+ # Output only. The resource name of the instance, in the format `projects/`
471
+ # project_id`/locations/`location_id`/instances/`instance_id``.
472
472
  # @param [Google::Apis::FileV1beta1::Instance] instance_object
473
473
  # @param [String] update_mask
474
474
  # Required. Mask of fields to update. At least one path must be supplied in this
@@ -508,8 +508,8 @@ module Google
508
508
  # instance needs to be equal to or larger than the capacity of the backup (and
509
509
  # also equal to or larger than the minimum capacity of the tier).
510
510
  # @param [String] name
511
- # Required. The resource name of the instance, in the format projects/`
512
- # project_id`/locations/`location_id`/instances/`instance_id`.
511
+ # Required. The resource name of the instance, in the format `projects/`
512
+ # project_id`/locations/`location_id`/instances/`instance_id``.
513
513
  # @param [Google::Apis::FileV1beta1::RestoreInstanceRequest] restore_instance_request_object
514
514
  # @param [String] fields
515
515
  # Selector specifying which fields to include in a partial response.
@@ -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.9.0
4
+ version: 0.13.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-07-05 00:00:00.000000000 Z
11
+ date: 2021-08-23 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/master/generated/google-apis-file_v1beta1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-file_v1beta1/v0.9.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-file_v1beta1/v0.13.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: []