google-apis-file_v1beta1 0.7.0 → 0.11.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: c759d92166d3880a1d4d527843a8e57ef2d45824235a905d7d51f52844791eec
4
- data.tar.gz: ef31a37da4c92f33ae552fff828648cb7c1f8aaa7b79756715b06580c914ba28
3
+ metadata.gz: 14495da876f17bdf1ab605f5eedc59aca13821e4fec3660371aa497948cedc4e
4
+ data.tar.gz: e605e34a0fa3394b7171dc09d8964c4b8af91b7c9bd5a02e2092f1c915b0aa1f
5
5
  SHA512:
6
- metadata.gz: bf120d48ca3b6615453a7e1353e285efbaba16bba0ab2199adcd50b7e54f488f3e88448513ce62e4fd6847fe90d67247d153ff42867d2b9852be35e155e2d844
7
- data.tar.gz: 4bae5073024bca94c8677b5e842d6094fdde44b7c48cf63eebf146c006eeecceb61640f75c54906b28a481b2a8971c9b4739712b36687c7e996cf8c6e38e0bdb
6
+ metadata.gz: 5cc2ab4b1a09f8a314966499123f6fc069adc12d39ca84207756ad481b763bffc3c1e1f8a3ffe8620fc6763ad5f63fff625171954fd6b5c0d6ffe01db44930aa
7
+ data.tar.gz: 898082d081109b484638dfbb781cadef20892a3106b974ec3b93cdf23405f7c8a7ad78dfa706d6a9c972c62fa69f8aa28d48172665fd8e8db81eae89a48723a9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Release history for google-apis-file_v1beta1
2
2
 
3
+ ### v0.11.0 (2021-07-29)
4
+
5
+ * Regenerated from discovery document revision 20210721
6
+
7
+ ### v0.10.0 (2021-07-13)
8
+
9
+ * Regenerated from discovery document revision 20210708
10
+
11
+ ### v0.9.0 (2021-06-29)
12
+
13
+ * Regenerated using generator version 0.4.0
14
+
15
+ ### v0.8.0 (2021-06-24)
16
+
17
+ * Regenerated from discovery document revision 20210524
18
+ * Regenerated using generator version 0.3.0
19
+
3
20
  ### v0.7.0 (2021-05-19)
4
21
 
5
22
  * Unspecified changes
@@ -271,7 +271,8 @@ module Google
271
271
  # @return [Fixnum]
272
272
  attr_accessor :capacity_gb
273
273
 
274
- # The name of the file share (must be 16 characters or less).
274
+ # The name of the file share (must be 32 characters or less for High Scale SSD
275
+ # tier, 16 characters or less for all other tiers).
275
276
  # Corresponds to the JSON property `name`
276
277
  # @return [String]
277
278
  attr_accessor :name
@@ -543,6 +544,11 @@ module Google
543
544
  # @return [String]
544
545
  attr_accessor :node_id
545
546
 
547
+ # PerSliSloEligibility is a mapping from an SLI name to eligibility.
548
+ # Corresponds to the JSON property `perSliEligibility`
549
+ # @return [Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1PerSliSloEligibility]
550
+ attr_accessor :per_sli_eligibility
551
+
546
552
  def initialize(**args)
547
553
  update!(**args)
548
554
  end
@@ -552,6 +558,7 @@ module Google
552
558
  @exclusions = args[:exclusions] if args.key?(:exclusions)
553
559
  @location = args[:location] if args.key?(:location)
554
560
  @node_id = args[:node_id] if args.key?(:node_id)
561
+ @per_sli_eligibility = args[:per_sli_eligibility] if args.key?(:per_sli_eligibility)
555
562
  end
556
563
  end
557
564
 
@@ -694,13 +701,6 @@ module Google
694
701
  class GoogleCloudSaasacceleratorManagementProvidersV1SloMetadata
695
702
  include Google::Apis::Core::Hashable
696
703
 
697
- # SloEligibility is a tuple containing eligibility value: true if an instance is
698
- # eligible for SLO calculation or false if it should be excluded from all SLO-
699
- # related calculations along with a user-defined reason.
700
- # Corresponds to the JSON property `eligibility`
701
- # @return [Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1SloEligibility]
702
- attr_accessor :eligibility
703
-
704
704
  # List of SLO exclusion windows. When multiple entries in the list match (
705
705
  # matching the exclusion time-window against current time point) the exclusion
706
706
  # reason used in the first matching entry will be published. It is not needed to
@@ -741,7 +741,6 @@ module Google
741
741
 
742
742
  # Update properties of this object
743
743
  def update!(**args)
744
- @eligibility = args[:eligibility] if args.key?(:eligibility)
745
744
  @exclusions = args[:exclusions] if args.key?(:exclusions)
746
745
  @nodes = args[:nodes] if args.key?(:nodes)
747
746
  @per_sli_eligibility = args[:per_sli_eligibility] if args.key?(:per_sli_eligibility)
@@ -955,6 +954,32 @@ module Google
955
954
  end
956
955
  end
957
956
 
957
+ # ListSnapshotsResponse is the result of ListSnapshotsRequest.
958
+ class ListSnapshotsResponse
959
+ include Google::Apis::Core::Hashable
960
+
961
+ # The token you can use to retrieve the next page of results. Not returned if
962
+ # there are no more results in the list.
963
+ # Corresponds to the JSON property `nextPageToken`
964
+ # @return [String]
965
+ attr_accessor :next_page_token
966
+
967
+ # A list of snapshots in the project for the specified instance.
968
+ # Corresponds to the JSON property `snapshots`
969
+ # @return [Array<Google::Apis::FileV1beta1::Snapshot>]
970
+ attr_accessor :snapshots
971
+
972
+ def initialize(**args)
973
+ update!(**args)
974
+ end
975
+
976
+ # Update properties of this object
977
+ def update!(**args)
978
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
979
+ @snapshots = args[:snapshots] if args.key?(:snapshots)
980
+ end
981
+ end
982
+
958
983
  # A resource that represents Google Cloud Platform location.
959
984
  class Location
960
985
  include Google::Apis::Core::Hashable
@@ -1093,6 +1118,12 @@ module Google
1093
1118
  class NetworkConfig
1094
1119
  include Google::Apis::Core::Hashable
1095
1120
 
1121
+ # The network connect mode of the Filestore instance. If not provided, the
1122
+ # connect mode defaults to DIRECT_PEERING.
1123
+ # Corresponds to the JSON property `connectMode`
1124
+ # @return [String]
1125
+ attr_accessor :connect_mode
1126
+
1096
1127
  # Output only. IPv4 addresses in the format `octet 1`.`octet 2`.`octet 3`.`octet
1097
1128
  # 4` or IPv6 addresses in the format `block 1`:`block 2`:`block 3`:`block 4`:`
1098
1129
  # block 5`:`block 6`:`block 7`:`block 8`.
@@ -1112,12 +1143,18 @@ module Google
1112
1143
  # @return [String]
1113
1144
  attr_accessor :network
1114
1145
 
1115
- # A /29 CIDR block for Basic or a /23 CIDR block for High Scale in one of the [
1116
- # internal IP address ranges](https://www.arin.net/knowledge/address_filters.
1117
- # html) that identifies the range of IP addresses reserved for this instance.
1118
- # For example, 10.0.0.0/29 or 192.168.0.0/23. The range you specify can't
1119
- # overlap with either existing subnets or assigned IP address ranges for other
1120
- # Cloud Filestore instances in the selected VPC network.
1146
+ # Optional, reserved_ip_range can have one of the following two types of values.
1147
+ # * CIDR range value when using DIRECT_PEERING connect mode. * [Named Address
1148
+ # Range](https://cloud.google.com/compute/docs/ip-addresses/reserve-static-
1149
+ # internal-ip-address) when using PRIVATE_SERVICE_ACCESS connect mode. For both
1150
+ # cases, the range value (direct CIDR value or the range value with which the
1151
+ # named range was created) must be a /29 CIDR block for Basic tier or a /23 CIDR
1152
+ # block for High Scale or Enterprise tier in one of the [internal IP address
1153
+ # ranges](https://www.arin.net/knowledge/address_filters.html) that identifies
1154
+ # the range of IP addresses reserved for this instance. For example, 10.0.0.0/29
1155
+ # or 192.168.0.0/23. The range you specify can't overlap with either existing
1156
+ # subnets or assigned IP address ranges for other Cloud Filestore instances in
1157
+ # the selected VPC network.
1121
1158
  # Corresponds to the JSON property `reservedIpRange`
1122
1159
  # @return [String]
1123
1160
  attr_accessor :reserved_ip_range
@@ -1128,6 +1165,7 @@ module Google
1128
1165
 
1129
1166
  # Update properties of this object
1130
1167
  def update!(**args)
1168
+ @connect_mode = args[:connect_mode] if args.key?(:connect_mode)
1131
1169
  @ip_addresses = args[:ip_addresses] if args.key?(:ip_addresses)
1132
1170
  @modes = args[:modes] if args.key?(:modes)
1133
1171
  @network = args[:network] if args.key?(:network)
@@ -1256,12 +1294,12 @@ module Google
1256
1294
  class OperationMetadata
1257
1295
  include Google::Apis::Core::Hashable
1258
1296
 
1259
- # [Output only] API version used to start the operation.
1297
+ # Output only. API version used to start the operation.
1260
1298
  # Corresponds to the JSON property `apiVersion`
1261
1299
  # @return [String]
1262
1300
  attr_accessor :api_version
1263
1301
 
1264
- # [Output only] Identifies whether the user has requested cancellation of the
1302
+ # Output only. Identifies whether the user has requested cancellation of the
1265
1303
  # operation. Operations that have successfully been cancelled have Operation.
1266
1304
  # error value with a google.rpc.Status.code of 1, corresponding to `Code.
1267
1305
  # CANCELLED`.
@@ -1270,27 +1308,27 @@ module Google
1270
1308
  attr_accessor :cancel_requested
1271
1309
  alias_method :cancel_requested?, :cancel_requested
1272
1310
 
1273
- # [Output only] The time the operation was created.
1311
+ # Output only. The time the operation was created.
1274
1312
  # Corresponds to the JSON property `createTime`
1275
1313
  # @return [String]
1276
1314
  attr_accessor :create_time
1277
1315
 
1278
- # [Output only] The time the operation finished running.
1316
+ # Output only. The time the operation finished running.
1279
1317
  # Corresponds to the JSON property `endTime`
1280
1318
  # @return [String]
1281
1319
  attr_accessor :end_time
1282
1320
 
1283
- # [Output only] Human-readable status of the operation, if any.
1321
+ # Output only. Human-readable status of the operation, if any.
1284
1322
  # Corresponds to the JSON property `statusDetail`
1285
1323
  # @return [String]
1286
1324
  attr_accessor :status_detail
1287
1325
 
1288
- # [Output only] Server-defined resource path for the target of the operation.
1326
+ # Output only. Server-defined resource path for the target of the operation.
1289
1327
  # Corresponds to the JSON property `target`
1290
1328
  # @return [String]
1291
1329
  attr_accessor :target
1292
1330
 
1293
- # [Output only] Name of the verb executed by the operation.
1331
+ # Output only. Name of the verb executed by the operation.
1294
1332
  # Corresponds to the JSON property `verb`
1295
1333
  # @return [String]
1296
1334
  attr_accessor :verb
@@ -1379,6 +1417,59 @@ module Google
1379
1417
  end
1380
1418
  end
1381
1419
 
1420
+ # A Cloud Filestore snapshot.
1421
+ class Snapshot
1422
+ include Google::Apis::Core::Hashable
1423
+
1424
+ # Output only. The time when the snapshot was created.
1425
+ # Corresponds to the JSON property `createTime`
1426
+ # @return [String]
1427
+ attr_accessor :create_time
1428
+
1429
+ # A description of the snapshot with 2048 characters or less. Requests with
1430
+ # longer descriptions will be rejected.
1431
+ # Corresponds to the JSON property `description`
1432
+ # @return [String]
1433
+ attr_accessor :description
1434
+
1435
+ # Output only. The amount of bytes needed to allocate a full copy of the
1436
+ # snapshot content
1437
+ # Corresponds to the JSON property `filesystemUsedBytes`
1438
+ # @return [Fixnum]
1439
+ attr_accessor :filesystem_used_bytes
1440
+
1441
+ # Resource labels to represent user provided metadata.
1442
+ # Corresponds to the JSON property `labels`
1443
+ # @return [Hash<String,String>]
1444
+ attr_accessor :labels
1445
+
1446
+ # Output only. The resource name of the snapshot, in the format projects/`
1447
+ # project_id`/locations/`location_id`/instances/`instance_id`/snapshots/`
1448
+ # snapshot_id`.
1449
+ # Corresponds to the JSON property `name`
1450
+ # @return [String]
1451
+ attr_accessor :name
1452
+
1453
+ # Output only. The snapshot state.
1454
+ # Corresponds to the JSON property `state`
1455
+ # @return [String]
1456
+ attr_accessor :state
1457
+
1458
+ def initialize(**args)
1459
+ update!(**args)
1460
+ end
1461
+
1462
+ # Update properties of this object
1463
+ def update!(**args)
1464
+ @create_time = args[:create_time] if args.key?(:create_time)
1465
+ @description = args[:description] if args.key?(:description)
1466
+ @filesystem_used_bytes = args[:filesystem_used_bytes] if args.key?(:filesystem_used_bytes)
1467
+ @labels = args[:labels] if args.key?(:labels)
1468
+ @name = args[:name] if args.key?(:name)
1469
+ @state = args[:state] if args.key?(:state)
1470
+ end
1471
+ end
1472
+
1382
1473
  # The `Status` type defines a logical error model that is suitable for different
1383
1474
  # programming environments, including REST APIs and RPC APIs. It is used by [
1384
1475
  # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
@@ -1470,8 +1561,7 @@ module Google
1470
1561
 
1471
1562
  # Deny Maintenance Period that is applied to resource to indicate when
1472
1563
  # maintenance is forbidden. User can specify zero or more non-overlapping deny
1473
- # periods. For V1, Maximum number of deny_maintenance_periods is expected to be
1474
- # one.
1564
+ # periods. Maximum number of deny_maintenance_periods expected is one.
1475
1565
  # Corresponds to the JSON property `denyMaintenancePeriods`
1476
1566
  # @return [Array<Google::Apis::FileV1beta1::DenyMaintenancePeriod>]
1477
1567
  attr_accessor :deny_maintenance_periods
@@ -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.7.0"
19
+ GEM_VERSION = "0.11.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.2.0"
22
+ GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210422"
25
+ REVISION = "20210721"
26
26
  end
27
27
  end
28
28
  end
@@ -148,6 +148,12 @@ module Google
148
148
  include Google::Apis::Core::JsonObjectSupport
149
149
  end
150
150
 
151
+ class ListSnapshotsResponse
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
151
157
  class Location
152
158
  class Representation < Google::Apis::Core::JsonRepresentation; end
153
159
 
@@ -202,6 +208,12 @@ module Google
202
208
  include Google::Apis::Core::JsonObjectSupport
203
209
  end
204
210
 
211
+ class Snapshot
212
+ class Representation < Google::Apis::Core::JsonRepresentation; end
213
+
214
+ include Google::Apis::Core::JsonObjectSupport
215
+ end
216
+
205
217
  class Status
206
218
  class Representation < Google::Apis::Core::JsonRepresentation; end
207
219
 
@@ -350,6 +362,8 @@ module Google
350
362
 
351
363
  property :location, as: 'location'
352
364
  property :node_id, as: 'nodeId'
365
+ property :per_sli_eligibility, as: 'perSliEligibility', class: Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1PerSliSloEligibility, decorator: Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1PerSliSloEligibility::Representation
366
+
353
367
  end
354
368
  end
355
369
 
@@ -390,8 +404,6 @@ module Google
390
404
  class GoogleCloudSaasacceleratorManagementProvidersV1SloMetadata
391
405
  # @private
392
406
  class Representation < Google::Apis::Core::JsonRepresentation
393
- property :eligibility, as: 'eligibility', class: Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1SloEligibility, decorator: Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1SloEligibility::Representation
394
-
395
407
  collection :exclusions, as: 'exclusions', class: Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion, decorator: Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion::Representation
396
408
 
397
409
  collection :nodes, as: 'nodes', class: Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata, decorator: Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata::Representation
@@ -459,6 +471,15 @@ module Google
459
471
  end
460
472
  end
461
473
 
474
+ class ListSnapshotsResponse
475
+ # @private
476
+ class Representation < Google::Apis::Core::JsonRepresentation
477
+ property :next_page_token, as: 'nextPageToken'
478
+ collection :snapshots, as: 'snapshots', class: Google::Apis::FileV1beta1::Snapshot, decorator: Google::Apis::FileV1beta1::Snapshot::Representation
479
+
480
+ end
481
+ end
482
+
462
483
  class Location
463
484
  # @private
464
485
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -497,6 +518,7 @@ module Google
497
518
  class NetworkConfig
498
519
  # @private
499
520
  class Representation < Google::Apis::Core::JsonRepresentation
521
+ property :connect_mode, as: 'connectMode'
500
522
  collection :ip_addresses, as: 'ipAddresses'
501
523
  collection :modes, as: 'modes'
502
524
  property :network, as: 'network'
@@ -559,6 +581,18 @@ module Google
559
581
  end
560
582
  end
561
583
 
584
+ class Snapshot
585
+ # @private
586
+ class Representation < Google::Apis::Core::JsonRepresentation
587
+ property :create_time, as: 'createTime'
588
+ property :description, as: 'description'
589
+ property :filesystem_used_bytes, :numeric_string => true, as: 'filesystemUsedBytes'
590
+ hash :labels, as: 'labels'
591
+ property :name, as: 'name'
592
+ property :state, as: 'state'
593
+ end
594
+ end
595
+
562
596
  class Status
563
597
  # @private
564
598
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -540,6 +540,191 @@ module Google
540
540
  execute_or_queue_command(command, &block)
541
541
  end
542
542
 
543
+ # Creates a snapshot.
544
+ # @param [String] parent
545
+ # Required. The Filestore Instance to create the snapshots of, in the format
546
+ # projects/`project_id`/locations/`location`/instances/`instance_id`
547
+ # @param [Google::Apis::FileV1beta1::Snapshot] snapshot_object
548
+ # @param [String] snapshot_id
549
+ # Required. The ID to use for the snapshot. The ID must be unique within the
550
+ # specified instance. This value must start with a lowercase letter followed by
551
+ # up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
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 create_project_location_instance_snapshot(parent, snapshot_object = nil, snapshot_id: nil, fields: nil, quota_user: nil, options: nil, &block)
570
+ command = make_simple_command(:post, 'v1beta1/{+parent}/snapshots', options)
571
+ command.request_representation = Google::Apis::FileV1beta1::Snapshot::Representation
572
+ command.request_object = snapshot_object
573
+ command.response_representation = Google::Apis::FileV1beta1::Operation::Representation
574
+ command.response_class = Google::Apis::FileV1beta1::Operation
575
+ command.params['parent'] = parent unless parent.nil?
576
+ command.query['snapshotId'] = snapshot_id unless snapshot_id.nil?
577
+ command.query['fields'] = fields unless fields.nil?
578
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
579
+ execute_or_queue_command(command, &block)
580
+ end
581
+
582
+ # Deletes a snapshot.
583
+ # @param [String] name
584
+ # Required. The snapshot resource name, in the format projects/`project_id`/
585
+ # locations/`location`/instances/`instance_id`/snapshots/`snapshot_id`
586
+ # @param [String] fields
587
+ # Selector specifying which fields to include in a partial response.
588
+ # @param [String] quota_user
589
+ # Available to use for quota purposes for server-side applications. Can be any
590
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
591
+ # @param [Google::Apis::RequestOptions] options
592
+ # Request-specific options
593
+ #
594
+ # @yield [result, err] Result & error if block supplied
595
+ # @yieldparam result [Google::Apis::FileV1beta1::Operation] parsed result object
596
+ # @yieldparam err [StandardError] error object if request failed
597
+ #
598
+ # @return [Google::Apis::FileV1beta1::Operation]
599
+ #
600
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
601
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
602
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
603
+ def delete_project_location_instance_snapshot(name, fields: nil, quota_user: nil, options: nil, &block)
604
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
605
+ command.response_representation = Google::Apis::FileV1beta1::Operation::Representation
606
+ command.response_class = Google::Apis::FileV1beta1::Operation
607
+ command.params['name'] = name unless name.nil?
608
+ command.query['fields'] = fields unless fields.nil?
609
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
610
+ execute_or_queue_command(command, &block)
611
+ end
612
+
613
+ # Gets the details of a specific snapshot.
614
+ # @param [String] name
615
+ # Required. The snapshot resource name, in the format projects/`project_id`/
616
+ # locations/`location`/instances/`instance_id`/snapshots/`snapshot_id`
617
+ # @param [String] fields
618
+ # Selector specifying which fields to include in a partial response.
619
+ # @param [String] quota_user
620
+ # Available to use for quota purposes for server-side applications. Can be any
621
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
622
+ # @param [Google::Apis::RequestOptions] options
623
+ # Request-specific options
624
+ #
625
+ # @yield [result, err] Result & error if block supplied
626
+ # @yieldparam result [Google::Apis::FileV1beta1::Snapshot] parsed result object
627
+ # @yieldparam err [StandardError] error object if request failed
628
+ #
629
+ # @return [Google::Apis::FileV1beta1::Snapshot]
630
+ #
631
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
632
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
633
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
634
+ def get_project_location_instance_snapshot(name, fields: nil, quota_user: nil, options: nil, &block)
635
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
636
+ command.response_representation = Google::Apis::FileV1beta1::Snapshot::Representation
637
+ command.response_class = Google::Apis::FileV1beta1::Snapshot
638
+ command.params['name'] = name unless name.nil?
639
+ command.query['fields'] = fields unless fields.nil?
640
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
641
+ execute_or_queue_command(command, &block)
642
+ end
643
+
644
+ # Lists all snapshots in a project for either a specified location or for all
645
+ # locations.
646
+ # @param [String] parent
647
+ # Required. The instance for which to retrieve snapshot information, in the
648
+ # format projects/`project_id`/locations/`location`/instances/`instance_id`.
649
+ # @param [String] filter
650
+ # List filter.
651
+ # @param [String] order_by
652
+ # Sort results. Supported values are "name", "name desc" or "" (unsorted).
653
+ # @param [Fixnum] page_size
654
+ # The maximum number of items to return.
655
+ # @param [String] page_token
656
+ # The next_page_token value to use if there are additional results to retrieve
657
+ # for this list request.
658
+ # @param [String] fields
659
+ # Selector specifying which fields to include in a partial response.
660
+ # @param [String] quota_user
661
+ # Available to use for quota purposes for server-side applications. Can be any
662
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
663
+ # @param [Google::Apis::RequestOptions] options
664
+ # Request-specific options
665
+ #
666
+ # @yield [result, err] Result & error if block supplied
667
+ # @yieldparam result [Google::Apis::FileV1beta1::ListSnapshotsResponse] parsed result object
668
+ # @yieldparam err [StandardError] error object if request failed
669
+ #
670
+ # @return [Google::Apis::FileV1beta1::ListSnapshotsResponse]
671
+ #
672
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
673
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
674
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
675
+ def list_project_location_instance_snapshots(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
676
+ command = make_simple_command(:get, 'v1beta1/{+parent}/snapshots', options)
677
+ command.response_representation = Google::Apis::FileV1beta1::ListSnapshotsResponse::Representation
678
+ command.response_class = Google::Apis::FileV1beta1::ListSnapshotsResponse
679
+ command.params['parent'] = parent unless parent.nil?
680
+ command.query['filter'] = filter unless filter.nil?
681
+ command.query['orderBy'] = order_by unless order_by.nil?
682
+ command.query['pageSize'] = page_size unless page_size.nil?
683
+ command.query['pageToken'] = page_token unless page_token.nil?
684
+ command.query['fields'] = fields unless fields.nil?
685
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
686
+ execute_or_queue_command(command, &block)
687
+ end
688
+
689
+ # Updates the settings of a specific snapshot.
690
+ # @param [String] name
691
+ # Output only. The resource name of the snapshot, in the format projects/`
692
+ # project_id`/locations/`location_id`/instances/`instance_id`/snapshots/`
693
+ # snapshot_id`.
694
+ # @param [Google::Apis::FileV1beta1::Snapshot] snapshot_object
695
+ # @param [String] update_mask
696
+ # Required. Mask of fields to update. At least one path must be supplied in this
697
+ # field.
698
+ # @param [String] fields
699
+ # Selector specifying which fields to include in a partial response.
700
+ # @param [String] quota_user
701
+ # Available to use for quota purposes for server-side applications. Can be any
702
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
703
+ # @param [Google::Apis::RequestOptions] options
704
+ # Request-specific options
705
+ #
706
+ # @yield [result, err] Result & error if block supplied
707
+ # @yieldparam result [Google::Apis::FileV1beta1::Operation] parsed result object
708
+ # @yieldparam err [StandardError] error object if request failed
709
+ #
710
+ # @return [Google::Apis::FileV1beta1::Operation]
711
+ #
712
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
713
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
714
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
715
+ def patch_project_location_instance_snapshot(name, snapshot_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
716
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
717
+ command.request_representation = Google::Apis::FileV1beta1::Snapshot::Representation
718
+ command.request_object = snapshot_object
719
+ command.response_representation = Google::Apis::FileV1beta1::Operation::Representation
720
+ command.response_class = Google::Apis::FileV1beta1::Operation
721
+ command.params['name'] = name unless name.nil?
722
+ command.query['updateMask'] = update_mask unless update_mask.nil?
723
+ command.query['fields'] = fields unless fields.nil?
724
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
725
+ execute_or_queue_command(command, &block)
726
+ end
727
+
543
728
  # Starts asynchronous cancellation on a long-running operation. The server makes
544
729
  # a best effort to cancel the operation, but success is not guaranteed. If the
545
730
  # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-file_v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.11.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-05-24 00:00:00.000000000 Z
11
+ date: 2021-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.1'
19
+ version: '0.4'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: 2.a
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '0.4'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: '0.1'
32
+ version: 2.a
27
33
  description: This is the simple REST client for Cloud Filestore API V1beta1. Simple
28
34
  REST clients are Ruby client libraries that provide access to Google services via
29
35
  their HTTP REST API endpoints. These libraries are generated and updated automatically
@@ -52,7 +58,7 @@ licenses:
52
58
  metadata:
53
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-file_v1beta1/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-file_v1beta1/v0.7.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-file_v1beta1/v0.11.0
56
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-file_v1beta1
57
63
  post_install_message:
58
64
  rdoc_options: []