google-apis-file_v1beta1 0.12.0 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -0
- data/OVERVIEW.md +2 -2
- data/lib/google/apis/file_v1beta1/classes.rb +73 -106
- data/lib/google/apis/file_v1beta1/gem_version.rb +2 -2
- data/lib/google/apis/file_v1beta1/representations.rb +15 -20
- data/lib/google/apis/file_v1beta1/service.rb +70 -32
- data/lib/google/apis/file_v1beta1.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 662df2fcc08f701b24f9b78c8ff6800ae2a63c8843a5c4ddf43b3eb3e8535b17
|
4
|
+
data.tar.gz: de573b1e3fbb95a5345c12649c87c8aa450d7cf322015ff90fab837677c4e6df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0685e555dabdb84f263296495e2dbd8f49c3002f0e6821f45b0872fc504156bc4d2aca6fb4ed585a4acabdb3a03e1ff976e17c81c9dfe8b78ff194adf476e28
|
7
|
+
data.tar.gz: b1dc8ea4fa3e8134d201cff3790122ecdf519a1759893bba150c64815a6322e4f2c1ee9a56a1fc78aeaed703f98354d2e312759ca255373055e7f82636d6801a
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,22 @@
|
|
1
1
|
# Release history for google-apis-file_v1beta1
|
2
2
|
|
3
|
+
### v0.16.0 (2021-10-24)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20211017
|
6
|
+
* Unspecified changes
|
7
|
+
|
8
|
+
### v0.15.0 (2021-09-07)
|
9
|
+
|
10
|
+
* Regenerated from discovery document revision 20210822
|
11
|
+
|
12
|
+
### v0.14.0 (2021-08-28)
|
13
|
+
|
14
|
+
* Regenerated from discovery document revision 20210810
|
15
|
+
|
16
|
+
### v0.13.0 (2021-08-19)
|
17
|
+
|
18
|
+
* Regenerated from discovery document revision 20210804
|
19
|
+
|
3
20
|
### v0.12.0 (2021-08-04)
|
4
21
|
|
5
22
|
* Regenerated from discovery document revision 20210727
|
data/OVERVIEW.md
CHANGED
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
|
|
60
60
|
|
61
61
|
More detailed descriptions of the Google simple REST clients are available in two documents.
|
62
62
|
|
63
|
-
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
64
|
-
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
63
|
+
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
|
64
|
+
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
|
65
65
|
|
66
66
|
(Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the File service in particular.)
|
67
67
|
|
@@ -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
|
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
|
@@ -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`/
|
286
|
-
#
|
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
|
@@ -526,14 +527,6 @@ module Google
|
|
526
527
|
class GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata
|
527
528
|
include Google::Apis::Core::Hashable
|
528
529
|
|
529
|
-
# By default node is eligible if instance is eligible. But individual node might
|
530
|
-
# be excluded from SLO by adding entry here. For semantic see SloMetadata.
|
531
|
-
# exclusions. If both instance and node level exclusions are present for time
|
532
|
-
# period, the node level's reason will be reported by Eligibility Exporter.
|
533
|
-
# Corresponds to the JSON property `exclusions`
|
534
|
-
# @return [Array<Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion>]
|
535
|
-
attr_accessor :exclusions
|
536
|
-
|
537
530
|
# The location of the node, if different from instance location.
|
538
531
|
# Corresponds to the JSON property `location`
|
539
532
|
# @return [String]
|
@@ -555,7 +548,6 @@ module Google
|
|
555
548
|
|
556
549
|
# Update properties of this object
|
557
550
|
def update!(**args)
|
558
|
-
@exclusions = args[:exclusions] if args.key?(:exclusions)
|
559
551
|
@location = args[:location] if args.key?(:location)
|
560
552
|
@node_id = args[:node_id] if args.key?(:node_id)
|
561
553
|
@per_sli_eligibility = args[:per_sli_eligibility] if args.key?(:per_sli_eligibility)
|
@@ -650,71 +642,11 @@ module Google
|
|
650
642
|
end
|
651
643
|
end
|
652
644
|
|
653
|
-
# SloExclusion represents an exclusion in SLI calculation applies to all SLOs.
|
654
|
-
class GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion
|
655
|
-
include Google::Apis::Core::Hashable
|
656
|
-
|
657
|
-
# Exclusion duration. No restrictions on the possible values. When an ongoing
|
658
|
-
# operation is taking longer than initially expected, an existing entry in the
|
659
|
-
# exclusion list can be updated by extending the duration. This is supported by
|
660
|
-
# the subsystem exporting eligibility data as long as such extension is
|
661
|
-
# committed at least 10 minutes before the original exclusion expiration -
|
662
|
-
# otherwise it is possible that there will be "gaps" in the exclusion
|
663
|
-
# application in the exported timeseries.
|
664
|
-
# Corresponds to the JSON property `duration`
|
665
|
-
# @return [String]
|
666
|
-
attr_accessor :duration
|
667
|
-
|
668
|
-
# Human-readable reason for the exclusion. This should be a static string (e.g. "
|
669
|
-
# Disruptive update in progress") and should not contain dynamically generated
|
670
|
-
# data (e.g. instance name). Can be left empty.
|
671
|
-
# Corresponds to the JSON property `reason`
|
672
|
-
# @return [String]
|
673
|
-
attr_accessor :reason
|
674
|
-
|
675
|
-
# Name of an SLI that this exclusion applies to. Can be left empty, signaling
|
676
|
-
# that the instance should be excluded from all SLIs.
|
677
|
-
# Corresponds to the JSON property `sliName`
|
678
|
-
# @return [String]
|
679
|
-
attr_accessor :sli_name
|
680
|
-
|
681
|
-
# Start time of the exclusion. No alignment (e.g. to a full minute) needed.
|
682
|
-
# Corresponds to the JSON property `startTime`
|
683
|
-
# @return [String]
|
684
|
-
attr_accessor :start_time
|
685
|
-
|
686
|
-
def initialize(**args)
|
687
|
-
update!(**args)
|
688
|
-
end
|
689
|
-
|
690
|
-
# Update properties of this object
|
691
|
-
def update!(**args)
|
692
|
-
@duration = args[:duration] if args.key?(:duration)
|
693
|
-
@reason = args[:reason] if args.key?(:reason)
|
694
|
-
@sli_name = args[:sli_name] if args.key?(:sli_name)
|
695
|
-
@start_time = args[:start_time] if args.key?(:start_time)
|
696
|
-
end
|
697
|
-
end
|
698
|
-
|
699
645
|
# SloMetadata contains resources required for proper SLO classification of the
|
700
646
|
# instance.
|
701
647
|
class GoogleCloudSaasacceleratorManagementProvidersV1SloMetadata
|
702
648
|
include Google::Apis::Core::Hashable
|
703
649
|
|
704
|
-
# List of SLO exclusion windows. When multiple entries in the list match (
|
705
|
-
# matching the exclusion time-window against current time point) the exclusion
|
706
|
-
# reason used in the first matching entry will be published. It is not needed to
|
707
|
-
# include expired exclusion in this list, as only the currently applicable
|
708
|
-
# exclusions are taken into account by the eligibility exporting subsystem (the
|
709
|
-
# historical state of exclusions will be reflected in the historically produced
|
710
|
-
# timeseries regardless of the current state). This field can be used to mark
|
711
|
-
# the instance as temporary ineligible for the purpose of SLO calculation. For
|
712
|
-
# permanent instance SLO exclusion, use of custom instance eligibility is
|
713
|
-
# recommended. See 'eligibility' field below.
|
714
|
-
# Corresponds to the JSON property `exclusions`
|
715
|
-
# @return [Array<Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion>]
|
716
|
-
attr_accessor :exclusions
|
717
|
-
|
718
650
|
# Optional. List of nodes. Some producers need to use per-node metadata to
|
719
651
|
# calculate SLO. This field allows such producers to publish per-node SLO meta
|
720
652
|
# data, which will be consumed by SSA Eligibility Exporter and published in the
|
@@ -741,7 +673,6 @@ module Google
|
|
741
673
|
|
742
674
|
# Update properties of this object
|
743
675
|
def update!(**args)
|
744
|
-
@exclusions = args[:exclusions] if args.key?(:exclusions)
|
745
676
|
@nodes = args[:nodes] if args.key?(:nodes)
|
746
677
|
@per_sli_eligibility = args[:per_sli_eligibility] if args.key?(:per_sli_eligibility)
|
747
678
|
@tier = args[:tier] if args.key?(:tier)
|
@@ -774,13 +705,18 @@ module Google
|
|
774
705
|
# @return [Array<Google::Apis::FileV1beta1::FileShareConfig>]
|
775
706
|
attr_accessor :file_shares
|
776
707
|
|
708
|
+
# KMS key name used for data encryption.
|
709
|
+
# Corresponds to the JSON property `kmsKeyName`
|
710
|
+
# @return [String]
|
711
|
+
attr_accessor :kms_key_name
|
712
|
+
|
777
713
|
# Resource labels to represent user provided metadata.
|
778
714
|
# Corresponds to the JSON property `labels`
|
779
715
|
# @return [Hash<String,String>]
|
780
716
|
attr_accessor :labels
|
781
717
|
|
782
|
-
# Output only. The resource name of the instance, in the format projects/`
|
783
|
-
# project_id`/locations/`location_id`/instances/`instance_id
|
718
|
+
# Output only. The resource name of the instance, in the format `projects/`
|
719
|
+
# project_id`/locations/`location_id`/instances/`instance_id``.
|
784
720
|
# Corresponds to the JSON property `name`
|
785
721
|
# @return [String]
|
786
722
|
attr_accessor :name
|
@@ -807,6 +743,12 @@ module Google
|
|
807
743
|
# @return [String]
|
808
744
|
attr_accessor :status_message
|
809
745
|
|
746
|
+
# Output only. field indicates all the reasons the instance is in "SUSPENDED"
|
747
|
+
# state.
|
748
|
+
# Corresponds to the JSON property `suspensionReasons`
|
749
|
+
# @return [Array<String>]
|
750
|
+
attr_accessor :suspension_reasons
|
751
|
+
|
810
752
|
# The service tier of the instance.
|
811
753
|
# Corresponds to the JSON property `tier`
|
812
754
|
# @return [String]
|
@@ -822,12 +764,14 @@ module Google
|
|
822
764
|
@description = args[:description] if args.key?(:description)
|
823
765
|
@etag = args[:etag] if args.key?(:etag)
|
824
766
|
@file_shares = args[:file_shares] if args.key?(:file_shares)
|
767
|
+
@kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
|
825
768
|
@labels = args[:labels] if args.key?(:labels)
|
826
769
|
@name = args[:name] if args.key?(:name)
|
827
770
|
@networks = args[:networks] if args.key?(:networks)
|
828
771
|
@satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs)
|
829
772
|
@state = args[:state] if args.key?(:state)
|
830
773
|
@status_message = args[:status_message] if args.key?(:status_message)
|
774
|
+
@suspension_reasons = args[:suspension_reasons] if args.key?(:suspension_reasons)
|
831
775
|
@tier = args[:tier] if args.key?(:tier)
|
832
776
|
end
|
833
777
|
end
|
@@ -836,9 +780,9 @@ module Google
|
|
836
780
|
class ListBackupsResponse
|
837
781
|
include Google::Apis::Core::Hashable
|
838
782
|
|
839
|
-
# A list of backups in the project for the specified location. If the
|
840
|
-
# value in the request is "-", the response contains a list of backups from
|
841
|
-
# locations. If any location is unreachable, the response will only return
|
783
|
+
# A list of backups in the project for the specified location. If the ``location`
|
784
|
+
# ` value in the request is "-", the response contains a list of backups from
|
785
|
+
# all locations. If any location is unreachable, the response will only return
|
842
786
|
# backups in reachable locations and the "unreachable" field will be populated
|
843
787
|
# with a list of unreachable locations.
|
844
788
|
# Corresponds to the JSON property `backups`
|
@@ -872,8 +816,8 @@ module Google
|
|
872
816
|
class ListInstancesResponse
|
873
817
|
include Google::Apis::Core::Hashable
|
874
818
|
|
875
|
-
# A list of instances in the project for the specified location. If the
|
876
|
-
# location
|
819
|
+
# A list of instances in the project for the specified location. If the ``
|
820
|
+
# location`` value in the request is "-", the response contains a list of
|
877
821
|
# instances from all locations. If any location is unreachable, the response
|
878
822
|
# will only return instances in reachable locations and the "unreachable" field
|
879
823
|
# will be populated with a list of unreachable locations.
|
@@ -1124,9 +1068,9 @@ module Google
|
|
1124
1068
|
# @return [String]
|
1125
1069
|
attr_accessor :connect_mode
|
1126
1070
|
|
1127
|
-
# Output only. IPv4 addresses in the format
|
1128
|
-
#
|
1129
|
-
#
|
1071
|
+
# Output only. IPv4 addresses in the format ``octet1`.`octet2`.`octet3`.`octet4``
|
1072
|
+
# or IPv6 addresses in the format ``block1`:`block2`:`block3`:`block4`:`block5`:
|
1073
|
+
# `block6`:`block7`:`block8``.
|
1130
1074
|
# Corresponds to the JSON property `ipAddresses`
|
1131
1075
|
# @return [Array<String>]
|
1132
1076
|
attr_accessor :ip_addresses
|
@@ -1137,8 +1081,8 @@ module Google
|
|
1137
1081
|
# @return [Array<String>]
|
1138
1082
|
attr_accessor :modes
|
1139
1083
|
|
1140
|
-
# The name of the Google Compute Engine [VPC network](/
|
1141
|
-
#
|
1084
|
+
# The name of the Google Compute Engine [VPC network](https://cloud.google.com/
|
1085
|
+
# vpc/docs/vpc) to which the instance is connected.
|
1142
1086
|
# Corresponds to the JSON property `network`
|
1143
1087
|
# @return [String]
|
1144
1088
|
attr_accessor :network
|
@@ -1150,12 +1094,12 @@ module Google
|
|
1150
1094
|
# When the name of an allocated IP address range is specified, it must be one of
|
1151
1095
|
# the ranges associated with the private service access connection. When
|
1152
1096
|
# specified as a direct CIDR value, it must be a /29 CIDR block for Basic tier
|
1153
|
-
# or a /
|
1154
|
-
# IP address ranges](https://www.arin.net/
|
1155
|
-
# identifies the range of IP addresses reserved for this
|
1156
|
-
# 10.0.0.0/29 or 192.168.0.0/
|
1157
|
-
# existing subnets or assigned IP address ranges for
|
1158
|
-
# instances in the selected VPC network.
|
1097
|
+
# or a /24 CIDR block for High Scale or Enterprise tier in one of the [internal
|
1098
|
+
# IP address ranges](https://www.arin.net/reference/research/statistics/
|
1099
|
+
# address_filters/) that identifies the range of IP addresses reserved for this
|
1100
|
+
# instance. For example, 10.0.0.0/29 or 192.168.0.0/24. The range you specify
|
1101
|
+
# can't overlap with either existing subnets or assigned IP address ranges for
|
1102
|
+
# other Cloud Filestore instances in the selected VPC network.
|
1159
1103
|
# Corresponds to the JSON property `reservedIpRange`
|
1160
1104
|
# @return [String]
|
1161
1105
|
attr_accessor :reserved_ip_range
|
@@ -1199,9 +1143,9 @@ module Google
|
|
1199
1143
|
# @return [Fixnum]
|
1200
1144
|
attr_accessor :anon_uid
|
1201
1145
|
|
1202
|
-
# List of either an IPv4 addresses in the format
|
1203
|
-
#
|
1204
|
-
# mask size
|
1146
|
+
# List of either an IPv4 addresses in the format ``octet1`.`octet2`.`octet3`.`
|
1147
|
+
# octet4`` or CIDR ranges in the format ``octet1`.`octet2`.`octet3`.`octet4`/`
|
1148
|
+
# mask size`` which may mount the file share. Overlapping IP ranges are not
|
1205
1149
|
# allowed, both within and across NfsExportOptions. An error will be returned.
|
1206
1150
|
# The limit is 64 IP ranges/addresses for each FileShareConfig among all
|
1207
1151
|
# NfsExportOptions.
|
@@ -1301,7 +1245,7 @@ module Google
|
|
1301
1245
|
attr_accessor :api_version
|
1302
1246
|
|
1303
1247
|
# Output only. Identifies whether the user has requested cancellation of the
|
1304
|
-
# operation. Operations that have
|
1248
|
+
# operation. Operations that have been cancelled successfully have Operation.
|
1305
1249
|
# error value with a google.rpc.Status.code of 1, corresponding to `Code.
|
1306
1250
|
# CANCELLED`.
|
1307
1251
|
# Corresponds to the JSON property `cancelRequested`
|
@@ -1350,7 +1294,7 @@ module Google
|
|
1350
1294
|
end
|
1351
1295
|
end
|
1352
1296
|
|
1353
|
-
# RestoreInstanceRequest restores an existing
|
1297
|
+
# RestoreInstanceRequest restores an existing instance's file share from a
|
1354
1298
|
# snapshot or backup.
|
1355
1299
|
class RestoreInstanceRequest
|
1356
1300
|
include Google::Apis::Core::Hashable
|
@@ -1361,14 +1305,14 @@ module Google
|
|
1361
1305
|
# @return [String]
|
1362
1306
|
attr_accessor :file_share
|
1363
1307
|
|
1364
|
-
# The resource name of the backup, in the format projects/`project_id`/
|
1365
|
-
#
|
1308
|
+
# The resource name of the backup, in the format `projects/`project_id`/
|
1309
|
+
# locations/`location_id`/backups/`backup_id``.
|
1366
1310
|
# Corresponds to the JSON property `sourceBackup`
|
1367
1311
|
# @return [String]
|
1368
1312
|
attr_accessor :source_backup
|
1369
1313
|
|
1370
|
-
# The resource name of the snapshot, in the format projects/`project_id`/
|
1371
|
-
# locations/`location_id`/snapshots/`snapshot_id
|
1314
|
+
# The resource name of the snapshot, in the format `projects/`project_id`/
|
1315
|
+
# locations/`location_id`/snapshots/`snapshot_id``.
|
1372
1316
|
# Corresponds to the JSON property `sourceSnapshot`
|
1373
1317
|
# @return [String]
|
1374
1318
|
attr_accessor :source_snapshot
|
@@ -1385,6 +1329,29 @@ module Google
|
|
1385
1329
|
end
|
1386
1330
|
end
|
1387
1331
|
|
1332
|
+
# RevertInstanceRequest reverts the given instance's file share to the specified
|
1333
|
+
# snapshot.
|
1334
|
+
class RevertInstanceRequest
|
1335
|
+
include Google::Apis::Core::Hashable
|
1336
|
+
|
1337
|
+
# Required. The snapshot resource ID, in the format 'my-snapshot', where the
|
1338
|
+
# specified ID is the `snapshot_id` of the fully qualified name like projects/`
|
1339
|
+
# project_id`/locations/`location_id`/instances/`instance_id`/snapshots/`
|
1340
|
+
# snapshot_id`
|
1341
|
+
# Corresponds to the JSON property `targetSnapshotId`
|
1342
|
+
# @return [String]
|
1343
|
+
attr_accessor :target_snapshot_id
|
1344
|
+
|
1345
|
+
def initialize(**args)
|
1346
|
+
update!(**args)
|
1347
|
+
end
|
1348
|
+
|
1349
|
+
# Update properties of this object
|
1350
|
+
def update!(**args)
|
1351
|
+
@target_snapshot_id = args[:target_snapshot_id] if args.key?(:target_snapshot_id)
|
1352
|
+
end
|
1353
|
+
end
|
1354
|
+
|
1388
1355
|
# Configure the schedule.
|
1389
1356
|
class Schedule
|
1390
1357
|
include Google::Apis::Core::Hashable
|
@@ -1444,9 +1411,9 @@ module Google
|
|
1444
1411
|
# @return [Hash<String,String>]
|
1445
1412
|
attr_accessor :labels
|
1446
1413
|
|
1447
|
-
# Output only. The resource name of the snapshot, in the format projects/`
|
1414
|
+
# Output only. The resource name of the snapshot, in the format `projects/`
|
1448
1415
|
# project_id`/locations/`location_id`/instances/`instance_id`/snapshots/`
|
1449
|
-
# snapshot_id
|
1416
|
+
# snapshot_id``.
|
1450
1417
|
# Corresponds to the JSON property `name`
|
1451
1418
|
# @return [String]
|
1452
1419
|
attr_accessor :name
|
@@ -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.16.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20211017"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -106,12 +106,6 @@ module Google
|
|
106
106
|
include Google::Apis::Core::JsonObjectSupport
|
107
107
|
end
|
108
108
|
|
109
|
-
class GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion
|
110
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
-
|
112
|
-
include Google::Apis::Core::JsonObjectSupport
|
113
|
-
end
|
114
|
-
|
115
109
|
class GoogleCloudSaasacceleratorManagementProvidersV1SloMetadata
|
116
110
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
111
|
|
@@ -202,6 +196,12 @@ module Google
|
|
202
196
|
include Google::Apis::Core::JsonObjectSupport
|
203
197
|
end
|
204
198
|
|
199
|
+
class RevertInstanceRequest
|
200
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
201
|
+
|
202
|
+
include Google::Apis::Core::JsonObjectSupport
|
203
|
+
end
|
204
|
+
|
205
205
|
class Schedule
|
206
206
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
207
207
|
|
@@ -358,8 +358,6 @@ module Google
|
|
358
358
|
class GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata
|
359
359
|
# @private
|
360
360
|
class Representation < Google::Apis::Core::JsonRepresentation
|
361
|
-
collection :exclusions, as: 'exclusions', class: Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion, decorator: Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion::Representation
|
362
|
-
|
363
361
|
property :location, as: 'location'
|
364
362
|
property :node_id, as: 'nodeId'
|
365
363
|
property :per_sli_eligibility, as: 'perSliEligibility', class: Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1PerSliSloEligibility, decorator: Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1PerSliSloEligibility::Representation
|
@@ -391,21 +389,9 @@ module Google
|
|
391
389
|
end
|
392
390
|
end
|
393
391
|
|
394
|
-
class GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion
|
395
|
-
# @private
|
396
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
397
|
-
property :duration, as: 'duration'
|
398
|
-
property :reason, as: 'reason'
|
399
|
-
property :sli_name, as: 'sliName'
|
400
|
-
property :start_time, as: 'startTime'
|
401
|
-
end
|
402
|
-
end
|
403
|
-
|
404
392
|
class GoogleCloudSaasacceleratorManagementProvidersV1SloMetadata
|
405
393
|
# @private
|
406
394
|
class Representation < Google::Apis::Core::JsonRepresentation
|
407
|
-
collection :exclusions, as: 'exclusions', class: Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion, decorator: Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion::Representation
|
408
|
-
|
409
395
|
collection :nodes, as: 'nodes', class: Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata, decorator: Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata::Representation
|
410
396
|
|
411
397
|
property :per_sli_eligibility, as: 'perSliEligibility', class: Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1PerSliSloEligibility, decorator: Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1PerSliSloEligibility::Representation
|
@@ -422,6 +408,7 @@ module Google
|
|
422
408
|
property :etag, as: 'etag'
|
423
409
|
collection :file_shares, as: 'fileShares', class: Google::Apis::FileV1beta1::FileShareConfig, decorator: Google::Apis::FileV1beta1::FileShareConfig::Representation
|
424
410
|
|
411
|
+
property :kms_key_name, as: 'kmsKeyName'
|
425
412
|
hash :labels, as: 'labels'
|
426
413
|
property :name, as: 'name'
|
427
414
|
collection :networks, as: 'networks', class: Google::Apis::FileV1beta1::NetworkConfig, decorator: Google::Apis::FileV1beta1::NetworkConfig::Representation
|
@@ -429,6 +416,7 @@ module Google
|
|
429
416
|
property :satisfies_pzs, as: 'satisfiesPzs'
|
430
417
|
property :state, as: 'state'
|
431
418
|
property :status_message, as: 'statusMessage'
|
419
|
+
collection :suspension_reasons, as: 'suspensionReasons'
|
432
420
|
property :tier, as: 'tier'
|
433
421
|
end
|
434
422
|
end
|
@@ -571,6 +559,13 @@ module Google
|
|
571
559
|
end
|
572
560
|
end
|
573
561
|
|
562
|
+
class RevertInstanceRequest
|
563
|
+
# @private
|
564
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
565
|
+
property :target_snapshot_id, as: 'targetSnapshotId'
|
566
|
+
end
|
567
|
+
end
|
568
|
+
|
574
569
|
class Schedule
|
575
570
|
# @private
|
576
571
|
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
|
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
|
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
|
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
|
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,11 @@ 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
|
+
# @param [Boolean] force
|
364
|
+
# If set to true, any snapshots of the instance will also be deleted. (Otherwise,
|
365
|
+
# the request will only work if the instance has no snapshots.)
|
363
366
|
# @param [String] fields
|
364
367
|
# Selector specifying which fields to include in a partial response.
|
365
368
|
# @param [String] quota_user
|
@@ -377,11 +380,12 @@ module Google
|
|
377
380
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
378
381
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
379
382
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
380
|
-
def delete_project_location_instance(name, fields: nil, quota_user: nil, options: nil, &block)
|
383
|
+
def delete_project_location_instance(name, force: nil, fields: nil, quota_user: nil, options: nil, &block)
|
381
384
|
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
382
385
|
command.response_representation = Google::Apis::FileV1beta1::Operation::Representation
|
383
386
|
command.response_class = Google::Apis::FileV1beta1::Operation
|
384
387
|
command.params['name'] = name unless name.nil?
|
388
|
+
command.query['force'] = force unless force.nil?
|
385
389
|
command.query['fields'] = fields unless fields.nil?
|
386
390
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
387
391
|
execute_or_queue_command(command, &block)
|
@@ -389,8 +393,8 @@ module Google
|
|
389
393
|
|
390
394
|
# Gets the details of a specific instance.
|
391
395
|
# @param [String] name
|
392
|
-
# Required. The instance resource name, in the format projects/`project_id`/
|
393
|
-
# locations/`location`/instances/`instance_id
|
396
|
+
# Required. The instance resource name, in the format `projects/`project_id`/
|
397
|
+
# locations/`location`/instances/`instance_id``.
|
394
398
|
# @param [String] fields
|
395
399
|
# Selector specifying which fields to include in a partial response.
|
396
400
|
# @param [String] quota_user
|
@@ -422,9 +426,9 @@ module Google
|
|
422
426
|
# locations.
|
423
427
|
# @param [String] parent
|
424
428
|
# Required. The project and location for which to retrieve instance information,
|
425
|
-
# in the format projects/`project_id`/locations/`location
|
429
|
+
# in the format `projects/`project_id`/locations/`location``. In Cloud Filestore,
|
426
430
|
# locations map to GCP zones, for example **us-west1-b**. To retrieve instance
|
427
|
-
# information for all locations, use "-" for the
|
431
|
+
# information for all locations, use "-" for the ``location`` value.
|
428
432
|
# @param [String] filter
|
429
433
|
# List filter.
|
430
434
|
# @param [String] order_by
|
@@ -467,8 +471,8 @@ module Google
|
|
467
471
|
|
468
472
|
# Updates the settings of a specific instance.
|
469
473
|
# @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
|
474
|
+
# Output only. The resource name of the instance, in the format `projects/`
|
475
|
+
# project_id`/locations/`location_id`/instances/`instance_id``.
|
472
476
|
# @param [Google::Apis::FileV1beta1::Instance] instance_object
|
473
477
|
# @param [String] update_mask
|
474
478
|
# Required. Mask of fields to update. At least one path must be supplied in this
|
@@ -508,8 +512,8 @@ module Google
|
|
508
512
|
# instance needs to be equal to or larger than the capacity of the backup (and
|
509
513
|
# also equal to or larger than the minimum capacity of the tier).
|
510
514
|
# @param [String] name
|
511
|
-
# Required. The resource name of the instance, in the format projects/`
|
512
|
-
# project_id`/locations/`location_id`/instances/`instance_id
|
515
|
+
# Required. The resource name of the instance, in the format `projects/`
|
516
|
+
# project_id`/locations/`location_id`/instances/`instance_id``.
|
513
517
|
# @param [Google::Apis::FileV1beta1::RestoreInstanceRequest] restore_instance_request_object
|
514
518
|
# @param [String] fields
|
515
519
|
# Selector specifying which fields to include in a partial response.
|
@@ -540,10 +544,44 @@ module Google
|
|
540
544
|
execute_or_queue_command(command, &block)
|
541
545
|
end
|
542
546
|
|
547
|
+
# Revert an existing instance's file system to a specified snapshot.
|
548
|
+
# @param [String] name
|
549
|
+
# Required. projects/`project_id`/locations/`location_id`/instances/`instance_id`
|
550
|
+
# . The resource name of the instance, in the format
|
551
|
+
# @param [Google::Apis::FileV1beta1::RevertInstanceRequest] revert_instance_request_object
|
552
|
+
# @param [String] fields
|
553
|
+
# Selector specifying which fields to include in a partial response.
|
554
|
+
# @param [String] quota_user
|
555
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
556
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
557
|
+
# @param [Google::Apis::RequestOptions] options
|
558
|
+
# Request-specific options
|
559
|
+
#
|
560
|
+
# @yield [result, err] Result & error if block supplied
|
561
|
+
# @yieldparam result [Google::Apis::FileV1beta1::Operation] parsed result object
|
562
|
+
# @yieldparam err [StandardError] error object if request failed
|
563
|
+
#
|
564
|
+
# @return [Google::Apis::FileV1beta1::Operation]
|
565
|
+
#
|
566
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
567
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
568
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
569
|
+
def revert_instance(name, revert_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
570
|
+
command = make_simple_command(:post, 'v1beta1/{+name}:revert', options)
|
571
|
+
command.request_representation = Google::Apis::FileV1beta1::RevertInstanceRequest::Representation
|
572
|
+
command.request_object = revert_instance_request_object
|
573
|
+
command.response_representation = Google::Apis::FileV1beta1::Operation::Representation
|
574
|
+
command.response_class = Google::Apis::FileV1beta1::Operation
|
575
|
+
command.params['name'] = name unless name.nil?
|
576
|
+
command.query['fields'] = fields unless fields.nil?
|
577
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
578
|
+
execute_or_queue_command(command, &block)
|
579
|
+
end
|
580
|
+
|
543
581
|
# Creates a snapshot.
|
544
582
|
# @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
|
583
|
+
# Required. The Filestore Instance to create the snapshots of, in the format `
|
584
|
+
# projects/`project_id`/locations/`location`/instances/`instance_id``
|
547
585
|
# @param [Google::Apis::FileV1beta1::Snapshot] snapshot_object
|
548
586
|
# @param [String] snapshot_id
|
549
587
|
# Required. The ID to use for the snapshot. The ID must be unique within the
|
@@ -581,8 +619,8 @@ module Google
|
|
581
619
|
|
582
620
|
# Deletes a snapshot.
|
583
621
|
# @param [String] name
|
584
|
-
# Required. The snapshot resource name, in the format projects/`project_id`/
|
585
|
-
# locations/`location`/instances/`instance_id`/snapshots/`snapshot_id
|
622
|
+
# Required. The snapshot resource name, in the format `projects/`project_id`/
|
623
|
+
# locations/`location`/instances/`instance_id`/snapshots/`snapshot_id``
|
586
624
|
# @param [String] fields
|
587
625
|
# Selector specifying which fields to include in a partial response.
|
588
626
|
# @param [String] quota_user
|
@@ -612,8 +650,8 @@ module Google
|
|
612
650
|
|
613
651
|
# Gets the details of a specific snapshot.
|
614
652
|
# @param [String] name
|
615
|
-
# Required. The snapshot resource name, in the format projects/`project_id`/
|
616
|
-
# locations/`location`/instances/`instance_id`/snapshots/`snapshot_id
|
653
|
+
# Required. The snapshot resource name, in the format `projects/`project_id`/
|
654
|
+
# locations/`location`/instances/`instance_id`/snapshots/`snapshot_id``
|
617
655
|
# @param [String] fields
|
618
656
|
# Selector specifying which fields to include in a partial response.
|
619
657
|
# @param [String] quota_user
|
@@ -645,7 +683,7 @@ module Google
|
|
645
683
|
# locations.
|
646
684
|
# @param [String] parent
|
647
685
|
# Required. The instance for which to retrieve snapshot information, in the
|
648
|
-
# format projects/`project_id`/locations/`location`/instances/`instance_id
|
686
|
+
# format `projects/`project_id`/locations/`location`/instances/`instance_id``.
|
649
687
|
# @param [String] filter
|
650
688
|
# List filter.
|
651
689
|
# @param [String] order_by
|
@@ -688,9 +726,9 @@ module Google
|
|
688
726
|
|
689
727
|
# Updates the settings of a specific snapshot.
|
690
728
|
# @param [String] name
|
691
|
-
# Output only. The resource name of the snapshot, in the format projects/`
|
729
|
+
# Output only. The resource name of the snapshot, in the format `projects/`
|
692
730
|
# project_id`/locations/`location_id`/instances/`instance_id`/snapshots/`
|
693
|
-
# snapshot_id
|
731
|
+
# snapshot_id``.
|
694
732
|
# @param [Google::Apis::FileV1beta1::Snapshot] snapshot_object
|
695
733
|
# @param [String] update_mask
|
696
734
|
# Required. Mask of fields to update. At least one path must be supplied in this
|
@@ -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
|
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.
|
4
|
+
version: 0.16.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -57,9 +57,9 @@ licenses:
|
|
57
57
|
- Apache-2.0
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
|
-
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-file_v1beta1/v0.
|
62
|
-
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
60
|
+
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-file_v1beta1/CHANGELOG.md
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-file_v1beta1/v0.16.0
|
62
|
+
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-file_v1beta1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
65
65
|
require_paths:
|