authzadminv1alpha

package
v0.0.0-...-9fa10a5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 15 Imported by: 2

Documentation

Index

Constants

View Source
const (
	ClientAdminService_CreateClient_FullMethodName                   = "/blocky.authz.admin.v1alpha.ClientAdminService/CreateClient"
	ClientAdminService_ListClient_FullMethodName                     = "/blocky.authz.admin.v1alpha.ClientAdminService/ListClient"
	ClientAdminService_GetClient_FullMethodName                      = "/blocky.authz.admin.v1alpha.ClientAdminService/GetClient"
	ClientAdminService_UpdateClient_FullMethodName                   = "/blocky.authz.admin.v1alpha.ClientAdminService/UpdateClient"
	ClientAdminService_DeleteClient_FullMethodName                   = "/blocky.authz.admin.v1alpha.ClientAdminService/DeleteClient"
	ClientAdminService_CreateClientResourcePermission_FullMethodName = "/blocky.authz.admin.v1alpha.ClientAdminService/CreateClientResourcePermission"
	ClientAdminService_ListClientResourcePermissions_FullMethodName  = "/blocky.authz.admin.v1alpha.ClientAdminService/ListClientResourcePermissions"
)
View Source
const (
	InstanceAdminService_UpdateInstance_FullMethodName = "/blocky.authz.admin.v1alpha.InstanceAdminService/UpdateInstance"
	InstanceAdminService_GetInstance_FullMethodName    = "/blocky.authz.admin.v1alpha.InstanceAdminService/GetInstance"
)
View Source
const (
	KeyAdminService_CreateKeyCore_FullMethodName   = "/blocky.authz.admin.v1alpha.KeyAdminService/CreateKeyCore"
	KeyAdminService_GetKeyCore_FullMethodName      = "/blocky.authz.admin.v1alpha.KeyAdminService/GetKeyCore"
	KeyAdminService_ListKeyCores_FullMethodName    = "/blocky.authz.admin.v1alpha.KeyAdminService/ListKeyCores"
	KeyAdminService_ListKeyCoreKeys_FullMethodName = "/blocky.authz.admin.v1alpha.KeyAdminService/ListKeyCoreKeys"
	KeyAdminService_UpdateKeyCore_FullMethodName   = "/blocky.authz.admin.v1alpha.KeyAdminService/UpdateKeyCore"
	KeyAdminService_RotateKey_FullMethodName       = "/blocky.authz.admin.v1alpha.KeyAdminService/RotateKey"
	KeyAdminService_GetKey_FullMethodName          = "/blocky.authz.admin.v1alpha.KeyAdminService/GetKey"
	KeyAdminService_ListKeys_FullMethodName        = "/blocky.authz.admin.v1alpha.KeyAdminService/ListKeys"
	KeyAdminService_RevokeKey_FullMethodName       = "/blocky.authz.admin.v1alpha.KeyAdminService/RevokeKey"
)
View Source
const (
	ResourceAdminService_CreateResourceManager_FullMethodName              = "/blocky.authz.admin.v1alpha.ResourceAdminService/CreateResourceManager"
	ResourceAdminService_GetResourceManager_FullMethodName                 = "/blocky.authz.admin.v1alpha.ResourceAdminService/GetResourceManager"
	ResourceAdminService_ListResourceManagers_FullMethodName               = "/blocky.authz.admin.v1alpha.ResourceAdminService/ListResourceManagers"
	ResourceAdminService_UpdateResourceManager_FullMethodName              = "/blocky.authz.admin.v1alpha.ResourceAdminService/UpdateResourceManager"
	ResourceAdminService_DeleteResourceManager_FullMethodName              = "/blocky.authz.admin.v1alpha.ResourceAdminService/DeleteResourceManager"
	ResourceAdminService_AliasResourceManager_FullMethodName               = "/blocky.authz.admin.v1alpha.ResourceAdminService/AliasResourceManager"
	ResourceAdminService_CreateResourcePermission_FullMethodName           = "/blocky.authz.admin.v1alpha.ResourceAdminService/CreateResourcePermission"
	ResourceAdminService_ListResourcePermission_FullMethodName             = "/blocky.authz.admin.v1alpha.ResourceAdminService/ListResourcePermission"
	ResourceAdminService_GetResourcePermission_FullMethodName              = "/blocky.authz.admin.v1alpha.ResourceAdminService/GetResourcePermission"
	ResourceAdminService_UpdateResourcePermission_FullMethodName           = "/blocky.authz.admin.v1alpha.ResourceAdminService/UpdateResourcePermission"
	ResourceAdminService_DeleteResourcePermission_FullMethodName           = "/blocky.authz.admin.v1alpha.ResourceAdminService/DeleteResourcePermission"
	ResourceAdminService_AliasResourcePermission_FullMethodName            = "/blocky.authz.admin.v1alpha.ResourceAdminService/AliasResourcePermission"
	ResourceAdminService_ListResourcePermissionUserConsents_FullMethodName = "/blocky.authz.admin.v1alpha.ResourceAdminService/ListResourcePermissionUserConsents"
)
View Source
const (
	UserContentAdminService_CreateUserConsent_FullMethodName = "/blocky.authz.admin.v1alpha.UserContentAdminService/CreateUserConsent"
	UserContentAdminService_GetUserConsent_FullMethodName    = "/blocky.authz.admin.v1alpha.UserContentAdminService/GetUserConsent"
	UserContentAdminService_ListUserConsents_FullMethodName  = "/blocky.authz.admin.v1alpha.UserContentAdminService/ListUserConsents"
	UserContentAdminService_UpdateUserConsent_FullMethodName = "/blocky.authz.admin.v1alpha.UserContentAdminService/UpdateUserConsent"
	UserContentAdminService_DeleteUserConsent_FullMethodName = "/blocky.authz.admin.v1alpha.UserContentAdminService/DeleteUserConsent"
)

Variables

View Source
var (
	ClientType_name = map[int32]string{
		0: "CLIENT_TYPE_UNSPECIFIED",
		1: "PUBLIC",
		2: "CONFIDENTIAL",
	}
	ClientType_value = map[string]int32{
		"CLIENT_TYPE_UNSPECIFIED": 0,
		"PUBLIC":                  1,
		"CONFIDENTIAL":            2,
	}
)

Enum value maps for ClientType.

View Source
var ClientAdminService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "blocky.authz.admin.v1alpha.ClientAdminService",
	HandlerType: (*ClientAdminServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateClient",
			Handler:    _ClientAdminService_CreateClient_Handler,
		},
		{
			MethodName: "ListClient",
			Handler:    _ClientAdminService_ListClient_Handler,
		},
		{
			MethodName: "GetClient",
			Handler:    _ClientAdminService_GetClient_Handler,
		},
		{
			MethodName: "UpdateClient",
			Handler:    _ClientAdminService_UpdateClient_Handler,
		},
		{
			MethodName: "DeleteClient",
			Handler:    _ClientAdminService_DeleteClient_Handler,
		},
		{
			MethodName: "CreateClientResourcePermission",
			Handler:    _ClientAdminService_CreateClientResourcePermission_Handler,
		},
		{
			MethodName: "ListClientResourcePermissions",
			Handler:    _ClientAdminService_ListClientResourcePermissions_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "blocky/authz/admin/v1alpha/client_admin.proto",
}

ClientAdminService_ServiceDesc is the grpc.ServiceDesc for ClientAdminService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_blocky_authz_admin_v1alpha_client_admin_proto protoreflect.FileDescriptor
View Source
var File_blocky_authz_admin_v1alpha_client_proto protoreflect.FileDescriptor
View Source
var File_blocky_authz_admin_v1alpha_instance_admin_proto protoreflect.FileDescriptor
View Source
var File_blocky_authz_admin_v1alpha_instance_proto protoreflect.FileDescriptor
View Source
var File_blocky_authz_admin_v1alpha_key_admin_proto protoreflect.FileDescriptor
View Source
var File_blocky_authz_admin_v1alpha_key_proto protoreflect.FileDescriptor
View Source
var File_blocky_authz_admin_v1alpha_resource_admin_proto protoreflect.FileDescriptor
View Source
var File_blocky_authz_admin_v1alpha_resource_proto protoreflect.FileDescriptor
View Source
var File_blocky_authz_admin_v1alpha_user_consent_admin_proto protoreflect.FileDescriptor
View Source
var File_blocky_authz_admin_v1alpha_user_consent_proto protoreflect.FileDescriptor
View Source
var InstanceAdminService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "blocky.authz.admin.v1alpha.InstanceAdminService",
	HandlerType: (*InstanceAdminServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "UpdateInstance",
			Handler:    _InstanceAdminService_UpdateInstance_Handler,
		},
		{
			MethodName: "GetInstance",
			Handler:    _InstanceAdminService_GetInstance_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "blocky/authz/admin/v1alpha/instance_admin.proto",
}

InstanceAdminService_ServiceDesc is the grpc.ServiceDesc for InstanceAdminService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var KeyAdminService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "blocky.authz.admin.v1alpha.KeyAdminService",
	HandlerType: (*KeyAdminServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateKeyCore",
			Handler:    _KeyAdminService_CreateKeyCore_Handler,
		},
		{
			MethodName: "GetKeyCore",
			Handler:    _KeyAdminService_GetKeyCore_Handler,
		},
		{
			MethodName: "ListKeyCores",
			Handler:    _KeyAdminService_ListKeyCores_Handler,
		},
		{
			MethodName: "ListKeyCoreKeys",
			Handler:    _KeyAdminService_ListKeyCoreKeys_Handler,
		},
		{
			MethodName: "UpdateKeyCore",
			Handler:    _KeyAdminService_UpdateKeyCore_Handler,
		},
		{
			MethodName: "RotateKey",
			Handler:    _KeyAdminService_RotateKey_Handler,
		},
		{
			MethodName: "GetKey",
			Handler:    _KeyAdminService_GetKey_Handler,
		},
		{
			MethodName: "ListKeys",
			Handler:    _KeyAdminService_ListKeys_Handler,
		},
		{
			MethodName: "RevokeKey",
			Handler:    _KeyAdminService_RevokeKey_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "blocky/authz/admin/v1alpha/key_admin.proto",
}

KeyAdminService_ServiceDesc is the grpc.ServiceDesc for KeyAdminService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var ResourceAdminService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "blocky.authz.admin.v1alpha.ResourceAdminService",
	HandlerType: (*ResourceAdminServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateResourceManager",
			Handler:    _ResourceAdminService_CreateResourceManager_Handler,
		},
		{
			MethodName: "GetResourceManager",
			Handler:    _ResourceAdminService_GetResourceManager_Handler,
		},
		{
			MethodName: "ListResourceManagers",
			Handler:    _ResourceAdminService_ListResourceManagers_Handler,
		},
		{
			MethodName: "UpdateResourceManager",
			Handler:    _ResourceAdminService_UpdateResourceManager_Handler,
		},
		{
			MethodName: "DeleteResourceManager",
			Handler:    _ResourceAdminService_DeleteResourceManager_Handler,
		},
		{
			MethodName: "AliasResourceManager",
			Handler:    _ResourceAdminService_AliasResourceManager_Handler,
		},
		{
			MethodName: "CreateResourcePermission",
			Handler:    _ResourceAdminService_CreateResourcePermission_Handler,
		},
		{
			MethodName: "ListResourcePermission",
			Handler:    _ResourceAdminService_ListResourcePermission_Handler,
		},
		{
			MethodName: "GetResourcePermission",
			Handler:    _ResourceAdminService_GetResourcePermission_Handler,
		},
		{
			MethodName: "UpdateResourcePermission",
			Handler:    _ResourceAdminService_UpdateResourcePermission_Handler,
		},
		{
			MethodName: "DeleteResourcePermission",
			Handler:    _ResourceAdminService_DeleteResourcePermission_Handler,
		},
		{
			MethodName: "AliasResourcePermission",
			Handler:    _ResourceAdminService_AliasResourcePermission_Handler,
		},
		{
			MethodName: "ListResourcePermissionUserConsents",
			Handler:    _ResourceAdminService_ListResourcePermissionUserConsents_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "blocky/authz/admin/v1alpha/resource_admin.proto",
}

ResourceAdminService_ServiceDesc is the grpc.ServiceDesc for ResourceAdminService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var UserContentAdminService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "blocky.authz.admin.v1alpha.UserContentAdminService",
	HandlerType: (*UserContentAdminServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateUserConsent",
			Handler:    _UserContentAdminService_CreateUserConsent_Handler,
		},
		{
			MethodName: "GetUserConsent",
			Handler:    _UserContentAdminService_GetUserConsent_Handler,
		},
		{
			MethodName: "ListUserConsents",
			Handler:    _UserContentAdminService_ListUserConsents_Handler,
		},
		{
			MethodName: "UpdateUserConsent",
			Handler:    _UserContentAdminService_UpdateUserConsent_Handler,
		},
		{
			MethodName: "DeleteUserConsent",
			Handler:    _UserContentAdminService_DeleteUserConsent_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "blocky/authz/admin/v1alpha/user_consent_admin.proto",
}

UserContentAdminService_ServiceDesc is the grpc.ServiceDesc for UserContentAdminService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterClientAdminServiceServer

func RegisterClientAdminServiceServer(s grpc.ServiceRegistrar, srv ClientAdminServiceServer)

func RegisterInstanceAdminServiceServer

func RegisterInstanceAdminServiceServer(s grpc.ServiceRegistrar, srv InstanceAdminServiceServer)

func RegisterKeyAdminServiceServer

func RegisterKeyAdminServiceServer(s grpc.ServiceRegistrar, srv KeyAdminServiceServer)

func RegisterResourceAdminServiceServer

func RegisterResourceAdminServiceServer(s grpc.ServiceRegistrar, srv ResourceAdminServiceServer)

func RegisterUserContentAdminServiceServer

func RegisterUserContentAdminServiceServer(s grpc.ServiceRegistrar, srv UserContentAdminServiceServer)

Types

type AccessTokenConfig

type AccessTokenConfig struct {

	// Preferred algorithm used to sign tokens.
	Algorithm signalgpb.SigningAlgorithm `protobuf:"varint,1,opt,name=algorithm,proto3,enum=blocky.authz.type.SigningAlgorithm" json:"algorithm,omitempty"`
	// The duration of validity of the access token.
	TokenLifetime *durationpb.Duration `protobuf:"bytes,2,opt,name=token_lifetime,json=tokenLifetime,proto3" json:"token_lifetime,omitempty"`
	// contains filtered or unexported fields
}

Is a configuration for access tokens.

func (*AccessTokenConfig) Descriptor deprecated

func (*AccessTokenConfig) Descriptor() ([]byte, []int)

Deprecated: Use AccessTokenConfig.ProtoReflect.Descriptor instead.

func (*AccessTokenConfig) GetAlgorithm

func (x *AccessTokenConfig) GetAlgorithm() signalgpb.SigningAlgorithm

func (*AccessTokenConfig) GetTokenLifetime

func (x *AccessTokenConfig) GetTokenLifetime() *durationpb.Duration

func (*AccessTokenConfig) ProtoMessage

func (*AccessTokenConfig) ProtoMessage()

func (*AccessTokenConfig) ProtoReflect

func (x *AccessTokenConfig) ProtoReflect() protoreflect.Message

func (*AccessTokenConfig) Reset

func (x *AccessTokenConfig) Reset()

func (*AccessTokenConfig) String

func (x *AccessTokenConfig) String() string

type AliasResourcePermissionRequest

type AliasResourcePermissionRequest struct {

	// The name of the resource permission to set alias.
	// Format: projects/{project}/resourceManagers/{resource_manager}/resource_permissions/{resource_permission}
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The alias to use for the resource permission.
	// It could be use instead of the resource permission identifier.
	// I.e.: projects/{project}/resourceManagers/{resource_manager}/resource_permissions/{alias}
	AliasId string `protobuf:"bytes,2,opt,name=alias_id,json=aliasId,proto3" json:"alias_id,omitempty"`
	// contains filtered or unexported fields
}

The request for [ResourceAdminService.AliasResourcePermission][blocky.authz.admin.v1alpha.ResourceAdminService.AliasResourcePermission].

func (*AliasResourcePermissionRequest) Descriptor deprecated

func (*AliasResourcePermissionRequest) Descriptor() ([]byte, []int)

Deprecated: Use AliasResourcePermissionRequest.ProtoReflect.Descriptor instead.

func (*AliasResourcePermissionRequest) GetAliasId

func (x *AliasResourcePermissionRequest) GetAliasId() string

func (*AliasResourcePermissionRequest) GetName

func (*AliasResourcePermissionRequest) ProtoMessage

func (*AliasResourcePermissionRequest) ProtoMessage()

func (*AliasResourcePermissionRequest) ProtoReflect

func (*AliasResourcePermissionRequest) Reset

func (x *AliasResourcePermissionRequest) Reset()

func (*AliasResourcePermissionRequest) String

type AliasResourceRequest

type AliasResourceRequest struct {

	// The name of the resource manager to set alias.
	// Format: projects/{project}/resourceManagers/{resource_manager}
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The alias to use for the resource manager.
	// It could be use instead of the resource manager identifier.
	// I.e.: projects/{project}/resourceManagers/{alias}
	AliasId string `protobuf:"bytes,2,opt,name=alias_id,json=aliasId,proto3" json:"alias_id,omitempty"`
	// contains filtered or unexported fields
}

The request message for [ResourceAdminService.AliasResourceManager][google.cloud.blocky.authz.admin.v1alpha.ResourceAdminService.AliasResourceManager].

func (*AliasResourceRequest) Descriptor deprecated

func (*AliasResourceRequest) Descriptor() ([]byte, []int)

Deprecated: Use AliasResourceRequest.ProtoReflect.Descriptor instead.

func (*AliasResourceRequest) GetAliasId

func (x *AliasResourceRequest) GetAliasId() string

func (*AliasResourceRequest) GetName

func (x *AliasResourceRequest) GetName() string

func (*AliasResourceRequest) ProtoMessage

func (*AliasResourceRequest) ProtoMessage()

func (*AliasResourceRequest) ProtoReflect

func (x *AliasResourceRequest) ProtoReflect() protoreflect.Message

func (*AliasResourceRequest) Reset

func (x *AliasResourceRequest) Reset()

func (*AliasResourceRequest) String

func (x *AliasResourceRequest) String() string

type Client

type Client struct {

	// Is a resource name of the client. It uniquely identifies the client.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Is a unique alias identifier of the client.
	Alias string `protobuf:"bytes,2,opt,name=alias,proto3" json:"alias,omitempty"`
	// Is a unique identifier of the client.
	ClientId string `protobuf:"bytes,3,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
	// The type of the client, once set, it can not be changed.
	// This needs to be set when the client is created.
	ClientType ClientType `` /* 135-byte string literal not displayed */
	// The name of the client to display.
	DisplayName string `protobuf:"bytes,5,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// The time when the client was created.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// The time when the client was last updated.
	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// Denotes if a client is internal to the organization.
	// This implies that a OAuth consent screen is not required.
	OrganizationInternal bool `protobuf:"varint,8,opt,name=organization_internal,json=organizationInternal,proto3" json:"organization_internal,omitempty"`
	// The secret data used to authorize with.
	// This field is only populated when the Client is created.
	SecretData []byte `protobuf:"bytes,9,opt,name=secret_data,json=secretData,proto3" json:"secret_data,omitempty"`
	// contains filtered or unexported fields
}

Client represents an authorization client that can be used to authorize

func (*Client) Descriptor deprecated

func (*Client) Descriptor() ([]byte, []int)

Deprecated: Use Client.ProtoReflect.Descriptor instead.

func (*Client) GetAlias

func (x *Client) GetAlias() string

func (*Client) GetClientId

func (x *Client) GetClientId() string

func (*Client) GetClientType

func (x *Client) GetClientType() ClientType

func (*Client) GetCreateTime

func (x *Client) GetCreateTime() *timestamppb.Timestamp

func (*Client) GetDisplayName

func (x *Client) GetDisplayName() string

func (*Client) GetName

func (x *Client) GetName() string

func (*Client) GetOrganizationInternal

func (x *Client) GetOrganizationInternal() bool

func (*Client) GetSecretData

func (x *Client) GetSecretData() []byte

func (*Client) GetUpdateTime

func (x *Client) GetUpdateTime() *timestamppb.Timestamp

func (*Client) ProtoMessage

func (*Client) ProtoMessage()

func (*Client) ProtoReflect

func (x *Client) ProtoReflect() protoreflect.Message

func (*Client) Reset

func (x *Client) Reset()

func (*Client) String

func (x *Client) String() string

type ClientAdminServiceClient

type ClientAdminServiceClient interface {
	// Creates a new authorization client with the specified name,
	// and returns the new client.
	// A newly created client will have a secret generated.
	CreateClient(ctx context.Context, in *CreateClientRequest, opts ...grpc.CallOption) (*Client, error)
	// Lists authorization clients matching the specified filter.
	ListClient(ctx context.Context, in *ListClientRequest, opts ...grpc.CallOption) (*ListClientResponse, error)
	// Gets an authorization client by its identifier.
	GetClient(ctx context.Context, in *GetClientRequest, opts ...grpc.CallOption) (*Client, error)
	// Updates an authorization client, and returns the updated client.
	UpdateClient(ctx context.Context, in *UpdateClientRequest, opts ...grpc.CallOption) (*Client, error)
	// Deletes an authorization client.
	DeleteClient(ctx context.Context, in *DeleteClientRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// CreateClientResourcePermission adds a client the permission to use given resource,
	// defined by the resource permission.
	CreateClientResourcePermission(ctx context.Context, in *CreateClientResourcePermissionRequest, opts ...grpc.CallOption) (*ClientResourcePermission, error)
	ListClientResourcePermissions(ctx context.Context, in *ListClientResourcePermissionsRequest, opts ...grpc.CallOption) (*ListClientResourcePermissionsResponse, error)
}

ClientAdminServiceClient is the client API for ClientAdminService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type ClientAdminServiceServer

type ClientAdminServiceServer interface {
	// Creates a new authorization client with the specified name,
	// and returns the new client.
	// A newly created client will have a secret generated.
	CreateClient(context.Context, *CreateClientRequest) (*Client, error)
	// Lists authorization clients matching the specified filter.
	ListClient(context.Context, *ListClientRequest) (*ListClientResponse, error)
	// Gets an authorization client by its identifier.
	GetClient(context.Context, *GetClientRequest) (*Client, error)
	// Updates an authorization client, and returns the updated client.
	UpdateClient(context.Context, *UpdateClientRequest) (*Client, error)
	// Deletes an authorization client.
	DeleteClient(context.Context, *DeleteClientRequest) (*emptypb.Empty, error)
	// CreateClientResourcePermission adds a client the permission to use given resource,
	// defined by the resource permission.
	CreateClientResourcePermission(context.Context, *CreateClientResourcePermissionRequest) (*ClientResourcePermission, error)
	ListClientResourcePermissions(context.Context, *ListClientResourcePermissionsRequest) (*ListClientResourcePermissionsResponse, error)
	// contains filtered or unexported methods
}

ClientAdminServiceServer is the server API for ClientAdminService service. All implementations must embed UnimplementedClientAdminServiceServer for forward compatibility

type ClientAlgorithm

type ClientAlgorithm struct {

	// Is a resource name of the client algorithm.
	// Format: projects/{project}/clients/{client}/algorithms/{algorithm}
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The signing algorithm that the client can use to authorize with.
	Algorithm signalgpb.SigningAlgorithm `protobuf:"varint,2,opt,name=algorithm,proto3,enum=blocky.authz.type.SigningAlgorithm" json:"algorithm,omitempty"`
	// The priority of the algorithm. The lower the number, the higher the
	// priority.
	Priority int32 `protobuf:"varint,3,opt,name=priority,proto3" json:"priority,omitempty"`
	// contains filtered or unexported fields
}

ClientAlgorithm represents the signing algorithm that the client can use to authorize with. Once a client cannot verify the signature of the token using default algorithm, it can use the algorithm specified here. The priority defines the order in which the algorithms are tried. An algorithm - client pair must be unique.

func (*ClientAlgorithm) Descriptor deprecated

func (*ClientAlgorithm) Descriptor() ([]byte, []int)

Deprecated: Use ClientAlgorithm.ProtoReflect.Descriptor instead.

func (*ClientAlgorithm) GetAlgorithm

func (x *ClientAlgorithm) GetAlgorithm() signalgpb.SigningAlgorithm

func (*ClientAlgorithm) GetName

func (x *ClientAlgorithm) GetName() string

func (*ClientAlgorithm) GetPriority

func (x *ClientAlgorithm) GetPriority() int32

func (*ClientAlgorithm) ProtoMessage

func (*ClientAlgorithm) ProtoMessage()

func (*ClientAlgorithm) ProtoReflect

func (x *ClientAlgorithm) ProtoReflect() protoreflect.Message

func (*ClientAlgorithm) Reset

func (x *ClientAlgorithm) Reset()

func (*ClientAlgorithm) String

func (x *ClientAlgorithm) String() string

type ClientResourcePermission

type ClientResourcePermission struct {

	// Is a resource name of the client resource permission.
	// Format: projects/{project}/clients/{client}/resourcePermissions/{resourcePermission}
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The resource name of ResourcePermission that the client has granted access.
	ResourcePermission string `protobuf:"bytes,2,opt,name=resource_permission,json=resourcePermission,proto3" json:"resource_permission,omitempty"`
	// The resource name of the Client that was granted access.
	Client string `protobuf:"bytes,3,opt,name=client,proto3" json:"client,omitempty"`
	// contains filtered or unexported fields
}

ClientResourcePermission represents the permissions that the client can use to authorize with.

func (*ClientResourcePermission) Descriptor deprecated

func (*ClientResourcePermission) Descriptor() ([]byte, []int)

Deprecated: Use ClientResourcePermission.ProtoReflect.Descriptor instead.

func (*ClientResourcePermission) GetClient

func (x *ClientResourcePermission) GetClient() string

func (*ClientResourcePermission) GetName

func (x *ClientResourcePermission) GetName() string

func (*ClientResourcePermission) GetResourcePermission

func (x *ClientResourcePermission) GetResourcePermission() string

func (*ClientResourcePermission) ProtoMessage

func (*ClientResourcePermission) ProtoMessage()

func (*ClientResourcePermission) ProtoReflect

func (x *ClientResourcePermission) ProtoReflect() protoreflect.Message

func (*ClientResourcePermission) Reset

func (x *ClientResourcePermission) Reset()

func (*ClientResourcePermission) String

func (x *ClientResourcePermission) String() string

type ClientType

type ClientType int32

ClientType represents the type of the authorization client.

const (
	// The client type is unknown.
	ClientType_CLIENT_TYPE_UNSPECIFIED ClientType = 0
	// The client is public, and can not maintain the confidentiality of its
	// credentials without exposing them. An example of a public client is a
	// installed mobile, desktop  or a user-agent application.
	ClientType_PUBLIC ClientType = 1
	// The client is confidential, and can maintain the confidentiality of its
	// credentials. An example of a confidential client is a web application.
	ClientType_CONFIDENTIAL ClientType = 2
)

func (ClientType) Descriptor

func (ClientType) Descriptor() protoreflect.EnumDescriptor

func (ClientType) Enum

func (x ClientType) Enum() *ClientType

func (ClientType) EnumDescriptor deprecated

func (ClientType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ClientType.Descriptor instead.

func (ClientType) Number

func (x ClientType) Number() protoreflect.EnumNumber

func (ClientType) String

func (x ClientType) String() string

func (ClientType) Type

type CreateClientRequest

type CreateClientRequest struct {

	// The parent instance where the client will be created.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Client is a authorization client used to authorize requests.
	Client *Client `protobuf:"bytes,2,opt,name=client,proto3" json:"client,omitempty"`
	// contains filtered or unexported fields
}

The request message for [ClientAdminService.ListClient][blocky.authz.admin.v1alpha.ClientAdminService.ListClient].

func (*CreateClientRequest) Descriptor deprecated

func (*CreateClientRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateClientRequest.ProtoReflect.Descriptor instead.

func (*CreateClientRequest) GetClient

func (x *CreateClientRequest) GetClient() *Client

func (*CreateClientRequest) GetParent

func (x *CreateClientRequest) GetParent() string

func (*CreateClientRequest) ProtoMessage

func (*CreateClientRequest) ProtoMessage()

func (*CreateClientRequest) ProtoReflect

func (x *CreateClientRequest) ProtoReflect() protoreflect.Message

func (*CreateClientRequest) Reset

func (x *CreateClientRequest) Reset()

func (*CreateClientRequest) String

func (x *CreateClientRequest) String() string

type CreateClientResourcePermissionRequest

type CreateClientResourcePermissionRequest struct {

	// Required. The parent client where the permission will be created.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required. A resource permission resource name that
	// this client will be granted access to.
	ResourcePermission string `protobuf:"bytes,2,opt,name=resource_permission,json=resourcePermission,proto3" json:"resource_permission,omitempty"`
	// contains filtered or unexported fields
}

The request message for [ClientAdminService.CreateClientResourcePermission][blocky.authz.admin.v1alpha.ClientAdminService.CreateClientResourcePermission].

func (*CreateClientResourcePermissionRequest) Descriptor deprecated

func (*CreateClientResourcePermissionRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateClientResourcePermissionRequest.ProtoReflect.Descriptor instead.

func (*CreateClientResourcePermissionRequest) GetParent

func (*CreateClientResourcePermissionRequest) GetResourcePermission

func (x *CreateClientResourcePermissionRequest) GetResourcePermission() string

func (*CreateClientResourcePermissionRequest) ProtoMessage

func (*CreateClientResourcePermissionRequest) ProtoMessage()

func (*CreateClientResourcePermissionRequest) ProtoReflect

func (*CreateClientResourcePermissionRequest) Reset

func (*CreateClientResourcePermissionRequest) String

type CreateKeyCoreRequest

type CreateKeyCoreRequest struct {

	// Required. The resource name of the project in which to create the key.
	// Format: 'projects/{project}'.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required, resource to create.
	KeyCore *KeyCore `protobuf:"bytes,2,opt,name=key_core,json=keyCore,proto3" json:"key_core,omitempty"`
	// contains filtered or unexported fields
}

The request message for [AuthzAdminService.CreateKeyCore][blocky.authz.admin.v1alpha.AuthzAdminService.CreateKeyCore].

func (*CreateKeyCoreRequest) Descriptor deprecated

func (*CreateKeyCoreRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateKeyCoreRequest.ProtoReflect.Descriptor instead.

func (*CreateKeyCoreRequest) GetKeyCore

func (x *CreateKeyCoreRequest) GetKeyCore() *KeyCore

func (*CreateKeyCoreRequest) GetParent

func (x *CreateKeyCoreRequest) GetParent() string

func (*CreateKeyCoreRequest) ProtoMessage

func (*CreateKeyCoreRequest) ProtoMessage()

func (*CreateKeyCoreRequest) ProtoReflect

func (x *CreateKeyCoreRequest) ProtoReflect() protoreflect.Message

func (*CreateKeyCoreRequest) Reset

func (x *CreateKeyCoreRequest) Reset()

func (*CreateKeyCoreRequest) String

func (x *CreateKeyCoreRequest) String() string

type CreateResourceManagerRequest

type CreateResourceManagerRequest struct {

	// Required. The project in which to create the resource manager.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required. The resource manager to create.
	ResourceManager *ResourceManager `protobuf:"bytes,2,opt,name=resource_manager,json=resourceManager,proto3" json:"resource_manager,omitempty"`
	// An optional user-defined identifier for the resource manager.
	// The identifier can be up to 128 characters long and can be either
	// alphanumeric (e.g., "myresource") or a UUID (e.g.,
	// "12345678-9ABC-DEF0-1234-56789ABCDEF0").
	// This field is a part of the resource manager's name. The
	// resource manager name and identifier must be unique within a project.
	ResourceManagerId string `protobuf:"bytes,3,opt,name=resource_manager_id,json=resourceManagerId,proto3" json:"resource_manager_id,omitempty"`
	// contains filtered or unexported fields
}

CreateResourceManagerRequest is the request message for CreateResourceManager.

func (*CreateResourceManagerRequest) Descriptor deprecated

func (*CreateResourceManagerRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateResourceManagerRequest.ProtoReflect.Descriptor instead.

func (*CreateResourceManagerRequest) GetParent

func (x *CreateResourceManagerRequest) GetParent() string

func (*CreateResourceManagerRequest) GetResourceManager

func (x *CreateResourceManagerRequest) GetResourceManager() *ResourceManager

func (*CreateResourceManagerRequest) GetResourceManagerId

func (x *CreateResourceManagerRequest) GetResourceManagerId() string

func (*CreateResourceManagerRequest) ProtoMessage

func (*CreateResourceManagerRequest) ProtoMessage()

func (*CreateResourceManagerRequest) ProtoReflect

func (*CreateResourceManagerRequest) Reset

func (x *CreateResourceManagerRequest) Reset()

func (*CreateResourceManagerRequest) String

type CreateResourcePermissionRequest

type CreateResourcePermissionRequest struct {

	// Required, parent resource manager to create resource permission.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required resource permission to create.
	ResourcePermission *ResourcePermission `protobuf:"bytes,2,opt,name=resource_permission,json=resourcePermission,proto3" json:"resource_permission,omitempty"`
	// contains filtered or unexported fields
}

The request for [ResourceAdminService.CreateResourcePermission][blocky.authz.admin.v1alpha.ResourceAdminService.CreateResourcePermission].

func (*CreateResourcePermissionRequest) Descriptor deprecated

func (*CreateResourcePermissionRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateResourcePermissionRequest.ProtoReflect.Descriptor instead.

func (*CreateResourcePermissionRequest) GetParent

func (x *CreateResourcePermissionRequest) GetParent() string

func (*CreateResourcePermissionRequest) GetResourcePermission

func (x *CreateResourcePermissionRequest) GetResourcePermission() *ResourcePermission

func (*CreateResourcePermissionRequest) ProtoMessage

func (*CreateResourcePermissionRequest) ProtoMessage()

func (*CreateResourcePermissionRequest) ProtoReflect

func (*CreateResourcePermissionRequest) Reset

func (*CreateResourcePermissionRequest) String

type CreateUserConsentRequest

type CreateUserConsentRequest struct {

	// Required. The parent resource where this user consent will be created.
	// Format: "projects/{project}"
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required. The user consent to create.
	UserConsent *UserConsent `protobuf:"bytes,2,opt,name=user_consent,json=userConsent,proto3" json:"user_consent,omitempty"`
	// contains filtered or unexported fields
}

CreateUserConsentRequest is the request message for [UserConsentAdminService.CreateUserConsent][blocky.authz.admin.v1alpha.UserConsentAdminService.CreateUserConsent].

func (*CreateUserConsentRequest) Descriptor deprecated

func (*CreateUserConsentRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateUserConsentRequest.ProtoReflect.Descriptor instead.

func (*CreateUserConsentRequest) GetParent

func (x *CreateUserConsentRequest) GetParent() string

func (*CreateUserConsentRequest) GetUserConsent

func (x *CreateUserConsentRequest) GetUserConsent() *UserConsent

func (*CreateUserConsentRequest) ProtoMessage

func (*CreateUserConsentRequest) ProtoMessage()

func (*CreateUserConsentRequest) ProtoReflect

func (x *CreateUserConsentRequest) ProtoReflect() protoreflect.Message

func (*CreateUserConsentRequest) Reset

func (x *CreateUserConsentRequest) Reset()

func (*CreateUserConsentRequest) String

func (x *CreateUserConsentRequest) String() string

type DeleteClientRequest

type DeleteClientRequest struct {

	// The name of the client to delete.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

The request message for [ClientAdminService.DeleteClient][blocky.authz.admin.v1alpha.ClientAdminService.DeleteClient].

func (*DeleteClientRequest) Descriptor deprecated

func (*DeleteClientRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteClientRequest.ProtoReflect.Descriptor instead.

func (*DeleteClientRequest) GetName

func (x *DeleteClientRequest) GetName() string

func (*DeleteClientRequest) ProtoMessage

func (*DeleteClientRequest) ProtoMessage()

func (*DeleteClientRequest) ProtoReflect

func (x *DeleteClientRequest) ProtoReflect() protoreflect.Message

func (*DeleteClientRequest) Reset

func (x *DeleteClientRequest) Reset()

func (*DeleteClientRequest) String

func (x *DeleteClientRequest) String() string

type DeleteResourcePermissionRequest

type DeleteResourcePermissionRequest struct {

	// Required resource_permission resource name.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

The request for [ResourceAdminService.DeleteResourcePermission][blocky.authz.admin.v1alpha.ResourceAdminService.DeleteResourcePermission].

func (*DeleteResourcePermissionRequest) Descriptor deprecated

func (*DeleteResourcePermissionRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteResourcePermissionRequest.ProtoReflect.Descriptor instead.

func (*DeleteResourcePermissionRequest) GetName

func (*DeleteResourcePermissionRequest) ProtoMessage

func (*DeleteResourcePermissionRequest) ProtoMessage()

func (*DeleteResourcePermissionRequest) ProtoReflect

func (*DeleteResourcePermissionRequest) Reset

func (*DeleteResourcePermissionRequest) String

type DeleteResourceRequest

type DeleteResourceRequest struct {

	// Required. The name of the resource manager to delete.
	// Format: projects/{project}/resourceManagers/{resource_manager}
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

The request message for [ResourceAdminService.DeleteResourceManager][google.cloud.blocky.authz.admin.v1alpha.ResourceAdminService.DeleteResourceManager].

func (*DeleteResourceRequest) Descriptor deprecated

func (*DeleteResourceRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteResourceRequest.ProtoReflect.Descriptor instead.

func (*DeleteResourceRequest) GetName

func (x *DeleteResourceRequest) GetName() string

func (*DeleteResourceRequest) ProtoMessage

func (*DeleteResourceRequest) ProtoMessage()

func (*DeleteResourceRequest) ProtoReflect

func (x *DeleteResourceRequest) ProtoReflect() protoreflect.Message

func (*DeleteResourceRequest) Reset

func (x *DeleteResourceRequest) Reset()

func (*DeleteResourceRequest) String

func (x *DeleteResourceRequest) String() string

type DeleteUserConsentRequest

type DeleteUserConsentRequest struct {

	// Required. The name of the user consent to delete.
	// Format: "projects/{project}/userConsents/{user_consent}"
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

DeleteUserConsentRequest is the request message for [UserConsentAdminService.DeleteUserConsent][blocky.authz.admin.v1alpha.UserConsentAdminService.DeleteUserConsent].

func (*DeleteUserConsentRequest) Descriptor deprecated

func (*DeleteUserConsentRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteUserConsentRequest.ProtoReflect.Descriptor instead.

func (*DeleteUserConsentRequest) GetName

func (x *DeleteUserConsentRequest) GetName() string

func (*DeleteUserConsentRequest) ProtoMessage

func (*DeleteUserConsentRequest) ProtoMessage()

func (*DeleteUserConsentRequest) ProtoReflect

func (x *DeleteUserConsentRequest) ProtoReflect() protoreflect.Message

func (*DeleteUserConsentRequest) Reset

func (x *DeleteUserConsentRequest) Reset()

func (*DeleteUserConsentRequest) String

func (x *DeleteUserConsentRequest) String() string

type GetClientRequest

type GetClientRequest struct {

	// Required. The name of the client to retrieve.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

The request message for [ClientAdminService.GetClient][blocky.authz.admin.v1alpha.ClientAdminService.GetClient].

func (*GetClientRequest) Descriptor deprecated

func (*GetClientRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetClientRequest.ProtoReflect.Descriptor instead.

func (*GetClientRequest) GetName

func (x *GetClientRequest) GetName() string

func (*GetClientRequest) ProtoMessage

func (*GetClientRequest) ProtoMessage()

func (*GetClientRequest) ProtoReflect

func (x *GetClientRequest) ProtoReflect() protoreflect.Message

func (*GetClientRequest) Reset

func (x *GetClientRequest) Reset()

func (*GetClientRequest) String

func (x *GetClientRequest) String() string

type GetInstanceRequest

type GetInstanceRequest struct {

	// The name of the instance resource to retrieve.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

The request for [InstanceAdminService.GetInstance][google.cloud.blocky.authz.admin.v1alpha.InstanceAdminService.GetInstance].

func (*GetInstanceRequest) Descriptor deprecated

func (*GetInstanceRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetInstanceRequest.ProtoReflect.Descriptor instead.

func (*GetInstanceRequest) GetName

func (x *GetInstanceRequest) GetName() string

func (*GetInstanceRequest) ProtoMessage

func (*GetInstanceRequest) ProtoMessage()

func (*GetInstanceRequest) ProtoReflect

func (x *GetInstanceRequest) ProtoReflect() protoreflect.Message

func (*GetInstanceRequest) Reset

func (x *GetInstanceRequest) Reset()

func (*GetInstanceRequest) String

func (x *GetInstanceRequest) String() string

type GetKeyCoreRequest

type GetKeyCoreRequest struct {

	// Required. The resource name of the key to retrieve.
	// Format: 'projects/{project}/keyCores/{key_core}'.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

The request message for [AuthzAdminService.GetKeyCore][blocky.authz.admin.v1alpha.AuthzAdminService.GetKeyCore].

func (*GetKeyCoreRequest) Descriptor deprecated

func (*GetKeyCoreRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetKeyCoreRequest.ProtoReflect.Descriptor instead.

func (*GetKeyCoreRequest) GetName

func (x *GetKeyCoreRequest) GetName() string

func (*GetKeyCoreRequest) ProtoMessage

func (*GetKeyCoreRequest) ProtoMessage()

func (*GetKeyCoreRequest) ProtoReflect

func (x *GetKeyCoreRequest) ProtoReflect() protoreflect.Message

func (*GetKeyCoreRequest) Reset

func (x *GetKeyCoreRequest) Reset()

func (*GetKeyCoreRequest) String

func (x *GetKeyCoreRequest) String() string

type GetKeyRequest

type GetKeyRequest struct {

	// Required identifier of the key revision to get.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

The request message for [KeyAdminService.GetKey][blocky.authz.admin.v1alpha.KeyAdminService.GetKey].

func (*GetKeyRequest) Descriptor deprecated

func (*GetKeyRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetKeyRequest.ProtoReflect.Descriptor instead.

func (*GetKeyRequest) GetName

func (x *GetKeyRequest) GetName() string

func (*GetKeyRequest) ProtoMessage

func (*GetKeyRequest) ProtoMessage()

func (*GetKeyRequest) ProtoReflect

func (x *GetKeyRequest) ProtoReflect() protoreflect.Message

func (*GetKeyRequest) Reset

func (x *GetKeyRequest) Reset()

func (*GetKeyRequest) String

func (x *GetKeyRequest) String() string

type GetResourceManagerRequest

type GetResourceManagerRequest struct {

	// The name of the resource manager to retrieve.
	// Format: projects/{project}/resourceManagers/{resource_manager}
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

The request message for [ResourceAdminService.GetResourceManager][google.cloud.blocky.authz.admin.v1alpha.ResourceAdminService.GetResourceManager].

func (*GetResourceManagerRequest) Descriptor deprecated

func (*GetResourceManagerRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetResourceManagerRequest.ProtoReflect.Descriptor instead.

func (*GetResourceManagerRequest) GetName

func (x *GetResourceManagerRequest) GetName() string

func (*GetResourceManagerRequest) ProtoMessage

func (*GetResourceManagerRequest) ProtoMessage()

func (*GetResourceManagerRequest) ProtoReflect

func (*GetResourceManagerRequest) Reset

func (x *GetResourceManagerRequest) Reset()

func (*GetResourceManagerRequest) String

func (x *GetResourceManagerRequest) String() string

type GetResourcePermissionRequest

type GetResourcePermissionRequest struct {

	// Required, authorization resource_permission identifier and resource name.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

The request for [ResourceAdminService.GetResourcePermission][blocky.authz.admin.v1alpha.ResourceAdminService.GetResourcePermission].

func (*GetResourcePermissionRequest) Descriptor deprecated

func (*GetResourcePermissionRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetResourcePermissionRequest.ProtoReflect.Descriptor instead.

func (*GetResourcePermissionRequest) GetName

func (x *GetResourcePermissionRequest) GetName() string

func (*GetResourcePermissionRequest) ProtoMessage

func (*GetResourcePermissionRequest) ProtoMessage()

func (*GetResourcePermissionRequest) ProtoReflect

func (*GetResourcePermissionRequest) Reset

func (x *GetResourcePermissionRequest) Reset()

func (*GetResourcePermissionRequest) String

type GetUserConsentRequest

type GetUserConsentRequest struct {

	// Required. The name of the user consent to retrieve.
	// Format: "projects/{project}/userConsents/{user_consent}"
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

GetUserConsentRequest is the request message for [UserConsentAdminService.GetUserConsent][blocky.authz.admin.v1alpha.UserConsentAdminService.GetUserConsent].

func (*GetUserConsentRequest) Descriptor deprecated

func (*GetUserConsentRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetUserConsentRequest.ProtoReflect.Descriptor instead.

func (*GetUserConsentRequest) GetName

func (x *GetUserConsentRequest) GetName() string

func (*GetUserConsentRequest) ProtoMessage

func (*GetUserConsentRequest) ProtoMessage()

func (*GetUserConsentRequest) ProtoReflect

func (x *GetUserConsentRequest) ProtoReflect() protoreflect.Message

func (*GetUserConsentRequest) Reset

func (x *GetUserConsentRequest) Reset()

func (*GetUserConsentRequest) String

func (x *GetUserConsentRequest) String() string

type Instance

type Instance struct {

	// The unique name of the authorization service instance.
	// Values are of the form:
	// 'projects/{project}/instance'.
	// On a standalone authorization service, the instance identifier
	// could be aliased to a 'default' instance.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Creation timestamp of the instance.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Last modification timestamp of the instance.
	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// Configuration for the authorization service instance.
	Config *InstanceConfig `protobuf:"bytes,4,opt,name=config,proto3" json:"config,omitempty"`
	// contains filtered or unexported fields
}

Is a authorization service instance resource.

func (*Instance) Descriptor deprecated

func (*Instance) Descriptor() ([]byte, []int)

Deprecated: Use Instance.ProtoReflect.Descriptor instead.

func (*Instance) GetConfig

func (x *Instance) GetConfig() *InstanceConfig

func (*Instance) GetCreateTime

func (x *Instance) GetCreateTime() *timestamppb.Timestamp

func (*Instance) GetName

func (x *Instance) GetName() string

func (*Instance) GetUpdateTime

func (x *Instance) GetUpdateTime() *timestamppb.Timestamp

func (*Instance) ProtoMessage

func (*Instance) ProtoMessage()

func (*Instance) ProtoReflect

func (x *Instance) ProtoReflect() protoreflect.Message

func (*Instance) Reset

func (x *Instance) Reset()

func (*Instance) String

func (x *Instance) String() string

type InstanceAdminServiceClient

type InstanceAdminServiceClient interface {
	// Patch an existing instance of an Authorization service.
	UpdateInstance(ctx context.Context, in *UpdateInstanceRequest, opts ...grpc.CallOption) (*Instance, error)
	// Gets the details of an instance of an Authorization service.
	GetInstance(ctx context.Context, in *GetInstanceRequest, opts ...grpc.CallOption) (*Instance, error)
}

InstanceAdminServiceClient is the client API for InstanceAdminService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type InstanceAdminServiceServer

type InstanceAdminServiceServer interface {
	// Patch an existing instance of an Authorization service.
	UpdateInstance(context.Context, *UpdateInstanceRequest) (*Instance, error)
	// Gets the details of an instance of an Authorization service.
	GetInstance(context.Context, *GetInstanceRequest) (*Instance, error)
	// contains filtered or unexported methods
}

InstanceAdminServiceServer is the server API for InstanceAdminService service. All implementations must embed UnimplementedInstanceAdminServiceServer for forward compatibility

type InstanceConfig

type InstanceConfig struct {

	// The name of the service issuing tokens.
	Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"`
	// A default key rotation period for keys with non-specified rotation.
	KeyRotationPeriod *durationpb.Duration `protobuf:"bytes,2,opt,name=key_rotation_period,json=keyRotationPeriod,proto3" json:"key_rotation_period,omitempty"`
	// Access token configuration.
	AccessToken *AccessTokenConfig `protobuf:"bytes,3,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
	// Refresh token configuration.
	RefreshToken *RefreshTokenConfig `protobuf:"bytes,4,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"`
	// contains filtered or unexported fields
}

Configuration for an authorization service instance.

func (*InstanceConfig) Descriptor deprecated

func (*InstanceConfig) Descriptor() ([]byte, []int)

Deprecated: Use InstanceConfig.ProtoReflect.Descriptor instead.

func (*InstanceConfig) GetAccessToken

func (x *InstanceConfig) GetAccessToken() *AccessTokenConfig

func (*InstanceConfig) GetIssuer

func (x *InstanceConfig) GetIssuer() string

func (*InstanceConfig) GetKeyRotationPeriod

func (x *InstanceConfig) GetKeyRotationPeriod() *durationpb.Duration

func (*InstanceConfig) GetRefreshToken

func (x *InstanceConfig) GetRefreshToken() *RefreshTokenConfig

func (*InstanceConfig) ProtoMessage

func (*InstanceConfig) ProtoMessage()

func (*InstanceConfig) ProtoReflect

func (x *InstanceConfig) ProtoReflect() protoreflect.Message

func (*InstanceConfig) Reset

func (x *InstanceConfig) Reset()

func (*InstanceConfig) String

func (x *InstanceConfig) String() string

type Key

type Key struct {

	// The resource name of the key revision.
	// Format: `projects/{project}/keys/{key}`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Is a unique key revision identifier assigned by the server.
	// It is directly used as the 'kid' parameter in the JWK set.
	// I.e.: 'projects/{project}/keys/key_id'
	KeyId string `protobuf:"bytes,2,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"`
	// The creation time of the key revision.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// The key revision number for the parent.
	// All the key revisions rotated from the same parent key have the same revision number.
	RevisionNumber int32 `protobuf:"varint,4,opt,name=revision_number,json=revisionNumber,proto3" json:"revision_number,omitempty"`
	// Revocation time of the key.
	// If the key was revoked, it is no longer used for signing and verification.
	// It is not included in the public JWK set.
	// Once rotated, a new key is no longer marked as revoked.
	// Remains null if the key was not revoked.
	RevokeTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=revoke_time,json=revokeTime,proto3" json:"revoke_time,omitempty"`
	// Core from which the key was derived.
	Core string `protobuf:"bytes,6,opt,name=core,proto3" json:"core,omitempty"`
	// contains filtered or unexported fields
}

Key is a representation of an authorization key used by the service. It is derived from the key core and is directly used for signing and verification of the authorization tokens. The Only the most recent key revision could be used to sign the tokens, However all, non-revoked key revisions could be used for verification.

func (*Key) Descriptor deprecated

func (*Key) Descriptor() ([]byte, []int)

Deprecated: Use Key.ProtoReflect.Descriptor instead.

func (*Key) GetCore

func (x *Key) GetCore() string

func (*Key) GetCreateTime

func (x *Key) GetCreateTime() *timestamppb.Timestamp

func (*Key) GetKeyId

func (x *Key) GetKeyId() string

func (*Key) GetName

func (x *Key) GetName() string

func (*Key) GetRevisionNumber

func (x *Key) GetRevisionNumber() int32

func (*Key) GetRevokeTime

func (x *Key) GetRevokeTime() *timestamppb.Timestamp

func (*Key) ProtoMessage

func (*Key) ProtoMessage()

func (*Key) ProtoReflect

func (x *Key) ProtoReflect() protoreflect.Message

func (*Key) Reset

func (x *Key) Reset()

func (*Key) String

func (x *Key) String() string

type KeyAdminServiceClient

type KeyAdminServiceClient interface {
	// CreateKeyCore creates a new authorization key.
	// New key is neither active nor used in a set.
	CreateKeyCore(ctx context.Context, in *CreateKeyCoreRequest, opts ...grpc.CallOption) (*KeyCore, error)
	// GetKeyCore returns the specified authorization key.
	GetKeyCore(ctx context.Context, in *GetKeyCoreRequest, opts ...grpc.CallOption) (*KeyCore, error)
	// ListKeyCores lists authorization keys that matches given request.
	ListKeyCores(ctx context.Context, in *ListKeyCoresRequest, opts ...grpc.CallOption) (*ListKeyCoresResponse, error)
	// ListKeyCoreKeys lists authorization keys that matches given request.
	ListKeyCoreKeys(ctx context.Context, in *ListKeyCoreKeysRequest, opts ...grpc.CallOption) (*ListKeyCoreKeysResponse, error)
	// UpdateKeyCore updates the specified authorization key.
	UpdateKeyCore(ctx context.Context, in *UpdateKeyCoreRequest, opts ...grpc.CallOption) (*KeyCore, error)
	// Creates a new key revision and rotates the key.
	RotateKey(ctx context.Context, in *RotateKeyRequest, opts ...grpc.CallOption) (*Key, error)
	// GetKey returns the specified key revision.
	GetKey(ctx context.Context, in *GetKeyRequest, opts ...grpc.CallOption) (*Key, error)
	// ListKeys lists authorization keys that matches given request.
	ListKeys(ctx context.Context, in *ListKeysRequest, opts ...grpc.CallOption) (*ListKeysResponse, error)
	// RevokeKey revokes an authorization key revision.
	// Once revoked the key revision is no longer valid for signing and verification.
	// If revoked key was the only active signing key, the system will not accept
	// any new requests until a new key is created and activated.
	RevokeKey(ctx context.Context, in *RevokeKeyRequest, opts ...grpc.CallOption) (*Key, error)
}

KeyAdminServiceClient is the client API for KeyAdminService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type KeyAdminServiceServer

type KeyAdminServiceServer interface {
	// CreateKeyCore creates a new authorization key.
	// New key is neither active nor used in a set.
	CreateKeyCore(context.Context, *CreateKeyCoreRequest) (*KeyCore, error)
	// GetKeyCore returns the specified authorization key.
	GetKeyCore(context.Context, *GetKeyCoreRequest) (*KeyCore, error)
	// ListKeyCores lists authorization keys that matches given request.
	ListKeyCores(context.Context, *ListKeyCoresRequest) (*ListKeyCoresResponse, error)
	// ListKeyCoreKeys lists authorization keys that matches given request.
	ListKeyCoreKeys(context.Context, *ListKeyCoreKeysRequest) (*ListKeyCoreKeysResponse, error)
	// UpdateKeyCore updates the specified authorization key.
	UpdateKeyCore(context.Context, *UpdateKeyCoreRequest) (*KeyCore, error)
	// Creates a new key revision and rotates the key.
	RotateKey(context.Context, *RotateKeyRequest) (*Key, error)
	// GetKey returns the specified key revision.
	GetKey(context.Context, *GetKeyRequest) (*Key, error)
	// ListKeys lists authorization keys that matches given request.
	ListKeys(context.Context, *ListKeysRequest) (*ListKeysResponse, error)
	// RevokeKey revokes an authorization key revision.
	// Once revoked the key revision is no longer valid for signing and verification.
	// If revoked key was the only active signing key, the system will not accept
	// any new requests until a new key is created and activated.
	RevokeKey(context.Context, *RevokeKeyRequest) (*Key, error)
	// contains filtered or unexported methods
}

KeyAdminServiceServer is the server API for KeyAdminService service. All implementations must embed UnimplementedKeyAdminServiceServer for forward compatibility

type KeyCore

type KeyCore struct {

	// Name of the key core.
	// Format: 'projects/{project}/keyCores/{key_core}'
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The unique server-generated UUID identifier for the key revision.
	// It could be used as the key revision identifier in its resource name.
	Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"`
	// Algorithm used for signing and verification.
	Algorithm signalgpb.SigningAlgorithm `protobuf:"varint,3,opt,name=algorithm,proto3,enum=blocky.authz.type.SigningAlgorithm" json:"algorithm,omitempty"`
	// The display name of the key core.
	DisplayName string `protobuf:"bytes,4,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// Time when the key core was created.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Time when the key core was updated.
	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// Time when the key core was last rotated.
	LastRotatedTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=last_rotated_time,json=lastRotatedTime,proto3" json:"last_rotated_time,omitempty"`
	// Rotation interval of the key derived from this core.
	// If not provided, the key core will not be rotated automatically.
	RotationInterval *durationpb.Duration `protobuf:"bytes,8,opt,name=rotation_interval,json=rotationInterval,proto3" json:"rotation_interval,omitempty"`
	// Priority of the key core.
	// The higher the priority, the more likely the key will be used for signing.
	// If not provided, the key will be assigned the default priority 0.
	// The keys in the JWK set are sorted by priority in descending order.
	Priority int32 `protobuf:"varint,9,opt,name=priority,proto3" json:"priority,omitempty"`
	// Is the number of keys derived from this core.
	DerivedKeysCount int32 `protobuf:"varint,10,opt,name=derived_keys_count,json=derivedKeysCount,proto3" json:"derived_keys_count,omitempty"`
	// contains filtered or unexported fields
}

KeyCore is a representation of an authorization key core definition. It contains information about the key, such as algorithm, name, creation time, as well as information about its activation and rotation.

The core is used to derive authorization key used for signing and verification. Once the key is being rotated, a new key derives actual parameters from the core. This may change the new key properties like priority.

Once a new key is derived from the core in addition to its own name, it is also assigned an alias 'latest' which is used to refer to the latest key. The full path of the latest key core derivation is: 'projects/{project}/keyCores/{key_core}/keys/latest'

func (*KeyCore) Descriptor deprecated

func (*KeyCore) Descriptor() ([]byte, []int)

Deprecated: Use KeyCore.ProtoReflect.Descriptor instead.

func (*KeyCore) GetAlgorithm

func (x *KeyCore) GetAlgorithm() signalgpb.SigningAlgorithm

func (*KeyCore) GetCreateTime

func (x *KeyCore) GetCreateTime() *timestamppb.Timestamp

func (*KeyCore) GetDerivedKeysCount

func (x *KeyCore) GetDerivedKeysCount() int32

func (*KeyCore) GetDisplayName

func (x *KeyCore) GetDisplayName() string

func (*KeyCore) GetLastRotatedTime

func (x *KeyCore) GetLastRotatedTime() *timestamppb.Timestamp

func (*KeyCore) GetName

func (x *KeyCore) GetName() string

func (*KeyCore) GetPriority

func (x *KeyCore) GetPriority() int32

func (*KeyCore) GetRotationInterval

func (x *KeyCore) GetRotationInterval() *durationpb.Duration

func (*KeyCore) GetUid

func (x *KeyCore) GetUid() string

func (*KeyCore) GetUpdateTime

func (x *KeyCore) GetUpdateTime() *timestamppb.Timestamp

func (*KeyCore) ProtoMessage

func (*KeyCore) ProtoMessage()

func (*KeyCore) ProtoReflect

func (x *KeyCore) ProtoReflect() protoreflect.Message

func (*KeyCore) Reset

func (x *KeyCore) Reset()

func (*KeyCore) String

func (x *KeyCore) String() string

type ListClientRequest

type ListClientRequest struct {

	// The parent instance whose clients are listed.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// The maximum number of clients to return.
	// The service may return fewer than this value.
	// If unspecified, at most 20 clients will be returned.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// A page token, received from a previous
	// [ClientAdminService.ListClient][blocky.authz.admin.v1alpha.ClientAdminService.ListClient] call.
	// Provide this to retrieve the subsequent page.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

The request message for [ClientAdminService.ListClient][blocky.authz.admin.v1alpha.ClientAdminService.ListClient].

func (*ListClientRequest) Descriptor deprecated

func (*ListClientRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListClientRequest.ProtoReflect.Descriptor instead.

func (*ListClientRequest) GetPageSize

func (x *ListClientRequest) GetPageSize() int32

func (*ListClientRequest) GetPageToken

func (x *ListClientRequest) GetPageToken() string

func (*ListClientRequest) GetParent

func (x *ListClientRequest) GetParent() string

func (*ListClientRequest) ProtoMessage

func (*ListClientRequest) ProtoMessage()

func (*ListClientRequest) ProtoReflect

func (x *ListClientRequest) ProtoReflect() protoreflect.Message

func (*ListClientRequest) Reset

func (x *ListClientRequest) Reset()

func (*ListClientRequest) String

func (x *ListClientRequest) String() string

type ListClientResourcePermissionsRequest

type ListClientResourcePermissionsRequest struct {

	// Required. The parent client whose permissions are listed.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// The maximum number of permissions to return.
	// The service may return fewer than this value.
	// If unspecified, at most 20 permissions will be returned.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// A page token, received from a previous
	// [ClientAdminService.ListClientResourcePermissions][blocky.authz.admin.v1alpha.ClientAdminService.ListClientResourcePermissions] call.
	// Provide this to retrieve the subsequent page.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

The request message for [ClientAdminService.ListClientResourcePermissions][blocky.authz.admin.v1alpha.ClientAdminService.ListClientResourcePermissions].

func (*ListClientResourcePermissionsRequest) Descriptor deprecated

func (*ListClientResourcePermissionsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListClientResourcePermissionsRequest.ProtoReflect.Descriptor instead.

func (*ListClientResourcePermissionsRequest) GetPageSize

func (*ListClientResourcePermissionsRequest) GetPageToken

func (x *ListClientResourcePermissionsRequest) GetPageToken() string

func (*ListClientResourcePermissionsRequest) GetParent

func (*ListClientResourcePermissionsRequest) ProtoMessage

func (*ListClientResourcePermissionsRequest) ProtoMessage()

func (*ListClientResourcePermissionsRequest) ProtoReflect

func (*ListClientResourcePermissionsRequest) Reset

func (*ListClientResourcePermissionsRequest) String

type ListClientResourcePermissionsResponse

type ListClientResourcePermissionsResponse struct {

	// The list of permissions.
	ResourcePermissions []string `protobuf:"bytes,1,rep,name=resource_permissions,json=resourcePermissions,proto3" json:"resource_permissions,omitempty"`
	// A token to retrieve the next page of results.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

The response message for [ClientAdminService.ListClientResourcePermissions][blocky.authz.admin.v1alpha.ClientAdminService.ListClientResourcePermissions].

func (*ListClientResourcePermissionsResponse) Descriptor deprecated

func (*ListClientResourcePermissionsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListClientResourcePermissionsResponse.ProtoReflect.Descriptor instead.

func (*ListClientResourcePermissionsResponse) GetNextPageToken

func (x *ListClientResourcePermissionsResponse) GetNextPageToken() string

func (*ListClientResourcePermissionsResponse) GetResourcePermissions

func (x *ListClientResourcePermissionsResponse) GetResourcePermissions() []string

func (*ListClientResourcePermissionsResponse) ProtoMessage

func (*ListClientResourcePermissionsResponse) ProtoMessage()

func (*ListClientResourcePermissionsResponse) ProtoReflect

func (*ListClientResourcePermissionsResponse) Reset

func (*ListClientResourcePermissionsResponse) String

type ListClientResponse

type ListClientResponse struct {

	// The list of clients.
	Clients []*Client `protobuf:"bytes,1,rep,name=clients,proto3" json:"clients,omitempty"`
	// A token to retrieve the next page of results.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

The response message for [ClientAdminService.ListClient][blocky.authz.admin.v1alpha.ClientAdminService.ListClient].

func (*ListClientResponse) Descriptor deprecated

func (*ListClientResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListClientResponse.ProtoReflect.Descriptor instead.

func (*ListClientResponse) GetClients

func (x *ListClientResponse) GetClients() []*Client

func (*ListClientResponse) GetNextPageToken

func (x *ListClientResponse) GetNextPageToken() string

func (*ListClientResponse) ProtoMessage

func (*ListClientResponse) ProtoMessage()

func (*ListClientResponse) ProtoReflect

func (x *ListClientResponse) ProtoReflect() protoreflect.Message

func (*ListClientResponse) Reset

func (x *ListClientResponse) Reset()

func (*ListClientResponse) String

func (x *ListClientResponse) String() string

type ListKeyCoreKeysRequest

type ListKeyCoreKeysRequest struct {

	// Required identifier of the key to list revisions for.
	// Format: 'projects/{project}/keyCores/{key_core}'.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Optional page_size on the number of key revisions to include in the response.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// optional page token to continue listing key revisions from.
	// If not provided, the service will start listing from the beginning.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

The request message for [KeyAdminService.ListKeyCoreKeys][blocky.authz.admin.v1alpha.KeyAdminService.ListKeyCoreKeys].

func (*ListKeyCoreKeysRequest) Descriptor deprecated

func (*ListKeyCoreKeysRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListKeyCoreKeysRequest.ProtoReflect.Descriptor instead.

func (*ListKeyCoreKeysRequest) GetPageSize

func (x *ListKeyCoreKeysRequest) GetPageSize() int32

func (*ListKeyCoreKeysRequest) GetPageToken

func (x *ListKeyCoreKeysRequest) GetPageToken() string

func (*ListKeyCoreKeysRequest) GetParent

func (x *ListKeyCoreKeysRequest) GetParent() string

func (*ListKeyCoreKeysRequest) ProtoMessage

func (*ListKeyCoreKeysRequest) ProtoMessage()

func (*ListKeyCoreKeysRequest) ProtoReflect

func (x *ListKeyCoreKeysRequest) ProtoReflect() protoreflect.Message

func (*ListKeyCoreKeysRequest) Reset

func (x *ListKeyCoreKeysRequest) Reset()

func (*ListKeyCoreKeysRequest) String

func (x *ListKeyCoreKeysRequest) String() string

type ListKeyCoreKeysResponse

type ListKeyCoreKeysResponse struct {

	// List of key revisions for the requested key.
	Keys []*Key `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"`
	// Token to continue listing key revisions from.
	// If there are no more key revisions to list, the token is not included.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

The response message for [KeyAdminService.ListKeyCoreKeys][blocky.authz.admin.v1alpha.KeyAdminService.ListKeyCoreKeys].

func (*ListKeyCoreKeysResponse) Descriptor deprecated

func (*ListKeyCoreKeysResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListKeyCoreKeysResponse.ProtoReflect.Descriptor instead.

func (*ListKeyCoreKeysResponse) GetKeys

func (x *ListKeyCoreKeysResponse) GetKeys() []*Key

func (*ListKeyCoreKeysResponse) GetNextPageToken

func (x *ListKeyCoreKeysResponse) GetNextPageToken() string

func (*ListKeyCoreKeysResponse) ProtoMessage

func (*ListKeyCoreKeysResponse) ProtoMessage()

func (*ListKeyCoreKeysResponse) ProtoReflect

func (x *ListKeyCoreKeysResponse) ProtoReflect() protoreflect.Message

func (*ListKeyCoreKeysResponse) Reset

func (x *ListKeyCoreKeysResponse) Reset()

func (*ListKeyCoreKeysResponse) String

func (x *ListKeyCoreKeysResponse) String() string

type ListKeyCoresRequest

type ListKeyCoresRequest struct {

	// Required. The resource name of the project whose keys are to be listed.
	// Format: 'projects/{project}'.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Optional. The maximum number of Keys to return in the response. The
	// server allows a maximum of 300 Keys to return. If unspecified, the
	// server will use 50 as the default, unless its configuration specifies
	// a smaller default.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Optional. A pagination token returned from a previous call to
	// ListKeysRequest that indicates where this listing should continue from.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

The request message for [KeyAdminService.ListKeyCores][blocky.authz.admin.v1alpha.KeyAdminService.ListKeyCores].

func (*ListKeyCoresRequest) Descriptor deprecated

func (*ListKeyCoresRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListKeyCoresRequest.ProtoReflect.Descriptor instead.

func (*ListKeyCoresRequest) GetPageSize

func (x *ListKeyCoresRequest) GetPageSize() int32

func (*ListKeyCoresRequest) GetPageToken

func (x *ListKeyCoresRequest) GetPageToken() string

func (*ListKeyCoresRequest) GetParent

func (x *ListKeyCoresRequest) GetParent() string

func (*ListKeyCoresRequest) ProtoMessage

func (*ListKeyCoresRequest) ProtoMessage()

func (*ListKeyCoresRequest) ProtoReflect

func (x *ListKeyCoresRequest) ProtoReflect() protoreflect.Message

func (*ListKeyCoresRequest) Reset

func (x *ListKeyCoresRequest) Reset()

func (*ListKeyCoresRequest) String

func (x *ListKeyCoresRequest) String() string

type ListKeyCoresResponse

type ListKeyCoresResponse struct {

	// List of keys matching the request.
	KeyCores []*KeyCore `protobuf:"bytes,1,rep,name=key_cores,json=keyCores,proto3" json:"key_cores,omitempty"`
	// Token to retrieve the next page of results, or empty if there are no
	// more results in the list.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

The response message for [KeyAdminService.ListKeyCores][blocky.authz.admin.v1alpha.KeyAdminService.ListKeyCores].

func (*ListKeyCoresResponse) Descriptor deprecated

func (*ListKeyCoresResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListKeyCoresResponse.ProtoReflect.Descriptor instead.

func (*ListKeyCoresResponse) GetKeyCores

func (x *ListKeyCoresResponse) GetKeyCores() []*KeyCore

func (*ListKeyCoresResponse) GetNextPageToken

func (x *ListKeyCoresResponse) GetNextPageToken() string

func (*ListKeyCoresResponse) ProtoMessage

func (*ListKeyCoresResponse) ProtoMessage()

func (*ListKeyCoresResponse) ProtoReflect

func (x *ListKeyCoresResponse) ProtoReflect() protoreflect.Message

func (*ListKeyCoresResponse) Reset

func (x *ListKeyCoresResponse) Reset()

func (*ListKeyCoresResponse) String

func (x *ListKeyCoresResponse) String() string

type ListKeysRequest

type ListKeysRequest struct {

	// Required identifier of the key to list revisions for.
	// This might be either a project, or a key core.
	// Format:
	// - 'projects/{project}'
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Optional page_size on the number of key revisions to include in the response.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Optional page token to continue listing key revisions from.
	// If not provided, the service will start listing from the beginning.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

The request message for [KeyAdminService.ListKeys][blocky.authz.admin.v1alpha.KeyAdminService.ListKeys].

func (*ListKeysRequest) Descriptor deprecated

func (*ListKeysRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListKeysRequest.ProtoReflect.Descriptor instead.

func (*ListKeysRequest) GetPageSize

func (x *ListKeysRequest) GetPageSize() int32

func (*ListKeysRequest) GetPageToken

func (x *ListKeysRequest) GetPageToken() string

func (*ListKeysRequest) GetParent

func (x *ListKeysRequest) GetParent() string

func (*ListKeysRequest) ProtoMessage

func (*ListKeysRequest) ProtoMessage()

func (*ListKeysRequest) ProtoReflect

func (x *ListKeysRequest) ProtoReflect() protoreflect.Message

func (*ListKeysRequest) Reset

func (x *ListKeysRequest) Reset()

func (*ListKeysRequest) String

func (x *ListKeysRequest) String() string

type ListKeysResponse

type ListKeysResponse struct {

	// List of key revisions for the requested key.
	Keys []*Key `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"`
	// Token to continue listing key revisions from.
	// If there are no more key revisions to list, the token is not included.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

The response message for [KeyAdminService.ListKeys][blocky.authz.admin.v1alpha.KeyAdminService.ListKeys].

func (*ListKeysResponse) Descriptor deprecated

func (*ListKeysResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListKeysResponse.ProtoReflect.Descriptor instead.

func (*ListKeysResponse) GetKeys

func (x *ListKeysResponse) GetKeys() []*Key

func (*ListKeysResponse) GetNextPageToken

func (x *ListKeysResponse) GetNextPageToken() string

func (*ListKeysResponse) ProtoMessage

func (*ListKeysResponse) ProtoMessage()

func (*ListKeysResponse) ProtoReflect

func (x *ListKeysResponse) ProtoReflect() protoreflect.Message

func (*ListKeysResponse) Reset

func (x *ListKeysResponse) Reset()

func (*ListKeysResponse) String

func (x *ListKeysResponse) String() string

type ListResourceManagersRequest

type ListResourceManagersRequest struct {

	// Required. The project whose resource managers are to be listed.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// The maximum number of items to return.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// The next_page_token value returned from a previous List request, if any.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

The request message for [ResourceAdminService.ListResourceManagers][google.cloud.blocky.authz.admin.v1alpha.ResourceAdminService.ListResourceManagers].

func (*ListResourceManagersRequest) Descriptor deprecated

func (*ListResourceManagersRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListResourceManagersRequest.ProtoReflect.Descriptor instead.

func (*ListResourceManagersRequest) GetPageSize

func (x *ListResourceManagersRequest) GetPageSize() int32

func (*ListResourceManagersRequest) GetPageToken

func (x *ListResourceManagersRequest) GetPageToken() string

func (*ListResourceManagersRequest) GetParent

func (x *ListResourceManagersRequest) GetParent() string

func (*ListResourceManagersRequest) ProtoMessage

func (*ListResourceManagersRequest) ProtoMessage()

func (*ListResourceManagersRequest) ProtoReflect

func (*ListResourceManagersRequest) Reset

func (x *ListResourceManagersRequest) Reset()

func (*ListResourceManagersRequest) String

func (x *ListResourceManagersRequest) String() string

type ListResourceManagersResponse

type ListResourceManagersResponse struct {

	// List of resource managers.
	ResourceManagers []*ResourceManager `protobuf:"bytes,1,rep,name=resource_managers,json=resourceManagers,proto3" json:"resource_managers,omitempty"`
	// The pagination token to retrieve the next page of results. If the value is
	// empty, no further results remain.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

The response message for [ResourceAdminService.ListResourceManagers][google.cloud.blocky.authz.admin.v1alpha.ResourceAdminService.ListResourceManagers].

func (*ListResourceManagersResponse) Descriptor deprecated

func (*ListResourceManagersResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListResourceManagersResponse.ProtoReflect.Descriptor instead.

func (*ListResourceManagersResponse) GetNextPageToken

func (x *ListResourceManagersResponse) GetNextPageToken() string

func (*ListResourceManagersResponse) GetResourceManagers

func (x *ListResourceManagersResponse) GetResourceManagers() []*ResourceManager

func (*ListResourceManagersResponse) ProtoMessage

func (*ListResourceManagersResponse) ProtoMessage()

func (*ListResourceManagersResponse) ProtoReflect

func (*ListResourceManagersResponse) Reset

func (x *ListResourceManagersResponse) Reset()

func (*ListResourceManagersResponse) String

type ListResourcePermissionRequest

type ListResourcePermissionRequest struct {

	// Required, the project to list authorization resource_permissions from.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// The maximum number of items to return.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// The next_page_token value returned from a previous List request, if any.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

The request for [ResourceAdminService.ListResourcePermission][blocky.authz.admin.v1alpha.ResourceAdminService.ListResourcePermission].

func (*ListResourcePermissionRequest) Descriptor deprecated

func (*ListResourcePermissionRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListResourcePermissionRequest.ProtoReflect.Descriptor instead.

func (*ListResourcePermissionRequest) GetPageSize

func (x *ListResourcePermissionRequest) GetPageSize() int32

func (*ListResourcePermissionRequest) GetPageToken

func (x *ListResourcePermissionRequest) GetPageToken() string

func (*ListResourcePermissionRequest) GetParent

func (x *ListResourcePermissionRequest) GetParent() string

func (*ListResourcePermissionRequest) ProtoMessage

func (*ListResourcePermissionRequest) ProtoMessage()

func (*ListResourcePermissionRequest) ProtoReflect

func (*ListResourcePermissionRequest) Reset

func (x *ListResourcePermissionRequest) Reset()

func (*ListResourcePermissionRequest) String

type ListResourcePermissionResponse

type ListResourcePermissionResponse struct {

	// List of authorization resource_permissions.
	ResourcePermissions []*ResourcePermission `protobuf:"bytes,1,rep,name=resource_permissions,json=resourcePermissions,proto3" json:"resource_permissions,omitempty"`
	// The pagination token to retrieve the next page of results. If the value is
	// empty, no further results remain.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

The request for [ResourceAdminService.ListResourcePermission][blocky.authz.admin.v1alpha.ResourceAdminService.ListResourcePermission].

func (*ListResourcePermissionResponse) Descriptor deprecated

func (*ListResourcePermissionResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListResourcePermissionResponse.ProtoReflect.Descriptor instead.

func (*ListResourcePermissionResponse) GetNextPageToken

func (x *ListResourcePermissionResponse) GetNextPageToken() string

func (*ListResourcePermissionResponse) GetResourcePermissions

func (x *ListResourcePermissionResponse) GetResourcePermissions() []*ResourcePermission

func (*ListResourcePermissionResponse) ProtoMessage

func (*ListResourcePermissionResponse) ProtoMessage()

func (*ListResourcePermissionResponse) ProtoReflect

func (*ListResourcePermissionResponse) Reset

func (x *ListResourcePermissionResponse) Reset()

func (*ListResourcePermissionResponse) String

type ListResourcePermissionUserConsentsRequest

type ListResourcePermissionUserConsentsRequest struct {

	// Required, the resource permission to list user consents from.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// The maximum number of items to return.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// The next_page_token value returned from a previous List request, if any.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

The request for [ResourceAdminService.ListResourcePermissionUserConsents][blocky.authz.admin.v1alpha.ResourceAdminService.ListResourcePermissionUserConsents].

func (*ListResourcePermissionUserConsentsRequest) Descriptor deprecated

func (*ListResourcePermissionUserConsentsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListResourcePermissionUserConsentsRequest.ProtoReflect.Descriptor instead.

func (*ListResourcePermissionUserConsentsRequest) GetPageSize

func (*ListResourcePermissionUserConsentsRequest) GetPageToken

func (*ListResourcePermissionUserConsentsRequest) GetParent

func (*ListResourcePermissionUserConsentsRequest) ProtoMessage

func (*ListResourcePermissionUserConsentsRequest) ProtoReflect

func (*ListResourcePermissionUserConsentsRequest) Reset

func (*ListResourcePermissionUserConsentsRequest) String

type ListResourcePermissionUserConsentsResponse

type ListResourcePermissionUserConsentsResponse struct {

	// List of user consents.
	UserConsents []*UserConsent `protobuf:"bytes,1,rep,name=user_consents,json=userConsents,proto3" json:"user_consents,omitempty"`
	// The pagination token to retrieve the next page of results. If the value is
	// empty, no further results remain.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

The response for [ResourceAdminService.ListResourcePermissionUserConsents][blocky.authz.admin.v1alpha.ResourceAdminService.ListResourcePermissionUserConsents].

func (*ListResourcePermissionUserConsentsResponse) Descriptor deprecated

Deprecated: Use ListResourcePermissionUserConsentsResponse.ProtoReflect.Descriptor instead.

func (*ListResourcePermissionUserConsentsResponse) GetNextPageToken

func (x *ListResourcePermissionUserConsentsResponse) GetNextPageToken() string

func (*ListResourcePermissionUserConsentsResponse) GetUserConsents

func (*ListResourcePermissionUserConsentsResponse) ProtoMessage

func (*ListResourcePermissionUserConsentsResponse) ProtoReflect

func (*ListResourcePermissionUserConsentsResponse) Reset

func (*ListResourcePermissionUserConsentsResponse) String

type ListUserConsentsRequest

type ListUserConsentsRequest struct {

	// Required. The parent resource whose user consents are to be listed.
	// Format: "projects/{project}"
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// The maximum number of user consents to return. The service may return fewer
	// than this value. If unspecified, at most 20 user consents will be returned.
	// The maximum value is 100; values above 100 will be coerced to 100.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// A page token, received from a previous
	// [UserConsentAdminService.ListUserConsents][blocky.authz.admin.v1alpha.UserConsentAdminService.ListUserConsents]
	// call. Provide this to retrieve the subsequent page.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

ListUserConsentsRequest is the request message for [UserConsentAdminService.ListUserConsents][blocky.authz.admin.v1alpha.UserConsentAdminService.ListUserConsents].

func (*ListUserConsentsRequest) Descriptor deprecated

func (*ListUserConsentsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListUserConsentsRequest.ProtoReflect.Descriptor instead.

func (*ListUserConsentsRequest) GetPageSize

func (x *ListUserConsentsRequest) GetPageSize() int32

func (*ListUserConsentsRequest) GetPageToken

func (x *ListUserConsentsRequest) GetPageToken() string

func (*ListUserConsentsRequest) GetParent

func (x *ListUserConsentsRequest) GetParent() string

func (*ListUserConsentsRequest) ProtoMessage

func (*ListUserConsentsRequest) ProtoMessage()

func (*ListUserConsentsRequest) ProtoReflect

func (x *ListUserConsentsRequest) ProtoReflect() protoreflect.Message

func (*ListUserConsentsRequest) Reset

func (x *ListUserConsentsRequest) Reset()

func (*ListUserConsentsRequest) String

func (x *ListUserConsentsRequest) String() string

type ListUserConsentsResponse

type ListUserConsentsResponse struct {

	// The user consents for the given project.
	UserConsents []*UserConsent `protobuf:"bytes,1,rep,name=user_consents,json=userConsents,proto3" json:"user_consents,omitempty"`
	// A token that can be sent as
	// [ListUserConsentsRequest.page_token][google.cloud.blocky.authz.admin.v1alpha.ListUserConsentsRequest.page_token]
	// to retrieve the next page. If this field is omitted, there are no
	// subsequent pages.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

ListUserConsentsResponse is the response message for [UserConsentAdminService.ListUserConsents][blocky.authz.admin.v1alpha.UserConsentAdminService.ListUserConsents].

func (*ListUserConsentsResponse) Descriptor deprecated

func (*ListUserConsentsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListUserConsentsResponse.ProtoReflect.Descriptor instead.

func (*ListUserConsentsResponse) GetNextPageToken

func (x *ListUserConsentsResponse) GetNextPageToken() string

func (*ListUserConsentsResponse) GetUserConsents

func (x *ListUserConsentsResponse) GetUserConsents() []*UserConsent

func (*ListUserConsentsResponse) ProtoMessage

func (*ListUserConsentsResponse) ProtoMessage()

func (*ListUserConsentsResponse) ProtoReflect

func (x *ListUserConsentsResponse) ProtoReflect() protoreflect.Message

func (*ListUserConsentsResponse) Reset

func (x *ListUserConsentsResponse) Reset()

func (*ListUserConsentsResponse) String

func (x *ListUserConsentsResponse) String() string

type RefreshTokenConfig

type RefreshTokenConfig struct {

	// Preferred algorithm used to sign tokens.
	Algorithm signalgpb.SigningAlgorithm `protobuf:"varint,1,opt,name=algorithm,proto3,enum=blocky.authz.type.SigningAlgorithm" json:"algorithm,omitempty"`
	// The duration of validity of the refresh token.
	TokenLifetime *durationpb.Duration `protobuf:"bytes,2,opt,name=token_lifetime,json=tokenLifetime,proto3" json:"token_lifetime,omitempty"`
	// The number of bytes used as a refresh token random value.
	// By default this value is 128 bytes.
	// This value should not be greater than 2048 bytes.
	TokenSize int32 `protobuf:"varint,3,opt,name=token_size,json=tokenSize,proto3" json:"token_size,omitempty"`
	// contains filtered or unexported fields
}

Is a configuration for the refresh tokens.

func (*RefreshTokenConfig) Descriptor deprecated

func (*RefreshTokenConfig) Descriptor() ([]byte, []int)

Deprecated: Use RefreshTokenConfig.ProtoReflect.Descriptor instead.

func (*RefreshTokenConfig) GetAlgorithm

func (x *RefreshTokenConfig) GetAlgorithm() signalgpb.SigningAlgorithm

func (*RefreshTokenConfig) GetTokenLifetime

func (x *RefreshTokenConfig) GetTokenLifetime() *durationpb.Duration

func (*RefreshTokenConfig) GetTokenSize

func (x *RefreshTokenConfig) GetTokenSize() int32

func (*RefreshTokenConfig) ProtoMessage

func (*RefreshTokenConfig) ProtoMessage()

func (*RefreshTokenConfig) ProtoReflect

func (x *RefreshTokenConfig) ProtoReflect() protoreflect.Message

func (*RefreshTokenConfig) Reset

func (x *RefreshTokenConfig) Reset()

func (*RefreshTokenConfig) String

func (x *RefreshTokenConfig) String() string

type ResourceAdminServiceClient

type ResourceAdminServiceClient interface {
	// Creates a new resource manager within given project.
	CreateResourceManager(ctx context.Context, in *CreateResourceManagerRequest, opts ...grpc.CallOption) (*ResourceManager, error)
	// Gets a resource manager.
	GetResourceManager(ctx context.Context, in *GetResourceManagerRequest, opts ...grpc.CallOption) (*ResourceManager, error)
	// Gets a list of resource managers.
	ListResourceManagers(ctx context.Context, in *ListResourceManagersRequest, opts ...grpc.CallOption) (*ListResourceManagersResponse, error)
	// Updates an existing resource manager with new information.
	UpdateResourceManager(ctx context.Context, in *UpdateResourceManagerRequest, opts ...grpc.CallOption) (*ResourceManager, error)
	// Deletes a resource manager along with all its dependent permissions.
	DeleteResourceManager(ctx context.Context, in *DeleteResourceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Creates an alias for a resource manager.
	// If the alias already exists, the former aliased resource manager
	// will have no alias.
	AliasResourceManager(ctx context.Context, in *AliasResourceRequest, opts ...grpc.CallOption) (*ResourceManager, error)
	// Creates a new authorization resource permission.
	CreateResourcePermission(ctx context.Context, in *CreateResourcePermissionRequest, opts ...grpc.CallOption) (*ResourcePermission, error)
	// Lists authorization resource permissions that are registered with the service.
	ListResourcePermission(ctx context.Context, in *ListResourcePermissionRequest, opts ...grpc.CallOption) (*ListResourcePermissionResponse, error)
	// Gets an existing resource permission.
	GetResourcePermission(ctx context.Context, in *GetResourcePermissionRequest, opts ...grpc.CallOption) (*ResourcePermission, error)
	// Updates an existing authorization resource permission with new information.
	UpdateResourcePermission(ctx context.Context, in *UpdateResourcePermissionRequest, opts ...grpc.CallOption) (*ResourcePermission, error)
	// Deletes an authorization resource permission.
	DeleteResourcePermission(ctx context.Context, in *DeleteResourcePermissionRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Creates an alias for an authorization resource permission.
	// If the alias already exists, the former aliased resource permission will have
	// no alias.
	AliasResourcePermission(ctx context.Context, in *AliasResourcePermissionRequest, opts ...grpc.CallOption) (*ResourcePermission, error)
	// Lists user consents associated with given resource permission.
	ListResourcePermissionUserConsents(ctx context.Context, in *ListResourcePermissionUserConsentsRequest, opts ...grpc.CallOption) (*ListResourcePermissionUserConsentsResponse, error)
}

ResourceAdminServiceClient is the client API for ResourceAdminService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type ResourceAdminServiceServer

type ResourceAdminServiceServer interface {
	// Creates a new resource manager within given project.
	CreateResourceManager(context.Context, *CreateResourceManagerRequest) (*ResourceManager, error)
	// Gets a resource manager.
	GetResourceManager(context.Context, *GetResourceManagerRequest) (*ResourceManager, error)
	// Gets a list of resource managers.
	ListResourceManagers(context.Context, *ListResourceManagersRequest) (*ListResourceManagersResponse, error)
	// Updates an existing resource manager with new information.
	UpdateResourceManager(context.Context, *UpdateResourceManagerRequest) (*ResourceManager, error)
	// Deletes a resource manager along with all its dependent permissions.
	DeleteResourceManager(context.Context, *DeleteResourceRequest) (*emptypb.Empty, error)
	// Creates an alias for a resource manager.
	// If the alias already exists, the former aliased resource manager
	// will have no alias.
	AliasResourceManager(context.Context, *AliasResourceRequest) (*ResourceManager, error)
	// Creates a new authorization resource permission.
	CreateResourcePermission(context.Context, *CreateResourcePermissionRequest) (*ResourcePermission, error)
	// Lists authorization resource permissions that are registered with the service.
	ListResourcePermission(context.Context, *ListResourcePermissionRequest) (*ListResourcePermissionResponse, error)
	// Gets an existing resource permission.
	GetResourcePermission(context.Context, *GetResourcePermissionRequest) (*ResourcePermission, error)
	// Updates an existing authorization resource permission with new information.
	UpdateResourcePermission(context.Context, *UpdateResourcePermissionRequest) (*ResourcePermission, error)
	// Deletes an authorization resource permission.
	DeleteResourcePermission(context.Context, *DeleteResourcePermissionRequest) (*emptypb.Empty, error)
	// Creates an alias for an authorization resource permission.
	// If the alias already exists, the former aliased resource permission will have
	// no alias.
	AliasResourcePermission(context.Context, *AliasResourcePermissionRequest) (*ResourcePermission, error)
	// Lists user consents associated with given resource permission.
	ListResourcePermissionUserConsents(context.Context, *ListResourcePermissionUserConsentsRequest) (*ListResourcePermissionUserConsentsResponse, error)
	// contains filtered or unexported methods
}

ResourceAdminServiceServer is the server API for ResourceAdminService service. All implementations must embed UnimplementedResourceAdminServiceServer for forward compatibility

type ResourceManager

type ResourceManager struct {

	// Is a unique identifier of the resource manager.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Is a system-assigned unique identifier for this resource manager.
	// The format of this identifier is a UUID.s
	Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"`
	// Is a unique human-readable name of the resource manager.
	// If defined it may be used as an alias for the resource manager identifier.
	// I.e.:  projects/{project}/resourceManagers/my-resource-manager
	// The alias is mutable by custom AliasResourceManager RPC.
	Alias string `protobuf:"bytes,3,opt,name=alias,proto3" json:"alias,omitempty"`
	// Is a human-readable name of the resource manager.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Is a human-readable na/me of the resource manager.
	DisplayName string `protobuf:"bytes,5,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// Is a token audience name for this resource manager.
	// The audience name is used by the token issuer to identify the resource manager.
	// If not defined, the audience name is the same as the resource manager name.
	Audience string `protobuf:"bytes,6,opt,name=audience,proto3" json:"audience,omitempty"`
	// Is a human-readable description of the resource manager.
	Description string `protobuf:"bytes,7,opt,name=description,proto3" json:"description,omitempty"`
	// Supported signing algorithms for this resource manager.
	// If not defined, all signing algorithms are supported.
	SigningAlgorithms []signalgpb.SigningAlgorithm `` /* 160-byte string literal not displayed */
	// contains filtered or unexported fields
}

A resource manager describes a valid any service that provides some resources and is expected to be secured by the Authorization Server. The resource service identified by its resource manager is also an audience of the authorization tokens. Each resource manager may manage access to its resources using different permission scopes. A resource manager may also specify which signing algorithms it supports, and which signing algorithms are required for the access tokens.

func (*ResourceManager) Descriptor deprecated

func (*ResourceManager) Descriptor() ([]byte, []int)

Deprecated: Use ResourceManager.ProtoReflect.Descriptor instead.

func (*ResourceManager) GetAlias

func (x *ResourceManager) GetAlias() string

func (*ResourceManager) GetAudience

func (x *ResourceManager) GetAudience() string

func (*ResourceManager) GetCreateTime

func (x *ResourceManager) GetCreateTime() *timestamppb.Timestamp

func (*ResourceManager) GetDescription

func (x *ResourceManager) GetDescription() string

func (*ResourceManager) GetDisplayName

func (x *ResourceManager) GetDisplayName() string

func (*ResourceManager) GetName

func (x *ResourceManager) GetName() string

func (*ResourceManager) GetSigningAlgorithms

func (x *ResourceManager) GetSigningAlgorithms() []signalgpb.SigningAlgorithm

func (*ResourceManager) GetUid

func (x *ResourceManager) GetUid() string

func (*ResourceManager) ProtoMessage

func (*ResourceManager) ProtoMessage()

func (*ResourceManager) ProtoReflect

func (x *ResourceManager) ProtoReflect() protoreflect.Message

func (*ResourceManager) Reset

func (x *ResourceManager) Reset()

func (*ResourceManager) String

func (x *ResourceManager) String() string

type ResourcePermission

type ResourcePermission struct {

	// The resource permission identifier and resource name.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Server-generated unique identifier for the scope.
	// It could be used as an alias for the resource permission identifier.
	// I.e.:  projects/{project}/resourceManagers/{resourceManager}/resourcePermissions/{uid}
	Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"`
	// The authorization scope string that is used in the OAuth 2.0 access and refresh tokens.
	// It is used as OAuth 2.0 scope parameter.
	// The scope must be unique within the whole project.
	Scope string `protobuf:"bytes,3,opt,name=scope,proto3" json:"scope,omitempty"`
	// The human-readable alias of resource permission identifier.
	// It needs to be unique in the parent resource manager.
	// As a good practice the alias might correspond to the scope,
	// which guarantees uniqueness of the scope within the project.
	Alias string `protobuf:"bytes,4,opt,name=alias,proto3" json:"alias,omitempty"`
	// The date of creation of the resource permission.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// The date of the last modification of the resource permission.
	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// The human-readable display name of the resource permission.
	DisplayName string `protobuf:"bytes,7,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// The human-readable description of the resource permission.
	Description string `protobuf:"bytes,8,opt,name=description,proto3" json:"description,omitempty"`
	// Etag of the resource permission.
	Etag string `protobuf:"bytes,9,opt,name=etag,proto3" json:"etag,omitempty"`
	// contains filtered or unexported fields
}

Determines a set of access permissions for a particular resource, identified

func (*ResourcePermission) Descriptor deprecated

func (*ResourcePermission) Descriptor() ([]byte, []int)

Deprecated: Use ResourcePermission.ProtoReflect.Descriptor instead.

func (*ResourcePermission) GetAlias

func (x *ResourcePermission) GetAlias() string

func (*ResourcePermission) GetCreateTime

func (x *ResourcePermission) GetCreateTime() *timestamppb.Timestamp

func (*ResourcePermission) GetDescription

func (x *ResourcePermission) GetDescription() string

func (*ResourcePermission) GetDisplayName

func (x *ResourcePermission) GetDisplayName() string

func (*ResourcePermission) GetEtag

func (x *ResourcePermission) GetEtag() string

func (*ResourcePermission) GetName

func (x *ResourcePermission) GetName() string

func (*ResourcePermission) GetScope

func (x *ResourcePermission) GetScope() string

func (*ResourcePermission) GetUid

func (x *ResourcePermission) GetUid() string

func (*ResourcePermission) GetUpdateTime

func (x *ResourcePermission) GetUpdateTime() *timestamppb.Timestamp

func (*ResourcePermission) ProtoMessage

func (*ResourcePermission) ProtoMessage()

func (*ResourcePermission) ProtoReflect

func (x *ResourcePermission) ProtoReflect() protoreflect.Message

func (*ResourcePermission) Reset

func (x *ResourcePermission) Reset()

func (*ResourcePermission) String

func (x *ResourcePermission) String() string

type RevokeKeyRequest

type RevokeKeyRequest struct {

	// Required identifier of the key to revoke.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

The request message for [KeyAdminService.RevokeKey][blocky.authz.admin.v1alpha.KeyAdminService.RevokeKey].

func (*RevokeKeyRequest) Descriptor deprecated

func (*RevokeKeyRequest) Descriptor() ([]byte, []int)

Deprecated: Use RevokeKeyRequest.ProtoReflect.Descriptor instead.

func (*RevokeKeyRequest) GetName

func (x *RevokeKeyRequest) GetName() string

func (*RevokeKeyRequest) ProtoMessage

func (*RevokeKeyRequest) ProtoMessage()

func (*RevokeKeyRequest) ProtoReflect

func (x *RevokeKeyRequest) ProtoReflect() protoreflect.Message

func (*RevokeKeyRequest) Reset

func (x *RevokeKeyRequest) Reset()

func (*RevokeKeyRequest) String

func (x *RevokeKeyRequest) String() string

type RotateKeyRequest

type RotateKeyRequest struct {

	// Required identifier of the key to create a revision for.
	// Format: 'projects/{project}/keyCores/{key_core}'.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// contains filtered or unexported fields
}

The request message for [KeyAdminService.RotateKey][blocky.authz.admin.v1alpha.KeyAdminService.RotateKey].

func (*RotateKeyRequest) Descriptor deprecated

func (*RotateKeyRequest) Descriptor() ([]byte, []int)

Deprecated: Use RotateKeyRequest.ProtoReflect.Descriptor instead.

func (*RotateKeyRequest) GetParent

func (x *RotateKeyRequest) GetParent() string

func (*RotateKeyRequest) ProtoMessage

func (*RotateKeyRequest) ProtoMessage()

func (*RotateKeyRequest) ProtoReflect

func (x *RotateKeyRequest) ProtoReflect() protoreflect.Message

func (*RotateKeyRequest) Reset

func (x *RotateKeyRequest) Reset()

func (*RotateKeyRequest) String

func (x *RotateKeyRequest) String() string

type UnimplementedClientAdminServiceServer

type UnimplementedClientAdminServiceServer struct {
}

UnimplementedClientAdminServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedClientAdminServiceServer) CreateClient

func (UnimplementedClientAdminServiceServer) DeleteClient

func (UnimplementedClientAdminServiceServer) GetClient

func (UnimplementedClientAdminServiceServer) ListClient

func (UnimplementedClientAdminServiceServer) UpdateClient

type UnimplementedInstanceAdminServiceServer

type UnimplementedInstanceAdminServiceServer struct {
}

UnimplementedInstanceAdminServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedInstanceAdminServiceServer) GetInstance

func (UnimplementedInstanceAdminServiceServer) UpdateInstance

type UnimplementedKeyAdminServiceServer

type UnimplementedKeyAdminServiceServer struct {
}

UnimplementedKeyAdminServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedKeyAdminServiceServer) CreateKeyCore

func (UnimplementedKeyAdminServiceServer) GetKey

func (UnimplementedKeyAdminServiceServer) GetKeyCore

func (UnimplementedKeyAdminServiceServer) ListKeyCoreKeys

func (UnimplementedKeyAdminServiceServer) ListKeyCores

func (UnimplementedKeyAdminServiceServer) ListKeys

func (UnimplementedKeyAdminServiceServer) RevokeKey

func (UnimplementedKeyAdminServiceServer) RotateKey

func (UnimplementedKeyAdminServiceServer) UpdateKeyCore

type UnimplementedResourceAdminServiceServer

type UnimplementedResourceAdminServiceServer struct {
}

UnimplementedResourceAdminServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedResourceAdminServiceServer) AliasResourceManager

func (UnimplementedResourceAdminServiceServer) AliasResourcePermission

func (UnimplementedResourceAdminServiceServer) CreateResourceManager

func (UnimplementedResourceAdminServiceServer) CreateResourcePermission

func (UnimplementedResourceAdminServiceServer) DeleteResourceManager

func (UnimplementedResourceAdminServiceServer) DeleteResourcePermission

func (UnimplementedResourceAdminServiceServer) GetResourceManager

func (UnimplementedResourceAdminServiceServer) GetResourcePermission

func (UnimplementedResourceAdminServiceServer) ListResourceManagers

func (UnimplementedResourceAdminServiceServer) UpdateResourceManager

func (UnimplementedResourceAdminServiceServer) UpdateResourcePermission

type UnimplementedUserContentAdminServiceServer

type UnimplementedUserContentAdminServiceServer struct {
}

UnimplementedUserContentAdminServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedUserContentAdminServiceServer) CreateUserConsent

func (UnimplementedUserContentAdminServiceServer) DeleteUserConsent

func (UnimplementedUserContentAdminServiceServer) GetUserConsent

func (UnimplementedUserContentAdminServiceServer) ListUserConsents

func (UnimplementedUserContentAdminServiceServer) UpdateUserConsent

type UnsafeClientAdminServiceServer

type UnsafeClientAdminServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeClientAdminServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ClientAdminServiceServer will result in compilation errors.

type UnsafeInstanceAdminServiceServer

type UnsafeInstanceAdminServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeInstanceAdminServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to InstanceAdminServiceServer will result in compilation errors.

type UnsafeKeyAdminServiceServer

type UnsafeKeyAdminServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeKeyAdminServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to KeyAdminServiceServer will result in compilation errors.

type UnsafeResourceAdminServiceServer

type UnsafeResourceAdminServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeResourceAdminServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ResourceAdminServiceServer will result in compilation errors.

type UnsafeUserContentAdminServiceServer

type UnsafeUserContentAdminServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeUserContentAdminServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserContentAdminServiceServer will result in compilation errors.

type UpdateClientRequest

type UpdateClientRequest struct {

	// The client to update.
	Client *Client `protobuf:"bytes,1,opt,name=client,proto3" json:"client,omitempty"`
	// contains filtered or unexported fields
}

The request message for [ClientAdminService.UpdateClient][blocky.authz.admin.v1alpha.ClientAdminService.UpdateClient].

func (*UpdateClientRequest) Descriptor deprecated

func (*UpdateClientRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateClientRequest.ProtoReflect.Descriptor instead.

func (*UpdateClientRequest) GetClient

func (x *UpdateClientRequest) GetClient() *Client

func (*UpdateClientRequest) ProtoMessage

func (*UpdateClientRequest) ProtoMessage()

func (*UpdateClientRequest) ProtoReflect

func (x *UpdateClientRequest) ProtoReflect() protoreflect.Message

func (*UpdateClientRequest) Reset

func (x *UpdateClientRequest) Reset()

func (*UpdateClientRequest) String

func (x *UpdateClientRequest) String() string

type UpdateInstanceRequest

type UpdateInstanceRequest struct {

	// The instance resource to update.
	Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"`
	// The update mask applies to the instance. For the `FieldMask` definition,
	// see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// contains filtered or unexported fields
}

The request for [InstanceAdminService.UpdateInstance][google.cloud.blocky.authz.admin.v1alpha.InstanceAdminService.UpdateInstance].

func (*UpdateInstanceRequest) Descriptor deprecated

func (*UpdateInstanceRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateInstanceRequest.ProtoReflect.Descriptor instead.

func (*UpdateInstanceRequest) GetInstance

func (x *UpdateInstanceRequest) GetInstance() *Instance

func (*UpdateInstanceRequest) GetUpdateMask

func (x *UpdateInstanceRequest) GetUpdateMask() *fieldmaskpb.FieldMask

func (*UpdateInstanceRequest) ProtoMessage

func (*UpdateInstanceRequest) ProtoMessage()

func (*UpdateInstanceRequest) ProtoReflect

func (x *UpdateInstanceRequest) ProtoReflect() protoreflect.Message

func (*UpdateInstanceRequest) Reset

func (x *UpdateInstanceRequest) Reset()

func (*UpdateInstanceRequest) String

func (x *UpdateInstanceRequest) String() string

type UpdateKeyCoreRequest

type UpdateKeyCoreRequest struct {

	// Required identifier of the key to update.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Required, resource to update.
	KeyCore *KeyCore `protobuf:"bytes,2,opt,name=key_core,json=keyCore,proto3" json:"key_core,omitempty"`
	// The list of fields to update.
	// If empty, all modifiable fields will be updated.
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// contains filtered or unexported fields
}

The request message for [KeyAdminService.UpdateKeyCore][blocky.authz.admin.v1alpha.KeyAdminService.UpdateKeyCore].

func (*UpdateKeyCoreRequest) Descriptor deprecated

func (*UpdateKeyCoreRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateKeyCoreRequest.ProtoReflect.Descriptor instead.

func (*UpdateKeyCoreRequest) GetKeyCore

func (x *UpdateKeyCoreRequest) GetKeyCore() *KeyCore

func (*UpdateKeyCoreRequest) GetName

func (x *UpdateKeyCoreRequest) GetName() string

func (*UpdateKeyCoreRequest) GetUpdateMask

func (x *UpdateKeyCoreRequest) GetUpdateMask() *fieldmaskpb.FieldMask

func (*UpdateKeyCoreRequest) ProtoMessage

func (*UpdateKeyCoreRequest) ProtoMessage()

func (*UpdateKeyCoreRequest) ProtoReflect

func (x *UpdateKeyCoreRequest) ProtoReflect() protoreflect.Message

func (*UpdateKeyCoreRequest) Reset

func (x *UpdateKeyCoreRequest) Reset()

func (*UpdateKeyCoreRequest) String

func (x *UpdateKeyCoreRequest) String() string

type UpdateResourceManagerRequest

type UpdateResourceManagerRequest struct {

	// Required. The resource manager to update.
	ResourceManager *ResourceManager `protobuf:"bytes,1,opt,name=resource_manager,json=resourceManager,proto3" json:"resource_manager,omitempty"`
	// contains filtered or unexported fields
}

The request message for [ResourceAdminService.UpdateResourceManager][google.cloud.blocky.authz.admin.v1alpha.ResourceAdminService.UpdateResourceManager].

func (*UpdateResourceManagerRequest) Descriptor deprecated

func (*UpdateResourceManagerRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateResourceManagerRequest.ProtoReflect.Descriptor instead.

func (*UpdateResourceManagerRequest) GetResourceManager

func (x *UpdateResourceManagerRequest) GetResourceManager() *ResourceManager

func (*UpdateResourceManagerRequest) ProtoMessage

func (*UpdateResourceManagerRequest) ProtoMessage()

func (*UpdateResourceManagerRequest) ProtoReflect

func (*UpdateResourceManagerRequest) Reset

func (x *UpdateResourceManagerRequest) Reset()

func (*UpdateResourceManagerRequest) String

type UpdateResourcePermissionRequest

type UpdateResourcePermissionRequest struct {

	// Required, authorization resource_permission identifier and resource name.
	ResourcePermission *ResourcePermission `protobuf:"bytes,1,opt,name=resource_permission,json=resourcePermission,proto3" json:"resource_permission,omitempty"`
	// contains filtered or unexported fields
}

The request for [ResourceAdminService.UpdateResourcePermission][blocky.authz.admin.v1alpha.ResourceAdminService.UpdateResourcePermission].

func (*UpdateResourcePermissionRequest) Descriptor deprecated

func (*UpdateResourcePermissionRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateResourcePermissionRequest.ProtoReflect.Descriptor instead.

func (*UpdateResourcePermissionRequest) GetResourcePermission

func (x *UpdateResourcePermissionRequest) GetResourcePermission() *ResourcePermission

func (*UpdateResourcePermissionRequest) ProtoMessage

func (*UpdateResourcePermissionRequest) ProtoMessage()

func (*UpdateResourcePermissionRequest) ProtoReflect

func (*UpdateResourcePermissionRequest) Reset

func (*UpdateResourcePermissionRequest) String

type UpdateUserConsentRequest

type UpdateUserConsentRequest struct {

	// Required. The user consent to update.
	// The user consent's "name" field is used to identify the user consent to be
	// updated.
	// Format: "projects/{project}/userConsents/{user_consent}"
	UserConsent *UserConsent `protobuf:"bytes,1,opt,name=user_consent,json=userConsent,proto3" json:"user_consent,omitempty"`
	// Required. The update mask to apply to the user consent.
	// The user consent's "name" field is used to identify the user consent to be
	// updated.
	// Only the following fields of the user consent can be updated:
	//
	// * "user_consent.consent"
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// contains filtered or unexported fields
}

UpdateUserConsentRequest is the request message for [UserConsentAdminService.UpdateUserConsent][blocky.authz.admin.v1alpha.UserConsentAdminService.UpdateUserConsent].

func (*UpdateUserConsentRequest) Descriptor deprecated

func (*UpdateUserConsentRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateUserConsentRequest.ProtoReflect.Descriptor instead.

func (*UpdateUserConsentRequest) GetUpdateMask

func (x *UpdateUserConsentRequest) GetUpdateMask() *fieldmaskpb.FieldMask

func (*UpdateUserConsentRequest) GetUserConsent

func (x *UpdateUserConsentRequest) GetUserConsent() *UserConsent

func (*UpdateUserConsentRequest) ProtoMessage

func (*UpdateUserConsentRequest) ProtoMessage()

func (*UpdateUserConsentRequest) ProtoReflect

func (x *UpdateUserConsentRequest) ProtoReflect() protoreflect.Message

func (*UpdateUserConsentRequest) Reset

func (x *UpdateUserConsentRequest) Reset()

func (*UpdateUserConsentRequest) String

func (x *UpdateUserConsentRequest) String() string

type UserConsent

type UserConsent struct {

	// Is a resource name of the client resource permission user consent.
	// Format: projects/{project}/userConsents/{user_consent}
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Is a server-generated unique identifier for the UserConsent.
	Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"`
	// The resource name of the Client by which the user has consented to.
	Client string `protobuf:"bytes,3,opt,name=client,proto3" json:"client,omitempty"`
	// The resource name of the ResourcePermission that the user has
	// consented to.
	ResourcePermission string `protobuf:"bytes,4,opt,name=resource_permission,json=resourcePermission,proto3" json:"resource_permission,omitempty"`
	// The resource name of the User that has consented to the ClientResourcePermission.
	User string `protobuf:"bytes,5,opt,name=user,proto3" json:"user,omitempty"`
	// The time when the user consent was created.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// The time when the user consent was last updated.
	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// States if the access has been granted or not.
	Consent bool `protobuf:"varint,8,opt,name=consent,proto3" json:"consent,omitempty"`
	// contains filtered or unexported fields
}

UserConsent represents the user consent approval on the client resource permission.

func (*UserConsent) Descriptor deprecated

func (*UserConsent) Descriptor() ([]byte, []int)

Deprecated: Use UserConsent.ProtoReflect.Descriptor instead.

func (*UserConsent) GetClient

func (x *UserConsent) GetClient() string

func (*UserConsent) GetConsent

func (x *UserConsent) GetConsent() bool

func (*UserConsent) GetCreateTime

func (x *UserConsent) GetCreateTime() *timestamppb.Timestamp

func (*UserConsent) GetName

func (x *UserConsent) GetName() string

func (*UserConsent) GetResourcePermission

func (x *UserConsent) GetResourcePermission() string

func (*UserConsent) GetUid

func (x *UserConsent) GetUid() string

func (*UserConsent) GetUpdateTime

func (x *UserConsent) GetUpdateTime() *timestamppb.Timestamp

func (*UserConsent) GetUser

func (x *UserConsent) GetUser() string

func (*UserConsent) ProtoMessage

func (*UserConsent) ProtoMessage()

func (*UserConsent) ProtoReflect

func (x *UserConsent) ProtoReflect() protoreflect.Message

func (*UserConsent) Reset

func (x *UserConsent) Reset()

func (*UserConsent) String

func (x *UserConsent) String() string

type UserContentAdminServiceClient

type UserContentAdminServiceClient interface {
	// Creates a new user consent on resource permission for specific client.
	CreateUserConsent(ctx context.Context, in *CreateUserConsentRequest, opts ...grpc.CallOption) (*UserConsent, error)
	// Gets the user consent on resource permission.
	GetUserConsent(ctx context.Context, in *GetUserConsentRequest, opts ...grpc.CallOption) (*UserConsent, error)
	// ListUserConsents lists all user consents for the given project.
	ListUserConsents(ctx context.Context, in *ListUserConsentsRequest, opts ...grpc.CallOption) (*ListUserConsentsResponse, error)
	// Updates the user consent on resource permission.
	UpdateUserConsent(ctx context.Context, in *UpdateUserConsentRequest, opts ...grpc.CallOption) (*UserConsent, error)
	// Deletes the user consent on resource permission.
	// The user consent will be deleted regardless of whether it is being used by
	// any other resources.
	DeleteUserConsent(ctx context.Context, in *DeleteUserConsentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

UserContentAdminServiceClient is the client API for UserContentAdminService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type UserContentAdminServiceServer

type UserContentAdminServiceServer interface {
	// Creates a new user consent on resource permission for specific client.
	CreateUserConsent(context.Context, *CreateUserConsentRequest) (*UserConsent, error)
	// Gets the user consent on resource permission.
	GetUserConsent(context.Context, *GetUserConsentRequest) (*UserConsent, error)
	// ListUserConsents lists all user consents for the given project.
	ListUserConsents(context.Context, *ListUserConsentsRequest) (*ListUserConsentsResponse, error)
	// Updates the user consent on resource permission.
	UpdateUserConsent(context.Context, *UpdateUserConsentRequest) (*UserConsent, error)
	// Deletes the user consent on resource permission.
	// The user consent will be deleted regardless of whether it is being used by
	// any other resources.
	DeleteUserConsent(context.Context, *DeleteUserConsentRequest) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

UserContentAdminServiceServer is the server API for UserContentAdminService service. All implementations must embed UnimplementedUserContentAdminServiceServer for forward compatibility

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL