aserto-directory 0.0.3 → 0.30.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/generated/aserto/directory/common/v2/common_pb.rb +1 -1
- data/generated/aserto/directory/common/v3/common_pb.rb +55 -0
- data/generated/aserto/directory/exporter/v2/exporter_pb.rb +1 -1
- data/generated/aserto/directory/exporter/v3/exporter_pb.rb +49 -0
- data/generated/aserto/directory/exporter/v3/exporter_services_pb.rb +28 -0
- data/generated/aserto/directory/importer/v2/importer_pb.rb +1 -1
- data/generated/aserto/directory/importer/v3/importer_pb.rb +48 -0
- data/generated/aserto/directory/importer/v3/importer_services_pb.rb +28 -0
- data/generated/aserto/directory/model/v3/model_pb.rb +60 -0
- data/generated/aserto/directory/model/v3/model_services_pb.rb +32 -0
- data/generated/aserto/directory/openapi/v3/openapi_pb.rb +41 -0
- data/generated/aserto/directory/reader/v2/reader_pb.rb +2 -2
- data/generated/aserto/directory/reader/v2/reader_services_pb.rb +2 -1
- data/generated/aserto/directory/reader/v3/reader_pb.rb +66 -0
- data/generated/aserto/directory/reader/v3/reader_services_pb.rb +42 -0
- data/generated/aserto/directory/schema/v2/group_pb.rb +1 -1
- data/generated/aserto/directory/schema/v2/identity_pb.rb +1 -1
- data/generated/aserto/directory/schema/v2/tenant_pb.rb +48 -0
- data/generated/aserto/directory/schema/v2/user_pb.rb +1 -1
- data/generated/aserto/directory/schema/v3/group_pb.rb +42 -0
- data/generated/aserto/directory/schema/v3/identity_pb.rb +43 -0
- data/generated/aserto/directory/schema/v3/tenant_pb.rb +48 -0
- data/generated/aserto/directory/schema/v3/user_pb.rb +43 -0
- data/generated/aserto/directory/writer/v2/writer_pb.rb +2 -2
- data/generated/aserto/directory/writer/v3/writer_pb.rb +58 -0
- data/generated/aserto/directory/writer/v3/writer_services_pb.rb +33 -0
- data/generated/google/api/annotations_pb.rb +41 -0
- data/generated/google/api/field_behavior_pb.rb +40 -0
- data/generated/google/api/http_pb.rb +40 -0
- data/generated/protoc-gen-openapiv2/options/annotations_pb.rb +45 -0
- data/generated/protoc-gen-openapiv2/options/openapiv2_pb.rb +69 -0
- metadata +26 -4
@@ -0,0 +1,42 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: aserto/directory/reader/v3/reader.proto for package 'Aserto.Directory.Reader.V3'
|
3
|
+
|
4
|
+
require 'grpc'
|
5
|
+
require 'aserto/directory/reader/v3/reader_pb'
|
6
|
+
|
7
|
+
module Aserto
|
8
|
+
module Directory
|
9
|
+
module Reader
|
10
|
+
module V3
|
11
|
+
module Reader
|
12
|
+
class Service
|
13
|
+
|
14
|
+
include ::GRPC::GenericService
|
15
|
+
|
16
|
+
self.marshal_class_method = :encode
|
17
|
+
self.unmarshal_class_method = :decode
|
18
|
+
self.service_name = 'aserto.directory.reader.v3.Reader'
|
19
|
+
|
20
|
+
# object methods
|
21
|
+
rpc :GetObject, ::Aserto::Directory::Reader::V3::GetObjectRequest, ::Aserto::Directory::Reader::V3::GetObjectResponse
|
22
|
+
rpc :GetObjectMany, ::Aserto::Directory::Reader::V3::GetObjectManyRequest, ::Aserto::Directory::Reader::V3::GetObjectManyResponse
|
23
|
+
rpc :GetObjects, ::Aserto::Directory::Reader::V3::GetObjectsRequest, ::Aserto::Directory::Reader::V3::GetObjectsResponse
|
24
|
+
# relation methods
|
25
|
+
rpc :GetRelation, ::Aserto::Directory::Reader::V3::GetRelationRequest, ::Aserto::Directory::Reader::V3::GetRelationResponse
|
26
|
+
rpc :GetRelations, ::Aserto::Directory::Reader::V3::GetRelationsRequest, ::Aserto::Directory::Reader::V3::GetRelationsResponse
|
27
|
+
# check method
|
28
|
+
rpc :Check, ::Aserto::Directory::Reader::V3::CheckRequest, ::Aserto::Directory::Reader::V3::CheckResponse
|
29
|
+
# check permission method
|
30
|
+
rpc :CheckPermission, ::Aserto::Directory::Reader::V3::CheckPermissionRequest, ::Aserto::Directory::Reader::V3::CheckPermissionResponse
|
31
|
+
# check relation method
|
32
|
+
rpc :CheckRelation, ::Aserto::Directory::Reader::V3::CheckRelationRequest, ::Aserto::Directory::Reader::V3::CheckRelationResponse
|
33
|
+
# graph methods
|
34
|
+
rpc :GetGraph, ::Aserto::Directory::Reader::V3::GetGraphRequest, ::Aserto::Directory::Reader::V3::GetGraphResponse
|
35
|
+
end
|
36
|
+
|
37
|
+
Stub = Service.rpc_stub_class
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
@@ -11,7 +11,7 @@ pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
11
11
|
|
12
12
|
begin
|
13
13
|
pool.add_serialized_file(descriptor_data)
|
14
|
-
rescue TypeError
|
14
|
+
rescue TypeError
|
15
15
|
# Compatibility code: will be removed in the next major version.
|
16
16
|
require 'google/protobuf/descriptor_pb'
|
17
17
|
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
@@ -11,7 +11,7 @@ pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
11
11
|
|
12
12
|
begin
|
13
13
|
pool.add_serialized_file(descriptor_data)
|
14
|
-
rescue TypeError
|
14
|
+
rescue TypeError
|
15
15
|
# Compatibility code: will be removed in the next major version.
|
16
16
|
require 'google/protobuf/descriptor_pb'
|
17
17
|
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
@@ -0,0 +1,48 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: aserto/directory/schema/v2/tenant.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/protobuf/struct_pb'
|
8
|
+
|
9
|
+
|
10
|
+
descriptor_data = "\n\'aserto/directory/schema/v2/tenant.proto\x12\x1a\x61serto.directory.schema.v2\x1a\x1cgoogle/protobuf/struct.proto\"\xf7\x01\n\x10TenantProperties\x12:\n\x04kind\x18\x01 \x01(\x0e\x32&.aserto.directory.schema.v2.TenantKindR\x04kind\x12!\n\x0c\x64irectory_v2\x18\x02 \x01(\x08R\x0b\x64irectoryV2\x12*\n\x11\x64irectory_v2_only\x18\x03 \x01(\x08R\x0f\x64irectoryV2Only\x12L\n\x07\x61\x63\x63ount\x18\x04 \x01(\x0b\x32-.aserto.directory.schema.v2.AccountPropertiesH\x00R\x07\x61\x63\x63ount\x88\x01\x01\x42\n\n\x08_account\"\xc4\x01\n\x11\x41\x63\x63ountProperties\x12\x19\n\x08max_orgs\x18\x01 \x01(\x05R\x07maxOrgs\x12T\n\x0fgetting_started\x18\x03 \x01(\x0b\x32&.aserto.directory.schema.v2.GuideStateH\x00R\x0egettingStarted\x88\x01\x01\x12*\n\x11\x64\x65\x66\x61ult_tenant_id\x18\x04 \x01(\tR\x0f\x64\x65\x66\x61ultTenantIdB\x12\n\x10_getting_started\"O\n\nGuideState\x12\x12\n\x04show\x18\x01 \x01(\x08R\x04show\x12-\n\x05steps\x18\x02 \x01(\x0b\x32\x17.google.protobuf.StructR\x05steps*\\\n\nTenantKind\x12\x17\n\x13TENANT_KIND_UNKNOWN\x10\x00\x12\x1c\n\x18TENANT_KIND_ORGANIZATION\x10\x01\x12\x17\n\x13TENANT_KIND_ACCOUNT\x10\x02\x42\x80\x02\n\x1e\x63om.aserto.directory.schema.v2B\x0bTenantProtoP\x01ZDgithub.com/aserto-dev/go-directory/aserto/directory/schema/v2;schema\xa2\x02\x03\x41\x44S\xaa\x02\x1a\x41serto.Directory.Schema.V2\xca\x02\x1b\x41serto\\Directory_\\Schema\\V2\xe2\x02\'Aserto\\Directory_\\Schema\\V2\\GPBMetadata\xea\x02\x1d\x41serto::Directory::Schema::V2b\x06proto3"
|
11
|
+
|
12
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
13
|
+
|
14
|
+
begin
|
15
|
+
pool.add_serialized_file(descriptor_data)
|
16
|
+
rescue TypeError
|
17
|
+
# Compatibility code: will be removed in the next major version.
|
18
|
+
require 'google/protobuf/descriptor_pb'
|
19
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
20
|
+
parsed.clear_dependency
|
21
|
+
serialized = parsed.class.encode(parsed)
|
22
|
+
file = pool.add_serialized_file(serialized)
|
23
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
24
|
+
imports = [
|
25
|
+
["google.protobuf.Struct", "google/protobuf/struct.proto"],
|
26
|
+
]
|
27
|
+
imports.each do |type_name, expected_filename|
|
28
|
+
import_file = pool.lookup(type_name).file_descriptor
|
29
|
+
if import_file.name != expected_filename
|
30
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
31
|
+
end
|
32
|
+
end
|
33
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
34
|
+
warn "This will become an error in the next major version."
|
35
|
+
end
|
36
|
+
|
37
|
+
module Aserto
|
38
|
+
module Directory
|
39
|
+
module Schema
|
40
|
+
module V2
|
41
|
+
TenantProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.schema.v2.TenantProperties").msgclass
|
42
|
+
AccountProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.schema.v2.AccountProperties").msgclass
|
43
|
+
GuideState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.schema.v2.GuideState").msgclass
|
44
|
+
TenantKind = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.schema.v2.TenantKind").enummodule
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
@@ -11,7 +11,7 @@ pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
11
11
|
|
12
12
|
begin
|
13
13
|
pool.add_serialized_file(descriptor_data)
|
14
|
-
rescue TypeError
|
14
|
+
rescue TypeError
|
15
15
|
# Compatibility code: will be removed in the next major version.
|
16
16
|
require 'google/protobuf/descriptor_pb'
|
17
17
|
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
@@ -0,0 +1,42 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: aserto/directory/schema/v3/group.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
|
8
|
+
descriptor_data = "\n&aserto/directory/schema/v3/group.proto\x12\x1a\x61serto.directory.schema.v3\"6\n\x0fGroupProperties\x12#\n\rconnection_id\x18\x01 \x01(\tR\x0c\x63onnectionIdB\xff\x01\n\x1e\x63om.aserto.directory.schema.v3B\nGroupProtoP\x01ZDgithub.com/aserto-dev/go-directory/aserto/directory/schema/v3;schema\xa2\x02\x03\x41\x44S\xaa\x02\x1a\x41serto.Directory.Schema.V3\xca\x02\x1b\x41serto\\Directory_\\Schema\\V3\xe2\x02\'Aserto\\Directory_\\Schema\\V3\\GPBMetadata\xea\x02\x1d\x41serto::Directory::Schema::V3b\x06proto3"
|
9
|
+
|
10
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
11
|
+
|
12
|
+
begin
|
13
|
+
pool.add_serialized_file(descriptor_data)
|
14
|
+
rescue TypeError
|
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 Aserto
|
35
|
+
module Directory
|
36
|
+
module Schema
|
37
|
+
module V3
|
38
|
+
GroupProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.schema.v3.GroupProperties").msgclass
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: aserto/directory/schema/v3/identity.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
|
8
|
+
descriptor_data = "\n)aserto/directory/schema/v3/identity.proto\x12\x1a\x61serto.directory.schema.v3\"\xc6\x01\n\x12IdentityProperties\x12<\n\x04kind\x18\x01 \x01(\x0e\x32(.aserto.directory.schema.v3.IdentityKindR\x04kind\x12\x1a\n\x08provider\x18\x02 \x01(\tR\x08provider\x12\x1a\n\x08verified\x18\x03 \x01(\x08R\x08verified\x12(\n\rconnection_id\x18\x04 \x01(\tH\x00R\x0c\x63onnectionId\x88\x01\x01\x42\x10\n\x0e_connection_id*\xbd\x01\n\x0cIdentityKind\x12\x19\n\x15IDENTITY_KIND_UNKNOWN\x10\x00\x12\x15\n\x11IDENTITY_KIND_PID\x10\x01\x12\x17\n\x13IDENTITY_KIND_EMAIL\x10\x02\x12\x1a\n\x16IDENTITY_KIND_USERNAME\x10\x03\x12\x14\n\x10IDENTITY_KIND_DN\x10\x04\x12\x17\n\x13IDENTITY_KIND_PHONE\x10\x05\x12\x17\n\x13IDENTITY_KIND_EMPID\x10\x06\x42\x82\x02\n\x1e\x63om.aserto.directory.schema.v3B\rIdentityProtoP\x01ZDgithub.com/aserto-dev/go-directory/aserto/directory/schema/v3;schema\xa2\x02\x03\x41\x44S\xaa\x02\x1a\x41serto.Directory.Schema.V3\xca\x02\x1b\x41serto\\Directory_\\Schema\\V3\xe2\x02\'Aserto\\Directory_\\Schema\\V3\\GPBMetadata\xea\x02\x1d\x41serto::Directory::Schema::V3b\x06proto3"
|
9
|
+
|
10
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
11
|
+
|
12
|
+
begin
|
13
|
+
pool.add_serialized_file(descriptor_data)
|
14
|
+
rescue TypeError
|
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 Aserto
|
35
|
+
module Directory
|
36
|
+
module Schema
|
37
|
+
module V3
|
38
|
+
IdentityProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.schema.v3.IdentityProperties").msgclass
|
39
|
+
IdentityKind = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.schema.v3.IdentityKind").enummodule
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: aserto/directory/schema/v3/tenant.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/protobuf/struct_pb'
|
8
|
+
|
9
|
+
|
10
|
+
descriptor_data = "\n\'aserto/directory/schema/v3/tenant.proto\x12\x1a\x61serto.directory.schema.v3\x1a\x1cgoogle/protobuf/struct.proto\"\xf7\x01\n\x10TenantProperties\x12:\n\x04kind\x18\x01 \x01(\x0e\x32&.aserto.directory.schema.v3.TenantKindR\x04kind\x12!\n\x0c\x64irectory_v2\x18\x02 \x01(\x08R\x0b\x64irectoryV2\x12*\n\x11\x64irectory_v2_only\x18\x03 \x01(\x08R\x0f\x64irectoryV2Only\x12L\n\x07\x61\x63\x63ount\x18\x04 \x01(\x0b\x32-.aserto.directory.schema.v3.AccountPropertiesH\x00R\x07\x61\x63\x63ount\x88\x01\x01\x42\n\n\x08_account\"\xc4\x01\n\x11\x41\x63\x63ountProperties\x12\x19\n\x08max_orgs\x18\x01 \x01(\x05R\x07maxOrgs\x12T\n\x0fgetting_started\x18\x03 \x01(\x0b\x32&.aserto.directory.schema.v3.GuideStateH\x00R\x0egettingStarted\x88\x01\x01\x12*\n\x11\x64\x65\x66\x61ult_tenant_id\x18\x04 \x01(\tR\x0f\x64\x65\x66\x61ultTenantIdB\x12\n\x10_getting_started\"O\n\nGuideState\x12\x12\n\x04show\x18\x01 \x01(\x08R\x04show\x12-\n\x05steps\x18\x02 \x01(\x0b\x32\x17.google.protobuf.StructR\x05steps*\\\n\nTenantKind\x12\x17\n\x13TENANT_KIND_UNKNOWN\x10\x00\x12\x1c\n\x18TENANT_KIND_ORGANIZATION\x10\x01\x12\x17\n\x13TENANT_KIND_ACCOUNT\x10\x02\x42\x80\x02\n\x1e\x63om.aserto.directory.schema.v3B\x0bTenantProtoP\x01ZDgithub.com/aserto-dev/go-directory/aserto/directory/schema/v3;schema\xa2\x02\x03\x41\x44S\xaa\x02\x1a\x41serto.Directory.Schema.V3\xca\x02\x1b\x41serto\\Directory_\\Schema\\V3\xe2\x02\'Aserto\\Directory_\\Schema\\V3\\GPBMetadata\xea\x02\x1d\x41serto::Directory::Schema::V3b\x06proto3"
|
11
|
+
|
12
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
13
|
+
|
14
|
+
begin
|
15
|
+
pool.add_serialized_file(descriptor_data)
|
16
|
+
rescue TypeError
|
17
|
+
# Compatibility code: will be removed in the next major version.
|
18
|
+
require 'google/protobuf/descriptor_pb'
|
19
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
20
|
+
parsed.clear_dependency
|
21
|
+
serialized = parsed.class.encode(parsed)
|
22
|
+
file = pool.add_serialized_file(serialized)
|
23
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
24
|
+
imports = [
|
25
|
+
["google.protobuf.Struct", "google/protobuf/struct.proto"],
|
26
|
+
]
|
27
|
+
imports.each do |type_name, expected_filename|
|
28
|
+
import_file = pool.lookup(type_name).file_descriptor
|
29
|
+
if import_file.name != expected_filename
|
30
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
31
|
+
end
|
32
|
+
end
|
33
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
34
|
+
warn "This will become an error in the next major version."
|
35
|
+
end
|
36
|
+
|
37
|
+
module Aserto
|
38
|
+
module Directory
|
39
|
+
module Schema
|
40
|
+
module V3
|
41
|
+
TenantProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.schema.v3.TenantProperties").msgclass
|
42
|
+
AccountProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.schema.v3.AccountProperties").msgclass
|
43
|
+
GuideState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.schema.v3.GuideState").msgclass
|
44
|
+
TenantKind = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.schema.v3.TenantKind").enummodule
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: aserto/directory/schema/v3/user.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
|
8
|
+
descriptor_data = "\n%aserto/directory/schema/v3/user.proto\x12\x1a\x61serto.directory.schema.v3\"\xbf\x01\n\x0eUserProperties\x12\x14\n\x05\x65mail\x18\x01 \x01(\tR\x05\x65mail\x12\x18\n\x07picture\x18\x02 \x01(\tR\x07picture\x12>\n\x06status\x18\x03 \x01(\x0e\x32&.aserto.directory.schema.v3.UserStatusR\x06status\x12\x18\n\x07\x65nabled\x18\x04 \x01(\x08R\x07\x65nabled\x12#\n\rconnection_id\x18\x05 \x01(\tR\x0c\x63onnectionId*\x84\x02\n\nUserStatus\x12\x17\n\x13USER_STATUS_UNKNOWN\x10\x00\x12\x16\n\x12USER_STATUS_STAGED\x10\x01\x12\x1b\n\x17USER_STATUS_PROVISIONED\x10\x02\x12\x16\n\x12USER_STATUS_ACTIVE\x10\x03\x12\x18\n\x14USER_STATUS_RECOVERY\x10\x04\x12 \n\x1cUSER_STATUS_PASSWORD_EXPIRED\x10\x05\x12\x1a\n\x16USER_STATUS_LOCKED_OUT\x10\x06\x12\x19\n\x15USER_STATUS_SUSPENDED\x10\x07\x12\x1d\n\x19USER_STATUS_DEPROVISIONED\x10\x08\x42\xfe\x01\n\x1e\x63om.aserto.directory.schema.v3B\tUserProtoP\x01ZDgithub.com/aserto-dev/go-directory/aserto/directory/schema/v3;schema\xa2\x02\x03\x41\x44S\xaa\x02\x1a\x41serto.Directory.Schema.V3\xca\x02\x1b\x41serto\\Directory_\\Schema\\V3\xe2\x02\'Aserto\\Directory_\\Schema\\V3\\GPBMetadata\xea\x02\x1d\x41serto::Directory::Schema::V3b\x06proto3"
|
9
|
+
|
10
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
11
|
+
|
12
|
+
begin
|
13
|
+
pool.add_serialized_file(descriptor_data)
|
14
|
+
rescue TypeError
|
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 Aserto
|
35
|
+
module Directory
|
36
|
+
module Schema
|
37
|
+
module V3
|
38
|
+
UserProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.schema.v3.UserProperties").msgclass
|
39
|
+
UserStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.schema.v3.UserStatus").enummodule
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
@@ -8,13 +8,13 @@ require 'google/protobuf/empty_pb'
|
|
8
8
|
require 'aserto/directory/common/v2/common_pb'
|
9
9
|
|
10
10
|
|
11
|
-
descriptor_data = "\n\'aserto/directory/writer/v2/writer.proto\x12\x1a\x61serto.directory.writer.v2\x1a\x1bgoogle/protobuf/empty.proto\x1a\'aserto/directory/common/v2/common.proto\"_\n\x14SetObjectTypeRequest\x12G\n\x0bobject_type\x18\x01 \x01(\x0b\x32&.aserto.directory.common.v2.ObjectTypeR\nobjectType\"W\n\x15SetObjectTypeResponse\x12>\n\x06result\x18\x01 \x01(\x0b\x32&.aserto.directory.common.v2.ObjectTypeR\x06result\"a\n\x17\x44\x65leteObjectTypeRequest\x12\x46\n\x05param\x18\x01 \x01(\x0b\x32\x30.aserto.directory.common.v2.ObjectTypeIdentifierR\x05param\"J\n\x18\x44\x65leteObjectTypeResponse\x12.\n\x06result\x18\x01 \x01(\x0b\x32\x16.google.protobuf.EmptyR\x06result\"g\n\x16SetRelationTypeRequest\x12M\n\rrelation_type\x18\x01 \x01(\x0b\x32(.aserto.directory.common.v2.RelationTypeR\x0crelationType\"[\n\x17SetRelationTypeResponse\x12@\n\x06result\x18\x01 \x01(\x0b\x32(.aserto.directory.common.v2.RelationTypeR\x06result\"e\n\x19\x44\x65leteRelationTypeRequest\x12H\n\x05param\x18\x01 \x01(\x0b\x32\x32.aserto.directory.common.v2.RelationTypeIdentifierR\x05param\"L\n\x1a\x44\x65leteRelationTypeResponse\x12.\n\x06result\x18\x01 \x01(\x0b\x32\x16.google.protobuf.EmptyR\x06result\"^\n\x14SetPermissionRequest\x12\x46\n\npermission\x18\x01 \x01(\x0b\x32&.aserto.directory.common.v2.PermissionR\npermission\"W\n\x15SetPermissionResponse\x12>\n\x06result\x18\x01 \x01(\x0b\x32&.aserto.directory.common.v2.PermissionR\x06result\"a\n\x17\x44\x65letePermissionRequest\x12\x46\n\x05param\x18\x01 \x01(\x0b\x32\x30.aserto.directory.common.v2.PermissionIdentifierR\x05param\"J\n\x18\x44\x65letePermissionResponse\x12.\n\x06result\x18\x01 \x01(\x0b\x32\x16.google.protobuf.EmptyR\x06result\"N\n\x10SetObjectRequest\x12:\n\x06object\x18\x01 \x01(\x0b\x32\".aserto.directory.common.v2.ObjectR\x06object\"O\n\x11SetObjectResponse\x12:\n\x06result\x18\x01 \x01(\x0b\x32\".aserto.directory.common.v2.ObjectR\x06result\"
|
11
|
+
descriptor_data = "\n\'aserto/directory/writer/v2/writer.proto\x12\x1a\x61serto.directory.writer.v2\x1a\x1bgoogle/protobuf/empty.proto\x1a\'aserto/directory/common/v2/common.proto\"_\n\x14SetObjectTypeRequest\x12G\n\x0bobject_type\x18\x01 \x01(\x0b\x32&.aserto.directory.common.v2.ObjectTypeR\nobjectType\"W\n\x15SetObjectTypeResponse\x12>\n\x06result\x18\x01 \x01(\x0b\x32&.aserto.directory.common.v2.ObjectTypeR\x06result\"a\n\x17\x44\x65leteObjectTypeRequest\x12\x46\n\x05param\x18\x01 \x01(\x0b\x32\x30.aserto.directory.common.v2.ObjectTypeIdentifierR\x05param\"J\n\x18\x44\x65leteObjectTypeResponse\x12.\n\x06result\x18\x01 \x01(\x0b\x32\x16.google.protobuf.EmptyR\x06result\"g\n\x16SetRelationTypeRequest\x12M\n\rrelation_type\x18\x01 \x01(\x0b\x32(.aserto.directory.common.v2.RelationTypeR\x0crelationType\"[\n\x17SetRelationTypeResponse\x12@\n\x06result\x18\x01 \x01(\x0b\x32(.aserto.directory.common.v2.RelationTypeR\x06result\"e\n\x19\x44\x65leteRelationTypeRequest\x12H\n\x05param\x18\x01 \x01(\x0b\x32\x32.aserto.directory.common.v2.RelationTypeIdentifierR\x05param\"L\n\x1a\x44\x65leteRelationTypeResponse\x12.\n\x06result\x18\x01 \x01(\x0b\x32\x16.google.protobuf.EmptyR\x06result\"^\n\x14SetPermissionRequest\x12\x46\n\npermission\x18\x01 \x01(\x0b\x32&.aserto.directory.common.v2.PermissionR\npermission\"W\n\x15SetPermissionResponse\x12>\n\x06result\x18\x01 \x01(\x0b\x32&.aserto.directory.common.v2.PermissionR\x06result\"a\n\x17\x44\x65letePermissionRequest\x12\x46\n\x05param\x18\x01 \x01(\x0b\x32\x30.aserto.directory.common.v2.PermissionIdentifierR\x05param\"J\n\x18\x44\x65letePermissionResponse\x12.\n\x06result\x18\x01 \x01(\x0b\x32\x16.google.protobuf.EmptyR\x06result\"N\n\x10SetObjectRequest\x12:\n\x06object\x18\x01 \x01(\x0b\x32\".aserto.directory.common.v2.ObjectR\x06object\"O\n\x11SetObjectResponse\x12:\n\x06result\x18\x01 \x01(\x0b\x32\".aserto.directory.common.v2.ObjectR\x06result\"\x98\x01\n\x13\x44\x65leteObjectRequest\x12\x42\n\x05param\x18\x01 \x01(\x0b\x32,.aserto.directory.common.v2.ObjectIdentifierR\x05param\x12*\n\x0ewith_relations\x18\x02 \x01(\x08H\x00R\rwithRelations\x88\x01\x01\x42\x11\n\x0f_with_relations\"F\n\x14\x44\x65leteObjectResponse\x12.\n\x06result\x18\x01 \x01(\x0b\x32\x16.google.protobuf.EmptyR\x06result\"V\n\x12SetRelationRequest\x12@\n\x08relation\x18\x01 \x01(\x0b\x32$.aserto.directory.common.v2.RelationR\x08relation\"S\n\x13SetRelationResponse\x12<\n\x06result\x18\x01 \x01(\x0b\x32$.aserto.directory.common.v2.RelationR\x06result\"]\n\x15\x44\x65leteRelationRequest\x12\x44\n\x05param\x18\x01 \x01(\x0b\x32..aserto.directory.common.v2.RelationIdentifierR\x05param\"H\n\x16\x44\x65leteRelationResponse\x12.\n\x06result\x18\x01 \x01(\x0b\x32\x16.google.protobuf.EmptyR\x06result2\xce\t\n\x06Writer\x12v\n\rSetObjectType\x12\x30.aserto.directory.writer.v2.SetObjectTypeRequest\x1a\x31.aserto.directory.writer.v2.SetObjectTypeResponse\"\x00\x12\x7f\n\x10\x44\x65leteObjectType\x12\x33.aserto.directory.writer.v2.DeleteObjectTypeRequest\x1a\x34.aserto.directory.writer.v2.DeleteObjectTypeResponse\"\x00\x12|\n\x0fSetRelationType\x12\x32.aserto.directory.writer.v2.SetRelationTypeRequest\x1a\x33.aserto.directory.writer.v2.SetRelationTypeResponse\"\x00\x12\x85\x01\n\x12\x44\x65leteRelationType\x12\x35.aserto.directory.writer.v2.DeleteRelationTypeRequest\x1a\x36.aserto.directory.writer.v2.DeleteRelationTypeResponse\"\x00\x12v\n\rSetPermission\x12\x30.aserto.directory.writer.v2.SetPermissionRequest\x1a\x31.aserto.directory.writer.v2.SetPermissionResponse\"\x00\x12\x7f\n\x10\x44\x65letePermission\x12\x33.aserto.directory.writer.v2.DeletePermissionRequest\x1a\x34.aserto.directory.writer.v2.DeletePermissionResponse\"\x00\x12j\n\tSetObject\x12,.aserto.directory.writer.v2.SetObjectRequest\x1a-.aserto.directory.writer.v2.SetObjectResponse\"\x00\x12s\n\x0c\x44\x65leteObject\x12/.aserto.directory.writer.v2.DeleteObjectRequest\x1a\x30.aserto.directory.writer.v2.DeleteObjectResponse\"\x00\x12p\n\x0bSetRelation\x12..aserto.directory.writer.v2.SetRelationRequest\x1a/.aserto.directory.writer.v2.SetRelationResponse\"\x00\x12y\n\x0e\x44\x65leteRelation\x12\x31.aserto.directory.writer.v2.DeleteRelationRequest\x1a\x32.aserto.directory.writer.v2.DeleteRelationResponse\"\x00\x42\x80\x02\n\x1e\x63om.aserto.directory.writer.v2B\x0bWriterProtoP\x01ZDgithub.com/aserto-dev/go-directory/aserto/directory/writer/v2;writer\xa2\x02\x03\x41\x44W\xaa\x02\x1a\x41serto.Directory.Writer.V2\xca\x02\x1b\x41serto\\Directory_\\Writer\\V2\xe2\x02\'Aserto\\Directory_\\Writer\\V2\\GPBMetadata\xea\x02\x1d\x41serto::Directory::Writer::V2b\x06proto3"
|
12
12
|
|
13
13
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
14
14
|
|
15
15
|
begin
|
16
16
|
pool.add_serialized_file(descriptor_data)
|
17
|
-
rescue TypeError
|
17
|
+
rescue TypeError
|
18
18
|
# Compatibility code: will be removed in the next major version.
|
19
19
|
require 'google/protobuf/descriptor_pb'
|
20
20
|
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
@@ -0,0 +1,58 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: aserto/directory/writer/v3/writer.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/protobuf/empty_pb'
|
8
|
+
require 'google/api/annotations_pb'
|
9
|
+
require 'google/api/field_behavior_pb'
|
10
|
+
require 'protoc-gen-openapiv2/options/annotations_pb'
|
11
|
+
require 'buf/validate/validate_pb'
|
12
|
+
require 'aserto/directory/common/v3/common_pb'
|
13
|
+
|
14
|
+
|
15
|
+
descriptor_data = "\n\'aserto/directory/writer/v3/writer.proto\x12\x1a\x61serto.directory.writer.v3\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\x1a\x1b\x62uf/validate/validate.proto\x1a\'aserto/directory/common/v3/common.proto\"Z\n\x10SetObjectRequest\x12\x46\n\x06object\x18\x01 \x01(\x0b\x32\".aserto.directory.common.v3.ObjectB\n\xe2\x41\x01\x02\xbaH\x03\xc8\x01\x01R\x06object\"O\n\x11SetObjectResponse\x12:\n\x06result\x18\x01 \x01(\x0b\x32\".aserto.directory.common.v3.ObjectR\x06result\"\xf6\x03\n\x13\x44\x65leteObjectRequest\x12\x92\x02\n\x0bobject_type\x18\x01 \x01(\tB\xf0\x01\xe2\x41\x01\x02\xbaH\xe8\x01r\x02\x18@\xba\x01\xdd\x01\n\x19\x64\x65lete_object.object_type\x12\x8b\x01must be all lowercase, start with a letter, can contain letters, digits, dots, underscores, and dashes, and must end with a letter or digit\x1a\x32this.matches(\'^[a-z][a-z0-9\\\\._-]{1,62}[a-z0-9]$\')\xc8\x01\x01R\nobjectType\x12\x9c\x01\n\tobject_id\x18\x02 \x01(\tB\x7f\xe2\x41\x01\x02\xbaHxr\x03\x18\x80\x02\xba\x01m\n\x17\x64\x65lete_object.object_id\x12\x38\x63\x61nnot contain any spaces or other whitespace characters\x1a\x18this.matches(\'^[\\\\S]+$\')\xc8\x01\x01R\x08objectId\x12+\n\x0ewith_relations\x18\x03 \x01(\x08\x42\x04\xe2\x41\x01\x01R\rwithRelations\"F\n\x14\x44\x65leteObjectResponse\x12.\n\x06result\x18\x01 \x01(\x0b\x32\x16.google.protobuf.EmptyR\x06result\"b\n\x12SetRelationRequest\x12L\n\x08relation\x18\x01 \x01(\x0b\x32$.aserto.directory.common.v3.RelationB\n\xe2\x41\x01\x02\xbaH\x03\xc8\x01\x01R\x08relation\"S\n\x13SetRelationResponse\x12<\n\x06result\x18\x01 \x01(\x0b\x32$.aserto.directory.common.v3.RelationR\x06result\"\xc1\x0b\n\x15\x44\x65leteRelationRequest\x12\x91\x02\n\x0bobject_type\x18\x01 \x01(\tB\xef\x01\xe2\x41\x01\x02\xbaH\xe7\x01r\x02\x18@\xba\x01\xdf\x01\n\x1b\x64\x65lete_relation.object_type\x12\x8b\x01must be all lowercase, start with a letter, can contain letters, digits, dots, underscores, and dashes, and must end with a letter or digit\x1a\x32this.matches(\'^[a-z][a-z0-9\\\\._-]{1,62}[a-z0-9]$\')R\nobjectType\x12\x9f\x01\n\tobject_id\x18\x02 \x01(\tB\x81\x01\xe2\x41\x01\x02\xbaHzr\x03\x18\x80\x02\xba\x01o\n\x19\x64\x65lete_relation.object_id\x12\x38\x63\x61nnot contain any spaces or other whitespace characters\x1a\x18this.matches(\'^[\\\\S]+$\')\xc8\x01\x01R\x08objectId\x12\x8c\x02\n\x08relation\x18\x03 \x01(\tB\xef\x01\xe2\x41\x01\x02\xbaH\xe7\x01r\x02\x18@\xba\x01\xdc\x01\n\x18\x64\x65lete_relation.relation\x12\x8b\x01must be all lowercase, start with a letter, can contain letters, digits, dots, underscores, and dashes, and must end with a letter or digit\x1a\x32this.matches(\'^[a-z][a-z0-9\\\\._-]{1,62}[a-z0-9]$\')\xc8\x01\x01R\x08relation\x12\x97\x02\n\x0csubject_type\x18\x04 \x01(\tB\xf3\x01\xe2\x41\x01\x02\xbaH\xeb\x01r\x02\x18@\xba\x01\xe0\x01\n\x1c\x64\x65lete_relation.subject_type\x12\x8b\x01must be all lowercase, start with a letter, can contain letters, digits, dots, underscores, and dashes, and must end with a letter or digit\x1a\x32this.matches(\'^[a-z][a-z0-9\\\\._-]{1,62}[a-z0-9]$\')\xc8\x01\x01R\x0bsubjectType\x12\xa2\x01\n\nsubject_id\x18\x05 \x01(\tB\x82\x01\xe2\x41\x01\x02\xbaH{r\x03\x18\x80\x02\xba\x01p\n\x1a\x64\x65lete_relation.subject_id\x12\x38\x63\x61nnot contain any spaces or other whitespace characters\x1a\x18this.matches(\'^[\\\\S]+$\')\xc8\x01\x01R\tsubjectId\x12\xa3\x02\n\x10subject_relation\x18\x06 \x01(\tB\xf7\x01\xe2\x41\x01\x01\xbaH\xef\x01r\x02\x18@\xba\x01\xe4\x01\n delete_relation.subject_relation\x12\x8b\x01must be all lowercase, start with a letter, can contain letters, digits, dots, underscores, and dashes, and must end with a letter or digit\x1a\x32this.matches(\'^[a-z][a-z0-9\\\\._-]{1,62}[a-z0-9]$\')\xd0\x01\x01R\x0fsubjectRelation\"H\n\x16\x44\x65leteRelationResponse\x12.\n\x06result\x18\x01 \x01(\x0b\x32\x16.google.protobuf.EmptyR\x06result2\xb4\x08\n\x06Writer\x12\xf3\x01\n\tSetObject\x12,.aserto.directory.writer.v3.SetObjectRequest\x1a-.aserto.directory.writer.v3.SetObjectResponse\"\x88\x01\x92\x41\x62\n\tdirectory\x12\nSet object\x1a\x0bSet object.*\x17\x64irectory.v3.object.setb#\n\x13\n\x0f\x44irectoryAPIKey\x12\x00\n\x0c\n\x08TenantID\x12\x00\x82\xd3\xe4\x93\x02\x1d\"\x18/api/v3/directory/object:\x01*\x12\x9c\x02\n\x0c\x44\x65leteObject\x12/.aserto.directory.writer.v3.DeleteObjectRequest\x1a\x30.aserto.directory.writer.v3.DeleteObjectResponse\"\xa8\x01\x92\x41k\n\tdirectory\x12\rDelete object\x1a\x0e\x44\x65lete object.*\x1a\x64irectory.v3.object.deleteb#\n\x13\n\x0f\x44irectoryAPIKey\x12\x00\n\x0c\n\x08TenantID\x12\x00\x82\xd3\xe4\x93\x02\x34*2/api/v3/directory/object/{object_type}/{object_id}\x12\x81\x02\n\x0bSetRelation\x12..aserto.directory.writer.v3.SetRelationRequest\x1a/.aserto.directory.writer.v3.SetRelationResponse\"\x90\x01\x92\x41h\n\tdirectory\x12\x0cSet relation\x1a\rSet relation.*\x19\x64irectory.v3.relation.setb#\n\x13\n\x0f\x44irectoryAPIKey\x12\x00\n\x0c\n\x08TenantID\x12\x00\x82\xd3\xe4\x93\x02\x1f\"\x1a/api/v3/directory/relation:\x01*\x12\x90\x02\n\x0e\x44\x65leteRelation\x12\x31.aserto.directory.writer.v3.DeleteRelationRequest\x1a\x32.aserto.directory.writer.v3.DeleteRelationResponse\"\x96\x01\x92\x41q\n\tdirectory\x12\x0f\x44\x65lete relation\x1a\x10\x44\x65lete relation.*\x1c\x64irectory.v3.relation.deleteb#\n\x13\n\x0f\x44irectoryAPIKey\x12\x00\n\x0c\n\x08TenantID\x12\x00\x82\xd3\xe4\x93\x02\x1c*\x1a/api/v3/directory/relationB\x80\x02\n\x1e\x63om.aserto.directory.writer.v3B\x0bWriterProtoP\x01ZDgithub.com/aserto-dev/go-directory/aserto/directory/writer/v3;writer\xa2\x02\x03\x41\x44W\xaa\x02\x1a\x41serto.Directory.Writer.V3\xca\x02\x1b\x41serto\\Directory_\\Writer\\V3\xe2\x02\'Aserto\\Directory_\\Writer\\V3\\GPBMetadata\xea\x02\x1d\x41serto::Directory::Writer::V3b\x06proto3"
|
16
|
+
|
17
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
18
|
+
|
19
|
+
begin
|
20
|
+
pool.add_serialized_file(descriptor_data)
|
21
|
+
rescue TypeError
|
22
|
+
# Compatibility code: will be removed in the next major version.
|
23
|
+
require 'google/protobuf/descriptor_pb'
|
24
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
25
|
+
parsed.clear_dependency
|
26
|
+
serialized = parsed.class.encode(parsed)
|
27
|
+
file = pool.add_serialized_file(serialized)
|
28
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
29
|
+
imports = [
|
30
|
+
["aserto.directory.common.v3.Object", "aserto/directory/common/v3/common.proto"],
|
31
|
+
["google.protobuf.Empty", "google/protobuf/empty.proto"],
|
32
|
+
]
|
33
|
+
imports.each do |type_name, expected_filename|
|
34
|
+
import_file = pool.lookup(type_name).file_descriptor
|
35
|
+
if import_file.name != expected_filename
|
36
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
37
|
+
end
|
38
|
+
end
|
39
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
40
|
+
warn "This will become an error in the next major version."
|
41
|
+
end
|
42
|
+
|
43
|
+
module Aserto
|
44
|
+
module Directory
|
45
|
+
module Writer
|
46
|
+
module V3
|
47
|
+
SetObjectRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.writer.v3.SetObjectRequest").msgclass
|
48
|
+
SetObjectResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.writer.v3.SetObjectResponse").msgclass
|
49
|
+
DeleteObjectRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.writer.v3.DeleteObjectRequest").msgclass
|
50
|
+
DeleteObjectResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.writer.v3.DeleteObjectResponse").msgclass
|
51
|
+
SetRelationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.writer.v3.SetRelationRequest").msgclass
|
52
|
+
SetRelationResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.writer.v3.SetRelationResponse").msgclass
|
53
|
+
DeleteRelationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.writer.v3.DeleteRelationRequest").msgclass
|
54
|
+
DeleteRelationResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("aserto.directory.writer.v3.DeleteRelationResponse").msgclass
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: aserto/directory/writer/v3/writer.proto for package 'Aserto.Directory.Writer.V3'
|
3
|
+
|
4
|
+
require 'grpc'
|
5
|
+
require 'aserto/directory/writer/v3/writer_pb'
|
6
|
+
|
7
|
+
module Aserto
|
8
|
+
module Directory
|
9
|
+
module Writer
|
10
|
+
module V3
|
11
|
+
module Writer
|
12
|
+
class Service
|
13
|
+
|
14
|
+
include ::GRPC::GenericService
|
15
|
+
|
16
|
+
self.marshal_class_method = :encode
|
17
|
+
self.unmarshal_class_method = :decode
|
18
|
+
self.service_name = 'aserto.directory.writer.v3.Writer'
|
19
|
+
|
20
|
+
# object methods
|
21
|
+
rpc :SetObject, ::Aserto::Directory::Writer::V3::SetObjectRequest, ::Aserto::Directory::Writer::V3::SetObjectResponse
|
22
|
+
rpc :DeleteObject, ::Aserto::Directory::Writer::V3::DeleteObjectRequest, ::Aserto::Directory::Writer::V3::DeleteObjectResponse
|
23
|
+
# relation methods
|
24
|
+
rpc :SetRelation, ::Aserto::Directory::Writer::V3::SetRelationRequest, ::Aserto::Directory::Writer::V3::SetRelationResponse
|
25
|
+
rpc :DeleteRelation, ::Aserto::Directory::Writer::V3::DeleteRelationRequest, ::Aserto::Directory::Writer::V3::DeleteRelationResponse
|
26
|
+
end
|
27
|
+
|
28
|
+
Stub = Service.rpc_stub_class
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: google/api/annotations.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/api/http_pb'
|
8
|
+
require 'google/protobuf/descriptor_pb'
|
9
|
+
|
10
|
+
|
11
|
+
descriptor_data = "\n\x1cgoogle/api/annotations.proto\x12\ngoogle.api\x1a\x15google/api/http.proto\x1a google/protobuf/descriptor.proto:K\n\x04http\x12\x1e.google.protobuf.MethodOptions\x18\xb0\xca\xbc\" \x01(\x0b\x32\x14.google.api.HttpRuleR\x04httpB\xae\x01\n\x0e\x63om.google.apiB\x10\x41nnotationsProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xa2\x02\x03GAX\xaa\x02\nGoogle.Api\xca\x02\nGoogle\\Api\xe2\x02\x16Google\\Api\\GPBMetadata\xea\x02\x0bGoogle::Apib\x06proto3"
|
12
|
+
|
13
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
14
|
+
|
15
|
+
begin
|
16
|
+
pool.add_serialized_file(descriptor_data)
|
17
|
+
rescue TypeError
|
18
|
+
# Compatibility code: will be removed in the next major version.
|
19
|
+
require 'google/protobuf/descriptor_pb'
|
20
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
21
|
+
parsed.clear_dependency
|
22
|
+
serialized = parsed.class.encode(parsed)
|
23
|
+
file = pool.add_serialized_file(serialized)
|
24
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
25
|
+
imports = [
|
26
|
+
["google.api.HttpRule", "google/api/http.proto"],
|
27
|
+
]
|
28
|
+
imports.each do |type_name, expected_filename|
|
29
|
+
import_file = pool.lookup(type_name).file_descriptor
|
30
|
+
if import_file.name != expected_filename
|
31
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
32
|
+
end
|
33
|
+
end
|
34
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
35
|
+
warn "This will become an error in the next major version."
|
36
|
+
end
|
37
|
+
|
38
|
+
module Google
|
39
|
+
module Api
|
40
|
+
end
|
41
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: google/api/field_behavior.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/protobuf/descriptor_pb'
|
8
|
+
|
9
|
+
|
10
|
+
descriptor_data = "\n\x1fgoogle/api/field_behavior.proto\x12\ngoogle.api\x1a google/protobuf/descriptor.proto*\xb6\x01\n\rFieldBehavior\x12\x1e\n\x1a\x46IELD_BEHAVIOR_UNSPECIFIED\x10\x00\x12\x0c\n\x08OPTIONAL\x10\x01\x12\x0c\n\x08REQUIRED\x10\x02\x12\x0f\n\x0bOUTPUT_ONLY\x10\x03\x12\x0e\n\nINPUT_ONLY\x10\x04\x12\r\n\tIMMUTABLE\x10\x05\x12\x12\n\x0eUNORDERED_LIST\x10\x06\x12\x15\n\x11NON_EMPTY_DEFAULT\x10\x07\x12\x0e\n\nIDENTIFIER\x10\x08:`\n\x0e\x66ield_behavior\x12\x1d.google.protobuf.FieldOptions\x18\x9c\x08 \x03(\x0e\x32\x19.google.api.FieldBehaviorR\rfieldBehaviorB\xb0\x01\n\x0e\x63om.google.apiB\x12\x46ieldBehaviorProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xa2\x02\x03GAX\xaa\x02\nGoogle.Api\xca\x02\nGoogle\\Api\xe2\x02\x16Google\\Api\\GPBMetadata\xea\x02\x0bGoogle::Apib\x06proto3"
|
11
|
+
|
12
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
13
|
+
|
14
|
+
begin
|
15
|
+
pool.add_serialized_file(descriptor_data)
|
16
|
+
rescue TypeError
|
17
|
+
# Compatibility code: will be removed in the next major version.
|
18
|
+
require 'google/protobuf/descriptor_pb'
|
19
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
20
|
+
parsed.clear_dependency
|
21
|
+
serialized = parsed.class.encode(parsed)
|
22
|
+
file = pool.add_serialized_file(serialized)
|
23
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
24
|
+
imports = [
|
25
|
+
]
|
26
|
+
imports.each do |type_name, expected_filename|
|
27
|
+
import_file = pool.lookup(type_name).file_descriptor
|
28
|
+
if import_file.name != expected_filename
|
29
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
30
|
+
end
|
31
|
+
end
|
32
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
33
|
+
warn "This will become an error in the next major version."
|
34
|
+
end
|
35
|
+
|
36
|
+
module Google
|
37
|
+
module Api
|
38
|
+
FieldBehavior = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.FieldBehavior").enummodule
|
39
|
+
end
|
40
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: google/api/http.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
|
8
|
+
descriptor_data = "\n\x15google/api/http.proto\x12\ngoogle.api\"y\n\x04Http\x12*\n\x05rules\x18\x01 \x03(\x0b\x32\x14.google.api.HttpRuleR\x05rules\x12\x45\n\x1f\x66ully_decode_reserved_expansion\x18\x02 \x01(\x08R\x1c\x66ullyDecodeReservedExpansion\"\xda\x02\n\x08HttpRule\x12\x1a\n\x08selector\x18\x01 \x01(\tR\x08selector\x12\x12\n\x03get\x18\x02 \x01(\tH\x00R\x03get\x12\x12\n\x03put\x18\x03 \x01(\tH\x00R\x03put\x12\x14\n\x04post\x18\x04 \x01(\tH\x00R\x04post\x12\x18\n\x06\x64\x65lete\x18\x05 \x01(\tH\x00R\x06\x64\x65lete\x12\x16\n\x05patch\x18\x06 \x01(\tH\x00R\x05patch\x12\x37\n\x06\x63ustom\x18\x08 \x01(\x0b\x32\x1d.google.api.CustomHttpPatternH\x00R\x06\x63ustom\x12\x12\n\x04\x62ody\x18\x07 \x01(\tR\x04\x62ody\x12#\n\rresponse_body\x18\x0c \x01(\tR\x0cresponseBody\x12\x45\n\x13\x61\x64\x64itional_bindings\x18\x0b \x03(\x0b\x32\x14.google.api.HttpRuleR\x12\x61\x64\x64itionalBindingsB\t\n\x07pattern\";\n\x11\x43ustomHttpPattern\x12\x12\n\x04kind\x18\x01 \x01(\tR\x04kind\x12\x12\n\x04path\x18\x02 \x01(\tR\x04pathB\xaa\x01\n\x0e\x63om.google.apiB\tHttpProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xf8\x01\x01\xa2\x02\x03GAX\xaa\x02\nGoogle.Api\xca\x02\nGoogle\\Api\xe2\x02\x16Google\\Api\\GPBMetadata\xea\x02\x0bGoogle::Apib\x06proto3"
|
9
|
+
|
10
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
11
|
+
|
12
|
+
begin
|
13
|
+
pool.add_serialized_file(descriptor_data)
|
14
|
+
rescue TypeError
|
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 Api
|
36
|
+
Http = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Http").msgclass
|
37
|
+
HttpRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.HttpRule").msgclass
|
38
|
+
CustomHttpPattern = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.CustomHttpPattern").msgclass
|
39
|
+
end
|
40
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: protoc-gen-openapiv2/options/annotations.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/protobuf/descriptor_pb'
|
8
|
+
require 'protoc-gen-openapiv2/options/openapiv2_pb'
|
9
|
+
|
10
|
+
|
11
|
+
descriptor_data = "\n.protoc-gen-openapiv2/options/annotations.proto\x12)grpc.gateway.protoc_gen_openapiv2.options\x1a google/protobuf/descriptor.proto\x1a,protoc-gen-openapiv2/options/openapiv2.proto:~\n\x11openapiv2_swagger\x12\x1c.google.protobuf.FileOptions\x18\x92\x08 \x01(\x0b\x32\x32.grpc.gateway.protoc_gen_openapiv2.options.SwaggerR\x10openapiv2Swagger:\x86\x01\n\x13openapiv2_operation\x12\x1e.google.protobuf.MethodOptions\x18\x92\x08 \x01(\x0b\x32\x34.grpc.gateway.protoc_gen_openapiv2.options.OperationR\x12openapiv2Operation:~\n\x10openapiv2_schema\x12\x1f.google.protobuf.MessageOptions\x18\x92\x08 \x01(\x0b\x32\x31.grpc.gateway.protoc_gen_openapiv2.options.SchemaR\x0fopenapiv2Schema:u\n\ropenapiv2_tag\x12\x1f.google.protobuf.ServiceOptions\x18\x92\x08 \x01(\x0b\x32..grpc.gateway.protoc_gen_openapiv2.options.TagR\x0copenapiv2Tag:~\n\x0fopenapiv2_field\x12\x1d.google.protobuf.FieldOptions\x18\x92\x08 \x01(\x0b\x32\x35.grpc.gateway.protoc_gen_openapiv2.options.JSONSchemaR\x0eopenapiv2FieldB\xc9\x02\n-com.grpc.gateway.protoc_gen_openapiv2.optionsB\x10\x41nnotationsProtoP\x01ZFgithub.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options\xa2\x02\x04GGPO\xaa\x02\'Grpc.Gateway.ProtocGenOpenapiv2.Options\xca\x02\'Grpc\\Gateway\\ProtocGenOpenapiv2\\Options\xe2\x02\x33Grpc\\Gateway\\ProtocGenOpenapiv2\\Options\\GPBMetadata\xea\x02*Grpc::Gateway::ProtocGenOpenapiv2::Optionsb\x06proto3"
|
12
|
+
|
13
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
14
|
+
|
15
|
+
begin
|
16
|
+
pool.add_serialized_file(descriptor_data)
|
17
|
+
rescue TypeError
|
18
|
+
# Compatibility code: will be removed in the next major version.
|
19
|
+
require 'google/protobuf/descriptor_pb'
|
20
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
21
|
+
parsed.clear_dependency
|
22
|
+
serialized = parsed.class.encode(parsed)
|
23
|
+
file = pool.add_serialized_file(serialized)
|
24
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
25
|
+
imports = [
|
26
|
+
["grpc.gateway.protoc_gen_openapiv2.options.Swagger", "protoc-gen-openapiv2/options/openapiv2.proto"],
|
27
|
+
]
|
28
|
+
imports.each do |type_name, expected_filename|
|
29
|
+
import_file = pool.lookup(type_name).file_descriptor
|
30
|
+
if import_file.name != expected_filename
|
31
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
32
|
+
end
|
33
|
+
end
|
34
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
35
|
+
warn "This will become an error in the next major version."
|
36
|
+
end
|
37
|
+
|
38
|
+
module Grpc
|
39
|
+
module Gateway
|
40
|
+
module ProtocGenOpenapiv2
|
41
|
+
module Options
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|