google-cloud-lustre-v1 1.0.1 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -2
- data/lib/google/cloud/lustre/v1/bindings_override.rb +58 -1
- data/lib/google/cloud/lustre/v1/directory_policy_pb.rb +31 -0
- data/lib/google/cloud/lustre/v1/instance_pb.rb +16 -1
- data/lib/google/cloud/lustre/v1/lustre/client.rb +1249 -124
- data/lib/google/cloud/lustre/v1/lustre/credentials.rb +1 -1
- data/lib/google/cloud/lustre/v1/lustre/operations.rb +1 -1
- data/lib/google/cloud/lustre/v1/lustre/paths.rb +107 -1
- data/lib/google/cloud/lustre/v1/lustre/rest/client.rb +1173 -117
- data/lib/google/cloud/lustre/v1/lustre/rest/operations.rb +1 -1
- data/lib/google/cloud/lustre/v1/lustre/rest/service_stub.rb +615 -1
- data/lib/google/cloud/lustre/v1/lustre/rest.rb +1 -1
- data/lib/google/cloud/lustre/v1/lustre.rb +1 -1
- data/lib/google/cloud/lustre/v1/lustre_pb.rb +3 -1
- data/lib/google/cloud/lustre/v1/lustre_services_pb.rb +21 -1
- data/lib/google/cloud/lustre/v1/mirror_pb.rb +37 -0
- data/lib/google/cloud/lustre/v1/rest.rb +1 -1
- data/lib/google/cloud/lustre/v1/transfer_pb.rb +1 -1
- data/lib/google/cloud/lustre/v1/version.rb +1 -1
- data/lib/google/cloud/lustre/v1.rb +1 -1
- data/lib/google-cloud-lustre-v1.rb +1 -1
- data/proto_docs/google/api/client.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +1 -1
- data/proto_docs/google/api/field_info.rb +1 -1
- data/proto_docs/google/api/launch_stage.rb +1 -1
- data/proto_docs/google/api/resource.rb +1 -1
- data/proto_docs/google/cloud/lustre/v1/directory_policy.rb +142 -0
- data/proto_docs/google/cloud/lustre/v1/instance.rb +294 -7
- data/proto_docs/google/cloud/lustre/v1/mirror.rb +298 -0
- data/proto_docs/google/cloud/lustre/v1/transfer.rb +13 -1
- data/proto_docs/google/longrunning/operations.rb +1 -1
- data/proto_docs/google/protobuf/any.rb +1 -1
- data/proto_docs/google/protobuf/duration.rb +1 -1
- data/proto_docs/google/protobuf/empty.rb +1 -1
- data/proto_docs/google/protobuf/field_mask.rb +1 -1
- data/proto_docs/google/protobuf/timestamp.rb +8 -7
- data/proto_docs/google/rpc/code.rb +1 -1
- data/proto_docs/google/rpc/status.rb +1 -1
- data/proto_docs/google/type/date.rb +56 -0
- data/proto_docs/google/type/dayofweek.rb +49 -0
- data/proto_docs/google/type/timeofday.rb +49 -0
- metadata +30 -8
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# Copyright
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
4
|
#
|
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
# you may not use this file except in compliance with the License.
|
|
@@ -273,6 +273,46 @@ module Google
|
|
|
273
273
|
end
|
|
274
274
|
end
|
|
275
275
|
|
|
276
|
+
##
|
|
277
|
+
# Baseline implementation for the reschedule_maintenance REST call
|
|
278
|
+
#
|
|
279
|
+
# @param request_pb [::Google::Cloud::Lustre::V1::RescheduleMaintenanceRequest]
|
|
280
|
+
# A request object representing the call parameters. Required.
|
|
281
|
+
# @param options [::Gapic::CallOptions]
|
|
282
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
283
|
+
#
|
|
284
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
285
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
|
286
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
287
|
+
#
|
|
288
|
+
# @return [::Google::Longrunning::Operation]
|
|
289
|
+
# A result object deserialized from the server's reply
|
|
290
|
+
def reschedule_maintenance request_pb, options = nil
|
|
291
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
292
|
+
|
|
293
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_reschedule_maintenance_request request_pb
|
|
294
|
+
query_string_params = if query_string_params.any?
|
|
295
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
296
|
+
else
|
|
297
|
+
{}
|
|
298
|
+
end
|
|
299
|
+
|
|
300
|
+
response = @client_stub.make_http_request(
|
|
301
|
+
verb,
|
|
302
|
+
uri: uri,
|
|
303
|
+
body: body || "",
|
|
304
|
+
params: query_string_params,
|
|
305
|
+
method_name: "reschedule_maintenance",
|
|
306
|
+
options: options
|
|
307
|
+
)
|
|
308
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
309
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
310
|
+
catch :response do
|
|
311
|
+
yield result, operation if block_given?
|
|
312
|
+
result
|
|
313
|
+
end
|
|
314
|
+
end
|
|
315
|
+
|
|
276
316
|
##
|
|
277
317
|
# Baseline implementation for the import_data REST call
|
|
278
318
|
#
|
|
@@ -353,6 +393,366 @@ module Google
|
|
|
353
393
|
end
|
|
354
394
|
end
|
|
355
395
|
|
|
396
|
+
##
|
|
397
|
+
# Baseline implementation for the create_mirror REST call
|
|
398
|
+
#
|
|
399
|
+
# @param request_pb [::Google::Cloud::Lustre::V1::CreateMirrorRequest]
|
|
400
|
+
# A request object representing the call parameters. Required.
|
|
401
|
+
# @param options [::Gapic::CallOptions]
|
|
402
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
403
|
+
#
|
|
404
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
405
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
|
406
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
407
|
+
#
|
|
408
|
+
# @return [::Google::Longrunning::Operation]
|
|
409
|
+
# A result object deserialized from the server's reply
|
|
410
|
+
def create_mirror request_pb, options = nil
|
|
411
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
412
|
+
|
|
413
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_mirror_request request_pb
|
|
414
|
+
query_string_params = if query_string_params.any?
|
|
415
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
416
|
+
else
|
|
417
|
+
{}
|
|
418
|
+
end
|
|
419
|
+
|
|
420
|
+
response = @client_stub.make_http_request(
|
|
421
|
+
verb,
|
|
422
|
+
uri: uri,
|
|
423
|
+
body: body || "",
|
|
424
|
+
params: query_string_params,
|
|
425
|
+
method_name: "create_mirror",
|
|
426
|
+
options: options
|
|
427
|
+
)
|
|
428
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
429
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
430
|
+
catch :response do
|
|
431
|
+
yield result, operation if block_given?
|
|
432
|
+
result
|
|
433
|
+
end
|
|
434
|
+
end
|
|
435
|
+
|
|
436
|
+
##
|
|
437
|
+
# Baseline implementation for the update_mirror REST call
|
|
438
|
+
#
|
|
439
|
+
# @param request_pb [::Google::Cloud::Lustre::V1::UpdateMirrorRequest]
|
|
440
|
+
# A request object representing the call parameters. Required.
|
|
441
|
+
# @param options [::Gapic::CallOptions]
|
|
442
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
443
|
+
#
|
|
444
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
445
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
|
446
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
447
|
+
#
|
|
448
|
+
# @return [::Google::Longrunning::Operation]
|
|
449
|
+
# A result object deserialized from the server's reply
|
|
450
|
+
def update_mirror request_pb, options = nil
|
|
451
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
452
|
+
|
|
453
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_mirror_request request_pb
|
|
454
|
+
query_string_params = if query_string_params.any?
|
|
455
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
456
|
+
else
|
|
457
|
+
{}
|
|
458
|
+
end
|
|
459
|
+
|
|
460
|
+
response = @client_stub.make_http_request(
|
|
461
|
+
verb,
|
|
462
|
+
uri: uri,
|
|
463
|
+
body: body || "",
|
|
464
|
+
params: query_string_params,
|
|
465
|
+
method_name: "update_mirror",
|
|
466
|
+
options: options
|
|
467
|
+
)
|
|
468
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
469
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
470
|
+
catch :response do
|
|
471
|
+
yield result, operation if block_given?
|
|
472
|
+
result
|
|
473
|
+
end
|
|
474
|
+
end
|
|
475
|
+
|
|
476
|
+
##
|
|
477
|
+
# Baseline implementation for the delete_mirror REST call
|
|
478
|
+
#
|
|
479
|
+
# @param request_pb [::Google::Cloud::Lustre::V1::DeleteMirrorRequest]
|
|
480
|
+
# A request object representing the call parameters. Required.
|
|
481
|
+
# @param options [::Gapic::CallOptions]
|
|
482
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
483
|
+
#
|
|
484
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
485
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
|
486
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
487
|
+
#
|
|
488
|
+
# @return [::Google::Longrunning::Operation]
|
|
489
|
+
# A result object deserialized from the server's reply
|
|
490
|
+
def delete_mirror request_pb, options = nil
|
|
491
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
492
|
+
|
|
493
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_mirror_request request_pb
|
|
494
|
+
query_string_params = if query_string_params.any?
|
|
495
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
496
|
+
else
|
|
497
|
+
{}
|
|
498
|
+
end
|
|
499
|
+
|
|
500
|
+
response = @client_stub.make_http_request(
|
|
501
|
+
verb,
|
|
502
|
+
uri: uri,
|
|
503
|
+
body: body || "",
|
|
504
|
+
params: query_string_params,
|
|
505
|
+
method_name: "delete_mirror",
|
|
506
|
+
options: options
|
|
507
|
+
)
|
|
508
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
509
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
510
|
+
catch :response do
|
|
511
|
+
yield result, operation if block_given?
|
|
512
|
+
result
|
|
513
|
+
end
|
|
514
|
+
end
|
|
515
|
+
|
|
516
|
+
##
|
|
517
|
+
# Baseline implementation for the get_mirror REST call
|
|
518
|
+
#
|
|
519
|
+
# @param request_pb [::Google::Cloud::Lustre::V1::GetMirrorRequest]
|
|
520
|
+
# A request object representing the call parameters. Required.
|
|
521
|
+
# @param options [::Gapic::CallOptions]
|
|
522
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
523
|
+
#
|
|
524
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
525
|
+
# @yieldparam result [::Google::Cloud::Lustre::V1::Mirror]
|
|
526
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
527
|
+
#
|
|
528
|
+
# @return [::Google::Cloud::Lustre::V1::Mirror]
|
|
529
|
+
# A result object deserialized from the server's reply
|
|
530
|
+
def get_mirror request_pb, options = nil
|
|
531
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
532
|
+
|
|
533
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_mirror_request request_pb
|
|
534
|
+
query_string_params = if query_string_params.any?
|
|
535
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
536
|
+
else
|
|
537
|
+
{}
|
|
538
|
+
end
|
|
539
|
+
|
|
540
|
+
response = @client_stub.make_http_request(
|
|
541
|
+
verb,
|
|
542
|
+
uri: uri,
|
|
543
|
+
body: body || "",
|
|
544
|
+
params: query_string_params,
|
|
545
|
+
method_name: "get_mirror",
|
|
546
|
+
options: options
|
|
547
|
+
)
|
|
548
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
549
|
+
result = ::Google::Cloud::Lustre::V1::Mirror.decode_json response.body, ignore_unknown_fields: true
|
|
550
|
+
catch :response do
|
|
551
|
+
yield result, operation if block_given?
|
|
552
|
+
result
|
|
553
|
+
end
|
|
554
|
+
end
|
|
555
|
+
|
|
556
|
+
##
|
|
557
|
+
# Baseline implementation for the list_mirrors REST call
|
|
558
|
+
#
|
|
559
|
+
# @param request_pb [::Google::Cloud::Lustre::V1::ListMirrorsRequest]
|
|
560
|
+
# A request object representing the call parameters. Required.
|
|
561
|
+
# @param options [::Gapic::CallOptions]
|
|
562
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
563
|
+
#
|
|
564
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
565
|
+
# @yieldparam result [::Google::Cloud::Lustre::V1::ListMirrorsResponse]
|
|
566
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
567
|
+
#
|
|
568
|
+
# @return [::Google::Cloud::Lustre::V1::ListMirrorsResponse]
|
|
569
|
+
# A result object deserialized from the server's reply
|
|
570
|
+
def list_mirrors request_pb, options = nil
|
|
571
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
572
|
+
|
|
573
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_mirrors_request request_pb
|
|
574
|
+
query_string_params = if query_string_params.any?
|
|
575
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
576
|
+
else
|
|
577
|
+
{}
|
|
578
|
+
end
|
|
579
|
+
|
|
580
|
+
response = @client_stub.make_http_request(
|
|
581
|
+
verb,
|
|
582
|
+
uri: uri,
|
|
583
|
+
body: body || "",
|
|
584
|
+
params: query_string_params,
|
|
585
|
+
method_name: "list_mirrors",
|
|
586
|
+
options: options
|
|
587
|
+
)
|
|
588
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
589
|
+
result = ::Google::Cloud::Lustre::V1::ListMirrorsResponse.decode_json response.body, ignore_unknown_fields: true
|
|
590
|
+
catch :response do
|
|
591
|
+
yield result, operation if block_given?
|
|
592
|
+
result
|
|
593
|
+
end
|
|
594
|
+
end
|
|
595
|
+
|
|
596
|
+
##
|
|
597
|
+
# Baseline implementation for the create_directory_policy REST call
|
|
598
|
+
#
|
|
599
|
+
# @param request_pb [::Google::Cloud::Lustre::V1::CreateDirectoryPolicyRequest]
|
|
600
|
+
# A request object representing the call parameters. Required.
|
|
601
|
+
# @param options [::Gapic::CallOptions]
|
|
602
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
603
|
+
#
|
|
604
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
605
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
|
606
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
607
|
+
#
|
|
608
|
+
# @return [::Google::Longrunning::Operation]
|
|
609
|
+
# A result object deserialized from the server's reply
|
|
610
|
+
def create_directory_policy request_pb, options = nil
|
|
611
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
612
|
+
|
|
613
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_directory_policy_request request_pb
|
|
614
|
+
query_string_params = if query_string_params.any?
|
|
615
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
616
|
+
else
|
|
617
|
+
{}
|
|
618
|
+
end
|
|
619
|
+
|
|
620
|
+
response = @client_stub.make_http_request(
|
|
621
|
+
verb,
|
|
622
|
+
uri: uri,
|
|
623
|
+
body: body || "",
|
|
624
|
+
params: query_string_params,
|
|
625
|
+
method_name: "create_directory_policy",
|
|
626
|
+
options: options
|
|
627
|
+
)
|
|
628
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
629
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
630
|
+
catch :response do
|
|
631
|
+
yield result, operation if block_given?
|
|
632
|
+
result
|
|
633
|
+
end
|
|
634
|
+
end
|
|
635
|
+
|
|
636
|
+
##
|
|
637
|
+
# Baseline implementation for the delete_directory_policy REST call
|
|
638
|
+
#
|
|
639
|
+
# @param request_pb [::Google::Cloud::Lustre::V1::DeleteDirectoryPolicyRequest]
|
|
640
|
+
# A request object representing the call parameters. Required.
|
|
641
|
+
# @param options [::Gapic::CallOptions]
|
|
642
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
643
|
+
#
|
|
644
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
645
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
|
646
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
647
|
+
#
|
|
648
|
+
# @return [::Google::Longrunning::Operation]
|
|
649
|
+
# A result object deserialized from the server's reply
|
|
650
|
+
def delete_directory_policy request_pb, options = nil
|
|
651
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
652
|
+
|
|
653
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_directory_policy_request request_pb
|
|
654
|
+
query_string_params = if query_string_params.any?
|
|
655
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
656
|
+
else
|
|
657
|
+
{}
|
|
658
|
+
end
|
|
659
|
+
|
|
660
|
+
response = @client_stub.make_http_request(
|
|
661
|
+
verb,
|
|
662
|
+
uri: uri,
|
|
663
|
+
body: body || "",
|
|
664
|
+
params: query_string_params,
|
|
665
|
+
method_name: "delete_directory_policy",
|
|
666
|
+
options: options
|
|
667
|
+
)
|
|
668
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
669
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
670
|
+
catch :response do
|
|
671
|
+
yield result, operation if block_given?
|
|
672
|
+
result
|
|
673
|
+
end
|
|
674
|
+
end
|
|
675
|
+
|
|
676
|
+
##
|
|
677
|
+
# Baseline implementation for the get_directory_policy REST call
|
|
678
|
+
#
|
|
679
|
+
# @param request_pb [::Google::Cloud::Lustre::V1::GetDirectoryPolicyRequest]
|
|
680
|
+
# A request object representing the call parameters. Required.
|
|
681
|
+
# @param options [::Gapic::CallOptions]
|
|
682
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
683
|
+
#
|
|
684
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
685
|
+
# @yieldparam result [::Google::Cloud::Lustre::V1::DirectoryPolicy]
|
|
686
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
687
|
+
#
|
|
688
|
+
# @return [::Google::Cloud::Lustre::V1::DirectoryPolicy]
|
|
689
|
+
# A result object deserialized from the server's reply
|
|
690
|
+
def get_directory_policy request_pb, options = nil
|
|
691
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
692
|
+
|
|
693
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_directory_policy_request request_pb
|
|
694
|
+
query_string_params = if query_string_params.any?
|
|
695
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
696
|
+
else
|
|
697
|
+
{}
|
|
698
|
+
end
|
|
699
|
+
|
|
700
|
+
response = @client_stub.make_http_request(
|
|
701
|
+
verb,
|
|
702
|
+
uri: uri,
|
|
703
|
+
body: body || "",
|
|
704
|
+
params: query_string_params,
|
|
705
|
+
method_name: "get_directory_policy",
|
|
706
|
+
options: options
|
|
707
|
+
)
|
|
708
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
709
|
+
result = ::Google::Cloud::Lustre::V1::DirectoryPolicy.decode_json response.body, ignore_unknown_fields: true
|
|
710
|
+
catch :response do
|
|
711
|
+
yield result, operation if block_given?
|
|
712
|
+
result
|
|
713
|
+
end
|
|
714
|
+
end
|
|
715
|
+
|
|
716
|
+
##
|
|
717
|
+
# Baseline implementation for the list_directory_policies REST call
|
|
718
|
+
#
|
|
719
|
+
# @param request_pb [::Google::Cloud::Lustre::V1::ListDirectoryPoliciesRequest]
|
|
720
|
+
# A request object representing the call parameters. Required.
|
|
721
|
+
# @param options [::Gapic::CallOptions]
|
|
722
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
723
|
+
#
|
|
724
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
725
|
+
# @yieldparam result [::Google::Cloud::Lustre::V1::ListDirectoryPoliciesResponse]
|
|
726
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
727
|
+
#
|
|
728
|
+
# @return [::Google::Cloud::Lustre::V1::ListDirectoryPoliciesResponse]
|
|
729
|
+
# A result object deserialized from the server's reply
|
|
730
|
+
def list_directory_policies request_pb, options = nil
|
|
731
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
732
|
+
|
|
733
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_directory_policies_request request_pb
|
|
734
|
+
query_string_params = if query_string_params.any?
|
|
735
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
736
|
+
else
|
|
737
|
+
{}
|
|
738
|
+
end
|
|
739
|
+
|
|
740
|
+
response = @client_stub.make_http_request(
|
|
741
|
+
verb,
|
|
742
|
+
uri: uri,
|
|
743
|
+
body: body || "",
|
|
744
|
+
params: query_string_params,
|
|
745
|
+
method_name: "list_directory_policies",
|
|
746
|
+
options: options
|
|
747
|
+
)
|
|
748
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
749
|
+
result = ::Google::Cloud::Lustre::V1::ListDirectoryPoliciesResponse.decode_json response.body, ignore_unknown_fields: true
|
|
750
|
+
catch :response do
|
|
751
|
+
yield result, operation if block_given?
|
|
752
|
+
result
|
|
753
|
+
end
|
|
754
|
+
end
|
|
755
|
+
|
|
356
756
|
##
|
|
357
757
|
# @private
|
|
358
758
|
#
|
|
@@ -460,6 +860,28 @@ module Google
|
|
|
460
860
|
transcoder.transcode request_pb
|
|
461
861
|
end
|
|
462
862
|
|
|
863
|
+
##
|
|
864
|
+
# @private
|
|
865
|
+
#
|
|
866
|
+
# GRPC transcoding helper method for the reschedule_maintenance REST call
|
|
867
|
+
#
|
|
868
|
+
# @param request_pb [::Google::Cloud::Lustre::V1::RescheduleMaintenanceRequest]
|
|
869
|
+
# A request object representing the call parameters. Required.
|
|
870
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
871
|
+
# Uri, Body, Query string parameters
|
|
872
|
+
def self.transcode_reschedule_maintenance_request request_pb
|
|
873
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
874
|
+
.with_bindings(
|
|
875
|
+
uri_method: :post,
|
|
876
|
+
uri_template: "/v1/{name}:rescheduleMaintenance",
|
|
877
|
+
body: "*",
|
|
878
|
+
matches: [
|
|
879
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
|
|
880
|
+
]
|
|
881
|
+
)
|
|
882
|
+
transcoder.transcode request_pb
|
|
883
|
+
end
|
|
884
|
+
|
|
463
885
|
##
|
|
464
886
|
# @private
|
|
465
887
|
#
|
|
@@ -503,6 +925,198 @@ module Google
|
|
|
503
925
|
)
|
|
504
926
|
transcoder.transcode request_pb
|
|
505
927
|
end
|
|
928
|
+
|
|
929
|
+
##
|
|
930
|
+
# @private
|
|
931
|
+
#
|
|
932
|
+
# GRPC transcoding helper method for the create_mirror REST call
|
|
933
|
+
#
|
|
934
|
+
# @param request_pb [::Google::Cloud::Lustre::V1::CreateMirrorRequest]
|
|
935
|
+
# A request object representing the call parameters. Required.
|
|
936
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
937
|
+
# Uri, Body, Query string parameters
|
|
938
|
+
def self.transcode_create_mirror_request request_pb
|
|
939
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
940
|
+
.with_bindings(
|
|
941
|
+
uri_method: :post,
|
|
942
|
+
uri_template: "/v1/{parent}/mirrors",
|
|
943
|
+
body: "mirror",
|
|
944
|
+
matches: [
|
|
945
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
|
|
946
|
+
]
|
|
947
|
+
)
|
|
948
|
+
transcoder.transcode request_pb
|
|
949
|
+
end
|
|
950
|
+
|
|
951
|
+
##
|
|
952
|
+
# @private
|
|
953
|
+
#
|
|
954
|
+
# GRPC transcoding helper method for the update_mirror REST call
|
|
955
|
+
#
|
|
956
|
+
# @param request_pb [::Google::Cloud::Lustre::V1::UpdateMirrorRequest]
|
|
957
|
+
# A request object representing the call parameters. Required.
|
|
958
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
959
|
+
# Uri, Body, Query string parameters
|
|
960
|
+
def self.transcode_update_mirror_request request_pb
|
|
961
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
962
|
+
.with_bindings(
|
|
963
|
+
uri_method: :patch,
|
|
964
|
+
uri_template: "/v1/{mirror.name}",
|
|
965
|
+
body: "mirror",
|
|
966
|
+
matches: [
|
|
967
|
+
["mirror.name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/mirrors/[^/]+/?$}, false]
|
|
968
|
+
]
|
|
969
|
+
)
|
|
970
|
+
transcoder.transcode request_pb
|
|
971
|
+
end
|
|
972
|
+
|
|
973
|
+
##
|
|
974
|
+
# @private
|
|
975
|
+
#
|
|
976
|
+
# GRPC transcoding helper method for the delete_mirror REST call
|
|
977
|
+
#
|
|
978
|
+
# @param request_pb [::Google::Cloud::Lustre::V1::DeleteMirrorRequest]
|
|
979
|
+
# A request object representing the call parameters. Required.
|
|
980
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
981
|
+
# Uri, Body, Query string parameters
|
|
982
|
+
def self.transcode_delete_mirror_request request_pb
|
|
983
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
984
|
+
.with_bindings(
|
|
985
|
+
uri_method: :delete,
|
|
986
|
+
uri_template: "/v1/{name}",
|
|
987
|
+
matches: [
|
|
988
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/mirrors/[^/]+/?$}, false]
|
|
989
|
+
]
|
|
990
|
+
)
|
|
991
|
+
transcoder.transcode request_pb
|
|
992
|
+
end
|
|
993
|
+
|
|
994
|
+
##
|
|
995
|
+
# @private
|
|
996
|
+
#
|
|
997
|
+
# GRPC transcoding helper method for the get_mirror REST call
|
|
998
|
+
#
|
|
999
|
+
# @param request_pb [::Google::Cloud::Lustre::V1::GetMirrorRequest]
|
|
1000
|
+
# A request object representing the call parameters. Required.
|
|
1001
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1002
|
+
# Uri, Body, Query string parameters
|
|
1003
|
+
def self.transcode_get_mirror_request request_pb
|
|
1004
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1005
|
+
.with_bindings(
|
|
1006
|
+
uri_method: :get,
|
|
1007
|
+
uri_template: "/v1/{name}",
|
|
1008
|
+
matches: [
|
|
1009
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/mirrors/[^/]+/?$}, false]
|
|
1010
|
+
]
|
|
1011
|
+
)
|
|
1012
|
+
transcoder.transcode request_pb
|
|
1013
|
+
end
|
|
1014
|
+
|
|
1015
|
+
##
|
|
1016
|
+
# @private
|
|
1017
|
+
#
|
|
1018
|
+
# GRPC transcoding helper method for the list_mirrors REST call
|
|
1019
|
+
#
|
|
1020
|
+
# @param request_pb [::Google::Cloud::Lustre::V1::ListMirrorsRequest]
|
|
1021
|
+
# A request object representing the call parameters. Required.
|
|
1022
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1023
|
+
# Uri, Body, Query string parameters
|
|
1024
|
+
def self.transcode_list_mirrors_request request_pb
|
|
1025
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1026
|
+
.with_bindings(
|
|
1027
|
+
uri_method: :get,
|
|
1028
|
+
uri_template: "/v1/{parent}/mirrors",
|
|
1029
|
+
matches: [
|
|
1030
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
|
|
1031
|
+
]
|
|
1032
|
+
)
|
|
1033
|
+
transcoder.transcode request_pb
|
|
1034
|
+
end
|
|
1035
|
+
|
|
1036
|
+
##
|
|
1037
|
+
# @private
|
|
1038
|
+
#
|
|
1039
|
+
# GRPC transcoding helper method for the create_directory_policy REST call
|
|
1040
|
+
#
|
|
1041
|
+
# @param request_pb [::Google::Cloud::Lustre::V1::CreateDirectoryPolicyRequest]
|
|
1042
|
+
# A request object representing the call parameters. Required.
|
|
1043
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1044
|
+
# Uri, Body, Query string parameters
|
|
1045
|
+
def self.transcode_create_directory_policy_request request_pb
|
|
1046
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1047
|
+
.with_bindings(
|
|
1048
|
+
uri_method: :post,
|
|
1049
|
+
uri_template: "/v1/{parent}/directoryPolicies",
|
|
1050
|
+
body: "directory_policy",
|
|
1051
|
+
matches: [
|
|
1052
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
|
|
1053
|
+
]
|
|
1054
|
+
)
|
|
1055
|
+
transcoder.transcode request_pb
|
|
1056
|
+
end
|
|
1057
|
+
|
|
1058
|
+
##
|
|
1059
|
+
# @private
|
|
1060
|
+
#
|
|
1061
|
+
# GRPC transcoding helper method for the delete_directory_policy REST call
|
|
1062
|
+
#
|
|
1063
|
+
# @param request_pb [::Google::Cloud::Lustre::V1::DeleteDirectoryPolicyRequest]
|
|
1064
|
+
# A request object representing the call parameters. Required.
|
|
1065
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1066
|
+
# Uri, Body, Query string parameters
|
|
1067
|
+
def self.transcode_delete_directory_policy_request request_pb
|
|
1068
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1069
|
+
.with_bindings(
|
|
1070
|
+
uri_method: :delete,
|
|
1071
|
+
uri_template: "/v1/{name}",
|
|
1072
|
+
matches: [
|
|
1073
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/directoryPolicies/[^/]+/?$}, false]
|
|
1074
|
+
]
|
|
1075
|
+
)
|
|
1076
|
+
transcoder.transcode request_pb
|
|
1077
|
+
end
|
|
1078
|
+
|
|
1079
|
+
##
|
|
1080
|
+
# @private
|
|
1081
|
+
#
|
|
1082
|
+
# GRPC transcoding helper method for the get_directory_policy REST call
|
|
1083
|
+
#
|
|
1084
|
+
# @param request_pb [::Google::Cloud::Lustre::V1::GetDirectoryPolicyRequest]
|
|
1085
|
+
# A request object representing the call parameters. Required.
|
|
1086
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1087
|
+
# Uri, Body, Query string parameters
|
|
1088
|
+
def self.transcode_get_directory_policy_request request_pb
|
|
1089
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1090
|
+
.with_bindings(
|
|
1091
|
+
uri_method: :get,
|
|
1092
|
+
uri_template: "/v1/{name}",
|
|
1093
|
+
matches: [
|
|
1094
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/directoryPolicies/[^/]+/?$}, false]
|
|
1095
|
+
]
|
|
1096
|
+
)
|
|
1097
|
+
transcoder.transcode request_pb
|
|
1098
|
+
end
|
|
1099
|
+
|
|
1100
|
+
##
|
|
1101
|
+
# @private
|
|
1102
|
+
#
|
|
1103
|
+
# GRPC transcoding helper method for the list_directory_policies REST call
|
|
1104
|
+
#
|
|
1105
|
+
# @param request_pb [::Google::Cloud::Lustre::V1::ListDirectoryPoliciesRequest]
|
|
1106
|
+
# A request object representing the call parameters. Required.
|
|
1107
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
1108
|
+
# Uri, Body, Query string parameters
|
|
1109
|
+
def self.transcode_list_directory_policies_request request_pb
|
|
1110
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
1111
|
+
.with_bindings(
|
|
1112
|
+
uri_method: :get,
|
|
1113
|
+
uri_template: "/v1/{parent}/directoryPolicies",
|
|
1114
|
+
matches: [
|
|
1115
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
|
|
1116
|
+
]
|
|
1117
|
+
)
|
|
1118
|
+
transcoder.transcode request_pb
|
|
1119
|
+
end
|
|
506
1120
|
end
|
|
507
1121
|
end
|
|
508
1122
|
end
|