google-apis-file_v1 0.43.0 → 0.44.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: 4ce03638ab5d390eb05574d14f0af8cfcf68d33e4a7a90f35257cae2e0b832b3
4
+ data.tar.gz: 04c2d74931d942691954b15f031f1d012dfb2a801e7cdc94c2f8c6db97bb4d14
5
5
  SHA512:
6
- metadata.gz: 94b0481340aa2d5e042773788a6a159b69d1292d44d7e5ad0c49859f3caa91de22ba022694290cd58a5841bd68247567f69a07d628ab2ec163c481319883ce33
7
- data.tar.gz: 41a8ff86b32d1973790ca69e1e39ee9bcfb44ecc90b4b6c0f567b2dd587f983d900dd88114f477784e7a85e790917ec0b118925f7fd6d4958618a705cb1af986
6
+ metadata.gz: 1dc2aa3fca8d790e9a587fd168d839a7180acee294d8a55e330b7754bd7b3d882784cc4257e2ed80e964ddb0f681796defdf8dbf57b40f945cf694ae723cd82b
7
+ data.tar.gz: 7ed4f710c3912d1292a45210289044cb75e2894201eb0647fadd8e8077fe4fcab8b74877f7dd24e71176bfb6dc5e2b5414f3b8b95585c62bb9adc79aec0a4a17
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-file_v1
2
2
 
3
+ ### v0.44.0 (2024-06-16)
4
+
5
+ * Regenerated from discovery document revision 20240608
6
+
3
7
  ### v0.43.0 (2024-05-19)
4
8
 
5
9
  * 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
 
@@ -832,6 +840,13 @@ module Google
832
840
  # @return [Array<String>]
833
841
  attr_accessor :suspension_reasons
834
842
 
843
+ # Optional. Input only. Immutable. Tag keys/values directly bound to this
844
+ # resource. For example: "123/environment": "production", "123/costCenter": "
845
+ # marketing"
846
+ # Corresponds to the JSON property `tags`
847
+ # @return [Hash<String,String>]
848
+ attr_accessor :tags
849
+
835
850
  # The service tier of the instance.
836
851
  # Corresponds to the JSON property `tier`
837
852
  # @return [String]
@@ -857,6 +872,7 @@ module Google
857
872
  @state = args[:state] if args.key?(:state)
858
873
  @status_message = args[:status_message] if args.key?(:status_message)
859
874
  @suspension_reasons = args[:suspension_reasons] if args.key?(:suspension_reasons)
875
+ @tags = args[:tags] if args.key?(:tags)
860
876
  @tier = args[:tier] if args.key?(:tier)
861
877
  end
862
878
  end
@@ -1380,6 +1396,19 @@ module Google
1380
1396
  end
1381
1397
  end
1382
1398
 
1399
+ # PromoteReplicaRequest promotes a Filestore standby instance (replica).
1400
+ class PromoteReplicaRequest
1401
+ include Google::Apis::Core::Hashable
1402
+
1403
+ def initialize(**args)
1404
+ update!(**args)
1405
+ end
1406
+
1407
+ # Update properties of this object
1408
+ def update!(**args)
1409
+ end
1410
+ end
1411
+
1383
1412
  # Replica configuration for the instance.
1384
1413
  class ReplicaConfig
1385
1414
  include Google::Apis::Core::Hashable
@@ -1566,6 +1595,13 @@ module Google
1566
1595
  # @return [String]
1567
1596
  attr_accessor :state
1568
1597
 
1598
+ # Optional. Input only. Immutable. Tag keys/values directly bound to this
1599
+ # resource. For example: "123/environment": "production", "123/costCenter": "
1600
+ # marketing"
1601
+ # Corresponds to the JSON property `tags`
1602
+ # @return [Hash<String,String>]
1603
+ attr_accessor :tags
1604
+
1569
1605
  def initialize(**args)
1570
1606
  update!(**args)
1571
1607
  end
@@ -1578,6 +1614,7 @@ module Google
1578
1614
  @labels = args[:labels] if args.key?(:labels)
1579
1615
  @name = args[:name] if args.key?(:name)
1580
1616
  @state = args[:state] if args.key?(:state)
1617
+ @tags = args[:tags] if args.key?(:tags)
1581
1618
  end
1582
1619
  end
1583
1620
 
@@ -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.44.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 = "20240608"
26
26
  end
27
27
  end
28
28
  end
@@ -196,6 +196,12 @@ module Google
196
196
  include Google::Apis::Core::JsonObjectSupport
197
197
  end
198
198
 
199
+ class PromoteReplicaRequest
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
199
205
  class ReplicaConfig
200
206
  class Representation < Google::Apis::Core::JsonRepresentation; end
201
207
 
@@ -273,6 +279,7 @@ module Google
273
279
  property :source_instance_tier, as: 'sourceInstanceTier'
274
280
  property :state, as: 'state'
275
281
  property :storage_bytes, :numeric_string => true, as: 'storageBytes'
282
+ hash :tags, as: 'tags'
276
283
  end
277
284
  end
278
285
 
@@ -450,6 +457,7 @@ module Google
450
457
  property :state, as: 'state'
451
458
  property :status_message, as: 'statusMessage'
452
459
  collection :suspension_reasons, as: 'suspensionReasons'
460
+ hash :tags, as: 'tags'
453
461
  property :tier, as: 'tier'
454
462
  end
455
463
  end
@@ -583,6 +591,12 @@ module Google
583
591
  end
584
592
  end
585
593
 
594
+ class PromoteReplicaRequest
595
+ # @private
596
+ class Representation < Google::Apis::Core::JsonRepresentation
597
+ end
598
+ end
599
+
586
600
  class ReplicaConfig
587
601
  # @private
588
602
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -636,6 +650,7 @@ module Google
636
650
  hash :labels, as: 'labels'
637
651
  property :name, as: 'name'
638
652
  property :state, as: 'state'
653
+ hash :tags, as: 'tags'
639
654
  end
640
655
  end
641
656
 
@@ -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.44.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-16 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.44.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: []