google-cloud-netapp-v1 0.a → 0.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/.yardopts +12 -0
- data/AUTHENTICATION.md +149 -0
- data/README.md +144 -8
- data/lib/google/cloud/netapp/v1/active_directory_pb.rb +56 -0
- data/lib/google/cloud/netapp/v1/bindings_override.rb +102 -0
- data/lib/google/cloud/netapp/v1/cloud_netapp_service_pb.rb +57 -0
- data/lib/google/cloud/netapp/v1/cloud_netapp_service_services_pb.rb +120 -0
- data/lib/google/cloud/netapp/v1/common_pb.rb +43 -0
- data/lib/google/cloud/netapp/v1/kms_pb.rb +59 -0
- data/lib/google/cloud/netapp/v1/netapp/client.rb +4119 -0
- data/lib/google/cloud/netapp/v1/netapp/credentials.rb +47 -0
- data/lib/google/cloud/netapp/v1/netapp/operations.rb +779 -0
- data/lib/google/cloud/netapp/v1/netapp/paths.rb +185 -0
- data/lib/google/cloud/netapp/v1/netapp/rest/client.rb +3840 -0
- data/lib/google/cloud/netapp/v1/netapp/rest/operations.rb +870 -0
- data/lib/google/cloud/netapp/v1/netapp/rest/service_stub.rb +2190 -0
- data/lib/google/cloud/netapp/v1/netapp/rest.rb +54 -0
- data/lib/google/cloud/netapp/v1/netapp.rb +56 -0
- data/lib/google/cloud/netapp/v1/replication_pb.rb +66 -0
- data/lib/google/cloud/netapp/v1/rest.rb +38 -0
- data/lib/google/cloud/netapp/v1/snapshot_pb.rb +56 -0
- data/lib/google/cloud/netapp/v1/storage_pool_pb.rb +57 -0
- data/lib/google/cloud/netapp/v1/version.rb +8 -3
- data/lib/google/cloud/netapp/v1/volume_pb.rb +72 -0
- data/lib/google/cloud/netapp/v1.rb +45 -0
- data/lib/google-cloud-netapp-v1.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +381 -0
- data/proto_docs/google/api/field_behavior.rb +85 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/api/resource.rb +222 -0
- data/proto_docs/google/cloud/netapp/v1/active_directory.rb +222 -0
- data/proto_docs/google/cloud/netapp/v1/cloud_netapp_service.rb +57 -0
- data/proto_docs/google/cloud/netapp/v1/common.rb +50 -0
- data/proto_docs/google/cloud/netapp/v1/kms.rb +236 -0
- data/proto_docs/google/cloud/netapp/v1/replication.rb +349 -0
- data/proto_docs/google/cloud/netapp/v1/snapshot.rb +180 -0
- data/proto_docs/google/cloud/netapp/v1/storage_pool.rb +211 -0
- data/proto_docs/google/cloud/netapp/v1/volume.rb +542 -0
- data/proto_docs/google/longrunning/operations.rb +164 -0
- data/proto_docs/google/protobuf/any.rb +144 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +34 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +127 -0
- data/proto_docs/google/rpc/status.rb +48 -0
- metadata +225 -13
@@ -0,0 +1,120 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/cloud/netapp/v1/cloud_netapp_service.proto for package 'Google.Cloud.NetApp.V1'
|
3
|
+
# Original file comments:
|
4
|
+
# Copyright 2023 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/netapp/v1/cloud_netapp_service_pb'
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module NetApp
|
25
|
+
module V1
|
26
|
+
module NetApp
|
27
|
+
# NetApp Files Google Cloud Service
|
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.netapp.v1.NetApp'
|
35
|
+
|
36
|
+
# Returns descriptions of all storage pools owned by the caller.
|
37
|
+
rpc :ListStoragePools, ::Google::Cloud::NetApp::V1::ListStoragePoolsRequest, ::Google::Cloud::NetApp::V1::ListStoragePoolsResponse
|
38
|
+
# Creates a new storage pool.
|
39
|
+
rpc :CreateStoragePool, ::Google::Cloud::NetApp::V1::CreateStoragePoolRequest, ::Google::Longrunning::Operation
|
40
|
+
# Returns the description of the specified storage pool by poolId.
|
41
|
+
rpc :GetStoragePool, ::Google::Cloud::NetApp::V1::GetStoragePoolRequest, ::Google::Cloud::NetApp::V1::StoragePool
|
42
|
+
# Updates the storage pool properties with the full spec
|
43
|
+
rpc :UpdateStoragePool, ::Google::Cloud::NetApp::V1::UpdateStoragePoolRequest, ::Google::Longrunning::Operation
|
44
|
+
# Warning! This operation will permanently delete the storage pool.
|
45
|
+
rpc :DeleteStoragePool, ::Google::Cloud::NetApp::V1::DeleteStoragePoolRequest, ::Google::Longrunning::Operation
|
46
|
+
# Lists Volumes in a given project.
|
47
|
+
rpc :ListVolumes, ::Google::Cloud::NetApp::V1::ListVolumesRequest, ::Google::Cloud::NetApp::V1::ListVolumesResponse
|
48
|
+
# Gets details of a single Volume.
|
49
|
+
rpc :GetVolume, ::Google::Cloud::NetApp::V1::GetVolumeRequest, ::Google::Cloud::NetApp::V1::Volume
|
50
|
+
# Creates a new Volume in a given project and location.
|
51
|
+
rpc :CreateVolume, ::Google::Cloud::NetApp::V1::CreateVolumeRequest, ::Google::Longrunning::Operation
|
52
|
+
# Updates the parameters of a single Volume.
|
53
|
+
rpc :UpdateVolume, ::Google::Cloud::NetApp::V1::UpdateVolumeRequest, ::Google::Longrunning::Operation
|
54
|
+
# Deletes a single Volume.
|
55
|
+
rpc :DeleteVolume, ::Google::Cloud::NetApp::V1::DeleteVolumeRequest, ::Google::Longrunning::Operation
|
56
|
+
# Revert an existing volume to a specified snapshot.
|
57
|
+
# Warning! This operation will permanently revert all changes made after the
|
58
|
+
# snapshot was created.
|
59
|
+
rpc :RevertVolume, ::Google::Cloud::NetApp::V1::RevertVolumeRequest, ::Google::Longrunning::Operation
|
60
|
+
# Returns descriptions of all snapshots for a volume.
|
61
|
+
rpc :ListSnapshots, ::Google::Cloud::NetApp::V1::ListSnapshotsRequest, ::Google::Cloud::NetApp::V1::ListSnapshotsResponse
|
62
|
+
# Describe a snapshot for a volume.
|
63
|
+
rpc :GetSnapshot, ::Google::Cloud::NetApp::V1::GetSnapshotRequest, ::Google::Cloud::NetApp::V1::Snapshot
|
64
|
+
# Create a new snapshot for a volume.
|
65
|
+
rpc :CreateSnapshot, ::Google::Cloud::NetApp::V1::CreateSnapshotRequest, ::Google::Longrunning::Operation
|
66
|
+
# Deletes a snapshot.
|
67
|
+
rpc :DeleteSnapshot, ::Google::Cloud::NetApp::V1::DeleteSnapshotRequest, ::Google::Longrunning::Operation
|
68
|
+
# Updates the settings of a specific snapshot.
|
69
|
+
rpc :UpdateSnapshot, ::Google::Cloud::NetApp::V1::UpdateSnapshotRequest, ::Google::Longrunning::Operation
|
70
|
+
# Lists active directories.
|
71
|
+
rpc :ListActiveDirectories, ::Google::Cloud::NetApp::V1::ListActiveDirectoriesRequest, ::Google::Cloud::NetApp::V1::ListActiveDirectoriesResponse
|
72
|
+
# Describes a specified active directory.
|
73
|
+
rpc :GetActiveDirectory, ::Google::Cloud::NetApp::V1::GetActiveDirectoryRequest, ::Google::Cloud::NetApp::V1::ActiveDirectory
|
74
|
+
# CreateActiveDirectory
|
75
|
+
# Creates the active directory specified in the request.
|
76
|
+
rpc :CreateActiveDirectory, ::Google::Cloud::NetApp::V1::CreateActiveDirectoryRequest, ::Google::Longrunning::Operation
|
77
|
+
# Update the parameters of an active directories.
|
78
|
+
rpc :UpdateActiveDirectory, ::Google::Cloud::NetApp::V1::UpdateActiveDirectoryRequest, ::Google::Longrunning::Operation
|
79
|
+
# Delete the active directory specified in the request.
|
80
|
+
rpc :DeleteActiveDirectory, ::Google::Cloud::NetApp::V1::DeleteActiveDirectoryRequest, ::Google::Longrunning::Operation
|
81
|
+
# Returns descriptions of all KMS configs owned by the caller.
|
82
|
+
rpc :ListKmsConfigs, ::Google::Cloud::NetApp::V1::ListKmsConfigsRequest, ::Google::Cloud::NetApp::V1::ListKmsConfigsResponse
|
83
|
+
# Creates a new KMS config.
|
84
|
+
rpc :CreateKmsConfig, ::Google::Cloud::NetApp::V1::CreateKmsConfigRequest, ::Google::Longrunning::Operation
|
85
|
+
# Returns the description of the specified KMS config by kms_config_id.
|
86
|
+
rpc :GetKmsConfig, ::Google::Cloud::NetApp::V1::GetKmsConfigRequest, ::Google::Cloud::NetApp::V1::KmsConfig
|
87
|
+
# Updates the Kms config properties with the full spec
|
88
|
+
rpc :UpdateKmsConfig, ::Google::Cloud::NetApp::V1::UpdateKmsConfigRequest, ::Google::Longrunning::Operation
|
89
|
+
# Encrypt the existing volumes without CMEK encryption with the desired the
|
90
|
+
# KMS config for the whole region.
|
91
|
+
rpc :EncryptVolumes, ::Google::Cloud::NetApp::V1::EncryptVolumesRequest, ::Google::Longrunning::Operation
|
92
|
+
# Verifies KMS config reachability.
|
93
|
+
rpc :VerifyKmsConfig, ::Google::Cloud::NetApp::V1::VerifyKmsConfigRequest, ::Google::Cloud::NetApp::V1::VerifyKmsConfigResponse
|
94
|
+
# Warning! This operation will permanently delete the Kms config.
|
95
|
+
rpc :DeleteKmsConfig, ::Google::Cloud::NetApp::V1::DeleteKmsConfigRequest, ::Google::Longrunning::Operation
|
96
|
+
# Returns descriptions of all replications for a volume.
|
97
|
+
rpc :ListReplications, ::Google::Cloud::NetApp::V1::ListReplicationsRequest, ::Google::Cloud::NetApp::V1::ListReplicationsResponse
|
98
|
+
# Describe a replication for a volume.
|
99
|
+
rpc :GetReplication, ::Google::Cloud::NetApp::V1::GetReplicationRequest, ::Google::Cloud::NetApp::V1::Replication
|
100
|
+
# Create a new replication for a volume.
|
101
|
+
rpc :CreateReplication, ::Google::Cloud::NetApp::V1::CreateReplicationRequest, ::Google::Longrunning::Operation
|
102
|
+
# Deletes a replication.
|
103
|
+
rpc :DeleteReplication, ::Google::Cloud::NetApp::V1::DeleteReplicationRequest, ::Google::Longrunning::Operation
|
104
|
+
# Updates the settings of a specific replication.
|
105
|
+
rpc :UpdateReplication, ::Google::Cloud::NetApp::V1::UpdateReplicationRequest, ::Google::Longrunning::Operation
|
106
|
+
# Stop Cross Region Replication.
|
107
|
+
rpc :StopReplication, ::Google::Cloud::NetApp::V1::StopReplicationRequest, ::Google::Longrunning::Operation
|
108
|
+
# Resume Cross Region Replication.
|
109
|
+
rpc :ResumeReplication, ::Google::Cloud::NetApp::V1::ResumeReplicationRequest, ::Google::Longrunning::Operation
|
110
|
+
# Reverses direction of replication. Source becomes destination and
|
111
|
+
# destination becomes source.
|
112
|
+
rpc :ReverseReplicationDirection, ::Google::Cloud::NetApp::V1::ReverseReplicationDirectionRequest, ::Google::Longrunning::Operation
|
113
|
+
end
|
114
|
+
|
115
|
+
Stub = Service.rpc_stub_class
|
116
|
+
end
|
117
|
+
end
|
118
|
+
end
|
119
|
+
end
|
120
|
+
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: google/cloud/netapp/v1/common.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
|
8
|
+
descriptor_data = "\n#google/cloud/netapp/v1/common.proto\x12\x16google.cloud.netapp.v1*U\n\x0cServiceLevel\x12\x1d\n\x19SERVICE_LEVEL_UNSPECIFIED\x10\x00\x12\x0b\n\x07PREMIUM\x10\x01\x12\x0b\n\x07\x45XTREME\x10\x02\x12\x0c\n\x08STANDARD\x10\x03*U\n\x0e\x45ncryptionType\x12\x1f\n\x1b\x45NCRYPTION_TYPE_UNSPECIFIED\x10\x00\x12\x13\n\x0fSERVICE_MANAGED\x10\x01\x12\r\n\tCLOUD_KMS\x10\x02\x42\xad\x01\n\x1a\x63om.google.cloud.netapp.v1B\x0b\x43ommonProtoP\x01Z2cloud.google.com/go/netapp/apiv1/netapppb;netapppb\xaa\x02\x16Google.Cloud.NetApp.V1\xca\x02\x16Google\\Cloud\\NetApp\\V1\xea\x02\x19Google::Cloud::NetApp::V1b\x06proto3"
|
9
|
+
|
10
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
11
|
+
|
12
|
+
begin
|
13
|
+
pool.add_serialized_file(descriptor_data)
|
14
|
+
rescue TypeError => e
|
15
|
+
# Compatibility code: will be removed in the next major version.
|
16
|
+
require 'google/protobuf/descriptor_pb'
|
17
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
18
|
+
parsed.clear_dependency
|
19
|
+
serialized = parsed.class.encode(parsed)
|
20
|
+
file = pool.add_serialized_file(serialized)
|
21
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
22
|
+
imports = [
|
23
|
+
]
|
24
|
+
imports.each do |type_name, expected_filename|
|
25
|
+
import_file = pool.lookup(type_name).file_descriptor
|
26
|
+
if import_file.name != expected_filename
|
27
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
28
|
+
end
|
29
|
+
end
|
30
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
31
|
+
warn "This will become an error in the next major version."
|
32
|
+
end
|
33
|
+
|
34
|
+
module Google
|
35
|
+
module Cloud
|
36
|
+
module NetApp
|
37
|
+
module V1
|
38
|
+
ServiceLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.netapp.v1.ServiceLevel").enummodule
|
39
|
+
EncryptionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.netapp.v1.EncryptionType").enummodule
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
@@ -0,0 +1,59 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: google/cloud/netapp/v1/kms.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/api/field_behavior_pb'
|
8
|
+
require 'google/api/resource_pb'
|
9
|
+
require 'google/protobuf/field_mask_pb'
|
10
|
+
require 'google/protobuf/timestamp_pb'
|
11
|
+
|
12
|
+
|
13
|
+
descriptor_data = "\n google/cloud/netapp/v1/kms.proto\x12\x16google.cloud.netapp.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"L\n\x13GetKmsConfigRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1fnetapp.googleapis.com/KmsConfig\"\x99\x01\n\x15ListKmsConfigsRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1fnetapp.googleapis.com/KmsConfig\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x10\n\x08order_by\x18\x04 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x05 \x01(\t\"~\n\x16ListKmsConfigsResponse\x12\x36\n\x0bkms_configs\x18\x01 \x03(\x0b\x32!.google.cloud.netapp.v1.KmsConfig\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"\xa9\x01\n\x16\x43reateKmsConfigRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1fnetapp.googleapis.com/KmsConfig\x12\x1a\n\rkms_config_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12:\n\nkms_config\x18\x03 \x01(\x0b\x32!.google.cloud.netapp.v1.KmsConfigB\x03\xe0\x41\x02\"\x8a\x01\n\x16UpdateKmsConfigRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12:\n\nkms_config\x18\x02 \x01(\x0b\x32!.google.cloud.netapp.v1.KmsConfigB\x03\xe0\x41\x02\"O\n\x16\x44\x65leteKmsConfigRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1fnetapp.googleapis.com/KmsConfig\"N\n\x15\x45ncryptVolumesRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1fnetapp.googleapis.com/KmsConfig\"O\n\x16VerifyKmsConfigRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1fnetapp.googleapis.com/KmsConfig\"e\n\x17VerifyKmsConfigResponse\x12\x14\n\x07healthy\x18\x01 \x01(\x08\x42\x03\xe0\x41\x03\x12\x19\n\x0chealth_error\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0cinstructions\x18\x03 \x01(\tB\x03\xe0\x41\x03\"\xb5\x05\n\tKmsConfig\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x1c\n\x0f\x63rypto_key_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12;\n\x05state\x18\x03 \x01(\x0e\x32\'.google.cloud.netapp.v1.KmsConfig.StateB\x03\xe0\x41\x03\x12\x1a\n\rstate_details\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x0b\x64\x65scription\x18\x06 \x01(\t\x12=\n\x06labels\x18\x07 \x03(\x0b\x32-.google.cloud.netapp.v1.KmsConfig.LabelsEntry\x12\x19\n\x0cinstructions\x18\x08 \x01(\tB\x03\xe0\x41\x03\x12\x1c\n\x0fservice_account\x18\t \x01(\tB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xc4\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\t\n\x05READY\x10\x01\x12\x0c\n\x08\x43REATING\x10\x02\x12\x0c\n\x08\x44\x45LETING\x10\x03\x12\x0c\n\x08UPDATING\x10\x04\x12\n\n\x06IN_USE\x10\x05\x12\t\n\x05\x45RROR\x10\x06\x12\x15\n\x11KEY_CHECK_PENDING\x10\x07\x12\x15\n\x11KEY_NOT_REACHABLE\x10\x08\x12\r\n\tDISABLING\x10\t\x12\x0c\n\x08\x44ISABLED\x10\n\x12\r\n\tMIGRATING\x10\x0b:e\xea\x41\x62\n\x1fnetapp.googleapis.com/KmsConfig\x12?projects/{project}/locations/{location}/kmsConfigs/{kms_config}B\xaa\x01\n\x1a\x63om.google.cloud.netapp.v1B\x08KmsProtoP\x01Z2cloud.google.com/go/netapp/apiv1/netapppb;netapppb\xaa\x02\x16Google.Cloud.NetApp.V1\xca\x02\x16Google\\Cloud\\NetApp\\V1\xea\x02\x19Google::Cloud::NetApp::V1b\x06proto3"
|
14
|
+
|
15
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
16
|
+
|
17
|
+
begin
|
18
|
+
pool.add_serialized_file(descriptor_data)
|
19
|
+
rescue TypeError => e
|
20
|
+
# Compatibility code: will be removed in the next major version.
|
21
|
+
require 'google/protobuf/descriptor_pb'
|
22
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
23
|
+
parsed.clear_dependency
|
24
|
+
serialized = parsed.class.encode(parsed)
|
25
|
+
file = pool.add_serialized_file(serialized)
|
26
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
27
|
+
imports = [
|
28
|
+
["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
|
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 NetApp
|
44
|
+
module V1
|
45
|
+
GetKmsConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.netapp.v1.GetKmsConfigRequest").msgclass
|
46
|
+
ListKmsConfigsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.netapp.v1.ListKmsConfigsRequest").msgclass
|
47
|
+
ListKmsConfigsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.netapp.v1.ListKmsConfigsResponse").msgclass
|
48
|
+
CreateKmsConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.netapp.v1.CreateKmsConfigRequest").msgclass
|
49
|
+
UpdateKmsConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.netapp.v1.UpdateKmsConfigRequest").msgclass
|
50
|
+
DeleteKmsConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.netapp.v1.DeleteKmsConfigRequest").msgclass
|
51
|
+
EncryptVolumesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.netapp.v1.EncryptVolumesRequest").msgclass
|
52
|
+
VerifyKmsConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.netapp.v1.VerifyKmsConfigRequest").msgclass
|
53
|
+
VerifyKmsConfigResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.netapp.v1.VerifyKmsConfigResponse").msgclass
|
54
|
+
KmsConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.netapp.v1.KmsConfig").msgclass
|
55
|
+
KmsConfig::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.netapp.v1.KmsConfig.State").enummodule
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|