authorization_client

package
v1.0.38 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthorizationServiceClient

type AuthorizationServiceClient interface {
	CheckPermissions(ctx context.Context, in *CheckPermissionsRequest, opts ...grpc.CallOption) (*CheckPermissionsResponse, error)
	CheckMyPermissions(ctx context.Context, in *CheckMyPermissionsRequest, opts ...grpc.CallOption) (*CheckMyPermissionsResponse, error)
	CheckMyRoles(ctx context.Context, in *CheckMyRolesRequest, opts ...grpc.CallOption) (*CheckMyRolesResponse, error)
}

AuthorizationServiceClient is the client API for AuthorizationService.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type AuthorizationServiceDescriptor added in v0.4.28

type AuthorizationServiceDescriptor struct{}

func GetAuthorizationServiceDescriptor added in v0.4.28

func GetAuthorizationServiceDescriptor() *AuthorizationServiceDescriptor

func (*AuthorizationServiceDescriptor) AllMethodDescriptors added in v0.4.28

func (d *AuthorizationServiceDescriptor) AllMethodDescriptors() []gotenclient.MethodDescriptor

func (*AuthorizationServiceDescriptor) GetApiName added in v0.4.28

func (d *AuthorizationServiceDescriptor) GetApiName() string

func (*AuthorizationServiceDescriptor) GetFullAPIName added in v0.4.28

func (d *AuthorizationServiceDescriptor) GetFullAPIName() string

func (*AuthorizationServiceDescriptor) GetProtoPkgName added in v0.4.28

func (d *AuthorizationServiceDescriptor) GetProtoPkgName() string

func (*AuthorizationServiceDescriptor) GetServiceDomain added in v0.4.28

func (d *AuthorizationServiceDescriptor) GetServiceDomain() string

func (*AuthorizationServiceDescriptor) GetServiceVersion added in v0.4.28

func (d *AuthorizationServiceDescriptor) GetServiceVersion() string

type Check

type Check struct {

	// Object resource name, e.g. projects/<project_id>/devices/<device_id>
	Object string `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty" firestore:"object"`
	// Array of permissions to be verified
	Permissions []*permission.Name `protobuf:"bytes,2,rep,customtype=Name,name=permissions,proto3" json:"permissions,omitempty" firestore:"permissions"`
	// contains filtered or unexported fields
}

Check contains

func (*Check) Descriptor

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

Deprecated, Use Check.ProtoReflect.Descriptor instead.

func (*Check) GetObject

func (m *Check) GetObject() string

func (*Check) GetPermissions

func (m *Check) GetPermissions() []*permission.Name

func (*Check) GotenMessage

func (*Check) GotenMessage()

func (*Check) GotenValidate

func (obj *Check) GotenValidate() error

func (*Check) Marshal

func (m *Check) Marshal() ([]byte, error)

func (*Check) MarshalJSON

func (m *Check) MarshalJSON() ([]byte, error)

func (*Check) ProtoMessage

func (*Check) ProtoMessage()

func (*Check) ProtoReflect

func (m *Check) ProtoReflect() preflect.Message

func (*Check) Reset

func (m *Check) Reset()

func (*Check) SetObject

func (m *Check) SetObject(fv string)

func (*Check) SetPermissions

func (m *Check) SetPermissions(fv []*permission.Name)

func (*Check) String

func (m *Check) String() string

func (*Check) Unmarshal

func (m *Check) Unmarshal(b []byte) error

func (*Check) UnmarshalJSON

func (m *Check) UnmarshalJSON(data []byte) error

type CheckMyPermissionsDescriptor added in v0.4.28

type CheckMyPermissionsDescriptor struct{}

func GetCheckMyPermissionsDescriptor added in v0.4.28

func GetCheckMyPermissionsDescriptor() *CheckMyPermissionsDescriptor

func (*CheckMyPermissionsDescriptor) GetApiDescriptor added in v0.4.28

func (*CheckMyPermissionsDescriptor) GetApiName added in v0.4.28

func (d *CheckMyPermissionsDescriptor) GetApiName() string

func (*CheckMyPermissionsDescriptor) GetClientMsgReflectHandle added in v0.4.28

func (d *CheckMyPermissionsDescriptor) GetClientMsgReflectHandle() gotenclient.MethodMsgHandle

func (*CheckMyPermissionsDescriptor) GetFullMethodName added in v0.4.28

func (d *CheckMyPermissionsDescriptor) GetFullMethodName() string

func (*CheckMyPermissionsDescriptor) GetMethodName added in v0.4.28

func (d *CheckMyPermissionsDescriptor) GetMethodName() string

func (*CheckMyPermissionsDescriptor) GetProtoPkgName added in v0.4.28

func (d *CheckMyPermissionsDescriptor) GetProtoPkgName() string

func (*CheckMyPermissionsDescriptor) GetResourceDescriptor added in v0.4.30

func (d *CheckMyPermissionsDescriptor) GetResourceDescriptor() gotenresource.Descriptor

func (*CheckMyPermissionsDescriptor) GetServerMsgReflectHandle added in v0.4.28

func (d *CheckMyPermissionsDescriptor) GetServerMsgReflectHandle() gotenclient.MethodMsgHandle

func (*CheckMyPermissionsDescriptor) GetServiceDomain added in v0.4.28

func (d *CheckMyPermissionsDescriptor) GetServiceDomain() string

func (*CheckMyPermissionsDescriptor) GetServiceVersion added in v0.4.28

func (d *CheckMyPermissionsDescriptor) GetServiceVersion() string

func (*CheckMyPermissionsDescriptor) GetVerb added in v0.4.28

func (d *CheckMyPermissionsDescriptor) GetVerb() string

func (*CheckMyPermissionsDescriptor) HasResource added in v0.4.30

func (d *CheckMyPermissionsDescriptor) HasResource() bool

func (*CheckMyPermissionsDescriptor) IsClientStream added in v0.4.28

func (d *CheckMyPermissionsDescriptor) IsClientStream() bool

func (*CheckMyPermissionsDescriptor) IsCollection added in v0.4.30

func (d *CheckMyPermissionsDescriptor) IsCollection() bool

func (*CheckMyPermissionsDescriptor) IsPlural added in v0.4.30

func (d *CheckMyPermissionsDescriptor) IsPlural() bool

func (*CheckMyPermissionsDescriptor) IsServerStream added in v0.4.28

func (d *CheckMyPermissionsDescriptor) IsServerStream() bool

func (*CheckMyPermissionsDescriptor) IsUnary added in v0.4.28

func (d *CheckMyPermissionsDescriptor) IsUnary() bool

func (*CheckMyPermissionsDescriptor) NewEmptyClientMsg added in v0.4.28

func (d *CheckMyPermissionsDescriptor) NewEmptyClientMsg() proto.Message

func (*CheckMyPermissionsDescriptor) NewEmptyServerMsg added in v0.4.28

func (d *CheckMyPermissionsDescriptor) NewEmptyServerMsg() proto.Message

func (*CheckMyPermissionsDescriptor) RequestHasResourceBody added in v0.4.28

func (d *CheckMyPermissionsDescriptor) RequestHasResourceBody() bool

type CheckMyPermissionsDescriptorClientMsgHandle added in v0.4.28

type CheckMyPermissionsDescriptorClientMsgHandle struct{}

func (*CheckMyPermissionsDescriptorClientMsgHandle) ExtractCollectionName added in v0.4.30

func (*CheckMyPermissionsDescriptorClientMsgHandle) ExtractResourceBodies added in v1.0.21

func (*CheckMyPermissionsDescriptorClientMsgHandle) ExtractResourceBody added in v1.0.21

func (*CheckMyPermissionsDescriptorClientMsgHandle) ExtractResourceName added in v0.4.30

func (*CheckMyPermissionsDescriptorClientMsgHandle) ExtractResourceNames added in v0.4.30

type CheckMyPermissionsDescriptorServerMsgHandle added in v0.4.28

type CheckMyPermissionsDescriptorServerMsgHandle struct{}

func (*CheckMyPermissionsDescriptorServerMsgHandle) ExtractCollectionName added in v0.4.30

func (*CheckMyPermissionsDescriptorServerMsgHandle) ExtractResourceBodies added in v1.0.21

func (*CheckMyPermissionsDescriptorServerMsgHandle) ExtractResourceBody added in v1.0.21

func (*CheckMyPermissionsDescriptorServerMsgHandle) ExtractResourceName added in v0.4.30

func (*CheckMyPermissionsDescriptorServerMsgHandle) ExtractResourceNames added in v0.4.30

type CheckMyPermissionsRequest

type CheckMyPermissionsRequest struct {

	// Checks
	Checks []*Check `protobuf:"bytes,2,rep,name=checks,proto3" json:"checks,omitempty" firestore:"checks"`
	// If true, server will skip checking permissions in cache
	SkipCache bool `protobuf:"varint,3,opt,name=skip_cache,json=skipCache,proto3" json:"skip_cache,omitempty" firestore:"skipCache"`
	// contains filtered or unexported fields
}

Request message for method [CheckMyPermissions][ntt.iam.v1alpha2.CheckMyPermissions]

func (*CheckMyPermissionsRequest) Descriptor

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

Deprecated, Use CheckMyPermissionsRequest.ProtoReflect.Descriptor instead.

func (*CheckMyPermissionsRequest) GetChecks

func (m *CheckMyPermissionsRequest) GetChecks() []*Check

func (*CheckMyPermissionsRequest) GetSkipCache

func (m *CheckMyPermissionsRequest) GetSkipCache() bool

func (*CheckMyPermissionsRequest) GotenMessage

func (*CheckMyPermissionsRequest) GotenMessage()

func (*CheckMyPermissionsRequest) GotenValidate

func (obj *CheckMyPermissionsRequest) GotenValidate() error

func (*CheckMyPermissionsRequest) Marshal

func (m *CheckMyPermissionsRequest) Marshal() ([]byte, error)

func (*CheckMyPermissionsRequest) MarshalJSON

func (m *CheckMyPermissionsRequest) MarshalJSON() ([]byte, error)

func (*CheckMyPermissionsRequest) ProtoMessage

func (*CheckMyPermissionsRequest) ProtoMessage()

func (*CheckMyPermissionsRequest) ProtoReflect

func (m *CheckMyPermissionsRequest) ProtoReflect() preflect.Message

func (*CheckMyPermissionsRequest) Reset

func (m *CheckMyPermissionsRequest) Reset()

func (*CheckMyPermissionsRequest) SetChecks

func (m *CheckMyPermissionsRequest) SetChecks(fv []*Check)

func (*CheckMyPermissionsRequest) SetSkipCache

func (m *CheckMyPermissionsRequest) SetSkipCache(fv bool)

func (*CheckMyPermissionsRequest) String

func (m *CheckMyPermissionsRequest) String() string

func (*CheckMyPermissionsRequest) Unmarshal

func (m *CheckMyPermissionsRequest) Unmarshal(b []byte) error

func (*CheckMyPermissionsRequest) UnmarshalJSON

func (m *CheckMyPermissionsRequest) UnmarshalJSON(data []byte) error

type CheckMyPermissionsResponse

type CheckMyPermissionsResponse struct {
	CheckResults []*CheckResult `protobuf:"bytes,1,rep,name=check_results,json=checkResults,proto3" json:"check_results,omitempty" firestore:"checkResults"`
	// contains filtered or unexported fields
}

Response message for method [CheckMyPermissions][ntt.iam.v1alpha2.CheckMyPermissions]

func (*CheckMyPermissionsResponse) Descriptor

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

Deprecated, Use CheckMyPermissionsResponse.ProtoReflect.Descriptor instead.

func (*CheckMyPermissionsResponse) GetCheckResults

func (m *CheckMyPermissionsResponse) GetCheckResults() []*CheckResult

func (*CheckMyPermissionsResponse) GotenMessage

func (*CheckMyPermissionsResponse) GotenMessage()

func (*CheckMyPermissionsResponse) GotenValidate

func (obj *CheckMyPermissionsResponse) GotenValidate() error

func (*CheckMyPermissionsResponse) Marshal

func (m *CheckMyPermissionsResponse) Marshal() ([]byte, error)

func (*CheckMyPermissionsResponse) MarshalJSON

func (m *CheckMyPermissionsResponse) MarshalJSON() ([]byte, error)

func (*CheckMyPermissionsResponse) ProtoMessage

func (*CheckMyPermissionsResponse) ProtoMessage()

func (*CheckMyPermissionsResponse) ProtoReflect

func (m *CheckMyPermissionsResponse) ProtoReflect() preflect.Message

func (*CheckMyPermissionsResponse) Reset

func (m *CheckMyPermissionsResponse) Reset()

func (*CheckMyPermissionsResponse) SetCheckResults

func (m *CheckMyPermissionsResponse) SetCheckResults(fv []*CheckResult)

func (*CheckMyPermissionsResponse) String

func (m *CheckMyPermissionsResponse) String() string

func (*CheckMyPermissionsResponse) Unmarshal

func (m *CheckMyPermissionsResponse) Unmarshal(b []byte) error

func (*CheckMyPermissionsResponse) UnmarshalJSON

func (m *CheckMyPermissionsResponse) UnmarshalJSON(data []byte) error

type CheckMyRolesDescriptor added in v0.9.12

type CheckMyRolesDescriptor struct{}

func GetCheckMyRolesDescriptor added in v0.9.12

func GetCheckMyRolesDescriptor() *CheckMyRolesDescriptor

func (*CheckMyRolesDescriptor) GetApiDescriptor added in v0.9.12

func (d *CheckMyRolesDescriptor) GetApiDescriptor() gotenclient.ApiDescriptor

func (*CheckMyRolesDescriptor) GetApiName added in v0.9.12

func (d *CheckMyRolesDescriptor) GetApiName() string

func (*CheckMyRolesDescriptor) GetClientMsgReflectHandle added in v0.9.12

func (d *CheckMyRolesDescriptor) GetClientMsgReflectHandle() gotenclient.MethodMsgHandle

func (*CheckMyRolesDescriptor) GetFullMethodName added in v0.9.12

func (d *CheckMyRolesDescriptor) GetFullMethodName() string

func (*CheckMyRolesDescriptor) GetMethodName added in v0.9.12

func (d *CheckMyRolesDescriptor) GetMethodName() string

func (*CheckMyRolesDescriptor) GetProtoPkgName added in v0.9.12

func (d *CheckMyRolesDescriptor) GetProtoPkgName() string

func (*CheckMyRolesDescriptor) GetResourceDescriptor added in v0.9.12

func (d *CheckMyRolesDescriptor) GetResourceDescriptor() gotenresource.Descriptor

func (*CheckMyRolesDescriptor) GetServerMsgReflectHandle added in v0.9.12

func (d *CheckMyRolesDescriptor) GetServerMsgReflectHandle() gotenclient.MethodMsgHandle

func (*CheckMyRolesDescriptor) GetServiceDomain added in v0.9.12

func (d *CheckMyRolesDescriptor) GetServiceDomain() string

func (*CheckMyRolesDescriptor) GetServiceVersion added in v0.9.12

func (d *CheckMyRolesDescriptor) GetServiceVersion() string

func (*CheckMyRolesDescriptor) GetVerb added in v0.9.12

func (d *CheckMyRolesDescriptor) GetVerb() string

func (*CheckMyRolesDescriptor) HasResource added in v0.9.12

func (d *CheckMyRolesDescriptor) HasResource() bool

func (*CheckMyRolesDescriptor) IsClientStream added in v0.9.12

func (d *CheckMyRolesDescriptor) IsClientStream() bool

func (*CheckMyRolesDescriptor) IsCollection added in v0.9.12

func (d *CheckMyRolesDescriptor) IsCollection() bool

func (*CheckMyRolesDescriptor) IsPlural added in v0.9.12

func (d *CheckMyRolesDescriptor) IsPlural() bool

func (*CheckMyRolesDescriptor) IsServerStream added in v0.9.12

func (d *CheckMyRolesDescriptor) IsServerStream() bool

func (*CheckMyRolesDescriptor) IsUnary added in v0.9.12

func (d *CheckMyRolesDescriptor) IsUnary() bool

func (*CheckMyRolesDescriptor) NewEmptyClientMsg added in v0.9.12

func (d *CheckMyRolesDescriptor) NewEmptyClientMsg() proto.Message

func (*CheckMyRolesDescriptor) NewEmptyServerMsg added in v0.9.12

func (d *CheckMyRolesDescriptor) NewEmptyServerMsg() proto.Message

func (*CheckMyRolesDescriptor) RequestHasResourceBody added in v0.9.12

func (d *CheckMyRolesDescriptor) RequestHasResourceBody() bool

type CheckMyRolesDescriptorClientMsgHandle added in v0.9.12

type CheckMyRolesDescriptorClientMsgHandle struct{}

func (*CheckMyRolesDescriptorClientMsgHandle) ExtractCollectionName added in v0.9.12

func (*CheckMyRolesDescriptorClientMsgHandle) ExtractResourceBodies added in v1.0.21

func (*CheckMyRolesDescriptorClientMsgHandle) ExtractResourceBody added in v1.0.21

func (*CheckMyRolesDescriptorClientMsgHandle) ExtractResourceName added in v0.9.12

func (*CheckMyRolesDescriptorClientMsgHandle) ExtractResourceNames added in v0.9.12

type CheckMyRolesDescriptorServerMsgHandle added in v0.9.12

type CheckMyRolesDescriptorServerMsgHandle struct{}

func (*CheckMyRolesDescriptorServerMsgHandle) ExtractCollectionName added in v0.9.12

func (*CheckMyRolesDescriptorServerMsgHandle) ExtractResourceBodies added in v1.0.21

func (*CheckMyRolesDescriptorServerMsgHandle) ExtractResourceBody added in v1.0.21

func (*CheckMyRolesDescriptorServerMsgHandle) ExtractResourceName added in v0.9.12

func (*CheckMyRolesDescriptorServerMsgHandle) ExtractResourceNames added in v0.9.12

type CheckMyRolesRequest added in v0.9.12

type CheckMyRolesRequest struct {

	// Object name forming scope of the check, for example projects/<project_id>
	Object string `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty" firestore:"object"`
	// contains filtered or unexported fields
}

Request message for method [CheckMyRoles][ntt.iam.v1alpha2.CheckMyRoles]

func (*CheckMyRolesRequest) Descriptor added in v0.9.12

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

Deprecated, Use CheckMyRolesRequest.ProtoReflect.Descriptor instead.

func (*CheckMyRolesRequest) GetObject added in v0.9.12

func (m *CheckMyRolesRequest) GetObject() string

func (*CheckMyRolesRequest) GotenMessage added in v0.9.12

func (*CheckMyRolesRequest) GotenMessage()

func (*CheckMyRolesRequest) GotenValidate added in v0.9.12

func (obj *CheckMyRolesRequest) GotenValidate() error

func (*CheckMyRolesRequest) Marshal added in v0.9.12

func (m *CheckMyRolesRequest) Marshal() ([]byte, error)

func (*CheckMyRolesRequest) MarshalJSON added in v0.9.12

func (m *CheckMyRolesRequest) MarshalJSON() ([]byte, error)

func (*CheckMyRolesRequest) ProtoMessage added in v0.9.12

func (*CheckMyRolesRequest) ProtoMessage()

func (*CheckMyRolesRequest) ProtoReflect added in v0.9.12

func (m *CheckMyRolesRequest) ProtoReflect() preflect.Message

func (*CheckMyRolesRequest) Reset added in v0.9.12

func (m *CheckMyRolesRequest) Reset()

func (*CheckMyRolesRequest) SetObject added in v0.9.12

func (m *CheckMyRolesRequest) SetObject(fv string)

func (*CheckMyRolesRequest) String added in v0.9.12

func (m *CheckMyRolesRequest) String() string

func (*CheckMyRolesRequest) Unmarshal added in v0.9.12

func (m *CheckMyRolesRequest) Unmarshal(b []byte) error

func (*CheckMyRolesRequest) UnmarshalJSON added in v0.9.12

func (m *CheckMyRolesRequest) UnmarshalJSON(data []byte) error

type CheckMyRolesResponse added in v0.9.12

type CheckMyRolesResponse struct {

	// Object with scope
	Object string `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty" firestore:"object"`
	// All unconditionally granted roles
	GrantedRoles []*role.Name `` /* 138-byte string literal not displayed */
	// All conditionally granted roles. Each grant should be checked separately
	ConditionallyGrantedRoles []*CheckMyRolesResponse_ConditionalGrant `` /* 176-byte string literal not displayed */
	// contains filtered or unexported fields
}

Response message for method [CheckMyRoles][ntt.iam.v1alpha2.CheckMyRoles]

func (*CheckMyRolesResponse) Descriptor added in v0.9.12

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

Deprecated, Use CheckMyRolesResponse.ProtoReflect.Descriptor instead.

func (*CheckMyRolesResponse) GetConditionallyGrantedRoles added in v0.9.12

func (m *CheckMyRolesResponse) GetConditionallyGrantedRoles() []*CheckMyRolesResponse_ConditionalGrant

func (*CheckMyRolesResponse) GetGrantedRoles added in v0.9.12

func (m *CheckMyRolesResponse) GetGrantedRoles() []*role.Name

func (*CheckMyRolesResponse) GetObject added in v0.9.12

func (m *CheckMyRolesResponse) GetObject() string

func (*CheckMyRolesResponse) GotenMessage added in v0.9.12

func (*CheckMyRolesResponse) GotenMessage()

func (*CheckMyRolesResponse) GotenValidate added in v0.9.12

func (obj *CheckMyRolesResponse) GotenValidate() error

func (*CheckMyRolesResponse) Marshal added in v0.9.12

func (m *CheckMyRolesResponse) Marshal() ([]byte, error)

func (*CheckMyRolesResponse) MarshalJSON added in v0.9.12

func (m *CheckMyRolesResponse) MarshalJSON() ([]byte, error)

func (*CheckMyRolesResponse) ProtoMessage added in v0.9.12

func (*CheckMyRolesResponse) ProtoMessage()

func (*CheckMyRolesResponse) ProtoReflect added in v0.9.12

func (m *CheckMyRolesResponse) ProtoReflect() preflect.Message

func (*CheckMyRolesResponse) Reset added in v0.9.12

func (m *CheckMyRolesResponse) Reset()

func (*CheckMyRolesResponse) SetConditionallyGrantedRoles added in v0.9.12

func (m *CheckMyRolesResponse) SetConditionallyGrantedRoles(fv []*CheckMyRolesResponse_ConditionalGrant)

func (*CheckMyRolesResponse) SetGrantedRoles added in v0.9.12

func (m *CheckMyRolesResponse) SetGrantedRoles(fv []*role.Name)

func (*CheckMyRolesResponse) SetObject added in v0.9.12

func (m *CheckMyRolesResponse) SetObject(fv string)

func (*CheckMyRolesResponse) String added in v0.9.12

func (m *CheckMyRolesResponse) String() string

func (*CheckMyRolesResponse) Unmarshal added in v0.9.12

func (m *CheckMyRolesResponse) Unmarshal(b []byte) error

func (*CheckMyRolesResponse) UnmarshalJSON added in v0.9.12

func (m *CheckMyRolesResponse) UnmarshalJSON(data []byte) error

type CheckMyRolesResponse_ConditionalGrant added in v0.9.12

type CheckMyRolesResponse_ConditionalGrant struct {

	// Role name
	Role *role.Name `protobuf:"bytes,1,opt,customtype=Name,name=role,proto3" json:"role,omitempty" firestore:"role"`
	// All conditions that must be accepted for role to be granted
	ConditionBindings []*condition.ConditionBinding `` /* 142-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*CheckMyRolesResponse_ConditionalGrant) Descriptor added in v0.9.12

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

Deprecated, Use CheckMyRolesResponse_ConditionalGrant.ProtoReflect.Descriptor instead.

func (*CheckMyRolesResponse_ConditionalGrant) GetConditionBindings added in v0.9.12

func (*CheckMyRolesResponse_ConditionalGrant) GetRole added in v0.9.12

func (*CheckMyRolesResponse_ConditionalGrant) GotenMessage added in v0.9.12

func (*CheckMyRolesResponse_ConditionalGrant) GotenMessage()

func (*CheckMyRolesResponse_ConditionalGrant) GotenValidate added in v0.9.12

func (obj *CheckMyRolesResponse_ConditionalGrant) GotenValidate() error

func (*CheckMyRolesResponse_ConditionalGrant) Marshal added in v0.9.12

func (*CheckMyRolesResponse_ConditionalGrant) MarshalJSON added in v0.9.12

func (m *CheckMyRolesResponse_ConditionalGrant) MarshalJSON() ([]byte, error)

func (*CheckMyRolesResponse_ConditionalGrant) ProtoMessage added in v0.9.12

func (*CheckMyRolesResponse_ConditionalGrant) ProtoMessage()

func (*CheckMyRolesResponse_ConditionalGrant) ProtoReflect added in v0.9.12

func (*CheckMyRolesResponse_ConditionalGrant) Reset added in v0.9.12

func (*CheckMyRolesResponse_ConditionalGrant) SetConditionBindings added in v0.9.12

func (m *CheckMyRolesResponse_ConditionalGrant) SetConditionBindings(fv []*condition.ConditionBinding)

func (*CheckMyRolesResponse_ConditionalGrant) SetRole added in v0.9.12

func (*CheckMyRolesResponse_ConditionalGrant) String added in v0.9.12

func (*CheckMyRolesResponse_ConditionalGrant) Unmarshal added in v0.9.12

func (*CheckMyRolesResponse_ConditionalGrant) UnmarshalJSON added in v0.9.12

func (m *CheckMyRolesResponse_ConditionalGrant) UnmarshalJSON(data []byte) error

type CheckPermissionsDescriptor added in v0.4.28

type CheckPermissionsDescriptor struct{}

func GetCheckPermissionsDescriptor added in v0.4.28

func GetCheckPermissionsDescriptor() *CheckPermissionsDescriptor

func (*CheckPermissionsDescriptor) GetApiDescriptor added in v0.4.28

func (*CheckPermissionsDescriptor) GetApiName added in v0.4.28

func (d *CheckPermissionsDescriptor) GetApiName() string

func (*CheckPermissionsDescriptor) GetClientMsgReflectHandle added in v0.4.28

func (d *CheckPermissionsDescriptor) GetClientMsgReflectHandle() gotenclient.MethodMsgHandle

func (*CheckPermissionsDescriptor) GetFullMethodName added in v0.4.28

func (d *CheckPermissionsDescriptor) GetFullMethodName() string

func (*CheckPermissionsDescriptor) GetMethodName added in v0.4.28

func (d *CheckPermissionsDescriptor) GetMethodName() string

func (*CheckPermissionsDescriptor) GetProtoPkgName added in v0.4.28

func (d *CheckPermissionsDescriptor) GetProtoPkgName() string

func (*CheckPermissionsDescriptor) GetResourceDescriptor added in v0.4.30

func (d *CheckPermissionsDescriptor) GetResourceDescriptor() gotenresource.Descriptor

func (*CheckPermissionsDescriptor) GetServerMsgReflectHandle added in v0.4.28

func (d *CheckPermissionsDescriptor) GetServerMsgReflectHandle() gotenclient.MethodMsgHandle

func (*CheckPermissionsDescriptor) GetServiceDomain added in v0.4.28

func (d *CheckPermissionsDescriptor) GetServiceDomain() string

func (*CheckPermissionsDescriptor) GetServiceVersion added in v0.4.28

func (d *CheckPermissionsDescriptor) GetServiceVersion() string

func (*CheckPermissionsDescriptor) GetVerb added in v0.4.28

func (d *CheckPermissionsDescriptor) GetVerb() string

func (*CheckPermissionsDescriptor) HasResource added in v0.4.30

func (d *CheckPermissionsDescriptor) HasResource() bool

func (*CheckPermissionsDescriptor) IsClientStream added in v0.4.28

func (d *CheckPermissionsDescriptor) IsClientStream() bool

func (*CheckPermissionsDescriptor) IsCollection added in v0.4.30

func (d *CheckPermissionsDescriptor) IsCollection() bool

func (*CheckPermissionsDescriptor) IsPlural added in v0.4.30

func (d *CheckPermissionsDescriptor) IsPlural() bool

func (*CheckPermissionsDescriptor) IsServerStream added in v0.4.28

func (d *CheckPermissionsDescriptor) IsServerStream() bool

func (*CheckPermissionsDescriptor) IsUnary added in v0.4.28

func (d *CheckPermissionsDescriptor) IsUnary() bool

func (*CheckPermissionsDescriptor) NewEmptyClientMsg added in v0.4.28

func (d *CheckPermissionsDescriptor) NewEmptyClientMsg() proto.Message

func (*CheckPermissionsDescriptor) NewEmptyServerMsg added in v0.4.28

func (d *CheckPermissionsDescriptor) NewEmptyServerMsg() proto.Message

func (*CheckPermissionsDescriptor) RequestHasResourceBody added in v0.4.28

func (d *CheckPermissionsDescriptor) RequestHasResourceBody() bool

type CheckPermissionsDescriptorClientMsgHandle added in v0.4.28

type CheckPermissionsDescriptorClientMsgHandle struct{}

func (*CheckPermissionsDescriptorClientMsgHandle) ExtractCollectionName added in v0.4.30

func (*CheckPermissionsDescriptorClientMsgHandle) ExtractResourceBodies added in v1.0.21

func (*CheckPermissionsDescriptorClientMsgHandle) ExtractResourceBody added in v1.0.21

func (*CheckPermissionsDescriptorClientMsgHandle) ExtractResourceName added in v0.4.30

func (*CheckPermissionsDescriptorClientMsgHandle) ExtractResourceNames added in v0.4.30

type CheckPermissionsDescriptorServerMsgHandle added in v0.4.28

type CheckPermissionsDescriptorServerMsgHandle struct{}

func (*CheckPermissionsDescriptorServerMsgHandle) ExtractCollectionName added in v0.4.30

func (*CheckPermissionsDescriptorServerMsgHandle) ExtractResourceBodies added in v1.0.21

func (*CheckPermissionsDescriptorServerMsgHandle) ExtractResourceBody added in v1.0.21

func (*CheckPermissionsDescriptorServerMsgHandle) ExtractResourceName added in v0.4.30

func (*CheckPermissionsDescriptorServerMsgHandle) ExtractResourceNames added in v0.4.30

type CheckPermissionsRequest

type CheckPermissionsRequest struct {

	// Acting principal, e.g. user or service account
	// Format of the string is one of:
	// - "allUsers" (anyone)
	// - "allAuthenticatedUsers" (anyone logged in)
	// - "user:admin.super@example.com"
	// - "serviceAccount:device_agent@watchdog.serviceaccounts.iam.edgelq.com"
	// - "group:nice.group@example.com"
	// - "domain:example.com" (anyone with exact email domain)
	Member string `protobuf:"bytes,1,opt,name=member,proto3" json:"member,omitempty" firestore:"member"`
	// Checks
	Checks []*Check `protobuf:"bytes,2,rep,name=checks,proto3" json:"checks,omitempty" firestore:"checks"`
	// If true, server will skip checking permissions in cache
	SkipCache bool `protobuf:"varint,3,opt,name=skip_cache,json=skipCache,proto3" json:"skip_cache,omitempty" firestore:"skipCache"`
	// contains filtered or unexported fields
}

Request message for method [CheckPermissions][ntt.iam.v1alpha2.CheckPermissions]

func (*CheckPermissionsRequest) Descriptor

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

Deprecated, Use CheckPermissionsRequest.ProtoReflect.Descriptor instead.

func (*CheckPermissionsRequest) GetChecks

func (m *CheckPermissionsRequest) GetChecks() []*Check

func (*CheckPermissionsRequest) GetMember

func (m *CheckPermissionsRequest) GetMember() string

func (*CheckPermissionsRequest) GetSkipCache

func (m *CheckPermissionsRequest) GetSkipCache() bool

func (*CheckPermissionsRequest) GotenMessage

func (*CheckPermissionsRequest) GotenMessage()

func (*CheckPermissionsRequest) GotenValidate

func (obj *CheckPermissionsRequest) GotenValidate() error

func (*CheckPermissionsRequest) Marshal

func (m *CheckPermissionsRequest) Marshal() ([]byte, error)

func (*CheckPermissionsRequest) MarshalJSON

func (m *CheckPermissionsRequest) MarshalJSON() ([]byte, error)

func (*CheckPermissionsRequest) ProtoMessage

func (*CheckPermissionsRequest) ProtoMessage()

func (*CheckPermissionsRequest) ProtoReflect

func (m *CheckPermissionsRequest) ProtoReflect() preflect.Message

func (*CheckPermissionsRequest) Reset

func (m *CheckPermissionsRequest) Reset()

func (*CheckPermissionsRequest) SetChecks

func (m *CheckPermissionsRequest) SetChecks(fv []*Check)

func (*CheckPermissionsRequest) SetMember

func (m *CheckPermissionsRequest) SetMember(fv string)

func (*CheckPermissionsRequest) SetSkipCache

func (m *CheckPermissionsRequest) SetSkipCache(fv bool)

func (*CheckPermissionsRequest) String

func (m *CheckPermissionsRequest) String() string

func (*CheckPermissionsRequest) Unmarshal

func (m *CheckPermissionsRequest) Unmarshal(b []byte) error

func (*CheckPermissionsRequest) UnmarshalJSON

func (m *CheckPermissionsRequest) UnmarshalJSON(data []byte) error

type CheckPermissionsResponse

type CheckPermissionsResponse struct {
	CheckResults []*CheckResult `protobuf:"bytes,1,rep,name=check_results,json=checkResults,proto3" json:"check_results,omitempty" firestore:"checkResults"`
	// contains filtered or unexported fields
}

Response message for method [CheckPermissions][ntt.iam.v1alpha2.CheckPermissions]

func (*CheckPermissionsResponse) Descriptor

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

Deprecated, Use CheckPermissionsResponse.ProtoReflect.Descriptor instead.

func (*CheckPermissionsResponse) GetCheckResults

func (m *CheckPermissionsResponse) GetCheckResults() []*CheckResult

func (*CheckPermissionsResponse) GotenMessage

func (*CheckPermissionsResponse) GotenMessage()

func (*CheckPermissionsResponse) GotenValidate

func (obj *CheckPermissionsResponse) GotenValidate() error

func (*CheckPermissionsResponse) Marshal

func (m *CheckPermissionsResponse) Marshal() ([]byte, error)

func (*CheckPermissionsResponse) MarshalJSON

func (m *CheckPermissionsResponse) MarshalJSON() ([]byte, error)

func (*CheckPermissionsResponse) ProtoMessage

func (*CheckPermissionsResponse) ProtoMessage()

func (*CheckPermissionsResponse) ProtoReflect

func (m *CheckPermissionsResponse) ProtoReflect() preflect.Message

func (*CheckPermissionsResponse) Reset

func (m *CheckPermissionsResponse) Reset()

func (*CheckPermissionsResponse) SetCheckResults

func (m *CheckPermissionsResponse) SetCheckResults(fv []*CheckResult)

func (*CheckPermissionsResponse) String

func (m *CheckPermissionsResponse) String() string

func (*CheckPermissionsResponse) Unmarshal

func (m *CheckPermissionsResponse) Unmarshal(b []byte) error

func (*CheckPermissionsResponse) UnmarshalJSON

func (m *CheckPermissionsResponse) UnmarshalJSON(data []byte) error

type CheckResult

type CheckResult struct {

	// Object resource name, e.g. projects/<project_id>/devices/<device_id>
	Object string `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty" firestore:"object"`
	// Granted Permissions
	GrantedPermissions              []*permission.Name  `` /* 162-byte string literal not displayed */
	ConditionallyGrantedPermissions []*ConditionalGrant `` /* 200-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*CheckResult) Descriptor

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

Deprecated, Use CheckResult.ProtoReflect.Descriptor instead.

func (*CheckResult) GetConditionallyGrantedPermissions

func (m *CheckResult) GetConditionallyGrantedPermissions() []*ConditionalGrant

func (*CheckResult) GetGrantedPermissions

func (m *CheckResult) GetGrantedPermissions() []*permission.Name

func (*CheckResult) GetObject

func (m *CheckResult) GetObject() string

func (*CheckResult) GotenMessage

func (*CheckResult) GotenMessage()

func (*CheckResult) GotenValidate

func (obj *CheckResult) GotenValidate() error

func (*CheckResult) Marshal

func (m *CheckResult) Marshal() ([]byte, error)

func (*CheckResult) MarshalJSON

func (m *CheckResult) MarshalJSON() ([]byte, error)

func (*CheckResult) ProtoMessage

func (*CheckResult) ProtoMessage()

func (*CheckResult) ProtoReflect

func (m *CheckResult) ProtoReflect() preflect.Message

func (*CheckResult) Reset

func (m *CheckResult) Reset()

func (*CheckResult) SetConditionallyGrantedPermissions

func (m *CheckResult) SetConditionallyGrantedPermissions(fv []*ConditionalGrant)

func (*CheckResult) SetGrantedPermissions

func (m *CheckResult) SetGrantedPermissions(fv []*permission.Name)

func (*CheckResult) SetObject

func (m *CheckResult) SetObject(fv string)

func (*CheckResult) String

func (m *CheckResult) String() string

func (*CheckResult) Unmarshal

func (m *CheckResult) Unmarshal(b []byte) error

func (*CheckResult) UnmarshalJSON

func (m *CheckResult) UnmarshalJSON(data []byte) error

type ConditionalGrant

type ConditionalGrant struct {
	Permissions       []*permission.Name            `protobuf:"bytes,1,rep,customtype=Name,name=permissions,proto3" json:"permissions,omitempty" firestore:"permissions"`
	ConditionBindings []*condition.ConditionBinding `` /* 142-byte string literal not displayed */
	// contains filtered or unexported fields
}

ConditionalGrant represents grant on repeated list of permissions if all of conditions is met.

func (*ConditionalGrant) Descriptor

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

Deprecated, Use ConditionalGrant.ProtoReflect.Descriptor instead.

func (*ConditionalGrant) GetConditionBindings

func (m *ConditionalGrant) GetConditionBindings() []*condition.ConditionBinding

func (*ConditionalGrant) GetPermissions

func (m *ConditionalGrant) GetPermissions() []*permission.Name

func (*ConditionalGrant) GotenMessage

func (*ConditionalGrant) GotenMessage()

func (*ConditionalGrant) GotenValidate

func (obj *ConditionalGrant) GotenValidate() error

func (*ConditionalGrant) Marshal

func (m *ConditionalGrant) Marshal() ([]byte, error)

func (*ConditionalGrant) MarshalJSON

func (m *ConditionalGrant) MarshalJSON() ([]byte, error)

func (*ConditionalGrant) ProtoMessage

func (*ConditionalGrant) ProtoMessage()

func (*ConditionalGrant) ProtoReflect

func (m *ConditionalGrant) ProtoReflect() preflect.Message

func (*ConditionalGrant) Reset

func (m *ConditionalGrant) Reset()

func (*ConditionalGrant) SetConditionBindings

func (m *ConditionalGrant) SetConditionBindings(fv []*condition.ConditionBinding)

func (*ConditionalGrant) SetPermissions

func (m *ConditionalGrant) SetPermissions(fv []*permission.Name)

func (*ConditionalGrant) String

func (m *ConditionalGrant) String() string

func (*ConditionalGrant) Unmarshal

func (m *ConditionalGrant) Unmarshal(b []byte) error

func (*ConditionalGrant) UnmarshalJSON

func (m *ConditionalGrant) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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