google-apis-file_v1 0.42.0 → 0.44.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 +4 -4
- data/CHANGELOG.md +9 -0
- data/lib/google/apis/file_v1/classes.rb +107 -0
- data/lib/google/apis/file_v1/gem_version.rb +3 -3
- data/lib/google/apis/file_v1/representations.rb +48 -0
- data/lib/google/apis/file_v1/service.rb +34 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4ce03638ab5d390eb05574d14f0af8cfcf68d33e4a7a90f35257cae2e0b832b3
|
4
|
+
data.tar.gz: 04c2d74931d942691954b15f031f1d012dfb2a801e7cdc94c2f8c6db97bb4d14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1dc2aa3fca8d790e9a587fd168d839a7180acee294d8a55e330b7754bd7b3d882784cc4257e2ed80e964ddb0f681796defdf8dbf57b40f945cf694ae723cd82b
|
7
|
+
data.tar.gz: 7ed4f710c3912d1292a45210289044cb75e2894201eb0647fadd8e8077fe4fcab8b74877f7dd24e71176bfb6dc5e2b5414f3b8b95585c62bb9adc79aec0a4a17
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
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
|
+
|
7
|
+
### v0.43.0 (2024-05-19)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20240511
|
10
|
+
* Regenerated using generator version 0.15.0
|
11
|
+
|
3
12
|
### v0.42.0 (2024-03-17)
|
4
13
|
|
5
14
|
* Regenerated from discovery document revision 20240307
|
@@ -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
|
|
@@ -799,6 +807,11 @@ module Google
|
|
799
807
|
# @return [Array<Google::Apis::FileV1::NetworkConfig>]
|
800
808
|
attr_accessor :networks
|
801
809
|
|
810
|
+
# Replication specifications.
|
811
|
+
# Corresponds to the JSON property `replication`
|
812
|
+
# @return [Google::Apis::FileV1::Replication]
|
813
|
+
attr_accessor :replication
|
814
|
+
|
802
815
|
# Output only. Reserved for future use.
|
803
816
|
# Corresponds to the JSON property `satisfiesPzi`
|
804
817
|
# @return [Boolean]
|
@@ -827,6 +840,13 @@ module Google
|
|
827
840
|
# @return [Array<String>]
|
828
841
|
attr_accessor :suspension_reasons
|
829
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
|
+
|
830
850
|
# The service tier of the instance.
|
831
851
|
# Corresponds to the JSON property `tier`
|
832
852
|
# @return [String]
|
@@ -846,11 +866,13 @@ module Google
|
|
846
866
|
@labels = args[:labels] if args.key?(:labels)
|
847
867
|
@name = args[:name] if args.key?(:name)
|
848
868
|
@networks = args[:networks] if args.key?(:networks)
|
869
|
+
@replication = args[:replication] if args.key?(:replication)
|
849
870
|
@satisfies_pzi = args[:satisfies_pzi] if args.key?(:satisfies_pzi)
|
850
871
|
@satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs)
|
851
872
|
@state = args[:state] if args.key?(:state)
|
852
873
|
@status_message = args[:status_message] if args.key?(:status_message)
|
853
874
|
@suspension_reasons = args[:suspension_reasons] if args.key?(:suspension_reasons)
|
875
|
+
@tags = args[:tags] if args.key?(:tags)
|
854
876
|
@tier = args[:tier] if args.key?(:tier)
|
855
877
|
end
|
856
878
|
end
|
@@ -1374,6 +1396,83 @@ module Google
|
|
1374
1396
|
end
|
1375
1397
|
end
|
1376
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
|
+
|
1412
|
+
# Replica configuration for the instance.
|
1413
|
+
class ReplicaConfig
|
1414
|
+
include Google::Apis::Core::Hashable
|
1415
|
+
|
1416
|
+
# Output only. The timestamp of the latest replication snapshot taken on the
|
1417
|
+
# active instance and is already replicated safely.
|
1418
|
+
# Corresponds to the JSON property `lastActiveSyncTime`
|
1419
|
+
# @return [String]
|
1420
|
+
attr_accessor :last_active_sync_time
|
1421
|
+
|
1422
|
+
# Optional. The peer instance.
|
1423
|
+
# Corresponds to the JSON property `peerInstance`
|
1424
|
+
# @return [String]
|
1425
|
+
attr_accessor :peer_instance
|
1426
|
+
|
1427
|
+
# Output only. The replica state.
|
1428
|
+
# Corresponds to the JSON property `state`
|
1429
|
+
# @return [String]
|
1430
|
+
attr_accessor :state
|
1431
|
+
|
1432
|
+
# Output only. Additional information about the replication state, if available.
|
1433
|
+
# Corresponds to the JSON property `stateReasons`
|
1434
|
+
# @return [Array<String>]
|
1435
|
+
attr_accessor :state_reasons
|
1436
|
+
|
1437
|
+
def initialize(**args)
|
1438
|
+
update!(**args)
|
1439
|
+
end
|
1440
|
+
|
1441
|
+
# Update properties of this object
|
1442
|
+
def update!(**args)
|
1443
|
+
@last_active_sync_time = args[:last_active_sync_time] if args.key?(:last_active_sync_time)
|
1444
|
+
@peer_instance = args[:peer_instance] if args.key?(:peer_instance)
|
1445
|
+
@state = args[:state] if args.key?(:state)
|
1446
|
+
@state_reasons = args[:state_reasons] if args.key?(:state_reasons)
|
1447
|
+
end
|
1448
|
+
end
|
1449
|
+
|
1450
|
+
# Replication specifications.
|
1451
|
+
class Replication
|
1452
|
+
include Google::Apis::Core::Hashable
|
1453
|
+
|
1454
|
+
# Optional. Replicas configuration on the instance. For now, only a single
|
1455
|
+
# replica config is supported.
|
1456
|
+
# Corresponds to the JSON property `replicas`
|
1457
|
+
# @return [Array<Google::Apis::FileV1::ReplicaConfig>]
|
1458
|
+
attr_accessor :replicas
|
1459
|
+
|
1460
|
+
# Optional. The replication role.
|
1461
|
+
# Corresponds to the JSON property `role`
|
1462
|
+
# @return [String]
|
1463
|
+
attr_accessor :role
|
1464
|
+
|
1465
|
+
def initialize(**args)
|
1466
|
+
update!(**args)
|
1467
|
+
end
|
1468
|
+
|
1469
|
+
# Update properties of this object
|
1470
|
+
def update!(**args)
|
1471
|
+
@replicas = args[:replicas] if args.key?(:replicas)
|
1472
|
+
@role = args[:role] if args.key?(:role)
|
1473
|
+
end
|
1474
|
+
end
|
1475
|
+
|
1377
1476
|
# RestoreInstanceRequest restores an existing instance's file share from a
|
1378
1477
|
# backup.
|
1379
1478
|
class RestoreInstanceRequest
|
@@ -1496,6 +1595,13 @@ module Google
|
|
1496
1595
|
# @return [String]
|
1497
1596
|
attr_accessor :state
|
1498
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
|
+
|
1499
1605
|
def initialize(**args)
|
1500
1606
|
update!(**args)
|
1501
1607
|
end
|
@@ -1508,6 +1614,7 @@ module Google
|
|
1508
1614
|
@labels = args[:labels] if args.key?(:labels)
|
1509
1615
|
@name = args[:name] if args.key?(:name)
|
1510
1616
|
@state = args[:state] if args.key?(:state)
|
1617
|
+
@tags = args[:tags] if args.key?(:tags)
|
1511
1618
|
end
|
1512
1619
|
end
|
1513
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.
|
19
|
+
GEM_VERSION = "0.44.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.15.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20240608"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -196,6 +196,24 @@ 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
|
+
|
205
|
+
class ReplicaConfig
|
206
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
207
|
+
|
208
|
+
include Google::Apis::Core::JsonObjectSupport
|
209
|
+
end
|
210
|
+
|
211
|
+
class Replication
|
212
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
213
|
+
|
214
|
+
include Google::Apis::Core::JsonObjectSupport
|
215
|
+
end
|
216
|
+
|
199
217
|
class RestoreInstanceRequest
|
200
218
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
201
219
|
|
@@ -261,6 +279,7 @@ module Google
|
|
261
279
|
property :source_instance_tier, as: 'sourceInstanceTier'
|
262
280
|
property :state, as: 'state'
|
263
281
|
property :storage_bytes, :numeric_string => true, as: 'storageBytes'
|
282
|
+
hash :tags, as: 'tags'
|
264
283
|
end
|
265
284
|
end
|
266
285
|
|
@@ -431,11 +450,14 @@ module Google
|
|
431
450
|
property :name, as: 'name'
|
432
451
|
collection :networks, as: 'networks', class: Google::Apis::FileV1::NetworkConfig, decorator: Google::Apis::FileV1::NetworkConfig::Representation
|
433
452
|
|
453
|
+
property :replication, as: 'replication', class: Google::Apis::FileV1::Replication, decorator: Google::Apis::FileV1::Replication::Representation
|
454
|
+
|
434
455
|
property :satisfies_pzi, as: 'satisfiesPzi'
|
435
456
|
property :satisfies_pzs, as: 'satisfiesPzs'
|
436
457
|
property :state, as: 'state'
|
437
458
|
property :status_message, as: 'statusMessage'
|
438
459
|
collection :suspension_reasons, as: 'suspensionReasons'
|
460
|
+
hash :tags, as: 'tags'
|
439
461
|
property :tier, as: 'tier'
|
440
462
|
end
|
441
463
|
end
|
@@ -569,6 +591,31 @@ module Google
|
|
569
591
|
end
|
570
592
|
end
|
571
593
|
|
594
|
+
class PromoteReplicaRequest
|
595
|
+
# @private
|
596
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
597
|
+
end
|
598
|
+
end
|
599
|
+
|
600
|
+
class ReplicaConfig
|
601
|
+
# @private
|
602
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
603
|
+
property :last_active_sync_time, as: 'lastActiveSyncTime'
|
604
|
+
property :peer_instance, as: 'peerInstance'
|
605
|
+
property :state, as: 'state'
|
606
|
+
collection :state_reasons, as: 'stateReasons'
|
607
|
+
end
|
608
|
+
end
|
609
|
+
|
610
|
+
class Replication
|
611
|
+
# @private
|
612
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
613
|
+
collection :replicas, as: 'replicas', class: Google::Apis::FileV1::ReplicaConfig, decorator: Google::Apis::FileV1::ReplicaConfig::Representation
|
614
|
+
|
615
|
+
property :role, as: 'role'
|
616
|
+
end
|
617
|
+
end
|
618
|
+
|
572
619
|
class RestoreInstanceRequest
|
573
620
|
# @private
|
574
621
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -603,6 +650,7 @@ module Google
|
|
603
650
|
hash :labels, as: 'labels'
|
604
651
|
property :name, as: 'name'
|
605
652
|
property :state, as: 'state'
|
653
|
+
hash :tags, as: 'tags'
|
606
654
|
end
|
607
655
|
end
|
608
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.
|
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-
|
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
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.15.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.15.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -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.
|
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: []
|