google-cloud-lustre-v1 0.a → 0.1.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.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +122 -0
  4. data/README.md +154 -8
  5. data/lib/google/cloud/lustre/v1/bindings_override.rb +102 -0
  6. data/lib/google/cloud/lustre/v1/instance_pb.rb +58 -0
  7. data/lib/google/cloud/lustre/v1/lustre/client.rb +1185 -0
  8. data/lib/google/cloud/lustre/v1/lustre/credentials.rb +47 -0
  9. data/lib/google/cloud/lustre/v1/lustre/operations.rb +813 -0
  10. data/lib/google/cloud/lustre/v1/lustre/paths.rb +103 -0
  11. data/lib/google/cloud/lustre/v1/lustre/rest/client.rb +1118 -0
  12. data/lib/google/cloud/lustre/v1/lustre/rest/operations.rb +913 -0
  13. data/lib/google/cloud/lustre/v1/lustre/rest/service_stub.rb +512 -0
  14. data/lib/google/cloud/lustre/v1/lustre/rest.rb +54 -0
  15. data/lib/google/cloud/lustre/v1/lustre.rb +56 -0
  16. data/lib/google/cloud/lustre/v1/lustre_pb.rb +49 -0
  17. data/lib/google/cloud/lustre/v1/lustre_services_pb.rb +57 -0
  18. data/lib/google/cloud/lustre/v1/rest.rb +38 -0
  19. data/lib/google/cloud/lustre/v1/transfer_pb.rb +61 -0
  20. data/lib/google/cloud/lustre/v1/version.rb +7 -2
  21. data/lib/google/cloud/lustre/v1.rb +45 -0
  22. data/lib/google-cloud-lustre-v1.rb +21 -0
  23. data/proto_docs/README.md +4 -0
  24. data/proto_docs/google/api/client.rb +473 -0
  25. data/proto_docs/google/api/field_behavior.rb +85 -0
  26. data/proto_docs/google/api/field_info.rb +88 -0
  27. data/proto_docs/google/api/launch_stage.rb +71 -0
  28. data/proto_docs/google/api/resource.rb +227 -0
  29. data/proto_docs/google/cloud/lustre/v1/instance.rb +288 -0
  30. data/proto_docs/google/cloud/lustre/v1/transfer.rb +284 -0
  31. data/proto_docs/google/longrunning/operations.rb +173 -0
  32. data/proto_docs/google/protobuf/any.rb +145 -0
  33. data/proto_docs/google/protobuf/duration.rb +98 -0
  34. data/proto_docs/google/protobuf/empty.rb +34 -0
  35. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  36. data/proto_docs/google/protobuf/timestamp.rb +127 -0
  37. data/proto_docs/google/rpc/code.rb +185 -0
  38. data/proto_docs/google/rpc/status.rb +48 -0
  39. metadata +85 -9
@@ -0,0 +1,57 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/cloud/lustre/v1/lustre.proto for package 'google.cloud.lustre.v1'
3
+ # Original file comments:
4
+ # Copyright 2025 Google LLC
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+
19
+ require 'grpc'
20
+ require 'google/cloud/lustre/v1/lustre_pb'
21
+
22
+ module Google
23
+ module Cloud
24
+ module Lustre
25
+ module V1
26
+ module Lustre
27
+ # Service describing handlers for resources
28
+ class Service
29
+
30
+ include ::GRPC::GenericService
31
+
32
+ self.marshal_class_method = :encode
33
+ self.unmarshal_class_method = :decode
34
+ self.service_name = 'google.cloud.lustre.v1.Lustre'
35
+
36
+ # Lists instances in a given project and location.
37
+ rpc :ListInstances, ::Google::Cloud::Lustre::V1::ListInstancesRequest, ::Google::Cloud::Lustre::V1::ListInstancesResponse
38
+ # Gets details of a single instance.
39
+ rpc :GetInstance, ::Google::Cloud::Lustre::V1::GetInstanceRequest, ::Google::Cloud::Lustre::V1::Instance
40
+ # Creates a new instance in a given project and location.
41
+ rpc :CreateInstance, ::Google::Cloud::Lustre::V1::CreateInstanceRequest, ::Google::Longrunning::Operation
42
+ # Updates the parameters of a single instance.
43
+ rpc :UpdateInstance, ::Google::Cloud::Lustre::V1::UpdateInstanceRequest, ::Google::Longrunning::Operation
44
+ # Deletes a single instance.
45
+ rpc :DeleteInstance, ::Google::Cloud::Lustre::V1::DeleteInstanceRequest, ::Google::Longrunning::Operation
46
+ # Imports data from Cloud Storage to a Managed Lustre instance.
47
+ rpc :ImportData, ::Google::Cloud::Lustre::V1::ImportDataRequest, ::Google::Longrunning::Operation
48
+ # Exports data from a Managed Lustre instance to Cloud Storage.
49
+ rpc :ExportData, ::Google::Cloud::Lustre::V1::ExportDataRequest, ::Google::Longrunning::Operation
50
+ end
51
+
52
+ Stub = Service.rpc_stub_class
53
+ end
54
+ end
55
+ end
56
+ end
57
+ end
@@ -0,0 +1,38 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2025 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "google/cloud/lustre/v1/lustre/rest"
20
+ require "google/cloud/lustre/v1/bindings_override"
21
+ require "google/cloud/lustre/v1/version"
22
+
23
+ module Google
24
+ module Cloud
25
+ module Lustre
26
+ ##
27
+ # To load just the REST part of this package, including all its services, and instantiate a REST client:
28
+ #
29
+ # @example
30
+ #
31
+ # require "google/cloud/lustre/v1/rest"
32
+ # client = ::Google::Cloud::Lustre::V1::Lustre::Rest::Client.new
33
+ #
34
+ module V1
35
+ end
36
+ end
37
+ end
38
+ end
@@ -0,0 +1,61 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/cloud/lustre/v1/transfer.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/api/field_behavior_pb'
8
+ require 'google/api/field_info_pb'
9
+ require 'google/api/resource_pb'
10
+ require 'google/protobuf/timestamp_pb'
11
+ require 'google/rpc/code_pb'
12
+
13
+
14
+ descriptor_data = "\n%google/cloud/lustre/v1/transfer.proto\x12\x16google.cloud.lustre.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1bgoogle/api/field_info.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x15google/rpc/code.proto\"\xb7\x02\n\x11ImportDataRequest\x12\x33\n\x08gcs_path\x18\x02 \x01(\x0b\x32\x1f.google.cloud.lustre.v1.GcsPathH\x00\x12\x39\n\x0blustre_path\x18\x03 \x01(\x0b\x32\".google.cloud.lustre.v1.LustrePathH\x01\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1elustre.googleapis.com/Instance\x12\x1f\n\nrequest_id\x18\x04 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x12\x42\n\x0fservice_account\x18\x05 \x01(\tB)\xe0\x41\x01\xfa\x41#\n!iam.googleapis.com/ServiceAccountB\x08\n\x06sourceB\r\n\x0b\x64\x65stination\"\xb7\x02\n\x11\x45xportDataRequest\x12\x39\n\x0blustre_path\x18\x02 \x01(\x0b\x32\".google.cloud.lustre.v1.LustrePathH\x00\x12\x33\n\x08gcs_path\x18\x03 \x01(\x0b\x32\x1f.google.cloud.lustre.v1.GcsPathH\x01\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1elustre.googleapis.com/Instance\x12\x1f\n\nrequest_id\x18\x04 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x12\x42\n\x0fservice_account\x18\x05 \x01(\tB)\xe0\x41\x01\xfa\x41#\n!iam.googleapis.com/ServiceAccountB\x08\n\x06sourceB\r\n\x0b\x64\x65stination\"\x14\n\x12\x45xportDataResponse\"\x14\n\x12ImportDataResponse\"\xd0\x02\n\x12\x45xportDataMetadata\x12M\n\x12operation_metadata\x18\x01 \x01(\x0b\x32\x31.google.cloud.lustre.v1.TransferOperationMetadata\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04verb\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0estatus_message\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12#\n\x16requested_cancellation\x18\x07 \x01(\x08\x42\x03\xe0\x41\x03\x12\x18\n\x0b\x61pi_version\x18\x08 \x01(\tB\x03\xe0\x41\x03\"\xbd\x02\n\x12ImportDataMetadata\x12M\n\x12operation_metadata\x18\x01 \x01(\x0b\x32\x31.google.cloud.lustre.v1.TransferOperationMetadata\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0estatus_message\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12#\n\x16requested_cancellation\x18\x07 \x01(\x08\x42\x03\xe0\x41\x03\x12\x18\n\x0b\x61pi_version\x18\x08 \x01(\tB\x03\xe0\x41\x03\"\x1b\n\x07GcsPath\x12\x10\n\x03uri\x18\x01 \x01(\tB\x03\xe0\x41\x02\"\x1f\n\nLustrePath\x12\x11\n\x04path\x18\x01 \x01(\tB\x03\xe0\x41\x01\"\x84\x02\n\x10TransferCounters\x12\x1b\n\x13\x66ound_objects_count\x18\x01 \x01(\x03\x12\x19\n\x11\x62ytes_found_count\x18\x02 \x01(\x03\x12\x1d\n\x15objects_skipped_count\x18\x03 \x01(\x03\x12\x1b\n\x13\x62ytes_skipped_count\x18\x04 \x01(\x03\x12\x1c\n\x14objects_copied_count\x18\x05 \x01(\x03\x12\x1a\n\x12\x62ytes_copied_count\x18\x06 \x01(\x03\x12!\n\x14objects_failed_count\x18\x07 \x01(\x03\x42\x03\xe0\x41\x03\x12\x1f\n\x12\x62ytes_failed_count\x18\x08 \x01(\x03\x42\x03\xe0\x41\x03\"8\n\rErrorLogEntry\x12\x10\n\x03uri\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\rerror_details\x18\x02 \x03(\t\"\x95\x01\n\x0c\x45rrorSummary\x12)\n\nerror_code\x18\x01 \x01(\x0e\x32\x10.google.rpc.CodeB\x03\xe0\x41\x02\x12\x18\n\x0b\x65rror_count\x18\x02 \x01(\x03\x42\x03\xe0\x41\x02\x12@\n\x11\x65rror_log_entries\x18\x03 \x03(\x0b\x32%.google.cloud.lustre.v1.ErrorLogEntry\"\x95\x04\n\x19TransferOperationMetadata\x12\x45\n\x12source_lustre_path\x18\x03 \x01(\x0b\x32\".google.cloud.lustre.v1.LustrePathB\x03\xe0\x41\x03H\x00\x12?\n\x0fsource_gcs_path\x18\x04 \x01(\x0b\x32\x1f.google.cloud.lustre.v1.GcsPathB\x03\xe0\x41\x03H\x00\x12\x44\n\x14\x64\x65stination_gcs_path\x18\x05 \x01(\x0b\x32\x1f.google.cloud.lustre.v1.GcsPathB\x03\xe0\x41\x03H\x01\x12J\n\x17\x64\x65stination_lustre_path\x18\x06 \x01(\x0b\x32\".google.cloud.lustre.v1.LustrePathB\x03\xe0\x41\x03H\x01\x12?\n\x08\x63ounters\x18\x01 \x01(\x0b\x32(.google.cloud.lustre.v1.TransferCountersB\x03\xe0\x41\x03\x12@\n\rtransfer_type\x18\x02 \x01(\x0e\x32$.google.cloud.lustre.v1.TransferTypeB\x03\xe0\x41\x03\x12\x42\n\x0f\x65rror_summaries\x18\x07 \x03(\x0b\x32$.google.cloud.lustre.v1.ErrorSummaryB\x03\xe0\x41\x03\x42\x08\n\x06sourceB\r\n\x0b\x64\x65stination*E\n\x0cTransferType\x12\x1d\n\x19TRANSFER_TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06IMPORT\x10\x01\x12\n\n\x06\x45XPORT\x10\x02\x42\x61\n\x1a\x63om.google.cloud.lustre.v1B\rTransferProtoP\x01Z2cloud.google.com/go/lustre/apiv1/lustrepb;lustrepbb\x06proto3"
15
+
16
+ pool = Google::Protobuf::DescriptorPool.generated_pool
17
+
18
+ begin
19
+ pool.add_serialized_file(descriptor_data)
20
+ rescue TypeError
21
+ # Compatibility code: will be removed in the next major version.
22
+ require 'google/protobuf/descriptor_pb'
23
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
24
+ parsed.clear_dependency
25
+ serialized = parsed.class.encode(parsed)
26
+ file = pool.add_serialized_file(serialized)
27
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
28
+ imports = [
29
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
30
+ ]
31
+ imports.each do |type_name, expected_filename|
32
+ import_file = pool.lookup(type_name).file_descriptor
33
+ if import_file.name != expected_filename
34
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
35
+ end
36
+ end
37
+ warn "Each proto file must use a consistent fully-qualified name."
38
+ warn "This will become an error in the next major version."
39
+ end
40
+
41
+ module Google
42
+ module Cloud
43
+ module Lustre
44
+ module V1
45
+ ImportDataRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.lustre.v1.ImportDataRequest").msgclass
46
+ ExportDataRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.lustre.v1.ExportDataRequest").msgclass
47
+ ExportDataResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.lustre.v1.ExportDataResponse").msgclass
48
+ ImportDataResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.lustre.v1.ImportDataResponse").msgclass
49
+ ExportDataMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.lustre.v1.ExportDataMetadata").msgclass
50
+ ImportDataMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.lustre.v1.ImportDataMetadata").msgclass
51
+ GcsPath = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.lustre.v1.GcsPath").msgclass
52
+ LustrePath = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.lustre.v1.LustrePath").msgclass
53
+ TransferCounters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.lustre.v1.TransferCounters").msgclass
54
+ ErrorLogEntry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.lustre.v1.ErrorLogEntry").msgclass
55
+ ErrorSummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.lustre.v1.ErrorSummary").msgclass
56
+ TransferOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.lustre.v1.TransferOperationMetadata").msgclass
57
+ TransferType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.lustre.v1.TransferType").enummodule
58
+ end
59
+ end
60
+ end
61
+ end
@@ -1,10 +1,12 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Copyright 2025 Google LLC
2
4
  #
3
5
  # Licensed under the Apache License, Version 2.0 (the "License");
4
6
  # you may not use this file except in compliance with the License.
5
7
  # You may obtain a copy of the License at
6
8
  #
7
- # http://www.apache.org/licenses/LICENSE-2.0
9
+ # https://www.apache.org/licenses/LICENSE-2.0
8
10
  #
9
11
  # Unless required by applicable law or agreed to in writing, software
10
12
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -12,11 +14,14 @@
12
14
  # See the License for the specific language governing permissions and
13
15
  # limitations under the License.
14
16
 
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
15
20
  module Google
16
21
  module Cloud
17
22
  module Lustre
18
23
  module V1
19
- VERSION = "0.a"
24
+ VERSION = "0.1.0"
20
25
  end
21
26
  end
22
27
  end
@@ -0,0 +1,45 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2025 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "google/cloud/lustre/v1/lustre"
20
+ require "google/cloud/lustre/v1/version"
21
+
22
+ module Google
23
+ module Cloud
24
+ module Lustre
25
+ ##
26
+ # API client module.
27
+ #
28
+ # @example Load this package, including all its services, and instantiate a gRPC client
29
+ #
30
+ # require "google/cloud/lustre/v1"
31
+ # client = ::Google::Cloud::Lustre::V1::Lustre::Client.new
32
+ #
33
+ # @example Load this package, including all its services, and instantiate a REST client
34
+ #
35
+ # require "google/cloud/lustre/v1"
36
+ # client = ::Google::Cloud::Lustre::V1::Lustre::Rest::Client.new
37
+ #
38
+ module V1
39
+ end
40
+ end
41
+ end
42
+ end
43
+
44
+ helper_path = ::File.join __dir__, "v1", "_helpers.rb"
45
+ require "google/cloud/lustre/v1/_helpers" if ::File.file? helper_path
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2025 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ # This gem does not autoload during Bundler.require. To load this gem,
20
+ # issue explicit require statements for the packages desired, e.g.:
21
+ # require "google/cloud/lustre/v1"
@@ -0,0 +1,4 @@
1
+ # Google Cloud Managed Lustre V1 Protocol Buffer Documentation
2
+
3
+ These files are for the YARD documentation of the generated protobuf files.
4
+ They are not intended to be required or loaded at runtime.