google-apis-file_v1 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8ab3b2edd9488ea8cc00b07e123f62e7ea23fb18dcc72ca3f2885bde0e8048cb
4
- data.tar.gz: 9c59ee9b5462108f0820d54d4f67285de8494fecccf10bb194cb17dbc2cddaf2
3
+ metadata.gz: a05875c62745f8aba51d83785c87db0239bef11875234c561752c7f61500cc9b
4
+ data.tar.gz: aa3051bf5c0320f7861cb999016518a794c701435d2bc07c80ab835055dc412b
5
5
  SHA512:
6
- metadata.gz: 30af2b00a0664ec8275a70e8f04a439e80bfe1d1546e991db64e957821cdb198bef0aad98e0792344c20def745e449e0b1c3ddc4143800190a66221c7528ab88
7
- data.tar.gz: bbb249606405bf63ee279fc82cd1692669be74a8938607ead8c6b2c6d524c307fe81c05261d093a2e5bbfa59d248ac02fba0f241d92a329501dd3b0a3a8b79c3
6
+ metadata.gz: 37d919b4ddbdeee67560632c76f364678fbf9fcec0298f0d0daf05da4f555e5d1abcece8a87c83ba29db73ccf5b48c02fae232a7c73c0097fe16ecf92df9c9b6
7
+ data.tar.gz: a8f0cd51013766942dbe5723a62c56bfaf6f511e0673f4ccc00dca79530c09adbafb1c0705f5b2497ead79ecfe17c79ed609c244b29b130200bfbe068b417a34
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Release history for google-apis-file_v1
2
2
 
3
+ ### v0.16.0 (2021-12-14)
4
+
5
+ * Unspecified changes
6
+
7
+ ### v0.15.0 (2021-11-14)
8
+
9
+ * Regenerated from discovery document revision 20211105
10
+
11
+ ### v0.14.0 (2021-10-24)
12
+
13
+ * Regenerated from discovery document revision 20211017
14
+ * Unspecified changes
15
+
16
+ ### v0.13.0 (2021-09-07)
17
+
18
+ * Regenerated from discovery document revision 20210822
19
+
3
20
  ### v0.12.0 (2021-08-19)
4
21
 
5
22
  * Regenerated from discovery document revision 20210804
data/OVERVIEW.md CHANGED
@@ -51,7 +51,7 @@ require "google/apis/file_v1"
51
51
  client = Google::Apis::FileV1::CloudFilestoreService.new
52
52
 
53
53
  # Authenticate calls
54
- client.authentication = # ... use the googleauth gem to create credentials
54
+ client.authorization = # ... use the googleauth gem to create credentials
55
55
  ```
56
56
 
57
57
  See the class reference docs for information on the methods you can call from a client.
@@ -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/master/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/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
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
 
@@ -528,14 +528,6 @@ module Google
528
528
  class GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata
529
529
  include Google::Apis::Core::Hashable
530
530
 
531
- # By default node is eligible if instance is eligible. But individual node might
532
- # be excluded from SLO by adding entry here. For semantic see SloMetadata.
533
- # exclusions. If both instance and node level exclusions are present for time
534
- # period, the node level's reason will be reported by Eligibility Exporter.
535
- # Corresponds to the JSON property `exclusions`
536
- # @return [Array<Google::Apis::FileV1::GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion>]
537
- attr_accessor :exclusions
538
-
539
531
  # The location of the node, if different from instance location.
540
532
  # Corresponds to the JSON property `location`
541
533
  # @return [String]
@@ -557,7 +549,6 @@ module Google
557
549
 
558
550
  # Update properties of this object
559
551
  def update!(**args)
560
- @exclusions = args[:exclusions] if args.key?(:exclusions)
561
552
  @location = args[:location] if args.key?(:location)
562
553
  @node_id = args[:node_id] if args.key?(:node_id)
563
554
  @per_sli_eligibility = args[:per_sli_eligibility] if args.key?(:per_sli_eligibility)
@@ -652,71 +643,11 @@ module Google
652
643
  end
653
644
  end
654
645
 
655
- # SloExclusion represents an exclusion in SLI calculation applies to all SLOs.
656
- class GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion
657
- include Google::Apis::Core::Hashable
658
-
659
- # Exclusion duration. No restrictions on the possible values. When an ongoing
660
- # operation is taking longer than initially expected, an existing entry in the
661
- # exclusion list can be updated by extending the duration. This is supported by
662
- # the subsystem exporting eligibility data as long as such extension is
663
- # committed at least 10 minutes before the original exclusion expiration -
664
- # otherwise it is possible that there will be "gaps" in the exclusion
665
- # application in the exported timeseries.
666
- # Corresponds to the JSON property `duration`
667
- # @return [String]
668
- attr_accessor :duration
669
-
670
- # Human-readable reason for the exclusion. This should be a static string (e.g. "
671
- # Disruptive update in progress") and should not contain dynamically generated
672
- # data (e.g. instance name). Can be left empty.
673
- # Corresponds to the JSON property `reason`
674
- # @return [String]
675
- attr_accessor :reason
676
-
677
- # Name of an SLI that this exclusion applies to. Can be left empty, signaling
678
- # that the instance should be excluded from all SLIs.
679
- # Corresponds to the JSON property `sliName`
680
- # @return [String]
681
- attr_accessor :sli_name
682
-
683
- # Start time of the exclusion. No alignment (e.g. to a full minute) needed.
684
- # Corresponds to the JSON property `startTime`
685
- # @return [String]
686
- attr_accessor :start_time
687
-
688
- def initialize(**args)
689
- update!(**args)
690
- end
691
-
692
- # Update properties of this object
693
- def update!(**args)
694
- @duration = args[:duration] if args.key?(:duration)
695
- @reason = args[:reason] if args.key?(:reason)
696
- @sli_name = args[:sli_name] if args.key?(:sli_name)
697
- @start_time = args[:start_time] if args.key?(:start_time)
698
- end
699
- end
700
-
701
646
  # SloMetadata contains resources required for proper SLO classification of the
702
647
  # instance.
703
648
  class GoogleCloudSaasacceleratorManagementProvidersV1SloMetadata
704
649
  include Google::Apis::Core::Hashable
705
650
 
706
- # List of SLO exclusion windows. When multiple entries in the list match (
707
- # matching the exclusion time-window against current time point) the exclusion
708
- # reason used in the first matching entry will be published. It is not needed to
709
- # include expired exclusion in this list, as only the currently applicable
710
- # exclusions are taken into account by the eligibility exporting subsystem (the
711
- # historical state of exclusions will be reflected in the historically produced
712
- # timeseries regardless of the current state). This field can be used to mark
713
- # the instance as temporary ineligible for the purpose of SLO calculation. For
714
- # permanent instance SLO exclusion, use of custom instance eligibility is
715
- # recommended. See 'eligibility' field below.
716
- # Corresponds to the JSON property `exclusions`
717
- # @return [Array<Google::Apis::FileV1::GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion>]
718
- attr_accessor :exclusions
719
-
720
651
  # Optional. List of nodes. Some producers need to use per-node metadata to
721
652
  # calculate SLO. This field allows such producers to publish per-node SLO meta
722
653
  # data, which will be consumed by SSA Eligibility Exporter and published in the
@@ -743,7 +674,6 @@ module Google
743
674
 
744
675
  # Update properties of this object
745
676
  def update!(**args)
746
- @exclusions = args[:exclusions] if args.key?(:exclusions)
747
677
  @nodes = args[:nodes] if args.key?(:nodes)
748
678
  @per_sli_eligibility = args[:per_sli_eligibility] if args.key?(:per_sli_eligibility)
749
679
  @tier = args[:tier] if args.key?(:tier)
@@ -776,6 +706,11 @@ module Google
776
706
  # @return [Array<Google::Apis::FileV1::FileShareConfig>]
777
707
  attr_accessor :file_shares
778
708
 
709
+ # KMS key name used for data encryption.
710
+ # Corresponds to the JSON property `kmsKeyName`
711
+ # @return [String]
712
+ attr_accessor :kms_key_name
713
+
779
714
  # Resource labels to represent user provided metadata.
780
715
  # Corresponds to the JSON property `labels`
781
716
  # @return [Hash<String,String>]
@@ -809,6 +744,12 @@ module Google
809
744
  # @return [String]
810
745
  attr_accessor :status_message
811
746
 
747
+ # Output only. field indicates all the reasons the instance is in "SUSPENDED"
748
+ # state.
749
+ # Corresponds to the JSON property `suspensionReasons`
750
+ # @return [Array<String>]
751
+ attr_accessor :suspension_reasons
752
+
812
753
  # The service tier of the instance.
813
754
  # Corresponds to the JSON property `tier`
814
755
  # @return [String]
@@ -824,12 +765,14 @@ module Google
824
765
  @description = args[:description] if args.key?(:description)
825
766
  @etag = args[:etag] if args.key?(:etag)
826
767
  @file_shares = args[:file_shares] if args.key?(:file_shares)
768
+ @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
827
769
  @labels = args[:labels] if args.key?(:labels)
828
770
  @name = args[:name] if args.key?(:name)
829
771
  @networks = args[:networks] if args.key?(:networks)
830
772
  @satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs)
831
773
  @state = args[:state] if args.key?(:state)
832
774
  @status_message = args[:status_message] if args.key?(:status_message)
775
+ @suspension_reasons = args[:suspension_reasons] if args.key?(:suspension_reasons)
833
776
  @tier = args[:tier] if args.key?(:tier)
834
777
  end
835
778
  end
@@ -956,6 +899,32 @@ module Google
956
899
  end
957
900
  end
958
901
 
902
+ # ListSnapshotsResponse is the result of ListSnapshotsRequest.
903
+ class ListSnapshotsResponse
904
+ include Google::Apis::Core::Hashable
905
+
906
+ # The token you can use to retrieve the next page of results. Not returned if
907
+ # there are no more results in the list.
908
+ # Corresponds to the JSON property `nextPageToken`
909
+ # @return [String]
910
+ attr_accessor :next_page_token
911
+
912
+ # A list of snapshots in the project for the specified instance.
913
+ # Corresponds to the JSON property `snapshots`
914
+ # @return [Array<Google::Apis::FileV1::Snapshot>]
915
+ attr_accessor :snapshots
916
+
917
+ def initialize(**args)
918
+ update!(**args)
919
+ end
920
+
921
+ # Update properties of this object
922
+ def update!(**args)
923
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
924
+ @snapshots = args[:snapshots] if args.key?(:snapshots)
925
+ end
926
+ end
927
+
959
928
  # A resource that represents Google Cloud Platform location.
960
929
  class Location
961
930
  include Google::Apis::Core::Hashable
@@ -1094,6 +1063,12 @@ module Google
1094
1063
  class NetworkConfig
1095
1064
  include Google::Apis::Core::Hashable
1096
1065
 
1066
+ # The network connect mode of the Filestore instance. If not provided, the
1067
+ # connect mode defaults to DIRECT_PEERING.
1068
+ # Corresponds to the JSON property `connectMode`
1069
+ # @return [String]
1070
+ attr_accessor :connect_mode
1071
+
1097
1072
  # Output only. IPv4 addresses in the format ``octet1`.`octet2`.`octet3`.`octet4``
1098
1073
  # or IPv6 addresses in the format ``block1`:`block2`:`block3`:`block4`:`block5`:
1099
1074
  # `block6`:`block7`:`block8``.
@@ -1113,12 +1088,19 @@ module Google
1113
1088
  # @return [String]
1114
1089
  attr_accessor :network
1115
1090
 
1116
- # A /29 CIDR block in one of the [internal IP address ranges](https://www.arin.
1117
- # net/reference/research/statistics/address_filters/) that identifies the range
1118
- # of IP addresses reserved for this instance. For example, 10.0.0.0/29 or 192.
1119
- # 168.0.0/29. The range you specify can't overlap with either existing subnets
1120
- # or assigned IP address ranges for other Cloud Filestore instances in the
1121
- # selected VPC network.
1091
+ # Optional, reserved_ip_range can have one of the following two types of values.
1092
+ # * CIDR range value when using DIRECT_PEERING connect mode. * [Allocated IP
1093
+ # address range](https://cloud.google.com/compute/docs/ip-addresses/reserve-
1094
+ # static-internal-ip-address) when using PRIVATE_SERVICE_ACCESS connect mode.
1095
+ # When the name of an allocated IP address range is specified, it must be one of
1096
+ # the ranges associated with the private service access connection. When
1097
+ # specified as a direct CIDR value, it must be a /29 CIDR block for Basic tier
1098
+ # or a /24 CIDR block for High Scale or Enterprise tier in one of the [internal
1099
+ # IP address ranges](https://www.arin.net/reference/research/statistics/
1100
+ # address_filters/) that identifies the range of IP addresses reserved for this
1101
+ # instance. For example, 10.0.0.0/29 or 192.168.0.0/24. The range you specify
1102
+ # can't overlap with either existing subnets or assigned IP address ranges for
1103
+ # other Cloud Filestore instances in the selected VPC network.
1122
1104
  # Corresponds to the JSON property `reservedIpRange`
1123
1105
  # @return [String]
1124
1106
  attr_accessor :reserved_ip_range
@@ -1129,6 +1111,7 @@ module Google
1129
1111
 
1130
1112
  # Update properties of this object
1131
1113
  def update!(**args)
1114
+ @connect_mode = args[:connect_mode] if args.key?(:connect_mode)
1132
1115
  @ip_addresses = args[:ip_addresses] if args.key?(:ip_addresses)
1133
1116
  @modes = args[:modes] if args.key?(:modes)
1134
1117
  @network = args[:network] if args.key?(:network)
@@ -1312,7 +1295,7 @@ module Google
1312
1295
  end
1313
1296
  end
1314
1297
 
1315
- # RestoreInstanceRequest restores an existing instances's file share from a
1298
+ # RestoreInstanceRequest restores an existing instance's file share from a
1316
1299
  # backup.
1317
1300
  class RestoreInstanceRequest
1318
1301
  include Google::Apis::Core::Hashable
@@ -1373,6 +1356,59 @@ module Google
1373
1356
  end
1374
1357
  end
1375
1358
 
1359
+ # A Filestore snapshot.
1360
+ class Snapshot
1361
+ include Google::Apis::Core::Hashable
1362
+
1363
+ # Output only. The time when the snapshot was created.
1364
+ # Corresponds to the JSON property `createTime`
1365
+ # @return [String]
1366
+ attr_accessor :create_time
1367
+
1368
+ # A description of the snapshot with 2048 characters or less. Requests with
1369
+ # longer descriptions will be rejected.
1370
+ # Corresponds to the JSON property `description`
1371
+ # @return [String]
1372
+ attr_accessor :description
1373
+
1374
+ # Output only. The amount of bytes needed to allocate a full copy of the
1375
+ # snapshot content
1376
+ # Corresponds to the JSON property `filesystemUsedBytes`
1377
+ # @return [Fixnum]
1378
+ attr_accessor :filesystem_used_bytes
1379
+
1380
+ # Resource labels to represent user provided metadata.
1381
+ # Corresponds to the JSON property `labels`
1382
+ # @return [Hash<String,String>]
1383
+ attr_accessor :labels
1384
+
1385
+ # Output only. The resource name of the snapshot, in the format `projects/`
1386
+ # project_id`/locations/`location_id`/instances/`instance_id`/snapshots/`
1387
+ # snapshot_id``.
1388
+ # Corresponds to the JSON property `name`
1389
+ # @return [String]
1390
+ attr_accessor :name
1391
+
1392
+ # Output only. The snapshot state.
1393
+ # Corresponds to the JSON property `state`
1394
+ # @return [String]
1395
+ attr_accessor :state
1396
+
1397
+ def initialize(**args)
1398
+ update!(**args)
1399
+ end
1400
+
1401
+ # Update properties of this object
1402
+ def update!(**args)
1403
+ @create_time = args[:create_time] if args.key?(:create_time)
1404
+ @description = args[:description] if args.key?(:description)
1405
+ @filesystem_used_bytes = args[:filesystem_used_bytes] if args.key?(:filesystem_used_bytes)
1406
+ @labels = args[:labels] if args.key?(:labels)
1407
+ @name = args[:name] if args.key?(:name)
1408
+ @state = args[:state] if args.key?(:state)
1409
+ end
1410
+ end
1411
+
1376
1412
  # The `Status` type defines a logical error model that is suitable for different
1377
1413
  # programming environments, including REST APIs and RPC APIs. It is used by [
1378
1414
  # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module FileV1
18
18
  # Version of the google-apis-file_v1 gem
19
- GEM_VERSION = "0.12.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 = "20210804"
25
+ REVISION = "20211105"
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
 
@@ -148,6 +142,12 @@ module Google
148
142
  include Google::Apis::Core::JsonObjectSupport
149
143
  end
150
144
 
145
+ class ListSnapshotsResponse
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
151
151
  class Location
152
152
  class Representation < Google::Apis::Core::JsonRepresentation; end
153
153
 
@@ -202,6 +202,12 @@ module Google
202
202
  include Google::Apis::Core::JsonObjectSupport
203
203
  end
204
204
 
205
+ class Snapshot
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
209
+ end
210
+
205
211
  class Status
206
212
  class Representation < Google::Apis::Core::JsonRepresentation; end
207
213
 
@@ -346,8 +352,6 @@ module Google
346
352
  class GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata
347
353
  # @private
348
354
  class Representation < Google::Apis::Core::JsonRepresentation
349
- collection :exclusions, as: 'exclusions', class: Google::Apis::FileV1::GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion, decorator: Google::Apis::FileV1::GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion::Representation
350
-
351
355
  property :location, as: 'location'
352
356
  property :node_id, as: 'nodeId'
353
357
  property :per_sli_eligibility, as: 'perSliEligibility', class: Google::Apis::FileV1::GoogleCloudSaasacceleratorManagementProvidersV1PerSliSloEligibility, decorator: Google::Apis::FileV1::GoogleCloudSaasacceleratorManagementProvidersV1PerSliSloEligibility::Representation
@@ -379,21 +383,9 @@ module Google
379
383
  end
380
384
  end
381
385
 
382
- class GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion
383
- # @private
384
- class Representation < Google::Apis::Core::JsonRepresentation
385
- property :duration, as: 'duration'
386
- property :reason, as: 'reason'
387
- property :sli_name, as: 'sliName'
388
- property :start_time, as: 'startTime'
389
- end
390
- end
391
-
392
386
  class GoogleCloudSaasacceleratorManagementProvidersV1SloMetadata
393
387
  # @private
394
388
  class Representation < Google::Apis::Core::JsonRepresentation
395
- collection :exclusions, as: 'exclusions', class: Google::Apis::FileV1::GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion, decorator: Google::Apis::FileV1::GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion::Representation
396
-
397
389
  collection :nodes, as: 'nodes', class: Google::Apis::FileV1::GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata, decorator: Google::Apis::FileV1::GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata::Representation
398
390
 
399
391
  property :per_sli_eligibility, as: 'perSliEligibility', class: Google::Apis::FileV1::GoogleCloudSaasacceleratorManagementProvidersV1PerSliSloEligibility, decorator: Google::Apis::FileV1::GoogleCloudSaasacceleratorManagementProvidersV1PerSliSloEligibility::Representation
@@ -410,6 +402,7 @@ module Google
410
402
  property :etag, as: 'etag'
411
403
  collection :file_shares, as: 'fileShares', class: Google::Apis::FileV1::FileShareConfig, decorator: Google::Apis::FileV1::FileShareConfig::Representation
412
404
 
405
+ property :kms_key_name, as: 'kmsKeyName'
413
406
  hash :labels, as: 'labels'
414
407
  property :name, as: 'name'
415
408
  collection :networks, as: 'networks', class: Google::Apis::FileV1::NetworkConfig, decorator: Google::Apis::FileV1::NetworkConfig::Representation
@@ -417,6 +410,7 @@ module Google
417
410
  property :satisfies_pzs, as: 'satisfiesPzs'
418
411
  property :state, as: 'state'
419
412
  property :status_message, as: 'statusMessage'
413
+ collection :suspension_reasons, as: 'suspensionReasons'
420
414
  property :tier, as: 'tier'
421
415
  end
422
416
  end
@@ -459,6 +453,15 @@ module Google
459
453
  end
460
454
  end
461
455
 
456
+ class ListSnapshotsResponse
457
+ # @private
458
+ class Representation < Google::Apis::Core::JsonRepresentation
459
+ property :next_page_token, as: 'nextPageToken'
460
+ collection :snapshots, as: 'snapshots', class: Google::Apis::FileV1::Snapshot, decorator: Google::Apis::FileV1::Snapshot::Representation
461
+
462
+ end
463
+ end
464
+
462
465
  class Location
463
466
  # @private
464
467
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -497,6 +500,7 @@ module Google
497
500
  class NetworkConfig
498
501
  # @private
499
502
  class Representation < Google::Apis::Core::JsonRepresentation
503
+ property :connect_mode, as: 'connectMode'
500
504
  collection :ip_addresses, as: 'ipAddresses'
501
505
  collection :modes, as: 'modes'
502
506
  property :network, as: 'network'
@@ -558,6 +562,18 @@ module Google
558
562
  end
559
563
  end
560
564
 
565
+ class Snapshot
566
+ # @private
567
+ class Representation < Google::Apis::Core::JsonRepresentation
568
+ property :create_time, as: 'createTime'
569
+ property :description, as: 'description'
570
+ property :filesystem_used_bytes, :numeric_string => true, as: 'filesystemUsedBytes'
571
+ hash :labels, as: 'labels'
572
+ property :name, as: 'name'
573
+ property :state, as: 'state'
574
+ end
575
+ end
576
+
561
577
  class Status
562
578
  # @private
563
579
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -360,6 +360,9 @@ module Google
360
360
  # @param [String] name
361
361
  # Required. The instance resource name, in the format `projects/`project_id`/
362
362
  # locations/`location`/instances/`instance_id``
363
+ # @param [Boolean] force
364
+ # If set to true, all snapshots of the instance will also be deleted. (Otherwise,
365
+ # the request will only work if the instance has no snapshots.)
363
366
  # @param [String] fields
364
367
  # Selector specifying which fields to include in a partial response.
365
368
  # @param [String] quota_user
@@ -377,11 +380,12 @@ module Google
377
380
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
378
381
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
379
382
  # @raise [Google::Apis::AuthorizationError] Authorization is required
380
- def delete_project_location_instance(name, fields: nil, quota_user: nil, options: nil, &block)
383
+ def delete_project_location_instance(name, force: nil, fields: nil, quota_user: nil, options: nil, &block)
381
384
  command = make_simple_command(:delete, 'v1/{+name}', options)
382
385
  command.response_representation = Google::Apis::FileV1::Operation::Representation
383
386
  command.response_class = Google::Apis::FileV1::Operation
384
387
  command.params['name'] = name unless name.nil?
388
+ command.query['force'] = force unless force.nil?
385
389
  command.query['fields'] = fields unless fields.nil?
386
390
  command.query['quotaUser'] = quota_user unless quota_user.nil?
387
391
  execute_or_queue_command(command, &block)
@@ -540,6 +544,191 @@ module Google
540
544
  execute_or_queue_command(command, &block)
541
545
  end
542
546
 
547
+ # Creates a snapshot.
548
+ # @param [String] parent
549
+ # Required. The Filestore Instance to create the snapshots of, in the format `
550
+ # projects/`project_id`/locations/`location`/instances/`instance_id``
551
+ # @param [Google::Apis::FileV1::Snapshot] snapshot_object
552
+ # @param [String] snapshot_id
553
+ # Required. The ID to use for the snapshot. The ID must be unique within the
554
+ # specified instance. This value must start with a lowercase letter followed by
555
+ # up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
556
+ # @param [String] fields
557
+ # Selector specifying which fields to include in a partial response.
558
+ # @param [String] quota_user
559
+ # Available to use for quota purposes for server-side applications. Can be any
560
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
561
+ # @param [Google::Apis::RequestOptions] options
562
+ # Request-specific options
563
+ #
564
+ # @yield [result, err] Result & error if block supplied
565
+ # @yieldparam result [Google::Apis::FileV1::Operation] parsed result object
566
+ # @yieldparam err [StandardError] error object if request failed
567
+ #
568
+ # @return [Google::Apis::FileV1::Operation]
569
+ #
570
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
571
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
572
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
573
+ def create_project_location_instance_snapshot(parent, snapshot_object = nil, snapshot_id: nil, fields: nil, quota_user: nil, options: nil, &block)
574
+ command = make_simple_command(:post, 'v1/{+parent}/snapshots', options)
575
+ command.request_representation = Google::Apis::FileV1::Snapshot::Representation
576
+ command.request_object = snapshot_object
577
+ command.response_representation = Google::Apis::FileV1::Operation::Representation
578
+ command.response_class = Google::Apis::FileV1::Operation
579
+ command.params['parent'] = parent unless parent.nil?
580
+ command.query['snapshotId'] = snapshot_id unless snapshot_id.nil?
581
+ command.query['fields'] = fields unless fields.nil?
582
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
583
+ execute_or_queue_command(command, &block)
584
+ end
585
+
586
+ # Deletes a snapshot.
587
+ # @param [String] name
588
+ # Required. The snapshot resource name, in the format `projects/`project_id`/
589
+ # locations/`location`/instances/`instance_id`/snapshots/`snapshot_id``
590
+ # @param [String] fields
591
+ # Selector specifying which fields to include in a partial response.
592
+ # @param [String] quota_user
593
+ # Available to use for quota purposes for server-side applications. Can be any
594
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
595
+ # @param [Google::Apis::RequestOptions] options
596
+ # Request-specific options
597
+ #
598
+ # @yield [result, err] Result & error if block supplied
599
+ # @yieldparam result [Google::Apis::FileV1::Operation] parsed result object
600
+ # @yieldparam err [StandardError] error object if request failed
601
+ #
602
+ # @return [Google::Apis::FileV1::Operation]
603
+ #
604
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
605
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
606
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
607
+ def delete_project_location_instance_snapshot(name, fields: nil, quota_user: nil, options: nil, &block)
608
+ command = make_simple_command(:delete, 'v1/{+name}', options)
609
+ command.response_representation = Google::Apis::FileV1::Operation::Representation
610
+ command.response_class = Google::Apis::FileV1::Operation
611
+ command.params['name'] = name unless name.nil?
612
+ command.query['fields'] = fields unless fields.nil?
613
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
614
+ execute_or_queue_command(command, &block)
615
+ end
616
+
617
+ # Gets the details of a specific snapshot.
618
+ # @param [String] name
619
+ # Required. The snapshot resource name, in the format `projects/`project_id`/
620
+ # locations/`location`/instances/`instance_id`/snapshots/`snapshot_id``
621
+ # @param [String] fields
622
+ # Selector specifying which fields to include in a partial response.
623
+ # @param [String] quota_user
624
+ # Available to use for quota purposes for server-side applications. Can be any
625
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
626
+ # @param [Google::Apis::RequestOptions] options
627
+ # Request-specific options
628
+ #
629
+ # @yield [result, err] Result & error if block supplied
630
+ # @yieldparam result [Google::Apis::FileV1::Snapshot] parsed result object
631
+ # @yieldparam err [StandardError] error object if request failed
632
+ #
633
+ # @return [Google::Apis::FileV1::Snapshot]
634
+ #
635
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
636
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
637
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
638
+ def get_project_location_instance_snapshot(name, fields: nil, quota_user: nil, options: nil, &block)
639
+ command = make_simple_command(:get, 'v1/{+name}', options)
640
+ command.response_representation = Google::Apis::FileV1::Snapshot::Representation
641
+ command.response_class = Google::Apis::FileV1::Snapshot
642
+ command.params['name'] = name unless name.nil?
643
+ command.query['fields'] = fields unless fields.nil?
644
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
645
+ execute_or_queue_command(command, &block)
646
+ end
647
+
648
+ # Lists all snapshots in a project for either a specified location or for all
649
+ # locations.
650
+ # @param [String] parent
651
+ # Required. The instance for which to retrieve snapshot information, in the
652
+ # format `projects/`project_id`/locations/`location`/instances/`instance_id``.
653
+ # @param [String] filter
654
+ # List filter.
655
+ # @param [String] order_by
656
+ # Sort results. Supported values are "name", "name desc" or "" (unsorted).
657
+ # @param [Fixnum] page_size
658
+ # The maximum number of items to return.
659
+ # @param [String] page_token
660
+ # The next_page_token value to use if there are additional results to retrieve
661
+ # for this list request.
662
+ # @param [String] fields
663
+ # Selector specifying which fields to include in a partial response.
664
+ # @param [String] quota_user
665
+ # Available to use for quota purposes for server-side applications. Can be any
666
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
667
+ # @param [Google::Apis::RequestOptions] options
668
+ # Request-specific options
669
+ #
670
+ # @yield [result, err] Result & error if block supplied
671
+ # @yieldparam result [Google::Apis::FileV1::ListSnapshotsResponse] parsed result object
672
+ # @yieldparam err [StandardError] error object if request failed
673
+ #
674
+ # @return [Google::Apis::FileV1::ListSnapshotsResponse]
675
+ #
676
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
677
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
678
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
679
+ def list_project_location_instance_snapshots(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
680
+ command = make_simple_command(:get, 'v1/{+parent}/snapshots', options)
681
+ command.response_representation = Google::Apis::FileV1::ListSnapshotsResponse::Representation
682
+ command.response_class = Google::Apis::FileV1::ListSnapshotsResponse
683
+ command.params['parent'] = parent unless parent.nil?
684
+ command.query['filter'] = filter unless filter.nil?
685
+ command.query['orderBy'] = order_by unless order_by.nil?
686
+ command.query['pageSize'] = page_size unless page_size.nil?
687
+ command.query['pageToken'] = page_token unless page_token.nil?
688
+ command.query['fields'] = fields unless fields.nil?
689
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
690
+ execute_or_queue_command(command, &block)
691
+ end
692
+
693
+ # Updates the settings of a specific snapshot.
694
+ # @param [String] name
695
+ # Output only. The resource name of the snapshot, in the format `projects/`
696
+ # project_id`/locations/`location_id`/instances/`instance_id`/snapshots/`
697
+ # snapshot_id``.
698
+ # @param [Google::Apis::FileV1::Snapshot] snapshot_object
699
+ # @param [String] update_mask
700
+ # Required. Mask of fields to update. At least one path must be supplied in this
701
+ # field.
702
+ # @param [String] fields
703
+ # Selector specifying which fields to include in a partial response.
704
+ # @param [String] quota_user
705
+ # Available to use for quota purposes for server-side applications. Can be any
706
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
707
+ # @param [Google::Apis::RequestOptions] options
708
+ # Request-specific options
709
+ #
710
+ # @yield [result, err] Result & error if block supplied
711
+ # @yieldparam result [Google::Apis::FileV1::Operation] parsed result object
712
+ # @yieldparam err [StandardError] error object if request failed
713
+ #
714
+ # @return [Google::Apis::FileV1::Operation]
715
+ #
716
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
717
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
718
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
719
+ def patch_project_location_instance_snapshot(name, snapshot_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
720
+ command = make_simple_command(:patch, 'v1/{+name}', options)
721
+ command.request_representation = Google::Apis::FileV1::Snapshot::Representation
722
+ command.request_object = snapshot_object
723
+ command.response_representation = Google::Apis::FileV1::Operation::Representation
724
+ command.response_class = Google::Apis::FileV1::Operation
725
+ command.params['name'] = name unless name.nil?
726
+ command.query['updateMask'] = update_mask unless update_mask.nil?
727
+ command.query['fields'] = fields unless fields.nil?
728
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
729
+ execute_or_queue_command(command, &block)
730
+ end
731
+
543
732
  # Starts asynchronous cancellation on a long-running operation. The server makes
544
733
  # a best effort to cancel the operation, but success is not guaranteed. If the
545
734
  # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-file_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.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-08-23 00:00:00.000000000 Z
11
+ date: 2022-01-10 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/master/generated/google-apis-file_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-file_v1/v0.12.0
62
- source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-file_v1
60
+ changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-file_v1/CHANGELOG.md
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-file_v1/v0.16.0
62
+ source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-file_v1
63
63
  post_install_message:
64
64
  rdoc_options: []
65
65
  require_paths:
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.2.17
78
+ rubygems_version: 3.3.4
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Cloud Filestore API V1