google-apis-file_v1beta1 0.13.0 → 0.17.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: 695cae4e5972dc360a9db757f3b17017acbaee731cf462d96b8bf0b5cf22c34d
4
- data.tar.gz: 6d489a42c36bbff5443195f739f034387f7a37ba4520969c5b4965c2f0b89859
3
+ metadata.gz: 013a47616522e69f9facefb153ded1ab5d543ffcb5ba10e160cc4159435a8c4a
4
+ data.tar.gz: 82de47b51f537ff676da226f09eb4bb56bc2bfd40e2d447cca3e232cc639d6ec
5
5
  SHA512:
6
- metadata.gz: 842d5d60150c9af56f166dca9b3fe9498557d146484eda11376209c3d854ad2e522a1f3dff7e7c040d6b10ea7f04a1d75a68b0c812644364e9e9007f45adbec4
7
- data.tar.gz: 2545c82819a434d8a5e27f10081260b61dcae77254d71afff2279071a6859cf197f81b57fd0ef7fc620848d28c08f917de3cec477c98cd9ee8bf6224d6b02426
6
+ metadata.gz: 54404acadb3f3ba6f747f67d021f05cbe6715988af1e97b5db770bbd60b39ea467d74c0d922cd762aa400a1af5e9236a310f87064045a729e0dd2c755e56ffc8
7
+ data.tar.gz: e0cdf0986071db48a2c57835b617481b9d22a68efe686f66fcd05918dbf6ee899f0da19f8f69a9afb74de0b6e176cfedbcc03c5599b92f1544c563f663ddf36f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Release history for google-apis-file_v1beta1
2
2
 
3
+ ### v0.17.0 (2021-12-14)
4
+
5
+ * Unspecified changes
6
+
7
+ ### v0.16.0 (2021-10-24)
8
+
9
+ * Regenerated from discovery document revision 20211017
10
+ * Unspecified changes
11
+
12
+ ### v0.15.0 (2021-09-07)
13
+
14
+ * Regenerated from discovery document revision 20210822
15
+
16
+ ### v0.14.0 (2021-08-28)
17
+
18
+ * Regenerated from discovery document revision 20210810
19
+
3
20
  ### v0.13.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_v1beta1"
51
51
  client = Google::Apis::FileV1beta1::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
 
@@ -527,14 +527,6 @@ module Google
527
527
  class GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata
528
528
  include Google::Apis::Core::Hashable
529
529
 
530
- # By default node is eligible if instance is eligible. But individual node might
531
- # be excluded from SLO by adding entry here. For semantic see SloMetadata.
532
- # exclusions. If both instance and node level exclusions are present for time
533
- # period, the node level's reason will be reported by Eligibility Exporter.
534
- # Corresponds to the JSON property `exclusions`
535
- # @return [Array<Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion>]
536
- attr_accessor :exclusions
537
-
538
530
  # The location of the node, if different from instance location.
539
531
  # Corresponds to the JSON property `location`
540
532
  # @return [String]
@@ -556,7 +548,6 @@ module Google
556
548
 
557
549
  # Update properties of this object
558
550
  def update!(**args)
559
- @exclusions = args[:exclusions] if args.key?(:exclusions)
560
551
  @location = args[:location] if args.key?(:location)
561
552
  @node_id = args[:node_id] if args.key?(:node_id)
562
553
  @per_sli_eligibility = args[:per_sli_eligibility] if args.key?(:per_sli_eligibility)
@@ -651,71 +642,11 @@ module Google
651
642
  end
652
643
  end
653
644
 
654
- # SloExclusion represents an exclusion in SLI calculation applies to all SLOs.
655
- class GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion
656
- include Google::Apis::Core::Hashable
657
-
658
- # Exclusion duration. No restrictions on the possible values. When an ongoing
659
- # operation is taking longer than initially expected, an existing entry in the
660
- # exclusion list can be updated by extending the duration. This is supported by
661
- # the subsystem exporting eligibility data as long as such extension is
662
- # committed at least 10 minutes before the original exclusion expiration -
663
- # otherwise it is possible that there will be "gaps" in the exclusion
664
- # application in the exported timeseries.
665
- # Corresponds to the JSON property `duration`
666
- # @return [String]
667
- attr_accessor :duration
668
-
669
- # Human-readable reason for the exclusion. This should be a static string (e.g. "
670
- # Disruptive update in progress") and should not contain dynamically generated
671
- # data (e.g. instance name). Can be left empty.
672
- # Corresponds to the JSON property `reason`
673
- # @return [String]
674
- attr_accessor :reason
675
-
676
- # Name of an SLI that this exclusion applies to. Can be left empty, signaling
677
- # that the instance should be excluded from all SLIs.
678
- # Corresponds to the JSON property `sliName`
679
- # @return [String]
680
- attr_accessor :sli_name
681
-
682
- # Start time of the exclusion. No alignment (e.g. to a full minute) needed.
683
- # Corresponds to the JSON property `startTime`
684
- # @return [String]
685
- attr_accessor :start_time
686
-
687
- def initialize(**args)
688
- update!(**args)
689
- end
690
-
691
- # Update properties of this object
692
- def update!(**args)
693
- @duration = args[:duration] if args.key?(:duration)
694
- @reason = args[:reason] if args.key?(:reason)
695
- @sli_name = args[:sli_name] if args.key?(:sli_name)
696
- @start_time = args[:start_time] if args.key?(:start_time)
697
- end
698
- end
699
-
700
645
  # SloMetadata contains resources required for proper SLO classification of the
701
646
  # instance.
702
647
  class GoogleCloudSaasacceleratorManagementProvidersV1SloMetadata
703
648
  include Google::Apis::Core::Hashable
704
649
 
705
- # List of SLO exclusion windows. When multiple entries in the list match (
706
- # matching the exclusion time-window against current time point) the exclusion
707
- # reason used in the first matching entry will be published. It is not needed to
708
- # include expired exclusion in this list, as only the currently applicable
709
- # exclusions are taken into account by the eligibility exporting subsystem (the
710
- # historical state of exclusions will be reflected in the historically produced
711
- # timeseries regardless of the current state). This field can be used to mark
712
- # the instance as temporary ineligible for the purpose of SLO calculation. For
713
- # permanent instance SLO exclusion, use of custom instance eligibility is
714
- # recommended. See 'eligibility' field below.
715
- # Corresponds to the JSON property `exclusions`
716
- # @return [Array<Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion>]
717
- attr_accessor :exclusions
718
-
719
650
  # Optional. List of nodes. Some producers need to use per-node metadata to
720
651
  # calculate SLO. This field allows such producers to publish per-node SLO meta
721
652
  # data, which will be consumed by SSA Eligibility Exporter and published in the
@@ -742,7 +673,6 @@ module Google
742
673
 
743
674
  # Update properties of this object
744
675
  def update!(**args)
745
- @exclusions = args[:exclusions] if args.key?(:exclusions)
746
676
  @nodes = args[:nodes] if args.key?(:nodes)
747
677
  @per_sli_eligibility = args[:per_sli_eligibility] if args.key?(:per_sli_eligibility)
748
678
  @tier = args[:tier] if args.key?(:tier)
@@ -775,6 +705,11 @@ module Google
775
705
  # @return [Array<Google::Apis::FileV1beta1::FileShareConfig>]
776
706
  attr_accessor :file_shares
777
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
+
778
713
  # Resource labels to represent user provided metadata.
779
714
  # Corresponds to the JSON property `labels`
780
715
  # @return [Hash<String,String>]
@@ -808,6 +743,12 @@ module Google
808
743
  # @return [String]
809
744
  attr_accessor :status_message
810
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
+
811
752
  # The service tier of the instance.
812
753
  # Corresponds to the JSON property `tier`
813
754
  # @return [String]
@@ -823,12 +764,14 @@ module Google
823
764
  @description = args[:description] if args.key?(:description)
824
765
  @etag = args[:etag] if args.key?(:etag)
825
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)
826
768
  @labels = args[:labels] if args.key?(:labels)
827
769
  @name = args[:name] if args.key?(:name)
828
770
  @networks = args[:networks] if args.key?(:networks)
829
771
  @satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs)
830
772
  @state = args[:state] if args.key?(:state)
831
773
  @status_message = args[:status_message] if args.key?(:status_message)
774
+ @suspension_reasons = args[:suspension_reasons] if args.key?(:suspension_reasons)
832
775
  @tier = args[:tier] if args.key?(:tier)
833
776
  end
834
777
  end
@@ -1351,7 +1294,7 @@ module Google
1351
1294
  end
1352
1295
  end
1353
1296
 
1354
- # RestoreInstanceRequest restores an existing instances's file share from a
1297
+ # RestoreInstanceRequest restores an existing instance's file share from a
1355
1298
  # snapshot or backup.
1356
1299
  class RestoreInstanceRequest
1357
1300
  include Google::Apis::Core::Hashable
@@ -1386,6 +1329,29 @@ module Google
1386
1329
  end
1387
1330
  end
1388
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
+
1389
1355
  # Configure the schedule.
1390
1356
  class Schedule
1391
1357
  include Google::Apis::Core::Hashable
@@ -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.13.0"
19
+ GEM_VERSION = "0.17.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 = "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
@@ -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, 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)
@@ -540,6 +544,40 @@ 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
583
  # Required. The Filestore Instance to create the snapshots of, in the format `
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.13.0
4
+ version: 0.17.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_v1beta1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-file_v1beta1/v0.13.0
62
- source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-file_v1beta1
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.17.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:
@@ -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 V1beta1