google-apis-file_v1beta1 0.10.0 → 0.11.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: 8e97d229c4f7aebcff46734caa391f8bb5a6809b2a49e3970d6a4b69ab1189bd
4
- data.tar.gz: 6b21200b26ad045ab9ddd3638860716eb9a1e17e30bd165fa364d52a78b54df7
3
+ metadata.gz: 14495da876f17bdf1ab605f5eedc59aca13821e4fec3660371aa497948cedc4e
4
+ data.tar.gz: e605e34a0fa3394b7171dc09d8964c4b8af91b7c9bd5a02e2092f1c915b0aa1f
5
5
  SHA512:
6
- metadata.gz: 04c272379d4d1e5cd0fb4466655337f295840fb75177c684af02d2f9ac35dedf135230249a5d89c6f245de79ce44ac871f2b14cdc26c31fcd472c37799af4393
7
- data.tar.gz: 179651f8cd607e31cc49d7fbba4365fed841b64dc100192903ce83ccda88ac1763fa98ab5c5a3082d62445db8fe50221cd0c922c9d7e4685d5f9b229bb281a36
6
+ metadata.gz: 5cc2ab4b1a09f8a314966499123f6fc069adc12d39ca84207756ad481b763bffc3c1e1f8a3ffe8620fc6763ad5f63fff625171954fd6b5c0d6ffe01db44930aa
7
+ data.tar.gz: 898082d081109b484638dfbb781cadef20892a3106b974ec3b93cdf23405f7c8a7ad78dfa706d6a9c972c62fa69f8aa28d48172665fd8e8db81eae89a48723a9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
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
+
3
7
  ### v0.10.0 (2021-07-13)
4
8
 
5
9
  * Regenerated from discovery document revision 20210708
@@ -954,6 +954,32 @@ module Google
954
954
  end
955
955
  end
956
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
+
957
983
  # A resource that represents Google Cloud Platform location.
958
984
  class Location
959
985
  include Google::Apis::Core::Hashable
@@ -1117,12 +1143,18 @@ module Google
1117
1143
  # @return [String]
1118
1144
  attr_accessor :network
1119
1145
 
1120
- # A /29 CIDR block for Basic or a /23 CIDR block for High Scale in one of the [
1121
- # internal IP address ranges](https://www.arin.net/knowledge/address_filters.
1122
- # html) that identifies the range of IP addresses reserved for this instance.
1123
- # For example, 10.0.0.0/29 or 192.168.0.0/23. The range you specify can't
1124
- # overlap with either existing subnets or assigned IP address ranges for other
1125
- # 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.
1126
1158
  # Corresponds to the JSON property `reservedIpRange`
1127
1159
  # @return [String]
1128
1160
  attr_accessor :reserved_ip_range
@@ -1385,6 +1417,59 @@ module Google
1385
1417
  end
1386
1418
  end
1387
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
+
1388
1473
  # The `Status` type defines a logical error model that is suitable for different
1389
1474
  # programming environments, including REST APIs and RPC APIs. It is used by [
1390
1475
  # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
@@ -1476,8 +1561,7 @@ module Google
1476
1561
 
1477
1562
  # Deny Maintenance Period that is applied to resource to indicate when
1478
1563
  # maintenance is forbidden. User can specify zero or more non-overlapping deny
1479
- # periods. For V1, Maximum number of deny_maintenance_periods is expected to be
1480
- # one.
1564
+ # periods. Maximum number of deny_maintenance_periods expected is one.
1481
1565
  # Corresponds to the JSON property `denyMaintenancePeriods`
1482
1566
  # @return [Array<Google::Apis::FileV1beta1::DenyMaintenancePeriod>]
1483
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.10.0"
19
+ GEM_VERSION = "0.11.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210708"
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
 
@@ -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
@@ -560,6 +581,18 @@ module Google
560
581
  end
561
582
  end
562
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
+
563
596
  class Status
564
597
  # @private
565
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,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-file_v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.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-07-19 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
@@ -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/master/generated/google-apis-file_v1beta1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-file_v1beta1/v0.10.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-file_v1beta1/v0.11.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-file_v1beta1
63
63
  post_install_message:
64
64
  rdoc_options: []