google-apis-file_v1 0.43.0 → 0.45.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: 13db732f2b637c05b3204281616dc299c73916ba3e7d1b8597363be74da5cd42
4
- data.tar.gz: 2ee96dd2819ef4718cfee000dc4434cc331e129e98411c8a670647b5e702cfbc
3
+ metadata.gz: 97d931f13d53fc9379a2264a99667037896952e7b37359a1e2e74ca1d0f423ae
4
+ data.tar.gz: cf56c01326b03ebeb97cfd1755ca9e2d78304856215e64cd49cc44e416f57438
5
5
  SHA512:
6
- metadata.gz: 94b0481340aa2d5e042773788a6a159b69d1292d44d7e5ad0c49859f3caa91de22ba022694290cd58a5841bd68247567f69a07d628ab2ec163c481319883ce33
7
- data.tar.gz: 41a8ff86b32d1973790ca69e1e39ee9bcfb44ecc90b4b6c0f567b2dd587f983d900dd88114f477784e7a85e790917ec0b118925f7fd6d4958618a705cb1af986
6
+ metadata.gz: f855dd4640c33423e3c4882d08dd8d85c23c822fd998fed0efdb6f52d6048badc9d558687085e5e1381863dfde46f484f48cc7e80ac3653e84af84fa5036dd05
7
+ data.tar.gz: ccbb054b5c825d750cc75979d6898059c32816d1afbc09acc6f567d72b7869458594331c2897cf67ff2d7441b29c46518817dce19dd40ae268bfeabbd2898099
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-file_v1
2
2
 
3
+ ### v0.45.0 (2024-06-26)
4
+
5
+ * Regenerated from discovery document revision 20240619
6
+
7
+ ### v0.44.0 (2024-06-16)
8
+
9
+ * Regenerated from discovery document revision 20240608
10
+
3
11
  ### v0.43.0 (2024-05-19)
4
12
 
5
13
  * Regenerated from discovery document revision 20240511
@@ -107,6 +107,13 @@ module Google
107
107
  # @return [Fixnum]
108
108
  attr_accessor :storage_bytes
109
109
 
110
+ # Optional. Input only. Immutable. Tag keys/values directly bound to this
111
+ # resource. For example: "123/environment": "production", "123/costCenter": "
112
+ # marketing"
113
+ # Corresponds to the JSON property `tags`
114
+ # @return [Hash<String,String>]
115
+ attr_accessor :tags
116
+
110
117
  def initialize(**args)
111
118
  update!(**args)
112
119
  end
@@ -127,6 +134,7 @@ module Google
127
134
  @source_instance_tier = args[:source_instance_tier] if args.key?(:source_instance_tier)
128
135
  @state = args[:state] if args.key?(:state)
129
136
  @storage_bytes = args[:storage_bytes] if args.key?(:storage_bytes)
137
+ @tags = args[:tags] if args.key?(:tags)
130
138
  end
131
139
  end
132
140
 
@@ -297,6 +305,18 @@ module Google
297
305
  # @return [Array<Google::Apis::FileV1::NfsExportOptions>]
298
306
  attr_accessor :nfs_export_options
299
307
 
308
+ # Performance configuration. Used for setting the performance configuration.
309
+ # Defaults to `iops_by_capacity` if unset in instance creation.
310
+ # Corresponds to the JSON property `performanceConfig`
311
+ # @return [Google::Apis::FileV1::PerformanceConfig]
312
+ attr_accessor :performance_config
313
+
314
+ # The enforced performance limits, calculated from the instance's performance
315
+ # configuration.
316
+ # Corresponds to the JSON property `performanceLimits`
317
+ # @return [Google::Apis::FileV1::PerformanceLimits]
318
+ attr_accessor :performance_limits
319
+
300
320
  # The resource name of the backup, in the format `projects/`project_number`/
301
321
  # locations/`location_id`/backups/`backup_id``, that this file share has been
302
322
  # restored from.
@@ -313,10 +333,31 @@ module Google
313
333
  @capacity_gb = args[:capacity_gb] if args.key?(:capacity_gb)
314
334
  @name = args[:name] if args.key?(:name)
315
335
  @nfs_export_options = args[:nfs_export_options] if args.key?(:nfs_export_options)
336
+ @performance_config = args[:performance_config] if args.key?(:performance_config)
337
+ @performance_limits = args[:performance_limits] if args.key?(:performance_limits)
316
338
  @source_backup = args[:source_backup] if args.key?(:source_backup)
317
339
  end
318
340
  end
319
341
 
342
+ # Fixed IOPS parameters.
343
+ class FixedIops
344
+ include Google::Apis::Core::Hashable
345
+
346
+ # Required. Maximum raw read IOPS.
347
+ # Corresponds to the JSON property `maxReadIops`
348
+ # @return [Fixnum]
349
+ attr_accessor :max_read_iops
350
+
351
+ def initialize(**args)
352
+ update!(**args)
353
+ end
354
+
355
+ # Update properties of this object
356
+ def update!(**args)
357
+ @max_read_iops = args[:max_read_iops] if args.key?(:max_read_iops)
358
+ end
359
+ end
360
+
320
361
  # Instance represents the interface for SLM services to actuate the state of
321
362
  # control plane resources. Example Instance in JSON, where consumer-project-
322
363
  # number=123456, producer-project-id=cloud-sql: ```json Instance: ` "name": "
@@ -751,6 +792,25 @@ module Google
751
792
  end
752
793
  end
753
794
 
795
+ # IOPS per capacity parameters.
796
+ class IopsPerGb
797
+ include Google::Apis::Core::Hashable
798
+
799
+ # Required. Maximum read IOPS per GB.
800
+ # Corresponds to the JSON property `maxReadIopsPerGb`
801
+ # @return [Fixnum]
802
+ attr_accessor :max_read_iops_per_gb
803
+
804
+ def initialize(**args)
805
+ update!(**args)
806
+ end
807
+
808
+ # Update properties of this object
809
+ def update!(**args)
810
+ @max_read_iops_per_gb = args[:max_read_iops_per_gb] if args.key?(:max_read_iops_per_gb)
811
+ end
812
+ end
813
+
754
814
  # A Filestore instance.
755
815
  class Instance
756
816
  include Google::Apis::Core::Hashable
@@ -832,6 +892,13 @@ module Google
832
892
  # @return [Array<String>]
833
893
  attr_accessor :suspension_reasons
834
894
 
895
+ # Optional. Input only. Immutable. Tag keys/values directly bound to this
896
+ # resource. For example: "123/environment": "production", "123/costCenter": "
897
+ # marketing"
898
+ # Corresponds to the JSON property `tags`
899
+ # @return [Hash<String,String>]
900
+ attr_accessor :tags
901
+
835
902
  # The service tier of the instance.
836
903
  # Corresponds to the JSON property `tier`
837
904
  # @return [String]
@@ -857,6 +924,7 @@ module Google
857
924
  @state = args[:state] if args.key?(:state)
858
925
  @status_message = args[:status_message] if args.key?(:status_message)
859
926
  @suspension_reasons = args[:suspension_reasons] if args.key?(:suspension_reasons)
927
+ @tags = args[:tags] if args.key?(:tags)
860
928
  @tier = args[:tier] if args.key?(:tier)
861
929
  end
862
930
  end
@@ -1380,6 +1448,94 @@ module Google
1380
1448
  end
1381
1449
  end
1382
1450
 
1451
+ # Performance configuration. Used for setting the performance configuration.
1452
+ # Defaults to `iops_by_capacity` if unset in instance creation.
1453
+ class PerformanceConfig
1454
+ include Google::Apis::Core::Hashable
1455
+
1456
+ # Fixed IOPS parameters.
1457
+ # Corresponds to the JSON property `fixedIops`
1458
+ # @return [Google::Apis::FileV1::FixedIops]
1459
+ attr_accessor :fixed_iops
1460
+
1461
+ # Automatically provision maximum available IOPS based on the capacity of the
1462
+ # instance. Larger instances will be granted more IOPS. If instance capacity is
1463
+ # increased or decreased, IOPS will be automatically adjusted upwards or
1464
+ # downwards accordingly. The maximum available IOPS for a given capacity is
1465
+ # defined in Filestore documentation.
1466
+ # Corresponds to the JSON property `iopsByCapacity`
1467
+ # @return [Boolean]
1468
+ attr_accessor :iops_by_capacity
1469
+ alias_method :iops_by_capacity?, :iops_by_capacity
1470
+
1471
+ # IOPS per capacity parameters.
1472
+ # Corresponds to the JSON property `iopsPerGb`
1473
+ # @return [Google::Apis::FileV1::IopsPerGb]
1474
+ attr_accessor :iops_per_gb
1475
+
1476
+ def initialize(**args)
1477
+ update!(**args)
1478
+ end
1479
+
1480
+ # Update properties of this object
1481
+ def update!(**args)
1482
+ @fixed_iops = args[:fixed_iops] if args.key?(:fixed_iops)
1483
+ @iops_by_capacity = args[:iops_by_capacity] if args.key?(:iops_by_capacity)
1484
+ @iops_per_gb = args[:iops_per_gb] if args.key?(:iops_per_gb)
1485
+ end
1486
+ end
1487
+
1488
+ # The enforced performance limits, calculated from the instance's performance
1489
+ # configuration.
1490
+ class PerformanceLimits
1491
+ include Google::Apis::Core::Hashable
1492
+
1493
+ # Output only. The max read IOPS.
1494
+ # Corresponds to the JSON property `maxReadIops`
1495
+ # @return [Fixnum]
1496
+ attr_accessor :max_read_iops
1497
+
1498
+ # Output only. The max read throughput.
1499
+ # Corresponds to the JSON property `maxReadThroughput`
1500
+ # @return [Fixnum]
1501
+ attr_accessor :max_read_throughput
1502
+
1503
+ # Output only. The max write IOPS.
1504
+ # Corresponds to the JSON property `maxWriteIops`
1505
+ # @return [Fixnum]
1506
+ attr_accessor :max_write_iops
1507
+
1508
+ # Output only. The max write throughput.
1509
+ # Corresponds to the JSON property `maxWriteThroughput`
1510
+ # @return [Fixnum]
1511
+ attr_accessor :max_write_throughput
1512
+
1513
+ def initialize(**args)
1514
+ update!(**args)
1515
+ end
1516
+
1517
+ # Update properties of this object
1518
+ def update!(**args)
1519
+ @max_read_iops = args[:max_read_iops] if args.key?(:max_read_iops)
1520
+ @max_read_throughput = args[:max_read_throughput] if args.key?(:max_read_throughput)
1521
+ @max_write_iops = args[:max_write_iops] if args.key?(:max_write_iops)
1522
+ @max_write_throughput = args[:max_write_throughput] if args.key?(:max_write_throughput)
1523
+ end
1524
+ end
1525
+
1526
+ # PromoteReplicaRequest promotes a Filestore standby instance (replica).
1527
+ class PromoteReplicaRequest
1528
+ include Google::Apis::Core::Hashable
1529
+
1530
+ def initialize(**args)
1531
+ update!(**args)
1532
+ end
1533
+
1534
+ # Update properties of this object
1535
+ def update!(**args)
1536
+ end
1537
+ end
1538
+
1383
1539
  # Replica configuration for the instance.
1384
1540
  class ReplicaConfig
1385
1541
  include Google::Apis::Core::Hashable
@@ -1566,6 +1722,13 @@ module Google
1566
1722
  # @return [String]
1567
1723
  attr_accessor :state
1568
1724
 
1725
+ # Optional. Input only. Immutable. Tag keys/values directly bound to this
1726
+ # resource. For example: "123/environment": "production", "123/costCenter": "
1727
+ # marketing"
1728
+ # Corresponds to the JSON property `tags`
1729
+ # @return [Hash<String,String>]
1730
+ attr_accessor :tags
1731
+
1569
1732
  def initialize(**args)
1570
1733
  update!(**args)
1571
1734
  end
@@ -1578,6 +1741,7 @@ module Google
1578
1741
  @labels = args[:labels] if args.key?(:labels)
1579
1742
  @name = args[:name] if args.key?(:name)
1580
1743
  @state = args[:state] if args.key?(:state)
1744
+ @tags = args[:tags] if args.key?(:tags)
1581
1745
  end
1582
1746
  end
1583
1747
 
@@ -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.43.0"
19
+ GEM_VERSION = "0.45.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.15.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240511"
25
+ REVISION = "20240619"
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 IopsPerGb
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,24 @@ 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
+
223
+ class PromoteReplicaRequest
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
227
+ end
228
+
199
229
  class ReplicaConfig
200
230
  class Representation < Google::Apis::Core::JsonRepresentation; end
201
231
 
@@ -273,6 +303,7 @@ module Google
273
303
  property :source_instance_tier, as: 'sourceInstanceTier'
274
304
  property :state, as: 'state'
275
305
  property :storage_bytes, :numeric_string => true, as: 'storageBytes'
306
+ hash :tags, as: 'tags'
276
307
  end
277
308
  end
278
309
 
@@ -325,10 +356,21 @@ module Google
325
356
  property :name, as: 'name'
326
357
  collection :nfs_export_options, as: 'nfsExportOptions', class: Google::Apis::FileV1::NfsExportOptions, decorator: Google::Apis::FileV1::NfsExportOptions::Representation
327
358
 
359
+ property :performance_config, as: 'performanceConfig', class: Google::Apis::FileV1::PerformanceConfig, decorator: Google::Apis::FileV1::PerformanceConfig::Representation
360
+
361
+ property :performance_limits, as: 'performanceLimits', class: Google::Apis::FileV1::PerformanceLimits, decorator: Google::Apis::FileV1::PerformanceLimits::Representation
362
+
328
363
  property :source_backup, as: 'sourceBackup'
329
364
  end
330
365
  end
331
366
 
367
+ class FixedIops
368
+ # @private
369
+ class Representation < Google::Apis::Core::JsonRepresentation
370
+ property :max_read_iops, :numeric_string => true, as: 'maxReadIops'
371
+ end
372
+ end
373
+
332
374
  class GoogleCloudSaasacceleratorManagementProvidersV1Instance
333
375
  # @private
334
376
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -430,6 +472,13 @@ module Google
430
472
  end
431
473
  end
432
474
 
475
+ class IopsPerGb
476
+ # @private
477
+ class Representation < Google::Apis::Core::JsonRepresentation
478
+ property :max_read_iops_per_gb, :numeric_string => true, as: 'maxReadIopsPerGb'
479
+ end
480
+ end
481
+
433
482
  class Instance
434
483
  # @private
435
484
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -450,6 +499,7 @@ module Google
450
499
  property :state, as: 'state'
451
500
  property :status_message, as: 'statusMessage'
452
501
  collection :suspension_reasons, as: 'suspensionReasons'
502
+ hash :tags, as: 'tags'
453
503
  property :tier, as: 'tier'
454
504
  end
455
505
  end
@@ -583,6 +633,33 @@ module Google
583
633
  end
584
634
  end
585
635
 
636
+ class PerformanceConfig
637
+ # @private
638
+ class Representation < Google::Apis::Core::JsonRepresentation
639
+ property :fixed_iops, as: 'fixedIops', class: Google::Apis::FileV1::FixedIops, decorator: Google::Apis::FileV1::FixedIops::Representation
640
+
641
+ property :iops_by_capacity, as: 'iopsByCapacity'
642
+ property :iops_per_gb, as: 'iopsPerGb', class: Google::Apis::FileV1::IopsPerGb, decorator: Google::Apis::FileV1::IopsPerGb::Representation
643
+
644
+ end
645
+ end
646
+
647
+ class PerformanceLimits
648
+ # @private
649
+ class Representation < Google::Apis::Core::JsonRepresentation
650
+ property :max_read_iops, :numeric_string => true, as: 'maxReadIops'
651
+ property :max_read_throughput, :numeric_string => true, as: 'maxReadThroughput'
652
+ property :max_write_iops, :numeric_string => true, as: 'maxWriteIops'
653
+ property :max_write_throughput, :numeric_string => true, as: 'maxWriteThroughput'
654
+ end
655
+ end
656
+
657
+ class PromoteReplicaRequest
658
+ # @private
659
+ class Representation < Google::Apis::Core::JsonRepresentation
660
+ end
661
+ end
662
+
586
663
  class ReplicaConfig
587
664
  # @private
588
665
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -636,6 +713,7 @@ module Google
636
713
  hash :labels, as: 'labels'
637
714
  property :name, as: 'name'
638
715
  property :state, as: 'state'
716
+ hash :tags, as: 'tags'
639
717
  end
640
718
  end
641
719
 
@@ -510,6 +510,40 @@ module Google
510
510
  execute_or_queue_command(command, &block)
511
511
  end
512
512
 
513
+ # Promote an standby instance (replica).
514
+ # @param [String] name
515
+ # Required. The resource name of the instance, in the format `projects/`
516
+ # project_id`/locations/`location_id`/instances/`instance_id``.
517
+ # @param [Google::Apis::FileV1::PromoteReplicaRequest] promote_replica_request_object
518
+ # @param [String] fields
519
+ # Selector specifying which fields to include in a partial response.
520
+ # @param [String] quota_user
521
+ # Available to use for quota purposes for server-side applications. Can be any
522
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
523
+ # @param [Google::Apis::RequestOptions] options
524
+ # Request-specific options
525
+ #
526
+ # @yield [result, err] Result & error if block supplied
527
+ # @yieldparam result [Google::Apis::FileV1::Operation] parsed result object
528
+ # @yieldparam err [StandardError] error object if request failed
529
+ #
530
+ # @return [Google::Apis::FileV1::Operation]
531
+ #
532
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
533
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
534
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
535
+ def promote_instance_replica(name, promote_replica_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
536
+ command = make_simple_command(:post, 'v1/{+name}:promoteReplica', options)
537
+ command.request_representation = Google::Apis::FileV1::PromoteReplicaRequest::Representation
538
+ command.request_object = promote_replica_request_object
539
+ command.response_representation = Google::Apis::FileV1::Operation::Representation
540
+ command.response_class = Google::Apis::FileV1::Operation
541
+ command.params['name'] = name unless name.nil?
542
+ command.query['fields'] = fields unless fields.nil?
543
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
544
+ execute_or_queue_command(command, &block)
545
+ end
546
+
513
547
  # Restores an existing instance's file share from a backup. The capacity of the
514
548
  # instance needs to be equal to or larger than the capacity of the backup (and
515
549
  # also equal to or larger than the minimum capacity of the tier).
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.43.0
4
+ version: 0.45.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-05-19 00:00:00.000000000 Z
11
+ date: 2024-06-27 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.43.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-file_v1/v0.45.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: []