access

package
v0.0.0-...-e71211d Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: MIT Imports: 5 Imported by: 49

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AccessBindingAction_name = map[int32]string{
		0: "ACCESS_BINDING_ACTION_UNSPECIFIED",
		1: "ADD",
		2: "REMOVE",
	}
	AccessBindingAction_value = map[string]int32{
		"ACCESS_BINDING_ACTION_UNSPECIFIED": 0,
		"ADD":                               1,
		"REMOVE":                            2,
	}
)

Enum value maps for AccessBindingAction.

View Source
var File_yandex_cloud_access_access_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AccessBinding

type AccessBinding struct {

	// ID of the [yandex.cloud.iam.v1.Role] that is assigned to the [subject].
	RoleId string `protobuf:"bytes,1,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"`
	// Identity for which access binding is being created.
	// It can represent an account with a unique ID or several accounts with a system identifier.
	Subject *Subject `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"`
	// contains filtered or unexported fields
}

func (*AccessBinding) Descriptor deprecated

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

Deprecated: Use AccessBinding.ProtoReflect.Descriptor instead.

func (*AccessBinding) GetRoleId

func (x *AccessBinding) GetRoleId() string

func (*AccessBinding) GetSubject

func (x *AccessBinding) GetSubject() *Subject

func (*AccessBinding) ProtoMessage

func (*AccessBinding) ProtoMessage()

func (*AccessBinding) ProtoReflect

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

func (*AccessBinding) Reset

func (x *AccessBinding) Reset()

func (*AccessBinding) SetRoleId

func (m *AccessBinding) SetRoleId(v string)

func (*AccessBinding) SetSubject

func (m *AccessBinding) SetSubject(v *Subject)

func (*AccessBinding) String

func (x *AccessBinding) String() string

type AccessBindingAction

type AccessBindingAction int32
const (
	AccessBindingAction_ACCESS_BINDING_ACTION_UNSPECIFIED AccessBindingAction = 0
	// Addition of an access binding.
	AccessBindingAction_ADD AccessBindingAction = 1
	// Removal of an access binding.
	AccessBindingAction_REMOVE AccessBindingAction = 2
)

func (AccessBindingAction) Descriptor

func (AccessBindingAction) Enum

func (AccessBindingAction) EnumDescriptor deprecated

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

Deprecated: Use AccessBindingAction.Descriptor instead.

func (AccessBindingAction) Number

func (AccessBindingAction) String

func (x AccessBindingAction) String() string

func (AccessBindingAction) Type

type AccessBindingDelta

type AccessBindingDelta struct {

	// The action that is being performed on an access binding.
	Action AccessBindingAction `protobuf:"varint,1,opt,name=action,proto3,enum=yandex.cloud.access.AccessBindingAction" json:"action,omitempty"`
	// Access binding. For more information, see [Access Bindings](/docs/iam/concepts/access-control/#access-bindings).
	AccessBinding *AccessBinding `protobuf:"bytes,2,opt,name=access_binding,json=accessBinding,proto3" json:"access_binding,omitempty"`
	// contains filtered or unexported fields
}

func (*AccessBindingDelta) Descriptor deprecated

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

Deprecated: Use AccessBindingDelta.ProtoReflect.Descriptor instead.

func (*AccessBindingDelta) GetAccessBinding

func (x *AccessBindingDelta) GetAccessBinding() *AccessBinding

func (*AccessBindingDelta) GetAction

func (x *AccessBindingDelta) GetAction() AccessBindingAction

func (*AccessBindingDelta) ProtoMessage

func (*AccessBindingDelta) ProtoMessage()

func (*AccessBindingDelta) ProtoReflect

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

func (*AccessBindingDelta) Reset

func (x *AccessBindingDelta) Reset()

func (*AccessBindingDelta) SetAccessBinding

func (m *AccessBindingDelta) SetAccessBinding(v *AccessBinding)

func (*AccessBindingDelta) SetAction

func (m *AccessBindingDelta) SetAction(v AccessBindingAction)

func (*AccessBindingDelta) String

func (x *AccessBindingDelta) String() string

type AccessBindingsOperationResult

type AccessBindingsOperationResult struct {

	// Result access binding deltas.
	EffectiveDeltas []*AccessBindingDelta `protobuf:"bytes,1,rep,name=effective_deltas,json=effectiveDeltas,proto3" json:"effective_deltas,omitempty"`
	// contains filtered or unexported fields
}

func (*AccessBindingsOperationResult) Descriptor deprecated

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

Deprecated: Use AccessBindingsOperationResult.ProtoReflect.Descriptor instead.

func (*AccessBindingsOperationResult) GetEffectiveDeltas

func (x *AccessBindingsOperationResult) GetEffectiveDeltas() []*AccessBindingDelta

func (*AccessBindingsOperationResult) ProtoMessage

func (*AccessBindingsOperationResult) ProtoMessage()

func (*AccessBindingsOperationResult) ProtoReflect

func (*AccessBindingsOperationResult) Reset

func (x *AccessBindingsOperationResult) Reset()

func (*AccessBindingsOperationResult) SetEffectiveDeltas

func (m *AccessBindingsOperationResult) SetEffectiveDeltas(v []*AccessBindingDelta)

func (*AccessBindingsOperationResult) String

type ListAccessBindingsRequest

type ListAccessBindingsRequest struct {

	// ID of the resource to list access bindings for.
	//
	// To get the resource ID, use a corresponding List request.
	// For example, use the [yandex.cloud.resourcemanager.v1.CloudService.List] request to get the Cloud resource ID.
	ResourceId string `protobuf:"bytes,1,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
	// The maximum number of results per page that should be returned. If the number of available
	// results is larger than [page_size],
	// the service returns a [ListAccessBindingsResponse.next_page_token]
	// that can be used to get the next page of results in subsequent list requests.
	// Default value: 100.
	PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Page token. Set [page_token]
	// to the [ListAccessBindingsResponse.next_page_token]
	// returned by a previous list request to get the next page of results.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAccessBindingsRequest) Descriptor deprecated

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

Deprecated: Use ListAccessBindingsRequest.ProtoReflect.Descriptor instead.

func (*ListAccessBindingsRequest) GetPageSize

func (x *ListAccessBindingsRequest) GetPageSize() int64

func (*ListAccessBindingsRequest) GetPageToken

func (x *ListAccessBindingsRequest) GetPageToken() string

func (*ListAccessBindingsRequest) GetResourceId

func (x *ListAccessBindingsRequest) GetResourceId() string

func (*ListAccessBindingsRequest) ProtoMessage

func (*ListAccessBindingsRequest) ProtoMessage()

func (*ListAccessBindingsRequest) ProtoReflect

func (*ListAccessBindingsRequest) Reset

func (x *ListAccessBindingsRequest) Reset()

func (*ListAccessBindingsRequest) SetPageSize

func (m *ListAccessBindingsRequest) SetPageSize(v int64)

func (*ListAccessBindingsRequest) SetPageToken

func (m *ListAccessBindingsRequest) SetPageToken(v string)

func (*ListAccessBindingsRequest) SetResourceId

func (m *ListAccessBindingsRequest) SetResourceId(v string)

func (*ListAccessBindingsRequest) String

func (x *ListAccessBindingsRequest) String() string

type ListAccessBindingsResponse

type ListAccessBindingsResponse struct {

	// List of access bindings for the specified resource.
	AccessBindings []*AccessBinding `protobuf:"bytes,1,rep,name=access_bindings,json=accessBindings,proto3" json:"access_bindings,omitempty"`
	// This token allows you to get the next page of results for list requests. If the number of results
	// is larger than [ListAccessBindingsRequest.page_size], use
	// the [next_page_token] as the value
	// for the [ListAccessBindingsRequest.page_token] query parameter
	// in the next list request. Each subsequent list request will have its own
	// [next_page_token] to continue paging through the results.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAccessBindingsResponse) Descriptor deprecated

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

Deprecated: Use ListAccessBindingsResponse.ProtoReflect.Descriptor instead.

func (*ListAccessBindingsResponse) GetAccessBindings

func (x *ListAccessBindingsResponse) GetAccessBindings() []*AccessBinding

func (*ListAccessBindingsResponse) GetNextPageToken

func (x *ListAccessBindingsResponse) GetNextPageToken() string

func (*ListAccessBindingsResponse) ProtoMessage

func (*ListAccessBindingsResponse) ProtoMessage()

func (*ListAccessBindingsResponse) ProtoReflect

func (*ListAccessBindingsResponse) Reset

func (x *ListAccessBindingsResponse) Reset()

func (*ListAccessBindingsResponse) SetAccessBindings

func (m *ListAccessBindingsResponse) SetAccessBindings(v []*AccessBinding)

func (*ListAccessBindingsResponse) SetNextPageToken

func (m *ListAccessBindingsResponse) SetNextPageToken(v string)

func (*ListAccessBindingsResponse) String

func (x *ListAccessBindingsResponse) String() string

type SetAccessBindingsMetadata

type SetAccessBindingsMetadata struct {

	// ID of the resource for which access bindings are being set.
	ResourceId string `protobuf:"bytes,1,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
	// contains filtered or unexported fields
}

func (*SetAccessBindingsMetadata) Descriptor deprecated

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

Deprecated: Use SetAccessBindingsMetadata.ProtoReflect.Descriptor instead.

func (*SetAccessBindingsMetadata) GetResourceId

func (x *SetAccessBindingsMetadata) GetResourceId() string

func (*SetAccessBindingsMetadata) ProtoMessage

func (*SetAccessBindingsMetadata) ProtoMessage()

func (*SetAccessBindingsMetadata) ProtoReflect

func (*SetAccessBindingsMetadata) Reset

func (x *SetAccessBindingsMetadata) Reset()

func (*SetAccessBindingsMetadata) SetResourceId

func (m *SetAccessBindingsMetadata) SetResourceId(v string)

func (*SetAccessBindingsMetadata) String

func (x *SetAccessBindingsMetadata) String() string

type SetAccessBindingsRequest

type SetAccessBindingsRequest struct {

	// ID of the resource for which access bindings are being set.
	//
	// To get the resource ID, use a corresponding List request.
	ResourceId string `protobuf:"bytes,1,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
	// Access bindings to be set. For more information, see [Access Bindings](/docs/iam/concepts/access-control/#access-bindings).
	AccessBindings []*AccessBinding `protobuf:"bytes,2,rep,name=access_bindings,json=accessBindings,proto3" json:"access_bindings,omitempty"`
	// contains filtered or unexported fields
}

func (*SetAccessBindingsRequest) Descriptor deprecated

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

Deprecated: Use SetAccessBindingsRequest.ProtoReflect.Descriptor instead.

func (*SetAccessBindingsRequest) GetAccessBindings

func (x *SetAccessBindingsRequest) GetAccessBindings() []*AccessBinding

func (*SetAccessBindingsRequest) GetResourceId

func (x *SetAccessBindingsRequest) GetResourceId() string

func (*SetAccessBindingsRequest) ProtoMessage

func (*SetAccessBindingsRequest) ProtoMessage()

func (*SetAccessBindingsRequest) ProtoReflect

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

func (*SetAccessBindingsRequest) Reset

func (x *SetAccessBindingsRequest) Reset()

func (*SetAccessBindingsRequest) SetAccessBindings

func (m *SetAccessBindingsRequest) SetAccessBindings(v []*AccessBinding)

func (*SetAccessBindingsRequest) SetResourceId

func (m *SetAccessBindingsRequest) SetResourceId(v string)

func (*SetAccessBindingsRequest) String

func (x *SetAccessBindingsRequest) String() string

type Subject

type Subject struct {

	// ID of the subject.
	//
	// It can contain one of the following values:
	//   - `allAuthenticatedUsers`: A special public group that represents anyone
	//     who is authenticated. It can be used only if the [type] is `system`.
	//   - `allUsers`: A special public group that represents anyone. No authentication is required.
	//     For example, you don't need to specify the IAM token in an API query.
	//     It can be used only if the [type] is `system`.
	//   - `group:organization:<id>:users`: A special system group that represents all members of organization
	//     with given <id>. It can be used only if the [type] is `system`.
	//   - `group:federation:<id>:users`: A special system group that represents all users of federation
	//     with given <id>. It can be used only if the [type] is `system`.
	//   - `<cloud generated id>`: An identifier that represents a user account.
	//     It can be used only if the [type] is `userAccount`, `federatedUser` or `serviceAccount`.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Type of the subject.
	//
	// It can contain one of the following values:
	// * `userAccount`: An account on Yandex or Yandex Connect, added to Yandex Cloud.
	// * `serviceAccount`: A service account. This type represents the [yandex.cloud.iam.v1.ServiceAccount] resource.
	// * `federatedUser`: A federated account. This type represents a user from an identity federation, like Active Directory.
	// * `system`: System group. This type represents several accounts with a common system identifier.
	//
	// For more information, see [Subject to which the role is assigned](/docs/iam/concepts/access-control/#subject).
	Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*Subject) Descriptor deprecated

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

Deprecated: Use Subject.ProtoReflect.Descriptor instead.

func (*Subject) GetId

func (x *Subject) GetId() string

func (*Subject) GetType

func (x *Subject) GetType() string

func (*Subject) ProtoMessage

func (*Subject) ProtoMessage()

func (*Subject) ProtoReflect

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

func (*Subject) Reset

func (x *Subject) Reset()

func (*Subject) SetId

func (m *Subject) SetId(v string)

func (*Subject) SetType

func (m *Subject) SetType(v string)

func (*Subject) String

func (x *Subject) String() string

type UpdateAccessBindingsMetadata

type UpdateAccessBindingsMetadata struct {

	// ID of the resource for which access bindings are being updated.
	ResourceId string `protobuf:"bytes,1,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateAccessBindingsMetadata) Descriptor deprecated

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

Deprecated: Use UpdateAccessBindingsMetadata.ProtoReflect.Descriptor instead.

func (*UpdateAccessBindingsMetadata) GetResourceId

func (x *UpdateAccessBindingsMetadata) GetResourceId() string

func (*UpdateAccessBindingsMetadata) ProtoMessage

func (*UpdateAccessBindingsMetadata) ProtoMessage()

func (*UpdateAccessBindingsMetadata) ProtoReflect

func (*UpdateAccessBindingsMetadata) Reset

func (x *UpdateAccessBindingsMetadata) Reset()

func (*UpdateAccessBindingsMetadata) SetResourceId

func (m *UpdateAccessBindingsMetadata) SetResourceId(v string)

func (*UpdateAccessBindingsMetadata) String

type UpdateAccessBindingsRequest

type UpdateAccessBindingsRequest struct {

	// ID of the resource for which access bindings are being updated.
	ResourceId string `protobuf:"bytes,1,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
	// Updates to access bindings.
	AccessBindingDeltas []*AccessBindingDelta `protobuf:"bytes,2,rep,name=access_binding_deltas,json=accessBindingDeltas,proto3" json:"access_binding_deltas,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateAccessBindingsRequest) Descriptor deprecated

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

Deprecated: Use UpdateAccessBindingsRequest.ProtoReflect.Descriptor instead.

func (*UpdateAccessBindingsRequest) GetAccessBindingDeltas

func (x *UpdateAccessBindingsRequest) GetAccessBindingDeltas() []*AccessBindingDelta

func (*UpdateAccessBindingsRequest) GetResourceId

func (x *UpdateAccessBindingsRequest) GetResourceId() string

func (*UpdateAccessBindingsRequest) ProtoMessage

func (*UpdateAccessBindingsRequest) ProtoMessage()

func (*UpdateAccessBindingsRequest) ProtoReflect

func (*UpdateAccessBindingsRequest) Reset

func (x *UpdateAccessBindingsRequest) Reset()

func (*UpdateAccessBindingsRequest) SetAccessBindingDeltas

func (m *UpdateAccessBindingsRequest) SetAccessBindingDeltas(v []*AccessBindingDelta)

func (*UpdateAccessBindingsRequest) SetResourceId

func (m *UpdateAccessBindingsRequest) SetResourceId(v string)

func (*UpdateAccessBindingsRequest) String

func (x *UpdateAccessBindingsRequest) String() string

Jump to

Keyboard shortcuts

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