google-cloud-filestore-v1 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -268,6 +268,196 @@ module Google
268
268
  result
269
269
  end
270
270
 
271
+ ##
272
+ # Baseline implementation for the list_snapshots REST call
273
+ #
274
+ # @param request_pb [::Google::Cloud::Filestore::V1::ListSnapshotsRequest]
275
+ # A request object representing the call parameters. Required.
276
+ # @param options [::Gapic::CallOptions]
277
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
278
+ #
279
+ # @yield [result, operation] Access the result along with the TransportOperation object
280
+ # @yieldparam result [::Google::Cloud::Filestore::V1::ListSnapshotsResponse]
281
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
282
+ #
283
+ # @return [::Google::Cloud::Filestore::V1::ListSnapshotsResponse]
284
+ # A result object deserialized from the server's reply
285
+ def list_snapshots request_pb, options = nil
286
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
287
+
288
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_snapshots_request request_pb
289
+ query_string_params = if query_string_params.any?
290
+ query_string_params.to_h { |p| p.split("=", 2) }
291
+ else
292
+ {}
293
+ end
294
+
295
+ response = @client_stub.make_http_request(
296
+ verb,
297
+ uri: uri,
298
+ body: body || "",
299
+ params: query_string_params,
300
+ options: options
301
+ )
302
+ operation = ::Gapic::Rest::TransportOperation.new response
303
+ result = ::Google::Cloud::Filestore::V1::ListSnapshotsResponse.decode_json response.body, ignore_unknown_fields: true
304
+
305
+ yield result, operation if block_given?
306
+ result
307
+ end
308
+
309
+ ##
310
+ # Baseline implementation for the get_snapshot REST call
311
+ #
312
+ # @param request_pb [::Google::Cloud::Filestore::V1::GetSnapshotRequest]
313
+ # A request object representing the call parameters. Required.
314
+ # @param options [::Gapic::CallOptions]
315
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
316
+ #
317
+ # @yield [result, operation] Access the result along with the TransportOperation object
318
+ # @yieldparam result [::Google::Cloud::Filestore::V1::Snapshot]
319
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
320
+ #
321
+ # @return [::Google::Cloud::Filestore::V1::Snapshot]
322
+ # A result object deserialized from the server's reply
323
+ def get_snapshot request_pb, options = nil
324
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
325
+
326
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_snapshot_request request_pb
327
+ query_string_params = if query_string_params.any?
328
+ query_string_params.to_h { |p| p.split("=", 2) }
329
+ else
330
+ {}
331
+ end
332
+
333
+ response = @client_stub.make_http_request(
334
+ verb,
335
+ uri: uri,
336
+ body: body || "",
337
+ params: query_string_params,
338
+ options: options
339
+ )
340
+ operation = ::Gapic::Rest::TransportOperation.new response
341
+ result = ::Google::Cloud::Filestore::V1::Snapshot.decode_json response.body, ignore_unknown_fields: true
342
+
343
+ yield result, operation if block_given?
344
+ result
345
+ end
346
+
347
+ ##
348
+ # Baseline implementation for the create_snapshot REST call
349
+ #
350
+ # @param request_pb [::Google::Cloud::Filestore::V1::CreateSnapshotRequest]
351
+ # A request object representing the call parameters. Required.
352
+ # @param options [::Gapic::CallOptions]
353
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
354
+ #
355
+ # @yield [result, operation] Access the result along with the TransportOperation object
356
+ # @yieldparam result [::Google::Longrunning::Operation]
357
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
358
+ #
359
+ # @return [::Google::Longrunning::Operation]
360
+ # A result object deserialized from the server's reply
361
+ def create_snapshot request_pb, options = nil
362
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
363
+
364
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_snapshot_request request_pb
365
+ query_string_params = if query_string_params.any?
366
+ query_string_params.to_h { |p| p.split("=", 2) }
367
+ else
368
+ {}
369
+ end
370
+
371
+ response = @client_stub.make_http_request(
372
+ verb,
373
+ uri: uri,
374
+ body: body || "",
375
+ params: query_string_params,
376
+ options: options
377
+ )
378
+ operation = ::Gapic::Rest::TransportOperation.new response
379
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
380
+
381
+ yield result, operation if block_given?
382
+ result
383
+ end
384
+
385
+ ##
386
+ # Baseline implementation for the delete_snapshot REST call
387
+ #
388
+ # @param request_pb [::Google::Cloud::Filestore::V1::DeleteSnapshotRequest]
389
+ # A request object representing the call parameters. Required.
390
+ # @param options [::Gapic::CallOptions]
391
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
392
+ #
393
+ # @yield [result, operation] Access the result along with the TransportOperation object
394
+ # @yieldparam result [::Google::Longrunning::Operation]
395
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
396
+ #
397
+ # @return [::Google::Longrunning::Operation]
398
+ # A result object deserialized from the server's reply
399
+ def delete_snapshot request_pb, options = nil
400
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
401
+
402
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_snapshot_request request_pb
403
+ query_string_params = if query_string_params.any?
404
+ query_string_params.to_h { |p| p.split("=", 2) }
405
+ else
406
+ {}
407
+ end
408
+
409
+ response = @client_stub.make_http_request(
410
+ verb,
411
+ uri: uri,
412
+ body: body || "",
413
+ params: query_string_params,
414
+ options: options
415
+ )
416
+ operation = ::Gapic::Rest::TransportOperation.new response
417
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
418
+
419
+ yield result, operation if block_given?
420
+ result
421
+ end
422
+
423
+ ##
424
+ # Baseline implementation for the update_snapshot REST call
425
+ #
426
+ # @param request_pb [::Google::Cloud::Filestore::V1::UpdateSnapshotRequest]
427
+ # A request object representing the call parameters. Required.
428
+ # @param options [::Gapic::CallOptions]
429
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
430
+ #
431
+ # @yield [result, operation] Access the result along with the TransportOperation object
432
+ # @yieldparam result [::Google::Longrunning::Operation]
433
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
434
+ #
435
+ # @return [::Google::Longrunning::Operation]
436
+ # A result object deserialized from the server's reply
437
+ def update_snapshot request_pb, options = nil
438
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
439
+
440
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_snapshot_request request_pb
441
+ query_string_params = if query_string_params.any?
442
+ query_string_params.to_h { |p| p.split("=", 2) }
443
+ else
444
+ {}
445
+ end
446
+
447
+ response = @client_stub.make_http_request(
448
+ verb,
449
+ uri: uri,
450
+ body: body || "",
451
+ params: query_string_params,
452
+ options: options
453
+ )
454
+ operation = ::Gapic::Rest::TransportOperation.new response
455
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
456
+
457
+ yield result, operation if block_given?
458
+ result
459
+ end
460
+
271
461
  ##
272
462
  # Baseline implementation for the list_backups REST call
273
463
  #
@@ -587,6 +777,113 @@ module Google
587
777
  transcoder.transcode request_pb
588
778
  end
589
779
 
780
+ ##
781
+ # @private
782
+ #
783
+ # GRPC transcoding helper method for the list_snapshots REST call
784
+ #
785
+ # @param request_pb [::Google::Cloud::Filestore::V1::ListSnapshotsRequest]
786
+ # A request object representing the call parameters. Required.
787
+ # @return [Array(String, [String, nil], Hash{String => String})]
788
+ # Uri, Body, Query string parameters
789
+ def self.transcode_list_snapshots_request request_pb
790
+ transcoder = Gapic::Rest::GrpcTranscoder.new
791
+ .with_bindings(
792
+ uri_method: :get,
793
+ uri_template: "/v1/{parent}/snapshots",
794
+ matches: [
795
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
796
+ ]
797
+ )
798
+ transcoder.transcode request_pb
799
+ end
800
+
801
+ ##
802
+ # @private
803
+ #
804
+ # GRPC transcoding helper method for the get_snapshot REST call
805
+ #
806
+ # @param request_pb [::Google::Cloud::Filestore::V1::GetSnapshotRequest]
807
+ # A request object representing the call parameters. Required.
808
+ # @return [Array(String, [String, nil], Hash{String => String})]
809
+ # Uri, Body, Query string parameters
810
+ def self.transcode_get_snapshot_request request_pb
811
+ transcoder = Gapic::Rest::GrpcTranscoder.new
812
+ .with_bindings(
813
+ uri_method: :get,
814
+ uri_template: "/v1/{name}",
815
+ matches: [
816
+ ["name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/snapshots/[^/]+/?$}, false]
817
+ ]
818
+ )
819
+ transcoder.transcode request_pb
820
+ end
821
+
822
+ ##
823
+ # @private
824
+ #
825
+ # GRPC transcoding helper method for the create_snapshot REST call
826
+ #
827
+ # @param request_pb [::Google::Cloud::Filestore::V1::CreateSnapshotRequest]
828
+ # A request object representing the call parameters. Required.
829
+ # @return [Array(String, [String, nil], Hash{String => String})]
830
+ # Uri, Body, Query string parameters
831
+ def self.transcode_create_snapshot_request request_pb
832
+ transcoder = Gapic::Rest::GrpcTranscoder.new
833
+ .with_bindings(
834
+ uri_method: :post,
835
+ uri_template: "/v1/{parent}/snapshots",
836
+ body: "snapshot",
837
+ matches: [
838
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
839
+ ]
840
+ )
841
+ transcoder.transcode request_pb
842
+ end
843
+
844
+ ##
845
+ # @private
846
+ #
847
+ # GRPC transcoding helper method for the delete_snapshot REST call
848
+ #
849
+ # @param request_pb [::Google::Cloud::Filestore::V1::DeleteSnapshotRequest]
850
+ # A request object representing the call parameters. Required.
851
+ # @return [Array(String, [String, nil], Hash{String => String})]
852
+ # Uri, Body, Query string parameters
853
+ def self.transcode_delete_snapshot_request request_pb
854
+ transcoder = Gapic::Rest::GrpcTranscoder.new
855
+ .with_bindings(
856
+ uri_method: :delete,
857
+ uri_template: "/v1/{name}",
858
+ matches: [
859
+ ["name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/snapshots/[^/]+/?$}, false]
860
+ ]
861
+ )
862
+ transcoder.transcode request_pb
863
+ end
864
+
865
+ ##
866
+ # @private
867
+ #
868
+ # GRPC transcoding helper method for the update_snapshot REST call
869
+ #
870
+ # @param request_pb [::Google::Cloud::Filestore::V1::UpdateSnapshotRequest]
871
+ # A request object representing the call parameters. Required.
872
+ # @return [Array(String, [String, nil], Hash{String => String})]
873
+ # Uri, Body, Query string parameters
874
+ def self.transcode_update_snapshot_request request_pb
875
+ transcoder = Gapic::Rest::GrpcTranscoder.new
876
+ .with_bindings(
877
+ uri_method: :patch,
878
+ uri_template: "/v1/{snapshot.name}",
879
+ body: "snapshot",
880
+ matches: [
881
+ ["snapshot.name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/snapshots/[^/]+/?$}, false]
882
+ ]
883
+ )
884
+ transcoder.transcode request_pb
885
+ end
886
+
590
887
  ##
591
888
  # @private
592
889
  #
@@ -32,23 +32,23 @@ module Google
32
32
  module Filestore
33
33
  module V1
34
34
  ##
35
- # Configures and manages Cloud Filestore resources.
35
+ # Configures and manages Filestore resources.
36
36
  #
37
- # Cloud Filestore Manager v1.
37
+ # Filestore Manager v1.
38
38
  #
39
- # The `file.googleapis.com` service implements the Cloud Filestore API and
39
+ # The `file.googleapis.com` service implements the Filestore API and
40
40
  # defines the following resource model for managing instances:
41
41
  # * The service works with a collection of cloud projects, named: `/projects/*`
42
42
  # * Each project has a collection of available locations, named: `/locations/*`
43
43
  # * Each location has a collection of instances and backups, named:
44
44
  # `/instances/*` and `/backups/*` respectively.
45
- # * As such, Cloud Filestore instances are resources of the form:
45
+ # * As such, Filestore instances are resources of the form:
46
46
  # `/projects/{project_number}/locations/{location_id}/instances/{instance_id}`
47
47
  # and backups are resources of the form:
48
48
  # `/projects/{project_number}/locations/{location_id}/backup/{backup_id}`
49
49
  #
50
- # Note that location_id must be a GCP `zone` for instances and but to a GCP
51
- # `region` for backups; for example:
50
+ # Note that location_id must be a Google Cloud `zone` for instances, but
51
+ # a Google Cloud `region` for backups; for example:
52
52
  # * `projects/12345/locations/us-central1-c/instances/my-filestore`
53
53
  # * `projects/12345/locations/us-central1/backups/my-backup`
54
54
  #
@@ -33,23 +33,23 @@ module Google
33
33
  module Filestore
34
34
  module V1
35
35
  ##
36
- # Configures and manages Cloud Filestore resources.
36
+ # Configures and manages Filestore resources.
37
37
  #
38
- # Cloud Filestore Manager v1.
38
+ # Filestore Manager v1.
39
39
  #
40
- # The `file.googleapis.com` service implements the Cloud Filestore API and
40
+ # The `file.googleapis.com` service implements the Filestore API and
41
41
  # defines the following resource model for managing instances:
42
42
  # * The service works with a collection of cloud projects, named: `/projects/*`
43
43
  # * Each project has a collection of available locations, named: `/locations/*`
44
44
  # * Each location has a collection of instances and backups, named:
45
45
  # `/instances/*` and `/backups/*` respectively.
46
- # * As such, Cloud Filestore instances are resources of the form:
46
+ # * As such, Filestore instances are resources of the form:
47
47
  # `/projects/{project_number}/locations/{location_id}/instances/{instance_id}`
48
48
  # and backups are resources of the form:
49
49
  # `/projects/{project_number}/locations/{location_id}/backup/{backup_id}`
50
50
  #
51
- # Note that location_id must be a GCP `zone` for instances and but to a GCP
52
- # `region` for backups; for example:
51
+ # Note that location_id must be a Google Cloud `zone` for instances, but
52
+ # a Google Cloud `region` for backups; for example:
53
53
  # * `projects/12345/locations/us-central1-c/instances/my-filestore`
54
54
  # * `projects/12345/locations/us-central1/backups/my-backup`
55
55
  #
@@ -9,6 +9,7 @@ require 'google/api/field_behavior_pb'
9
9
  require 'google/api/resource_pb'
10
10
  require 'google/cloud/common/operation_metadata_pb'
11
11
  require 'google/longrunning/operations_pb'
12
+ require 'google/protobuf/empty_pb'
12
13
  require 'google/protobuf/field_mask_pb'
13
14
  require 'google/protobuf/timestamp_pb'
14
15
  require 'google/protobuf/wrappers_pb'
@@ -20,11 +21,17 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
20
21
  repeated :modes, :enum, 3, "google.cloud.filestore.v1.NetworkConfig.AddressMode"
21
22
  optional :reserved_ip_range, :string, 4
22
23
  repeated :ip_addresses, :string, 5
24
+ optional :connect_mode, :enum, 6, "google.cloud.filestore.v1.NetworkConfig.ConnectMode"
23
25
  end
24
26
  add_enum "google.cloud.filestore.v1.NetworkConfig.AddressMode" do
25
27
  value :ADDRESS_MODE_UNSPECIFIED, 0
26
28
  value :MODE_IPV4, 1
27
29
  end
30
+ add_enum "google.cloud.filestore.v1.NetworkConfig.ConnectMode" do
31
+ value :CONNECT_MODE_UNSPECIFIED, 0
32
+ value :DIRECT_PEERING, 1
33
+ value :PRIVATE_SERVICE_ACCESS, 2
34
+ end
28
35
  add_message "google.cloud.filestore.v1.FileShareConfig" do
29
36
  optional :name, :string, 1
30
37
  optional :capacity_gb, :int64, 2
@@ -62,6 +69,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
62
69
  repeated :networks, :message, 11, "google.cloud.filestore.v1.NetworkConfig"
63
70
  optional :etag, :string, 12
64
71
  optional :satisfies_pzs, :message, 13, "google.protobuf.BoolValue"
72
+ optional :kms_key_name, :string, 14
73
+ repeated :suspension_reasons, :enum, 15, "google.cloud.filestore.v1.Instance.SuspensionReason"
65
74
  end
66
75
  add_enum "google.cloud.filestore.v1.Instance.State" do
67
76
  value :STATE_UNSPECIFIED, 0
@@ -71,6 +80,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
71
80
  value :DELETING, 4
72
81
  value :ERROR, 6
73
82
  value :RESTORING, 7
83
+ value :SUSPENDED, 8
84
+ value :SUSPENDING, 9
85
+ value :RESUMING, 10
74
86
  end
75
87
  add_enum "google.cloud.filestore.v1.Instance.Tier" do
76
88
  value :TIER_UNSPECIFIED, 0
@@ -79,6 +91,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
79
91
  value :BASIC_HDD, 3
80
92
  value :BASIC_SSD, 4
81
93
  value :HIGH_SCALE_SSD, 5
94
+ value :ENTERPRISE, 6
95
+ end
96
+ add_enum "google.cloud.filestore.v1.Instance.SuspensionReason" do
97
+ value :SUSPENSION_REASON_UNSPECIFIED, 0
98
+ value :KMS_KEY_ISSUE, 1
82
99
  end
83
100
  add_message "google.cloud.filestore.v1.CreateInstanceRequest" do
84
101
  optional :parent, :string, 1
@@ -101,6 +118,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
101
118
  end
102
119
  add_message "google.cloud.filestore.v1.DeleteInstanceRequest" do
103
120
  optional :name, :string, 1
121
+ optional :force, :bool, 2
104
122
  end
105
123
  add_message "google.cloud.filestore.v1.ListInstancesRequest" do
106
124
  optional :parent, :string, 1
@@ -114,6 +132,46 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
114
132
  optional :next_page_token, :string, 2
115
133
  repeated :unreachable, :string, 3
116
134
  end
135
+ add_message "google.cloud.filestore.v1.Snapshot" do
136
+ optional :name, :string, 1
137
+ optional :description, :string, 2
138
+ optional :state, :enum, 3, "google.cloud.filestore.v1.Snapshot.State"
139
+ optional :create_time, :message, 4, "google.protobuf.Timestamp"
140
+ map :labels, :string, :string, 5
141
+ optional :filesystem_used_bytes, :int64, 6
142
+ end
143
+ add_enum "google.cloud.filestore.v1.Snapshot.State" do
144
+ value :STATE_UNSPECIFIED, 0
145
+ value :CREATING, 1
146
+ value :READY, 2
147
+ value :DELETING, 3
148
+ end
149
+ add_message "google.cloud.filestore.v1.CreateSnapshotRequest" do
150
+ optional :parent, :string, 1
151
+ optional :snapshot_id, :string, 2
152
+ optional :snapshot, :message, 3, "google.cloud.filestore.v1.Snapshot"
153
+ end
154
+ add_message "google.cloud.filestore.v1.GetSnapshotRequest" do
155
+ optional :name, :string, 1
156
+ end
157
+ add_message "google.cloud.filestore.v1.DeleteSnapshotRequest" do
158
+ optional :name, :string, 1
159
+ end
160
+ add_message "google.cloud.filestore.v1.UpdateSnapshotRequest" do
161
+ optional :update_mask, :message, 1, "google.protobuf.FieldMask"
162
+ optional :snapshot, :message, 2, "google.cloud.filestore.v1.Snapshot"
163
+ end
164
+ add_message "google.cloud.filestore.v1.ListSnapshotsRequest" do
165
+ optional :parent, :string, 1
166
+ optional :page_size, :int32, 2
167
+ optional :page_token, :string, 3
168
+ optional :order_by, :string, 4
169
+ optional :filter, :string, 5
170
+ end
171
+ add_message "google.cloud.filestore.v1.ListSnapshotsResponse" do
172
+ repeated :snapshots, :message, 1, "google.cloud.filestore.v1.Snapshot"
173
+ optional :next_page_token, :string, 2
174
+ end
117
175
  add_message "google.cloud.filestore.v1.Backup" do
118
176
  optional :name, :string, 1
119
177
  optional :description, :string, 2
@@ -127,6 +185,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
127
185
  optional :source_instance_tier, :enum, 10, "google.cloud.filestore.v1.Instance.Tier"
128
186
  optional :download_bytes, :int64, 11
129
187
  optional :satisfies_pzs, :message, 12, "google.protobuf.BoolValue"
188
+ optional :kms_key, :string, 13
130
189
  end
131
190
  add_enum "google.cloud.filestore.v1.Backup.State" do
132
191
  value :STATE_UNSPECIFIED, 0
@@ -171,6 +230,7 @@ module Google
171
230
  module V1
172
231
  NetworkConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.filestore.v1.NetworkConfig").msgclass
173
232
  NetworkConfig::AddressMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.filestore.v1.NetworkConfig.AddressMode").enummodule
233
+ NetworkConfig::ConnectMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.filestore.v1.NetworkConfig.ConnectMode").enummodule
174
234
  FileShareConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.filestore.v1.FileShareConfig").msgclass
175
235
  NfsExportOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.filestore.v1.NfsExportOptions").msgclass
176
236
  NfsExportOptions::AccessMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.filestore.v1.NfsExportOptions.AccessMode").enummodule
@@ -178,6 +238,7 @@ module Google
178
238
  Instance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.filestore.v1.Instance").msgclass
179
239
  Instance::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.filestore.v1.Instance.State").enummodule
180
240
  Instance::Tier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.filestore.v1.Instance.Tier").enummodule
241
+ Instance::SuspensionReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.filestore.v1.Instance.SuspensionReason").enummodule
181
242
  CreateInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.filestore.v1.CreateInstanceRequest").msgclass
182
243
  GetInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.filestore.v1.GetInstanceRequest").msgclass
183
244
  UpdateInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.filestore.v1.UpdateInstanceRequest").msgclass
@@ -185,6 +246,14 @@ module Google
185
246
  DeleteInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.filestore.v1.DeleteInstanceRequest").msgclass
186
247
  ListInstancesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.filestore.v1.ListInstancesRequest").msgclass
187
248
  ListInstancesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.filestore.v1.ListInstancesResponse").msgclass
249
+ Snapshot = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.filestore.v1.Snapshot").msgclass
250
+ Snapshot::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.filestore.v1.Snapshot.State").enummodule
251
+ CreateSnapshotRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.filestore.v1.CreateSnapshotRequest").msgclass
252
+ GetSnapshotRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.filestore.v1.GetSnapshotRequest").msgclass
253
+ DeleteSnapshotRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.filestore.v1.DeleteSnapshotRequest").msgclass
254
+ UpdateSnapshotRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.filestore.v1.UpdateSnapshotRequest").msgclass
255
+ ListSnapshotsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.filestore.v1.ListSnapshotsRequest").msgclass
256
+ ListSnapshotsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.filestore.v1.ListSnapshotsResponse").msgclass
188
257
  Backup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.filestore.v1.Backup").msgclass
189
258
  Backup::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.filestore.v1.Backup.State").enummodule
190
259
  CreateBackupRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.filestore.v1.CreateBackupRequest").msgclass
@@ -24,23 +24,23 @@ module Google
24
24
  module Filestore
25
25
  module V1
26
26
  module CloudFilestoreManager
27
- # Configures and manages Cloud Filestore resources.
27
+ # Configures and manages Filestore resources.
28
28
  #
29
- # Cloud Filestore Manager v1.
29
+ # Filestore Manager v1.
30
30
  #
31
- # The `file.googleapis.com` service implements the Cloud Filestore API and
31
+ # The `file.googleapis.com` service implements the Filestore API and
32
32
  # defines the following resource model for managing instances:
33
33
  # * The service works with a collection of cloud projects, named: `/projects/*`
34
34
  # * Each project has a collection of available locations, named: `/locations/*`
35
35
  # * Each location has a collection of instances and backups, named:
36
36
  # `/instances/*` and `/backups/*` respectively.
37
- # * As such, Cloud Filestore instances are resources of the form:
37
+ # * As such, Filestore instances are resources of the form:
38
38
  # `/projects/{project_number}/locations/{location_id}/instances/{instance_id}`
39
39
  # and backups are resources of the form:
40
40
  # `/projects/{project_number}/locations/{location_id}/backup/{backup_id}`
41
41
  #
42
- # Note that location_id must be a GCP `zone` for instances and but to a GCP
43
- # `region` for backups; for example:
42
+ # Note that location_id must be a Google Cloud `zone` for instances, but
43
+ # a Google Cloud `region` for backups; for example:
44
44
  # * `projects/12345/locations/us-central1-c/instances/my-filestore`
45
45
  # * `projects/12345/locations/us-central1/backups/my-backup`
46
46
  class Service
@@ -71,6 +71,17 @@ module Google
71
71
  rpc :RestoreInstance, ::Google::Cloud::Filestore::V1::RestoreInstanceRequest, ::Google::Longrunning::Operation
72
72
  # Deletes an instance.
73
73
  rpc :DeleteInstance, ::Google::Cloud::Filestore::V1::DeleteInstanceRequest, ::Google::Longrunning::Operation
74
+ # Lists all snapshots in a project for either a specified location
75
+ # or for all locations.
76
+ rpc :ListSnapshots, ::Google::Cloud::Filestore::V1::ListSnapshotsRequest, ::Google::Cloud::Filestore::V1::ListSnapshotsResponse
77
+ # Gets the details of a specific snapshot.
78
+ rpc :GetSnapshot, ::Google::Cloud::Filestore::V1::GetSnapshotRequest, ::Google::Cloud::Filestore::V1::Snapshot
79
+ # Creates a snapshot.
80
+ rpc :CreateSnapshot, ::Google::Cloud::Filestore::V1::CreateSnapshotRequest, ::Google::Longrunning::Operation
81
+ # Deletes a snapshot.
82
+ rpc :DeleteSnapshot, ::Google::Cloud::Filestore::V1::DeleteSnapshotRequest, ::Google::Longrunning::Operation
83
+ # Updates the settings of a specific snapshot.
84
+ rpc :UpdateSnapshot, ::Google::Cloud::Filestore::V1::UpdateSnapshotRequest, ::Google::Longrunning::Operation
74
85
  # Lists all backups in a project for either a specified location or for all
75
86
  # locations.
76
87
  rpc :ListBackups, ::Google::Cloud::Filestore::V1::ListBackupsRequest, ::Google::Cloud::Filestore::V1::ListBackupsResponse
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Filestore
23
23
  module V1
24
- VERSION = "0.3.0"
24
+ VERSION = "0.4.0"
25
25
  end
26
26
  end
27
27
  end
@@ -35,7 +35,9 @@ module Google
35
35
  # Details about how and where to publish client libraries.
36
36
  # @!attribute [rw] version
37
37
  # @return [::String]
38
- # Version of the API to apply these settings to.
38
+ # Version of the API to apply these settings to. This is the full protobuf
39
+ # package for the API, ending in the version element.
40
+ # Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1".
39
41
  # @!attribute [rw] launch_stage
40
42
  # @return [::Google::Api::LaunchStage]
41
43
  # Launch stage of this version of the API.
@@ -111,6 +113,10 @@ module Google
111
113
  # Client library settings. If the same version string appears multiple
112
114
  # times in this list, then the last one wins. Settings from earlier
113
115
  # settings with the same version string are discarded.
116
+ # @!attribute [rw] proto_reference_documentation_uri
117
+ # @return [::String]
118
+ # Optional link to proto reference documentation. Example:
119
+ # https://cloud.google.com/pubsub/lite/docs/reference/rpc
114
120
  class Publishing
115
121
  include ::Google::Protobuf::MessageExts
116
122
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -240,8 +246,8 @@ module Google
240
246
  # Example of a YAML configuration::
241
247
  #
242
248
  # publishing:
243
- # method_behavior:
244
- # - selector: CreateAdDomain
249
+ # method_settings:
250
+ # - selector: google.cloud.speech.v2.Speech.BatchRecognize
245
251
  # long_running:
246
252
  # initial_poll_delay:
247
253
  # seconds: 60 # 1 minute