google-apis-file_v1beta1 0.18.0 → 0.21.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: 680bdeb3699cbbe67245de9b365ff72c15ae86fc24445e5646cf8d111d825094
4
- data.tar.gz: 4afd0718c826ec9e710b9b6090a88150d7afc9bdec515f0fa73e72236f467352
3
+ metadata.gz: 0c388367afef96999281a5ad4209ee9ab9930804fbbc949350acb0168c93fbcb
4
+ data.tar.gz: e7e2a707d1dcfd4ac4b8e8464d50ba8ee8d27235d309dddb3a63e0bca08ac944
5
5
  SHA512:
6
- metadata.gz: 1a017573257ad642d73879340d445128f5bad436e592d402c32128bb0e7f73495b2f577887b57b79e131600be9f4f2bfc5c959bd5b8688eba021ab1c781b317e
7
- data.tar.gz: 908f3b0b0bd52db1be7d3339667fcfe0439e8d89cf54d6f429efdeddcb11e40f0f7ba9ddbddf7aa8c811b9518917493d9c01499a4d8d7ae2ca9f7e0176974675
6
+ metadata.gz: 7ac4272e28c969eeb18111666fb1a65c9e74d2a903aa4fb1fc7bb4768dead153597e575bf40072db9dc1b049be20ab52588b51e8649e5fc395485c6bb634aecf
7
+ data.tar.gz: f8b8ced7fba4248bb0adf349d3f73d557ca6097e4add59f7b32b04993519fccccf22584ea716b74c94e50676f774635f9767d5fbce0816d1ed5a19813795ded3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Release history for google-apis-file_v1beta1
2
2
 
3
+ ### v0.21.0 (2022-06-06)
4
+
5
+ * Regenerated from discovery document revision 20220530
6
+ * Regenerated using generator version 0.5.0
7
+
8
+ ### v0.20.0 (2022-04-19)
9
+
10
+ * Regenerated from discovery document revision 20220407
11
+
12
+ ### v0.19.0 (2022-03-20)
13
+
14
+ * Regenerated from discovery document revision 20220222
15
+
3
16
  ### v0.18.0 (2022-02-28)
4
17
 
5
18
  * Regenerated from discovery document revision 20220214
@@ -47,6 +47,11 @@ module Google
47
47
  # @return [Fixnum]
48
48
  attr_accessor :download_bytes
49
49
 
50
+ # Immutable. KMS key name used for data encryption.
51
+ # Corresponds to the JSON property `kmsKeyName`
52
+ # @return [String]
53
+ attr_accessor :kms_key_name
54
+
50
55
  # Resource labels to represent user provided metadata.
51
56
  # Corresponds to the JSON property `labels`
52
57
  # @return [Hash<String,String>]
@@ -104,6 +109,7 @@ module Google
104
109
  @create_time = args[:create_time] if args.key?(:create_time)
105
110
  @description = args[:description] if args.key?(:description)
106
111
  @download_bytes = args[:download_bytes] if args.key?(:download_bytes)
112
+ @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
107
113
  @labels = args[:labels] if args.key?(:labels)
108
114
  @name = args[:name] if args.key?(:name)
109
115
  @satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs)
@@ -158,11 +164,11 @@ module Google
158
164
  # Represents a whole or partial calendar date, such as a birthday. The time of
159
165
  # day and time zone are either specified elsewhere or are insignificant. The
160
166
  # date is relative to the Gregorian Calendar. This can represent one of the
161
- # following: * A full date, with non-zero year, month, and day values * A month
162
- # and day, with a zero year (e.g., an anniversary) * A year on its own, with a
163
- # zero month and a zero day * A year and month, with a zero day (e.g., a credit
164
- # card expiration date) Related types: * google.type.TimeOfDay * google.type.
165
- # DateTime * google.protobuf.Timestamp
167
+ # following: * A full date, with non-zero year, month, and day values. * A month
168
+ # and day, with a zero year (for example, an anniversary). * A year on its own,
169
+ # with a zero month and a zero day. * A year and month, with a zero day (for
170
+ # example, a credit card expiration date). Related types: * google.type.
171
+ # TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
166
172
  class Date
167
173
  include Google::Apis::Core::Hashable
168
174
 
@@ -204,11 +210,11 @@ module Google
204
210
  # Represents a whole or partial calendar date, such as a birthday. The time of
205
211
  # day and time zone are either specified elsewhere or are insignificant. The
206
212
  # date is relative to the Gregorian Calendar. This can represent one of the
207
- # following: * A full date, with non-zero year, month, and day values * A month
208
- # and day, with a zero year (e.g., an anniversary) * A year on its own, with a
209
- # zero month and a zero day * A year and month, with a zero day (e.g., a credit
210
- # card expiration date) Related types: * google.type.TimeOfDay * google.type.
211
- # DateTime * google.protobuf.Timestamp
213
+ # following: * A full date, with non-zero year, month, and day values. * A month
214
+ # and day, with a zero year (for example, an anniversary). * A year on its own,
215
+ # with a zero month and a zero day. * A year and month, with a zero day (for
216
+ # example, a credit card expiration date). Related types: * google.type.
217
+ # TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
212
218
  # Corresponds to the JSON property `endDate`
213
219
  # @return [Google::Apis::FileV1beta1::Date]
214
220
  attr_accessor :end_date
@@ -216,11 +222,11 @@ module Google
216
222
  # Represents a whole or partial calendar date, such as a birthday. The time of
217
223
  # day and time zone are either specified elsewhere or are insignificant. The
218
224
  # date is relative to the Gregorian Calendar. This can represent one of the
219
- # following: * A full date, with non-zero year, month, and day values * A month
220
- # and day, with a zero year (e.g., an anniversary) * A year on its own, with a
221
- # zero month and a zero day * A year and month, with a zero day (e.g., a credit
222
- # card expiration date) Related types: * google.type.TimeOfDay * google.type.
223
- # DateTime * google.protobuf.Timestamp
225
+ # following: * A full date, with non-zero year, month, and day values. * A month
226
+ # and day, with a zero year (for example, an anniversary). * A year on its own,
227
+ # with a zero month and a zero day. * A year and month, with a zero day (for
228
+ # example, a credit card expiration date). Related types: * google.type.
229
+ # TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
224
230
  # Corresponds to the JSON property `startDate`
225
231
  # @return [Google::Apis::FileV1beta1::Date]
226
232
  attr_accessor :start_date
@@ -247,8 +253,7 @@ module Google
247
253
  # A generic empty message that you can re-use to avoid defining duplicated empty
248
254
  # messages in your APIs. A typical example is to use it as the request or the
249
255
  # response type of an API method. For instance: service Foo ` rpc Bar(google.
250
- # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
251
- # `Empty` is empty JSON object ````.
256
+ # protobuf.Empty) returns (google.protobuf.Empty); `
252
257
  class Empty
253
258
  include Google::Apis::Core::Hashable
254
259
 
@@ -319,11 +324,12 @@ module Google
319
324
  # @return [String]
320
325
  attr_accessor :create_time
321
326
 
322
- # Optional. The instance_type of this instance of format: projects/`project_id`/
323
- # locations/`location_id`/instanceTypes/`instance_type_id`. Instance Type
324
- # represents a high-level tier or SKU of the service that this instance belong
325
- # to. When enabled(eg: Maintenance Rollout), Rollout uses 'instance_type' along
326
- # with 'software_versions' to determine whether instance needs an update or not.
327
+ # Optional. The instance_type of this instance of format: projects/`
328
+ # project_number`/locations/`location_id`/instanceTypes/`instance_type_id`.
329
+ # Instance Type represents a high-level tier or SKU of the service that this
330
+ # instance belong to. When enabled(eg: Maintenance Rollout), Rollout uses '
331
+ # instance_type' along with 'software_versions' to determine whether instance
332
+ # needs an update or not.
327
333
  # Corresponds to the JSON property `instanceType`
328
334
  # @return [String]
329
335
  attr_accessor :instance_type
@@ -355,19 +361,21 @@ module Google
355
361
  # @return [Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings]
356
362
  attr_accessor :maintenance_settings
357
363
 
358
- # Unique name of the resource. It uses the form: `projects/`project_id|
359
- # project_number`/locations/`location_id`/instances/`instance_id`` Note: Either
360
- # project_id or project_number can be used, but keep it consistent with other
361
- # APIs (e.g. RescheduleUpdate)
364
+ # Unique name of the resource. It uses the form: `projects/`project_number`/
365
+ # locations/`location_id`/instances/`instance_id`` Note: This name is passed,
366
+ # stored and logged across the rollout system. So use of consumer project_id or
367
+ # any other consumer PII in the name is strongly discouraged for wipeout (go/
368
+ # wipeout) compliance. See go/elysium/project_ids#storage-guidance for more
369
+ # details.
362
370
  # Corresponds to the JSON property `name`
363
371
  # @return [String]
364
372
  attr_accessor :name
365
373
 
366
- # Optional. notification_parameters are information that service producers may
374
+ # Optional. notification_parameter are information that service producers may
367
375
  # like to include that is not relevant to Rollout. This parameter will only be
368
376
  # passed to Gamma and Cloud Logging for notification/logging purpose.
369
377
  # Corresponds to the JSON property `notificationParameters`
370
- # @return [Hash<String,String>]
378
+ # @return [Hash<String,Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1NotificationParameter>]
371
379
  attr_accessor :notification_parameters
372
380
 
373
381
  # Output only. Custom string attributes used primarily to expose producer-
@@ -572,6 +580,25 @@ module Google
572
580
  end
573
581
  end
574
582
 
583
+ # Contains notification related data.
584
+ class GoogleCloudSaasacceleratorManagementProvidersV1NotificationParameter
585
+ include Google::Apis::Core::Hashable
586
+
587
+ # Optional. Array of string values. e.g. instance's replica information.
588
+ # Corresponds to the JSON property `values`
589
+ # @return [Array<String>]
590
+ attr_accessor :values
591
+
592
+ def initialize(**args)
593
+ update!(**args)
594
+ end
595
+
596
+ # Update properties of this object
597
+ def update!(**args)
598
+ @values = args[:values] if args.key?(:values)
599
+ end
600
+ end
601
+
575
602
  # PerSliSloEligibility is a mapping from an SLI name to eligibility.
576
603
  class GoogleCloudSaasacceleratorManagementProvidersV1PerSliSloEligibility
577
604
  include Google::Apis::Core::Hashable
@@ -701,6 +728,18 @@ module Google
701
728
  class Instance
702
729
  include Google::Apis::Core::Hashable
703
730
 
731
+ # The storage capacity of the instance in gigabytes (GB = 1024^3 bytes). This
732
+ # capacity can be increased up to `max_capacity_gb` GB in multipliers of `
733
+ # capacity_step_size_gb` GB.
734
+ # Corresponds to the JSON property `capacityGb`
735
+ # @return [Fixnum]
736
+ attr_accessor :capacity_gb
737
+
738
+ # Output only. The increase/decrease capacity step size.
739
+ # Corresponds to the JSON property `capacityStepSizeGb`
740
+ # @return [Fixnum]
741
+ attr_accessor :capacity_step_size_gb
742
+
704
743
  # Output only. The time when the instance was created.
705
744
  # Corresponds to the JSON property `createTime`
706
745
  # @return [String]
@@ -733,11 +772,24 @@ module Google
733
772
  # @return [Hash<String,String>]
734
773
  attr_accessor :labels
735
774
 
775
+ # Output only. The max capacity of the instance.
776
+ # Corresponds to the JSON property `maxCapacityGb`
777
+ # @return [Fixnum]
778
+ attr_accessor :max_capacity_gb
779
+
736
780
  # Output only. The max number of shares allowed.
737
781
  # Corresponds to the JSON property `maxShareCount`
738
782
  # @return [Fixnum]
739
783
  attr_accessor :max_share_count
740
784
 
785
+ # Indicates whether this instance uses a multi-share configuration with which it
786
+ # can have more than one file-share or none at all. File-shares are added,
787
+ # updated and removed through the separate file-share APIs.
788
+ # Corresponds to the JSON property `multiShareEnabled`
789
+ # @return [Boolean]
790
+ attr_accessor :multi_share_enabled
791
+ alias_method :multi_share_enabled?, :multi_share_enabled
792
+
741
793
  # Output only. The resource name of the instance, in the format `projects/`
742
794
  # project_id`/locations/`location_id`/instances/`instance_id``.
743
795
  # Corresponds to the JSON property `name`
@@ -766,7 +818,7 @@ module Google
766
818
  # @return [String]
767
819
  attr_accessor :status_message
768
820
 
769
- # Output only. field indicates all the reasons the instance is in "SUSPENDED"
821
+ # Output only. Field indicates all the reasons the instance is in "SUSPENDED"
770
822
  # state.
771
823
  # Corresponds to the JSON property `suspensionReasons`
772
824
  # @return [Array<String>]
@@ -783,13 +835,17 @@ module Google
783
835
 
784
836
  # Update properties of this object
785
837
  def update!(**args)
838
+ @capacity_gb = args[:capacity_gb] if args.key?(:capacity_gb)
839
+ @capacity_step_size_gb = args[:capacity_step_size_gb] if args.key?(:capacity_step_size_gb)
786
840
  @create_time = args[:create_time] if args.key?(:create_time)
787
841
  @description = args[:description] if args.key?(:description)
788
842
  @etag = args[:etag] if args.key?(:etag)
789
843
  @file_shares = args[:file_shares] if args.key?(:file_shares)
790
844
  @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
791
845
  @labels = args[:labels] if args.key?(:labels)
846
+ @max_capacity_gb = args[:max_capacity_gb] if args.key?(:max_capacity_gb)
792
847
  @max_share_count = args[:max_share_count] if args.key?(:max_share_count)
848
+ @multi_share_enabled = args[:multi_share_enabled] if args.key?(:multi_share_enabled)
793
849
  @name = args[:name] if args.key?(:name)
794
850
  @networks = args[:networks] if args.key?(:networks)
795
851
  @satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs)
@@ -922,6 +978,38 @@ module Google
922
978
  end
923
979
  end
924
980
 
981
+ # ListSharesResponse is the result of ListSharesRequest.
982
+ class ListSharesResponse
983
+ include Google::Apis::Core::Hashable
984
+
985
+ # The token you can use to retrieve the next page of results. Not returned if
986
+ # there are no more results in the list.
987
+ # Corresponds to the JSON property `nextPageToken`
988
+ # @return [String]
989
+ attr_accessor :next_page_token
990
+
991
+ # A list of shares in the project for the specified instance.
992
+ # Corresponds to the JSON property `shares`
993
+ # @return [Array<Google::Apis::FileV1beta1::Share>]
994
+ attr_accessor :shares
995
+
996
+ # Locations that could not be reached.
997
+ # Corresponds to the JSON property `unreachable`
998
+ # @return [Array<String>]
999
+ attr_accessor :unreachable
1000
+
1001
+ def initialize(**args)
1002
+ update!(**args)
1003
+ end
1004
+
1005
+ # Update properties of this object
1006
+ def update!(**args)
1007
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1008
+ @shares = args[:shares] if args.key?(:shares)
1009
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
1010
+ end
1011
+ end
1012
+
925
1013
  # ListSnapshotsResponse is the result of ListSnapshotsRequest.
926
1014
  class ListSnapshotsResponse
927
1015
  include Google::Apis::Core::Hashable
@@ -1409,6 +1497,71 @@ module Google
1409
1497
  end
1410
1498
  end
1411
1499
 
1500
+ # A Cloud Filestore share.
1501
+ class Share
1502
+ include Google::Apis::Core::Hashable
1503
+
1504
+ # File share capacity in gigabytes (GB). Cloud Filestore defines 1 GB as 1024^3
1505
+ # bytes. Must be greater than 0.
1506
+ # Corresponds to the JSON property `capacityGb`
1507
+ # @return [Fixnum]
1508
+ attr_accessor :capacity_gb
1509
+
1510
+ # Output only. The time when the share was created.
1511
+ # Corresponds to the JSON property `createTime`
1512
+ # @return [String]
1513
+ attr_accessor :create_time
1514
+
1515
+ # A description of the share with 2048 characters or less. Requests with longer
1516
+ # descriptions will be rejected.
1517
+ # Corresponds to the JSON property `description`
1518
+ # @return [String]
1519
+ attr_accessor :description
1520
+
1521
+ # Resource labels to represent user provided metadata.
1522
+ # Corresponds to the JSON property `labels`
1523
+ # @return [Hash<String,String>]
1524
+ attr_accessor :labels
1525
+
1526
+ # The mount name of the share. Must be 63 characters or less and consist of
1527
+ # uppercase or lowercase letters, numbers, and underscores.
1528
+ # Corresponds to the JSON property `mountName`
1529
+ # @return [String]
1530
+ attr_accessor :mount_name
1531
+
1532
+ # Output only. The resource name of the share, in the format `projects/`
1533
+ # project_id`/locations/`location_id`/instances/`instance_id`/shares/`share_id``.
1534
+ # Corresponds to the JSON property `name`
1535
+ # @return [String]
1536
+ attr_accessor :name
1537
+
1538
+ # Nfs Export Options. There is a limit of 10 export options per file share.
1539
+ # Corresponds to the JSON property `nfsExportOptions`
1540
+ # @return [Array<Google::Apis::FileV1beta1::NfsExportOptions>]
1541
+ attr_accessor :nfs_export_options
1542
+
1543
+ # Output only. The share state.
1544
+ # Corresponds to the JSON property `state`
1545
+ # @return [String]
1546
+ attr_accessor :state
1547
+
1548
+ def initialize(**args)
1549
+ update!(**args)
1550
+ end
1551
+
1552
+ # Update properties of this object
1553
+ def update!(**args)
1554
+ @capacity_gb = args[:capacity_gb] if args.key?(:capacity_gb)
1555
+ @create_time = args[:create_time] if args.key?(:create_time)
1556
+ @description = args[:description] if args.key?(:description)
1557
+ @labels = args[:labels] if args.key?(:labels)
1558
+ @mount_name = args[:mount_name] if args.key?(:mount_name)
1559
+ @name = args[:name] if args.key?(:name)
1560
+ @nfs_export_options = args[:nfs_export_options] if args.key?(:nfs_export_options)
1561
+ @state = args[:state] if args.key?(:state)
1562
+ end
1563
+ end
1564
+
1412
1565
  # A Cloud Filestore snapshot.
1413
1566
  class Snapshot
1414
1567
  include Google::Apis::Core::Hashable
@@ -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.18.0"
19
+ GEM_VERSION = "0.21.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.4.1"
22
+ GENERATOR_VERSION = "0.5.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220214"
25
+ REVISION = "20220530"
26
26
  end
27
27
  end
28
28
  end
@@ -88,6 +88,12 @@ module Google
88
88
  include Google::Apis::Core::JsonObjectSupport
89
89
  end
90
90
 
91
+ class GoogleCloudSaasacceleratorManagementProvidersV1NotificationParameter
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
91
97
  class GoogleCloudSaasacceleratorManagementProvidersV1PerSliSloEligibility
92
98
  class Representation < Google::Apis::Core::JsonRepresentation; end
93
99
 
@@ -142,6 +148,12 @@ module Google
142
148
  include Google::Apis::Core::JsonObjectSupport
143
149
  end
144
150
 
151
+ class ListSharesResponse
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
145
157
  class ListSnapshotsResponse
146
158
  class Representation < Google::Apis::Core::JsonRepresentation; end
147
159
 
@@ -208,6 +220,12 @@ module Google
208
220
  include Google::Apis::Core::JsonObjectSupport
209
221
  end
210
222
 
223
+ class Share
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
227
+ end
228
+
211
229
  class Snapshot
212
230
  class Representation < Google::Apis::Core::JsonRepresentation; end
213
231
 
@@ -245,6 +263,7 @@ module Google
245
263
  property :create_time, as: 'createTime'
246
264
  property :description, as: 'description'
247
265
  property :download_bytes, :numeric_string => true, as: 'downloadBytes'
266
+ property :kms_key_name, as: 'kmsKeyName'
248
267
  hash :labels, as: 'labels'
249
268
  property :name, as: 'name'
250
269
  property :satisfies_pzs, as: 'satisfiesPzs'
@@ -322,7 +341,8 @@ module Google
322
341
  property :maintenance_settings, as: 'maintenanceSettings', class: Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings, decorator: Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings::Representation
323
342
 
324
343
  property :name, as: 'name'
325
- hash :notification_parameters, as: 'notificationParameters'
344
+ hash :notification_parameters, as: 'notificationParameters', class: Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1NotificationParameter, decorator: Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1NotificationParameter::Representation
345
+
326
346
  hash :producer_metadata, as: 'producerMetadata'
327
347
  collection :provisioned_resources, as: 'provisionedResources', class: Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1ProvisionedResource, decorator: Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1ProvisionedResource::Representation
328
348
 
@@ -367,6 +387,13 @@ module Google
367
387
  end
368
388
  end
369
389
 
390
+ class GoogleCloudSaasacceleratorManagementProvidersV1NotificationParameter
391
+ # @private
392
+ class Representation < Google::Apis::Core::JsonRepresentation
393
+ collection :values, as: 'values'
394
+ end
395
+ end
396
+
370
397
  class GoogleCloudSaasacceleratorManagementProvidersV1PerSliSloEligibility
371
398
  # @private
372
399
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -405,6 +432,8 @@ module Google
405
432
  class Instance
406
433
  # @private
407
434
  class Representation < Google::Apis::Core::JsonRepresentation
435
+ property :capacity_gb, :numeric_string => true, as: 'capacityGb'
436
+ property :capacity_step_size_gb, :numeric_string => true, as: 'capacityStepSizeGb'
408
437
  property :create_time, as: 'createTime'
409
438
  property :description, as: 'description'
410
439
  property :etag, as: 'etag'
@@ -412,7 +441,9 @@ module Google
412
441
 
413
442
  property :kms_key_name, as: 'kmsKeyName'
414
443
  hash :labels, as: 'labels'
444
+ property :max_capacity_gb, :numeric_string => true, as: 'maxCapacityGb'
415
445
  property :max_share_count, :numeric_string => true, as: 'maxShareCount'
446
+ property :multi_share_enabled, as: 'multiShareEnabled'
416
447
  property :name, as: 'name'
417
448
  collection :networks, as: 'networks', class: Google::Apis::FileV1beta1::NetworkConfig, decorator: Google::Apis::FileV1beta1::NetworkConfig::Representation
418
449
 
@@ -462,6 +493,16 @@ module Google
462
493
  end
463
494
  end
464
495
 
496
+ class ListSharesResponse
497
+ # @private
498
+ class Representation < Google::Apis::Core::JsonRepresentation
499
+ property :next_page_token, as: 'nextPageToken'
500
+ collection :shares, as: 'shares', class: Google::Apis::FileV1beta1::Share, decorator: Google::Apis::FileV1beta1::Share::Representation
501
+
502
+ collection :unreachable, as: 'unreachable'
503
+ end
504
+ end
505
+
465
506
  class ListSnapshotsResponse
466
507
  # @private
467
508
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -579,6 +620,21 @@ module Google
579
620
  end
580
621
  end
581
622
 
623
+ class Share
624
+ # @private
625
+ class Representation < Google::Apis::Core::JsonRepresentation
626
+ property :capacity_gb, :numeric_string => true, as: 'capacityGb'
627
+ property :create_time, as: 'createTime'
628
+ property :description, as: 'description'
629
+ hash :labels, as: 'labels'
630
+ property :mount_name, as: 'mountName'
631
+ property :name, as: 'name'
632
+ collection :nfs_export_options, as: 'nfsExportOptions', class: Google::Apis::FileV1beta1::NfsExportOptions, decorator: Google::Apis::FileV1beta1::NfsExportOptions::Representation
633
+
634
+ property :state, as: 'state'
635
+ end
636
+ end
637
+
582
638
  class Snapshot
583
639
  # @private
584
640
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -84,8 +84,8 @@ module Google
84
84
  # The resource that owns the locations collection, if applicable.
85
85
  # @param [String] filter
86
86
  # A filter to narrow down results to a preferred subset. The filtering language
87
- # accepts strings like "displayName=tokyo", and is documented in more detail in [
88
- # AIP-160](https://google.aip.dev/160).
87
+ # accepts strings like `"displayName=tokyo"`, and is documented in more detail
88
+ # in [AIP-160](https://google.aip.dev/160).
89
89
  # @param [Boolean] include_unrevealed_locations
90
90
  # If true, the returned list will include locations which are not yet revealed.
91
91
  # @param [Fixnum] page_size
@@ -578,6 +578,190 @@ module Google
578
578
  execute_or_queue_command(command, &block)
579
579
  end
580
580
 
581
+ # Creates a share.
582
+ # @param [String] parent
583
+ # Required. The Filestore Instance to create the share for, in the format `
584
+ # projects/`project_id`/locations/`location`/instances/`instance_id``
585
+ # @param [Google::Apis::FileV1beta1::Share] share_object
586
+ # @param [String] share_id
587
+ # Required. The ID to use for the share. The ID must be unique within the
588
+ # specified instance. This value must start with a lowercase letter followed by
589
+ # up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
590
+ # @param [String] fields
591
+ # Selector specifying which fields to include in a partial response.
592
+ # @param [String] quota_user
593
+ # Available to use for quota purposes for server-side applications. Can be any
594
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
595
+ # @param [Google::Apis::RequestOptions] options
596
+ # Request-specific options
597
+ #
598
+ # @yield [result, err] Result & error if block supplied
599
+ # @yieldparam result [Google::Apis::FileV1beta1::Operation] parsed result object
600
+ # @yieldparam err [StandardError] error object if request failed
601
+ #
602
+ # @return [Google::Apis::FileV1beta1::Operation]
603
+ #
604
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
605
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
606
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
607
+ def create_project_location_instance_share(parent, share_object = nil, share_id: nil, fields: nil, quota_user: nil, options: nil, &block)
608
+ command = make_simple_command(:post, 'v1beta1/{+parent}/shares', options)
609
+ command.request_representation = Google::Apis::FileV1beta1::Share::Representation
610
+ command.request_object = share_object
611
+ command.response_representation = Google::Apis::FileV1beta1::Operation::Representation
612
+ command.response_class = Google::Apis::FileV1beta1::Operation
613
+ command.params['parent'] = parent unless parent.nil?
614
+ command.query['shareId'] = share_id unless share_id.nil?
615
+ command.query['fields'] = fields unless fields.nil?
616
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
617
+ execute_or_queue_command(command, &block)
618
+ end
619
+
620
+ # Deletes a share.
621
+ # @param [String] name
622
+ # Required. The share resource name, in the format `projects/`project_id`/
623
+ # locations/`location`/instances/`instance_id`/share/`share_id``
624
+ # @param [String] fields
625
+ # Selector specifying which fields to include in a partial response.
626
+ # @param [String] quota_user
627
+ # Available to use for quota purposes for server-side applications. Can be any
628
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
629
+ # @param [Google::Apis::RequestOptions] options
630
+ # Request-specific options
631
+ #
632
+ # @yield [result, err] Result & error if block supplied
633
+ # @yieldparam result [Google::Apis::FileV1beta1::Operation] parsed result object
634
+ # @yieldparam err [StandardError] error object if request failed
635
+ #
636
+ # @return [Google::Apis::FileV1beta1::Operation]
637
+ #
638
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
639
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
640
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
641
+ def delete_project_location_instance_share(name, fields: nil, quota_user: nil, options: nil, &block)
642
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
643
+ command.response_representation = Google::Apis::FileV1beta1::Operation::Representation
644
+ command.response_class = Google::Apis::FileV1beta1::Operation
645
+ command.params['name'] = name unless name.nil?
646
+ command.query['fields'] = fields unless fields.nil?
647
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
648
+ execute_or_queue_command(command, &block)
649
+ end
650
+
651
+ # Gets the details of a specific share.
652
+ # @param [String] name
653
+ # Required. The share resource name, in the format `projects/`project_id`/
654
+ # locations/`location`/instances/`instance_id`/shares/`share_id``
655
+ # @param [String] fields
656
+ # Selector specifying which fields to include in a partial response.
657
+ # @param [String] quota_user
658
+ # Available to use for quota purposes for server-side applications. Can be any
659
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
660
+ # @param [Google::Apis::RequestOptions] options
661
+ # Request-specific options
662
+ #
663
+ # @yield [result, err] Result & error if block supplied
664
+ # @yieldparam result [Google::Apis::FileV1beta1::Share] parsed result object
665
+ # @yieldparam err [StandardError] error object if request failed
666
+ #
667
+ # @return [Google::Apis::FileV1beta1::Share]
668
+ #
669
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
670
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
671
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
672
+ def get_project_location_instance_share(name, fields: nil, quota_user: nil, options: nil, &block)
673
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
674
+ command.response_representation = Google::Apis::FileV1beta1::Share::Representation
675
+ command.response_class = Google::Apis::FileV1beta1::Share
676
+ command.params['name'] = name unless name.nil?
677
+ command.query['fields'] = fields unless fields.nil?
678
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
679
+ execute_or_queue_command(command, &block)
680
+ end
681
+
682
+ # Lists all shares for a specified instance.
683
+ # @param [String] parent
684
+ # Required. The instance for which to retrieve share information, in the format `
685
+ # projects/`project_id`/locations/`location`/instances/`instance_id``.
686
+ # @param [String] filter
687
+ # List filter.
688
+ # @param [String] order_by
689
+ # Sort results. Supported values are "name", "name desc" or "" (unsorted).
690
+ # @param [Fixnum] page_size
691
+ # The maximum number of items to return.
692
+ # @param [String] page_token
693
+ # The next_page_token value to use if there are additional results to retrieve
694
+ # for this list request.
695
+ # @param [String] fields
696
+ # Selector specifying which fields to include in a partial response.
697
+ # @param [String] quota_user
698
+ # Available to use for quota purposes for server-side applications. Can be any
699
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
700
+ # @param [Google::Apis::RequestOptions] options
701
+ # Request-specific options
702
+ #
703
+ # @yield [result, err] Result & error if block supplied
704
+ # @yieldparam result [Google::Apis::FileV1beta1::ListSharesResponse] parsed result object
705
+ # @yieldparam err [StandardError] error object if request failed
706
+ #
707
+ # @return [Google::Apis::FileV1beta1::ListSharesResponse]
708
+ #
709
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
710
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
711
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
712
+ def list_project_location_instance_shares(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
713
+ command = make_simple_command(:get, 'v1beta1/{+parent}/shares', options)
714
+ command.response_representation = Google::Apis::FileV1beta1::ListSharesResponse::Representation
715
+ command.response_class = Google::Apis::FileV1beta1::ListSharesResponse
716
+ command.params['parent'] = parent unless parent.nil?
717
+ command.query['filter'] = filter unless filter.nil?
718
+ command.query['orderBy'] = order_by unless order_by.nil?
719
+ command.query['pageSize'] = page_size unless page_size.nil?
720
+ command.query['pageToken'] = page_token unless page_token.nil?
721
+ command.query['fields'] = fields unless fields.nil?
722
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
723
+ execute_or_queue_command(command, &block)
724
+ end
725
+
726
+ # Updates the settings of a specific share.
727
+ # @param [String] name
728
+ # Output only. The resource name of the share, in the format `projects/`
729
+ # project_id`/locations/`location_id`/instances/`instance_id`/shares/`share_id``.
730
+ # @param [Google::Apis::FileV1beta1::Share] share_object
731
+ # @param [String] update_mask
732
+ # Required. Mask of fields to update. At least one path must be supplied in this
733
+ # field. The elements of the repeated paths field may only include these fields:
734
+ # * "description" * "capacity_gb" * "labels" * "nfs_export_options"
735
+ # @param [String] fields
736
+ # Selector specifying which fields to include in a partial response.
737
+ # @param [String] quota_user
738
+ # Available to use for quota purposes for server-side applications. Can be any
739
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
740
+ # @param [Google::Apis::RequestOptions] options
741
+ # Request-specific options
742
+ #
743
+ # @yield [result, err] Result & error if block supplied
744
+ # @yieldparam result [Google::Apis::FileV1beta1::Operation] parsed result object
745
+ # @yieldparam err [StandardError] error object if request failed
746
+ #
747
+ # @return [Google::Apis::FileV1beta1::Operation]
748
+ #
749
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
750
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
751
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
752
+ def patch_project_location_instance_share(name, share_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
753
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
754
+ command.request_representation = Google::Apis::FileV1beta1::Share::Representation
755
+ command.request_object = share_object
756
+ command.response_representation = Google::Apis::FileV1beta1::Operation::Representation
757
+ command.response_class = Google::Apis::FileV1beta1::Operation
758
+ command.params['name'] = name unless name.nil?
759
+ command.query['updateMask'] = update_mask unless update_mask.nil?
760
+ command.query['fields'] = fields unless fields.nil?
761
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
762
+ execute_or_queue_command(command, &block)
763
+ end
764
+
581
765
  # Creates a snapshot.
582
766
  # @param [String] parent
583
767
  # Required. The Filestore Instance to create the snapshots of, in the format `
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.18.0
4
+ version: 0.21.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: 2022-03-07 00:00:00.000000000 Z
11
+ date: 2022-06-13 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.4'
19
+ version: '0.5'
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.4'
29
+ version: '0.5'
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_v1beta1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-file_v1beta1/v0.18.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-file_v1beta1/v0.21.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-file_v1beta1
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.3.5
78
+ rubygems_version: 3.3.14
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Cloud Filestore API V1beta1