google-apis-file_v1beta1 0.10.0 → 0.14.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: 8e97d229c4f7aebcff46734caa391f8bb5a6809b2a49e3970d6a4b69ab1189bd
4
- data.tar.gz: 6b21200b26ad045ab9ddd3638860716eb9a1e17e30bd165fa364d52a78b54df7
3
+ metadata.gz: eda0fc8f0657ce0ea5592b67900de8e51de8a6d45cffb9a38e509ff4eaefeaa4
4
+ data.tar.gz: bb56aa97b7bd41470f21ed34cd13ad539bef9e0b4447e03ea58fd66f13a023db
5
5
  SHA512:
6
- metadata.gz: 04c272379d4d1e5cd0fb4466655337f295840fb75177c684af02d2f9ac35dedf135230249a5d89c6f245de79ce44ac871f2b14cdc26c31fcd472c37799af4393
7
- data.tar.gz: 179651f8cd607e31cc49d7fbba4365fed841b64dc100192903ce83ccda88ac1763fa98ab5c5a3082d62445db8fe50221cd0c922c9d7e4685d5f9b229bb281a36
6
+ metadata.gz: 2016a41e606dde06bf420fe48c82520d4817bf5f4036b3e97cd0ffc5aae031e9259dc05354f839b3fce5a9e73a737bc3573f684490af06b7d5fe78a14e798016
7
+ data.tar.gz: 949c095adf349b6f29d6765fbaf77490c8db7db86f0b34e97aa5a925e86264c26dca1ed335b25df721c2123a74717a8516f4c3803dd0181fbe62a187768ef447
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Release history for google-apis-file_v1beta1
2
2
 
3
+ ### v0.14.0 (2021-08-28)
4
+
5
+ * Regenerated from discovery document revision 20210810
6
+
7
+ ### v0.13.0 (2021-08-19)
8
+
9
+ * Regenerated from discovery document revision 20210804
10
+
11
+ ### v0.12.0 (2021-08-04)
12
+
13
+ * Regenerated from discovery document revision 20210727
14
+
15
+ ### v0.11.0 (2021-07-29)
16
+
17
+ * Regenerated from discovery document revision 20210721
18
+
3
19
  ### v0.10.0 (2021-07-13)
4
20
 
5
21
  * Regenerated from discovery document revision 20210708
@@ -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,8 +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 32 characters or less for High Scale SSD
275
- # tier, 16 characters or less for all other tiers).
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).
276
276
  # Corresponds to the JSON property `name`
277
277
  # @return [String]
278
278
  attr_accessor :name
@@ -282,8 +282,9 @@ module Google
282
282
  # @return [Array<Google::Apis::FileV1beta1::NfsExportOptions>]
283
283
  attr_accessor :nfs_export_options
284
284
 
285
- # The resource name of the backup, in the format projects/`project_id`/locations/
286
- # `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.
287
288
  # Corresponds to the JSON property `sourceBackup`
288
289
  # @return [String]
289
290
  attr_accessor :source_backup
@@ -774,13 +775,18 @@ module Google
774
775
  # @return [Array<Google::Apis::FileV1beta1::FileShareConfig>]
775
776
  attr_accessor :file_shares
776
777
 
778
+ # KMS key name used for data encryption.
779
+ # Corresponds to the JSON property `kmsKeyName`
780
+ # @return [String]
781
+ attr_accessor :kms_key_name
782
+
777
783
  # Resource labels to represent user provided metadata.
778
784
  # Corresponds to the JSON property `labels`
779
785
  # @return [Hash<String,String>]
780
786
  attr_accessor :labels
781
787
 
782
- # Output only. The resource name of the instance, in the format projects/`
783
- # project_id`/locations/`location_id`/instances/`instance_id`.
788
+ # Output only. The resource name of the instance, in the format `projects/`
789
+ # project_id`/locations/`location_id`/instances/`instance_id``.
784
790
  # Corresponds to the JSON property `name`
785
791
  # @return [String]
786
792
  attr_accessor :name
@@ -807,6 +813,12 @@ module Google
807
813
  # @return [String]
808
814
  attr_accessor :status_message
809
815
 
816
+ # Output only. field indicates all the reasons the instance is in "SUSPENDED"
817
+ # state.
818
+ # Corresponds to the JSON property `suspensionReasons`
819
+ # @return [Array<String>]
820
+ attr_accessor :suspension_reasons
821
+
810
822
  # The service tier of the instance.
811
823
  # Corresponds to the JSON property `tier`
812
824
  # @return [String]
@@ -822,12 +834,14 @@ module Google
822
834
  @description = args[:description] if args.key?(:description)
823
835
  @etag = args[:etag] if args.key?(:etag)
824
836
  @file_shares = args[:file_shares] if args.key?(:file_shares)
837
+ @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
825
838
  @labels = args[:labels] if args.key?(:labels)
826
839
  @name = args[:name] if args.key?(:name)
827
840
  @networks = args[:networks] if args.key?(:networks)
828
841
  @satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs)
829
842
  @state = args[:state] if args.key?(:state)
830
843
  @status_message = args[:status_message] if args.key?(:status_message)
844
+ @suspension_reasons = args[:suspension_reasons] if args.key?(:suspension_reasons)
831
845
  @tier = args[:tier] if args.key?(:tier)
832
846
  end
833
847
  end
@@ -836,9 +850,9 @@ module Google
836
850
  class ListBackupsResponse
837
851
  include Google::Apis::Core::Hashable
838
852
 
839
- # A list of backups in the project for the specified location. If the `location`
840
- # value in the request is "-", the response contains a list of backups from all
841
- # locations. If any location is unreachable, the response will only return
853
+ # A list of backups in the project for the specified location. If the ``location`
854
+ # ` value in the request is "-", the response contains a list of backups from
855
+ # all locations. If any location is unreachable, the response will only return
842
856
  # backups in reachable locations and the "unreachable" field will be populated
843
857
  # with a list of unreachable locations.
844
858
  # Corresponds to the JSON property `backups`
@@ -872,8 +886,8 @@ module Google
872
886
  class ListInstancesResponse
873
887
  include Google::Apis::Core::Hashable
874
888
 
875
- # A list of instances in the project for the specified location. If the `
876
- # location` value in the request is "-", the response contains a list of
889
+ # A list of instances in the project for the specified location. If the ``
890
+ # location`` value in the request is "-", the response contains a list of
877
891
  # instances from all locations. If any location is unreachable, the response
878
892
  # will only return instances in reachable locations and the "unreachable" field
879
893
  # will be populated with a list of unreachable locations.
@@ -954,6 +968,32 @@ module Google
954
968
  end
955
969
  end
956
970
 
971
+ # ListSnapshotsResponse is the result of ListSnapshotsRequest.
972
+ class ListSnapshotsResponse
973
+ include Google::Apis::Core::Hashable
974
+
975
+ # The token you can use to retrieve the next page of results. Not returned if
976
+ # there are no more results in the list.
977
+ # Corresponds to the JSON property `nextPageToken`
978
+ # @return [String]
979
+ attr_accessor :next_page_token
980
+
981
+ # A list of snapshots in the project for the specified instance.
982
+ # Corresponds to the JSON property `snapshots`
983
+ # @return [Array<Google::Apis::FileV1beta1::Snapshot>]
984
+ attr_accessor :snapshots
985
+
986
+ def initialize(**args)
987
+ update!(**args)
988
+ end
989
+
990
+ # Update properties of this object
991
+ def update!(**args)
992
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
993
+ @snapshots = args[:snapshots] if args.key?(:snapshots)
994
+ end
995
+ end
996
+
957
997
  # A resource that represents Google Cloud Platform location.
958
998
  class Location
959
999
  include Google::Apis::Core::Hashable
@@ -1098,9 +1138,9 @@ module Google
1098
1138
  # @return [String]
1099
1139
  attr_accessor :connect_mode
1100
1140
 
1101
- # Output only. IPv4 addresses in the format `octet 1`.`octet 2`.`octet 3`.`octet
1102
- # 4` or IPv6 addresses in the format `block 1`:`block 2`:`block 3`:`block 4`:`
1103
- # block 5`:`block 6`:`block 7`:`block 8`.
1141
+ # Output only. IPv4 addresses in the format ``octet1`.`octet2`.`octet3`.`octet4``
1142
+ # or IPv6 addresses in the format ``block1`:`block2`:`block3`:`block4`:`block5`:
1143
+ # `block6`:`block7`:`block8``.
1104
1144
  # Corresponds to the JSON property `ipAddresses`
1105
1145
  # @return [Array<String>]
1106
1146
  attr_accessor :ip_addresses
@@ -1111,18 +1151,25 @@ module Google
1111
1151
  # @return [Array<String>]
1112
1152
  attr_accessor :modes
1113
1153
 
1114
- # The name of the Google Compute Engine [VPC network](/compute/docs/networks-and-
1115
- # firewalls#networks) to which the instance is connected.
1154
+ # The name of the Google Compute Engine [VPC network](https://cloud.google.com/
1155
+ # vpc/docs/vpc) to which the instance is connected.
1116
1156
  # Corresponds to the JSON property `network`
1117
1157
  # @return [String]
1118
1158
  attr_accessor :network
1119
1159
 
1120
- # A /29 CIDR block for Basic or a /23 CIDR block for High Scale in one of the [
1121
- # internal IP address ranges](https://www.arin.net/knowledge/address_filters.
1122
- # html) that identifies the range of IP addresses reserved for this instance.
1123
- # For example, 10.0.0.0/29 or 192.168.0.0/23. The range you specify can't
1124
- # overlap with either existing subnets or assigned IP address ranges for other
1125
- # Cloud Filestore instances in the selected VPC network.
1160
+ # Optional, reserved_ip_range can have one of the following two types of values.
1161
+ # * CIDR range value when using DIRECT_PEERING connect mode. * [Allocated IP
1162
+ # address range](https://cloud.google.com/compute/docs/ip-addresses/reserve-
1163
+ # static-internal-ip-address) when using PRIVATE_SERVICE_ACCESS connect mode.
1164
+ # When the name of an allocated IP address range is specified, it must be one of
1165
+ # the ranges associated with the private service access connection. When
1166
+ # specified as a direct CIDR value, it must be a /29 CIDR block for Basic tier
1167
+ # or a /24 CIDR block for High Scale or Enterprise tier in one of the [internal
1168
+ # IP address ranges](https://www.arin.net/reference/research/statistics/
1169
+ # address_filters/) that identifies the range of IP addresses reserved for this
1170
+ # instance. For example, 10.0.0.0/29 or 192.168.0.0/24. The range you specify
1171
+ # can't overlap with either existing subnets or assigned IP address ranges for
1172
+ # other Cloud Filestore instances in the selected VPC network.
1126
1173
  # Corresponds to the JSON property `reservedIpRange`
1127
1174
  # @return [String]
1128
1175
  attr_accessor :reserved_ip_range
@@ -1166,9 +1213,9 @@ module Google
1166
1213
  # @return [Fixnum]
1167
1214
  attr_accessor :anon_uid
1168
1215
 
1169
- # List of either an IPv4 addresses in the format `octet 1`.`octet 2`.`octet 3`.`
1170
- # octet 4` or CIDR ranges in the format `octet 1`.`octet 2`.`octet 3`.`octet 4`/`
1171
- # mask size` which may mount the file share. Overlapping IP ranges are not
1216
+ # List of either an IPv4 addresses in the format ``octet1`.`octet2`.`octet3`.`
1217
+ # octet4`` or CIDR ranges in the format ``octet1`.`octet2`.`octet3`.`octet4`/`
1218
+ # mask size`` which may mount the file share. Overlapping IP ranges are not
1172
1219
  # allowed, both within and across NfsExportOptions. An error will be returned.
1173
1220
  # The limit is 64 IP ranges/addresses for each FileShareConfig among all
1174
1221
  # NfsExportOptions.
@@ -1268,7 +1315,7 @@ module Google
1268
1315
  attr_accessor :api_version
1269
1316
 
1270
1317
  # Output only. Identifies whether the user has requested cancellation of the
1271
- # operation. Operations that have successfully been cancelled have Operation.
1318
+ # operation. Operations that have been cancelled successfully have Operation.
1272
1319
  # error value with a google.rpc.Status.code of 1, corresponding to `Code.
1273
1320
  # CANCELLED`.
1274
1321
  # Corresponds to the JSON property `cancelRequested`
@@ -1328,14 +1375,14 @@ module Google
1328
1375
  # @return [String]
1329
1376
  attr_accessor :file_share
1330
1377
 
1331
- # The resource name of the backup, in the format projects/`project_id`/locations/
1332
- # `location_id`/backups/`backup_id`.
1378
+ # The resource name of the backup, in the format `projects/`project_id`/
1379
+ # locations/`location_id`/backups/`backup_id``.
1333
1380
  # Corresponds to the JSON property `sourceBackup`
1334
1381
  # @return [String]
1335
1382
  attr_accessor :source_backup
1336
1383
 
1337
- # The resource name of the snapshot, in the format projects/`project_id`/
1338
- # locations/`location_id`/snapshots/`snapshot_id`.
1384
+ # The resource name of the snapshot, in the format `projects/`project_id`/
1385
+ # locations/`location_id`/snapshots/`snapshot_id``.
1339
1386
  # Corresponds to the JSON property `sourceSnapshot`
1340
1387
  # @return [String]
1341
1388
  attr_accessor :source_snapshot
@@ -1385,6 +1432,59 @@ module Google
1385
1432
  end
1386
1433
  end
1387
1434
 
1435
+ # A Cloud Filestore snapshot.
1436
+ class Snapshot
1437
+ include Google::Apis::Core::Hashable
1438
+
1439
+ # Output only. The time when the snapshot was created.
1440
+ # Corresponds to the JSON property `createTime`
1441
+ # @return [String]
1442
+ attr_accessor :create_time
1443
+
1444
+ # A description of the snapshot with 2048 characters or less. Requests with
1445
+ # longer descriptions will be rejected.
1446
+ # Corresponds to the JSON property `description`
1447
+ # @return [String]
1448
+ attr_accessor :description
1449
+
1450
+ # Output only. The amount of bytes needed to allocate a full copy of the
1451
+ # snapshot content
1452
+ # Corresponds to the JSON property `filesystemUsedBytes`
1453
+ # @return [Fixnum]
1454
+ attr_accessor :filesystem_used_bytes
1455
+
1456
+ # Resource labels to represent user provided metadata.
1457
+ # Corresponds to the JSON property `labels`
1458
+ # @return [Hash<String,String>]
1459
+ attr_accessor :labels
1460
+
1461
+ # Output only. The resource name of the snapshot, in the format `projects/`
1462
+ # project_id`/locations/`location_id`/instances/`instance_id`/snapshots/`
1463
+ # snapshot_id``.
1464
+ # Corresponds to the JSON property `name`
1465
+ # @return [String]
1466
+ attr_accessor :name
1467
+
1468
+ # Output only. The snapshot state.
1469
+ # Corresponds to the JSON property `state`
1470
+ # @return [String]
1471
+ attr_accessor :state
1472
+
1473
+ def initialize(**args)
1474
+ update!(**args)
1475
+ end
1476
+
1477
+ # Update properties of this object
1478
+ def update!(**args)
1479
+ @create_time = args[:create_time] if args.key?(:create_time)
1480
+ @description = args[:description] if args.key?(:description)
1481
+ @filesystem_used_bytes = args[:filesystem_used_bytes] if args.key?(:filesystem_used_bytes)
1482
+ @labels = args[:labels] if args.key?(:labels)
1483
+ @name = args[:name] if args.key?(:name)
1484
+ @state = args[:state] if args.key?(:state)
1485
+ end
1486
+ end
1487
+
1388
1488
  # The `Status` type defines a logical error model that is suitable for different
1389
1489
  # programming environments, including REST APIs and RPC APIs. It is used by [
1390
1490
  # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
@@ -1476,8 +1576,7 @@ module Google
1476
1576
 
1477
1577
  # Deny Maintenance Period that is applied to resource to indicate when
1478
1578
  # maintenance is forbidden. User can specify zero or more non-overlapping deny
1479
- # periods. For V1, Maximum number of deny_maintenance_periods is expected to be
1480
- # one.
1579
+ # periods. Maximum number of deny_maintenance_periods expected is one.
1481
1580
  # Corresponds to the JSON property `denyMaintenancePeriods`
1482
1581
  # @return [Array<Google::Apis::FileV1beta1::DenyMaintenancePeriod>]
1483
1582
  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.10.0"
19
+ GEM_VERSION = "0.14.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 = "20210708"
25
+ REVISION = "20210810"
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
 
@@ -410,6 +422,7 @@ module Google
410
422
  property :etag, as: 'etag'
411
423
  collection :file_shares, as: 'fileShares', class: Google::Apis::FileV1beta1::FileShareConfig, decorator: Google::Apis::FileV1beta1::FileShareConfig::Representation
412
424
 
425
+ property :kms_key_name, as: 'kmsKeyName'
413
426
  hash :labels, as: 'labels'
414
427
  property :name, as: 'name'
415
428
  collection :networks, as: 'networks', class: Google::Apis::FileV1beta1::NetworkConfig, decorator: Google::Apis::FileV1beta1::NetworkConfig::Representation
@@ -417,6 +430,7 @@ module Google
417
430
  property :satisfies_pzs, as: 'satisfiesPzs'
418
431
  property :state, as: 'state'
419
432
  property :status_message, as: 'statusMessage'
433
+ collection :suspension_reasons, as: 'suspensionReasons'
420
434
  property :tier, as: 'tier'
421
435
  end
422
436
  end
@@ -459,6 +473,15 @@ module Google
459
473
  end
460
474
  end
461
475
 
476
+ class ListSnapshotsResponse
477
+ # @private
478
+ class Representation < Google::Apis::Core::JsonRepresentation
479
+ property :next_page_token, as: 'nextPageToken'
480
+ collection :snapshots, as: 'snapshots', class: Google::Apis::FileV1beta1::Snapshot, decorator: Google::Apis::FileV1beta1::Snapshot::Representation
481
+
482
+ end
483
+ end
484
+
462
485
  class Location
463
486
  # @private
464
487
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -560,6 +583,18 @@ module Google
560
583
  end
561
584
  end
562
585
 
586
+ class Snapshot
587
+ # @private
588
+ class Representation < Google::Apis::Core::JsonRepresentation
589
+ property :create_time, as: 'createTime'
590
+ property :description, as: 'description'
591
+ property :filesystem_used_bytes, :numeric_string => true, as: 'filesystemUsedBytes'
592
+ hash :labels, as: 'labels'
593
+ property :name, as: 'name'
594
+ property :state, as: 'state'
595
+ end
596
+ end
597
+
563
598
  class Status
564
599
  # @private
565
600
  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`.
@@ -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
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.10.0
4
+ version: 0.14.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-19 00:00:00.000000000 Z
11
+ date: 2021-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-file_v1beta1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-file_v1beta1/v0.10.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-file_v1beta1/v0.14.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: []