google-apis-file_v1 0.46.0 → 0.47.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '0908c8d713fe28a62478fb149d6b60f614894063efeb5e8db6f4e35e1825c9fb'
4
- data.tar.gz: 48fe3fffe4a0e23fa8456250ab278891af19e63848852d03002ec82fd58aa51d
3
+ metadata.gz: 94d7e8b0d2e0d20e82a0b14e6a7055609d2f8b2036977a1723c9863816a360bd
4
+ data.tar.gz: a00da495af2c873103e5e25ccfeaa1c896cfdf35f4d88a3c1f75c80b1125f9c1
5
5
  SHA512:
6
- metadata.gz: edbd9606b7d50d6aab36b2d16ca03929de8dd5304d7ffde74ddc7b3608a431f06853c903bf6f67fe0535fd53aff5ae35245ac0991daa62f47955ab89850fae88
7
- data.tar.gz: dea6e35f9288b58bc09e99476a92662e43116dba34643090661c799e4abb78d9d621f0da44454381c7a0c252e6c55e7c60466650e754f63d178e63af05df1229
6
+ metadata.gz: 8b77bb6e3244d55beacdbda92ebf0426e424a4fb28edd9afa3650025cb5b286a869af4566f5b47e78cbe1005b71276e9ca985b3efb49e836ff603193ba6dc2a5
7
+ data.tar.gz: c6367209f02caa54507885aef8579deeeb461a54ed2e1a39418d570531fc4b4d2bd12eb4b1b950268ff3df8b6becd230ef134d985c58617c03973948845600c8
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-file_v1
2
2
 
3
+ ### v0.47.0 (2024-09-15)
4
+
5
+ * Regenerated from discovery document revision 20240905
6
+
3
7
  ### v0.46.0 (2024-08-04)
4
8
 
5
9
  * Regenerated from discovery document revision 20240716
@@ -49,6 +49,12 @@ module Google
49
49
  # @return [Fixnum]
50
50
  attr_accessor :download_bytes
51
51
 
52
+ # Output only. The file system protocol of the source Filestore instance that
53
+ # this backup is created from.
54
+ # Corresponds to the JSON property `fileSystemProtocol`
55
+ # @return [String]
56
+ attr_accessor :file_system_protocol
57
+
52
58
  # Immutable. KMS key name used for data encryption.
53
59
  # Corresponds to the JSON property `kmsKey`
54
60
  # @return [String]
@@ -107,7 +113,7 @@ module Google
107
113
  # @return [Fixnum]
108
114
  attr_accessor :storage_bytes
109
115
 
110
- # Optional. Input only. Immutable. Tag keys/values directly bound to this
116
+ # Optional. Input only. Immutable. Tag key-value pairs are bound to this
111
117
  # resource. For example: "123/environment": "production", "123/costCenter": "
112
118
  # marketing"
113
119
  # Corresponds to the JSON property `tags`
@@ -124,6 +130,7 @@ module Google
124
130
  @create_time = args[:create_time] if args.key?(:create_time)
125
131
  @description = args[:description] if args.key?(:description)
126
132
  @download_bytes = args[:download_bytes] if args.key?(:download_bytes)
133
+ @file_system_protocol = args[:file_system_protocol] if args.key?(:file_system_protocol)
127
134
  @kms_key = args[:kms_key] if args.key?(:kms_key)
128
135
  @labels = args[:labels] if args.key?(:labels)
129
136
  @name = args[:name] if args.key?(:name)
@@ -325,6 +332,25 @@ module Google
325
332
  end
326
333
  end
327
334
 
335
+ # Fixed IOPS (input/output operations per second) parameters.
336
+ class FixedIops
337
+ include Google::Apis::Core::Hashable
338
+
339
+ # Required. Maximum raw read IOPS.
340
+ # Corresponds to the JSON property `maxReadIops`
341
+ # @return [Fixnum]
342
+ attr_accessor :max_read_iops
343
+
344
+ def initialize(**args)
345
+ update!(**args)
346
+ end
347
+
348
+ # Update properties of this object
349
+ def update!(**args)
350
+ @max_read_iops = args[:max_read_iops] if args.key?(:max_read_iops)
351
+ end
352
+ end
353
+
328
354
  # Instance represents the interface for SLM services to actuate the state of
329
355
  # control plane resources. Example Instance in JSON, where consumer-project-
330
356
  # number=123456, producer-project-id=cloud-sql: ```json Instance: ` "name": "
@@ -759,15 +785,52 @@ module Google
759
785
  end
760
786
  end
761
787
 
788
+ # IOPS per TB. Filestore defines TB as 1024^4 bytes (TiB).
789
+ class IopsPerTb
790
+ include Google::Apis::Core::Hashable
791
+
792
+ # Required. Maximum read IOPS per TiB.
793
+ # Corresponds to the JSON property `maxReadIopsPerTb`
794
+ # @return [Fixnum]
795
+ attr_accessor :max_read_iops_per_tb
796
+
797
+ def initialize(**args)
798
+ update!(**args)
799
+ end
800
+
801
+ # Update properties of this object
802
+ def update!(**args)
803
+ @max_read_iops_per_tb = args[:max_read_iops_per_tb] if args.key?(:max_read_iops_per_tb)
804
+ end
805
+ end
806
+
762
807
  # A Filestore instance.
763
808
  class Instance
764
809
  include Google::Apis::Core::Hashable
765
810
 
811
+ # Output only. Indicates whether this instance's performance is configurable. If
812
+ # enabled, adjust it using the 'performance_config' field.
813
+ # Corresponds to the JSON property `configurablePerformanceEnabled`
814
+ # @return [Boolean]
815
+ attr_accessor :configurable_performance_enabled
816
+ alias_method :configurable_performance_enabled?, :configurable_performance_enabled
817
+
766
818
  # Output only. The time when the instance was created.
767
819
  # Corresponds to the JSON property `createTime`
768
820
  # @return [String]
769
821
  attr_accessor :create_time
770
822
 
823
+ # Optional. Indicates whether the instance is protected against deletion.
824
+ # Corresponds to the JSON property `deletionProtectionEnabled`
825
+ # @return [Boolean]
826
+ attr_accessor :deletion_protection_enabled
827
+ alias_method :deletion_protection_enabled?, :deletion_protection_enabled
828
+
829
+ # Optional. The reason for enabling deletion protection.
830
+ # Corresponds to the JSON property `deletionProtectionReason`
831
+ # @return [String]
832
+ attr_accessor :deletion_protection_reason
833
+
771
834
  # The description of the instance (2048 characters or less).
772
835
  # Corresponds to the JSON property `description`
773
836
  # @return [String]
@@ -807,6 +870,29 @@ module Google
807
870
  # @return [Array<Google::Apis::FileV1::NetworkConfig>]
808
871
  attr_accessor :networks
809
872
 
873
+ # Used for setting the performance configuration. If the user doesn't specify
874
+ # PerformanceConfig, automatically provision the default performance settings as
875
+ # described in https://cloud.google.com/filestore/docs/performance. Larger
876
+ # instances will be linearly set to more IOPS. If the instance's capacity is
877
+ # increased or decreased, its performance will be automatically adjusted upwards
878
+ # or downwards accordingly (respectively).
879
+ # Corresponds to the JSON property `performanceConfig`
880
+ # @return [Google::Apis::FileV1::PerformanceConfig]
881
+ attr_accessor :performance_config
882
+
883
+ # The enforced performance limits, calculated from the instance's performance
884
+ # configuration.
885
+ # Corresponds to the JSON property `performanceLimits`
886
+ # @return [Google::Apis::FileV1::PerformanceLimits]
887
+ attr_accessor :performance_limits
888
+
889
+ # Immutable. The protocol indicates the access protocol for all shares in the
890
+ # instance. This field is immutable and it cannot be changed after the instance
891
+ # has been created. Default value: `NFS_V3`.
892
+ # Corresponds to the JSON property `protocol`
893
+ # @return [String]
894
+ attr_accessor :protocol
895
+
810
896
  # Replication specifications.
811
897
  # Corresponds to the JSON property `replication`
812
898
  # @return [Google::Apis::FileV1::Replication]
@@ -840,7 +926,7 @@ module Google
840
926
  # @return [Array<String>]
841
927
  attr_accessor :suspension_reasons
842
928
 
843
- # Optional. Input only. Immutable. Tag keys/values directly bound to this
929
+ # Optional. Input only. Immutable. Tag key-value pairs are bound to this
844
930
  # resource. For example: "123/environment": "production", "123/costCenter": "
845
931
  # marketing"
846
932
  # Corresponds to the JSON property `tags`
@@ -858,7 +944,10 @@ module Google
858
944
 
859
945
  # Update properties of this object
860
946
  def update!(**args)
947
+ @configurable_performance_enabled = args[:configurable_performance_enabled] if args.key?(:configurable_performance_enabled)
861
948
  @create_time = args[:create_time] if args.key?(:create_time)
949
+ @deletion_protection_enabled = args[:deletion_protection_enabled] if args.key?(:deletion_protection_enabled)
950
+ @deletion_protection_reason = args[:deletion_protection_reason] if args.key?(:deletion_protection_reason)
862
951
  @description = args[:description] if args.key?(:description)
863
952
  @etag = args[:etag] if args.key?(:etag)
864
953
  @file_shares = args[:file_shares] if args.key?(:file_shares)
@@ -866,6 +955,9 @@ module Google
866
955
  @labels = args[:labels] if args.key?(:labels)
867
956
  @name = args[:name] if args.key?(:name)
868
957
  @networks = args[:networks] if args.key?(:networks)
958
+ @performance_config = args[:performance_config] if args.key?(:performance_config)
959
+ @performance_limits = args[:performance_limits] if args.key?(:performance_limits)
960
+ @protocol = args[:protocol] if args.key?(:protocol)
869
961
  @replication = args[:replication] if args.key?(:replication)
870
962
  @satisfies_pzi = args[:satisfies_pzi] if args.key?(:satisfies_pzi)
871
963
  @satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs)
@@ -1396,6 +1488,74 @@ module Google
1396
1488
  end
1397
1489
  end
1398
1490
 
1491
+ # Used for setting the performance configuration. If the user doesn't specify
1492
+ # PerformanceConfig, automatically provision the default performance settings as
1493
+ # described in https://cloud.google.com/filestore/docs/performance. Larger
1494
+ # instances will be linearly set to more IOPS. If the instance's capacity is
1495
+ # increased or decreased, its performance will be automatically adjusted upwards
1496
+ # or downwards accordingly (respectively).
1497
+ class PerformanceConfig
1498
+ include Google::Apis::Core::Hashable
1499
+
1500
+ # Fixed IOPS (input/output operations per second) parameters.
1501
+ # Corresponds to the JSON property `fixedIops`
1502
+ # @return [Google::Apis::FileV1::FixedIops]
1503
+ attr_accessor :fixed_iops
1504
+
1505
+ # IOPS per TB. Filestore defines TB as 1024^4 bytes (TiB).
1506
+ # Corresponds to the JSON property `iopsPerTb`
1507
+ # @return [Google::Apis::FileV1::IopsPerTb]
1508
+ attr_accessor :iops_per_tb
1509
+
1510
+ def initialize(**args)
1511
+ update!(**args)
1512
+ end
1513
+
1514
+ # Update properties of this object
1515
+ def update!(**args)
1516
+ @fixed_iops = args[:fixed_iops] if args.key?(:fixed_iops)
1517
+ @iops_per_tb = args[:iops_per_tb] if args.key?(:iops_per_tb)
1518
+ end
1519
+ end
1520
+
1521
+ # The enforced performance limits, calculated from the instance's performance
1522
+ # configuration.
1523
+ class PerformanceLimits
1524
+ include Google::Apis::Core::Hashable
1525
+
1526
+ # Output only. The max read IOPS.
1527
+ # Corresponds to the JSON property `maxReadIops`
1528
+ # @return [Fixnum]
1529
+ attr_accessor :max_read_iops
1530
+
1531
+ # Output only. The max read throughput in bytes per second.
1532
+ # Corresponds to the JSON property `maxReadThroughputBps`
1533
+ # @return [Fixnum]
1534
+ attr_accessor :max_read_throughput_bps
1535
+
1536
+ # Output only. The max write IOPS.
1537
+ # Corresponds to the JSON property `maxWriteIops`
1538
+ # @return [Fixnum]
1539
+ attr_accessor :max_write_iops
1540
+
1541
+ # Output only. The max write throughput in bytes per second.
1542
+ # Corresponds to the JSON property `maxWriteThroughputBps`
1543
+ # @return [Fixnum]
1544
+ attr_accessor :max_write_throughput_bps
1545
+
1546
+ def initialize(**args)
1547
+ update!(**args)
1548
+ end
1549
+
1550
+ # Update properties of this object
1551
+ def update!(**args)
1552
+ @max_read_iops = args[:max_read_iops] if args.key?(:max_read_iops)
1553
+ @max_read_throughput_bps = args[:max_read_throughput_bps] if args.key?(:max_read_throughput_bps)
1554
+ @max_write_iops = args[:max_write_iops] if args.key?(:max_write_iops)
1555
+ @max_write_throughput_bps = args[:max_write_throughput_bps] if args.key?(:max_write_throughput_bps)
1556
+ end
1557
+ end
1558
+
1399
1559
  # PromoteReplicaRequest promotes a Filestore standby instance (replica).
1400
1560
  class PromoteReplicaRequest
1401
1561
  include Google::Apis::Core::Hashable
@@ -1451,8 +1611,8 @@ module Google
1451
1611
  class Replication
1452
1612
  include Google::Apis::Core::Hashable
1453
1613
 
1454
- # Optional. Replicas configuration on the instance. For now, only a single
1455
- # replica config is supported.
1614
+ # Optional. Replication configuration for the replica instance associated with
1615
+ # this instance. Only a single replica is supported.
1456
1616
  # Corresponds to the JSON property `replicas`
1457
1617
  # @return [Array<Google::Apis::FileV1::ReplicaConfig>]
1458
1618
  attr_accessor :replicas
@@ -1595,7 +1755,7 @@ module Google
1595
1755
  # @return [String]
1596
1756
  attr_accessor :state
1597
1757
 
1598
- # Optional. Input only. Immutable. Tag keys/values directly bound to this
1758
+ # Optional. Input only. Immutable. Tag key-value pairs are bound to this
1599
1759
  # resource. For example: "123/environment": "production", "123/costCenter": "
1600
1760
  # marketing"
1601
1761
  # Corresponds to the JSON property `tags`
@@ -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.46.0"
19
+ GEM_VERSION = "0.47.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.15.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240716"
25
+ REVISION = "20240905"
26
26
  end
27
27
  end
28
28
  end
@@ -64,6 +64,12 @@ module Google
64
64
  include Google::Apis::Core::JsonObjectSupport
65
65
  end
66
66
 
67
+ class FixedIops
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
67
73
  class GoogleCloudSaasacceleratorManagementProvidersV1Instance
68
74
  class Representation < Google::Apis::Core::JsonRepresentation; end
69
75
 
@@ -118,6 +124,12 @@ module Google
118
124
  include Google::Apis::Core::JsonObjectSupport
119
125
  end
120
126
 
127
+ class IopsPerTb
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
121
133
  class Instance
122
134
  class Representation < Google::Apis::Core::JsonRepresentation; end
123
135
 
@@ -196,6 +208,18 @@ module Google
196
208
  include Google::Apis::Core::JsonObjectSupport
197
209
  end
198
210
 
211
+ class PerformanceConfig
212
+ class Representation < Google::Apis::Core::JsonRepresentation; end
213
+
214
+ include Google::Apis::Core::JsonObjectSupport
215
+ end
216
+
217
+ class PerformanceLimits
218
+ class Representation < Google::Apis::Core::JsonRepresentation; end
219
+
220
+ include Google::Apis::Core::JsonObjectSupport
221
+ end
222
+
199
223
  class PromoteReplicaRequest
200
224
  class Representation < Google::Apis::Core::JsonRepresentation; end
201
225
 
@@ -269,6 +293,7 @@ module Google
269
293
  property :create_time, as: 'createTime'
270
294
  property :description, as: 'description'
271
295
  property :download_bytes, :numeric_string => true, as: 'downloadBytes'
296
+ property :file_system_protocol, as: 'fileSystemProtocol'
272
297
  property :kms_key, as: 'kmsKey'
273
298
  hash :labels, as: 'labels'
274
299
  property :name, as: 'name'
@@ -336,6 +361,13 @@ module Google
336
361
  end
337
362
  end
338
363
 
364
+ class FixedIops
365
+ # @private
366
+ class Representation < Google::Apis::Core::JsonRepresentation
367
+ property :max_read_iops, :numeric_string => true, as: 'maxReadIops'
368
+ end
369
+ end
370
+
339
371
  class GoogleCloudSaasacceleratorManagementProvidersV1Instance
340
372
  # @private
341
373
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -437,10 +469,20 @@ module Google
437
469
  end
438
470
  end
439
471
 
472
+ class IopsPerTb
473
+ # @private
474
+ class Representation < Google::Apis::Core::JsonRepresentation
475
+ property :max_read_iops_per_tb, :numeric_string => true, as: 'maxReadIopsPerTb'
476
+ end
477
+ end
478
+
440
479
  class Instance
441
480
  # @private
442
481
  class Representation < Google::Apis::Core::JsonRepresentation
482
+ property :configurable_performance_enabled, as: 'configurablePerformanceEnabled'
443
483
  property :create_time, as: 'createTime'
484
+ property :deletion_protection_enabled, as: 'deletionProtectionEnabled'
485
+ property :deletion_protection_reason, as: 'deletionProtectionReason'
444
486
  property :description, as: 'description'
445
487
  property :etag, as: 'etag'
446
488
  collection :file_shares, as: 'fileShares', class: Google::Apis::FileV1::FileShareConfig, decorator: Google::Apis::FileV1::FileShareConfig::Representation
@@ -450,6 +492,11 @@ module Google
450
492
  property :name, as: 'name'
451
493
  collection :networks, as: 'networks', class: Google::Apis::FileV1::NetworkConfig, decorator: Google::Apis::FileV1::NetworkConfig::Representation
452
494
 
495
+ property :performance_config, as: 'performanceConfig', class: Google::Apis::FileV1::PerformanceConfig, decorator: Google::Apis::FileV1::PerformanceConfig::Representation
496
+
497
+ property :performance_limits, as: 'performanceLimits', class: Google::Apis::FileV1::PerformanceLimits, decorator: Google::Apis::FileV1::PerformanceLimits::Representation
498
+
499
+ property :protocol, as: 'protocol'
453
500
  property :replication, as: 'replication', class: Google::Apis::FileV1::Replication, decorator: Google::Apis::FileV1::Replication::Representation
454
501
 
455
502
  property :satisfies_pzi, as: 'satisfiesPzi'
@@ -591,6 +638,26 @@ module Google
591
638
  end
592
639
  end
593
640
 
641
+ class PerformanceConfig
642
+ # @private
643
+ class Representation < Google::Apis::Core::JsonRepresentation
644
+ property :fixed_iops, as: 'fixedIops', class: Google::Apis::FileV1::FixedIops, decorator: Google::Apis::FileV1::FixedIops::Representation
645
+
646
+ property :iops_per_tb, as: 'iopsPerTb', class: Google::Apis::FileV1::IopsPerTb, decorator: Google::Apis::FileV1::IopsPerTb::Representation
647
+
648
+ end
649
+ end
650
+
651
+ class PerformanceLimits
652
+ # @private
653
+ class Representation < Google::Apis::Core::JsonRepresentation
654
+ property :max_read_iops, :numeric_string => true, as: 'maxReadIops'
655
+ property :max_read_throughput_bps, :numeric_string => true, as: 'maxReadThroughputBps'
656
+ property :max_write_iops, :numeric_string => true, as: 'maxWriteIops'
657
+ property :max_write_throughput_bps, :numeric_string => true, as: 'maxWriteThroughputBps'
658
+ end
659
+ end
660
+
594
661
  class PromoteReplicaRequest
595
662
  # @private
596
663
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -479,7 +479,8 @@ module Google
479
479
  # @param [String] update_mask
480
480
  # Mask of fields to update. At least one path must be supplied in this field.
481
481
  # The elements of the repeated paths field may only include these fields: * "
482
- # description" * "file_shares" * "labels"
482
+ # description" * "file_shares" * "labels" * "performance_config" * "
483
+ # deletion_protection_enabled" * "deletion_protection_reason"
483
484
  # @param [String] fields
484
485
  # Selector specifying which fields to include in a partial response.
485
486
  # @param [String] quota_user
@@ -510,7 +511,7 @@ module Google
510
511
  execute_or_queue_command(command, &block)
511
512
  end
512
513
 
513
- # Promote an standby instance (replica).
514
+ # Promote the standby instance (replica).
514
515
  # @param [String] name
515
516
  # Required. The resource name of the instance, in the format `projects/`
516
517
  # project_id`/locations/`location_id`/instances/`instance_id``.
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.46.0
4
+ version: 0.47.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: 2024-08-04 00:00:00.000000000 Z
11
+ date: 2024-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-file_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-file_v1/v0.46.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-file_v1/v0.47.0
62
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: []