audittrails

package
v0.0.0-...-5fa7aab Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: MIT Imports: 15 Imported by: 4

Documentation

Index

Constants

View Source
const (
	TrailService_Get_FullMethodName                  = "/yandex.cloud.audittrails.v1.TrailService/Get"
	TrailService_List_FullMethodName                 = "/yandex.cloud.audittrails.v1.TrailService/List"
	TrailService_Create_FullMethodName               = "/yandex.cloud.audittrails.v1.TrailService/Create"
	TrailService_Update_FullMethodName               = "/yandex.cloud.audittrails.v1.TrailService/Update"
	TrailService_Delete_FullMethodName               = "/yandex.cloud.audittrails.v1.TrailService/Delete"
	TrailService_ListOperations_FullMethodName       = "/yandex.cloud.audittrails.v1.TrailService/ListOperations"
	TrailService_ListAccessBindings_FullMethodName   = "/yandex.cloud.audittrails.v1.TrailService/ListAccessBindings"
	TrailService_SetAccessBindings_FullMethodName    = "/yandex.cloud.audittrails.v1.TrailService/SetAccessBindings"
	TrailService_UpdateAccessBindings_FullMethodName = "/yandex.cloud.audittrails.v1.TrailService/UpdateAccessBindings"
)

Variables

View Source
var (
	Trail_Status_name = map[int32]string{
		0: "STATUS_UNSPECIFIED",
		1: "ACTIVE",
		2: "ERROR",
		3: "DELETED",
	}
	Trail_Status_value = map[string]int32{
		"STATUS_UNSPECIFIED": 0,
		"ACTIVE":             1,
		"ERROR":              2,
		"DELETED":            3,
	}
)

Enum value maps for Trail_Status.

View Source
var (
	Trail_EventCategoryFilter_name = map[int32]string{
		0: "EVENT_CATEGORY_FILTER_UNSPECIFIED",
		1: "CONTROL_PLANE",
		2: "DATA_PLANE",
	}
	Trail_EventCategoryFilter_value = map[string]int32{
		"EVENT_CATEGORY_FILTER_UNSPECIFIED": 0,
		"CONTROL_PLANE":                     1,
		"DATA_PLANE":                        2,
	}
)

Enum value maps for Trail_EventCategoryFilter.

View Source
var (
	Trail_EventAccessTypeFilter_name = map[int32]string{
		0: "EVENT_ACCESS_TYPE_FILTER_UNSPECIFIED",
		1: "WRITE",
		2: "READ",
	}
	Trail_EventAccessTypeFilter_value = map[string]int32{
		"EVENT_ACCESS_TYPE_FILTER_UNSPECIFIED": 0,
		"WRITE":                                1,
		"READ":                                 2,
	}
)

Enum value maps for Trail_EventAccessTypeFilter.

View Source
var File_yandex_cloud_audittrails_v1_trail_proto protoreflect.FileDescriptor
View Source
var File_yandex_cloud_audittrails_v1_trail_service_proto protoreflect.FileDescriptor
View Source
var TrailService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "yandex.cloud.audittrails.v1.TrailService",
	HandlerType: (*TrailServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Get",
			Handler:    _TrailService_Get_Handler,
		},
		{
			MethodName: "List",
			Handler:    _TrailService_List_Handler,
		},
		{
			MethodName: "Create",
			Handler:    _TrailService_Create_Handler,
		},
		{
			MethodName: "Update",
			Handler:    _TrailService_Update_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _TrailService_Delete_Handler,
		},
		{
			MethodName: "ListOperations",
			Handler:    _TrailService_ListOperations_Handler,
		},
		{
			MethodName: "ListAccessBindings",
			Handler:    _TrailService_ListAccessBindings_Handler,
		},
		{
			MethodName: "SetAccessBindings",
			Handler:    _TrailService_SetAccessBindings_Handler,
		},
		{
			MethodName: "UpdateAccessBindings",
			Handler:    _TrailService_UpdateAccessBindings_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "yandex/cloud/audittrails/v1/trail_service.proto",
}

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

Functions

func RegisterTrailServiceServer

func RegisterTrailServiceServer(s grpc.ServiceRegistrar, srv TrailServiceServer)

Types

type CreateTrailMetadata

type CreateTrailMetadata struct {

	// ID of the trail that is being created
	TrailId string `protobuf:"bytes,1,opt,name=trail_id,json=trailId,proto3" json:"trail_id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateTrailMetadata) Descriptor deprecated

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

Deprecated: Use CreateTrailMetadata.ProtoReflect.Descriptor instead.

func (*CreateTrailMetadata) GetTrailId

func (x *CreateTrailMetadata) GetTrailId() string

func (*CreateTrailMetadata) ProtoMessage

func (*CreateTrailMetadata) ProtoMessage()

func (*CreateTrailMetadata) ProtoReflect

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

func (*CreateTrailMetadata) Reset

func (x *CreateTrailMetadata) Reset()

func (*CreateTrailMetadata) SetTrailId

func (m *CreateTrailMetadata) SetTrailId(v string)

func (*CreateTrailMetadata) String

func (x *CreateTrailMetadata) String() string

type CreateTrailRequest

type CreateTrailRequest struct {

	// ID of the folder to create a trail in.
	FolderId string `protobuf:"bytes,1,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"`
	// Name of the trail.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Description of the trail.
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// Custom labels for the secret as `key:value` pairs. Maximum 64 per key.
	// For example, `"type": "critical"` or `"source": "dictionary"`.
	Labels map[string]string `` /* 153-byte string literal not displayed */
	// Destination configuration for the trail
	Destination *Trail_Destination `protobuf:"bytes,5,opt,name=destination,proto3" json:"destination,omitempty"`
	// Service account ID of the trail
	ServiceAccountId string `protobuf:"bytes,6,opt,name=service_account_id,json=serviceAccountId,proto3" json:"service_account_id,omitempty"`
	// Event filtering configuration of the trail
	Filter *Trail_Filter `protobuf:"bytes,7,opt,name=filter,proto3" json:"filter,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateTrailRequest) Descriptor deprecated

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

Deprecated: Use CreateTrailRequest.ProtoReflect.Descriptor instead.

func (*CreateTrailRequest) GetDescription

func (x *CreateTrailRequest) GetDescription() string

func (*CreateTrailRequest) GetDestination

func (x *CreateTrailRequest) GetDestination() *Trail_Destination

func (*CreateTrailRequest) GetFilter

func (x *CreateTrailRequest) GetFilter() *Trail_Filter

func (*CreateTrailRequest) GetFolderId

func (x *CreateTrailRequest) GetFolderId() string

func (*CreateTrailRequest) GetLabels

func (x *CreateTrailRequest) GetLabels() map[string]string

func (*CreateTrailRequest) GetName

func (x *CreateTrailRequest) GetName() string

func (*CreateTrailRequest) GetServiceAccountId

func (x *CreateTrailRequest) GetServiceAccountId() string

func (*CreateTrailRequest) ProtoMessage

func (*CreateTrailRequest) ProtoMessage()

func (*CreateTrailRequest) ProtoReflect

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

func (*CreateTrailRequest) Reset

func (x *CreateTrailRequest) Reset()

func (*CreateTrailRequest) SetDescription

func (m *CreateTrailRequest) SetDescription(v string)

func (*CreateTrailRequest) SetDestination

func (m *CreateTrailRequest) SetDestination(v *Trail_Destination)

func (*CreateTrailRequest) SetFilter

func (m *CreateTrailRequest) SetFilter(v *Trail_Filter)

func (*CreateTrailRequest) SetFolderId

func (m *CreateTrailRequest) SetFolderId(v string)

func (*CreateTrailRequest) SetLabels

func (m *CreateTrailRequest) SetLabels(v map[string]string)

func (*CreateTrailRequest) SetName

func (m *CreateTrailRequest) SetName(v string)

func (*CreateTrailRequest) SetServiceAccountId

func (m *CreateTrailRequest) SetServiceAccountId(v string)

func (*CreateTrailRequest) String

func (x *CreateTrailRequest) String() string

type DeleteTrailMetadata

type DeleteTrailMetadata struct {

	// ID of the trail that is being deleted
	TrailId string `protobuf:"bytes,1,opt,name=trail_id,json=trailId,proto3" json:"trail_id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteTrailMetadata) Descriptor deprecated

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

Deprecated: Use DeleteTrailMetadata.ProtoReflect.Descriptor instead.

func (*DeleteTrailMetadata) GetTrailId

func (x *DeleteTrailMetadata) GetTrailId() string

func (*DeleteTrailMetadata) ProtoMessage

func (*DeleteTrailMetadata) ProtoMessage()

func (*DeleteTrailMetadata) ProtoReflect

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

func (*DeleteTrailMetadata) Reset

func (x *DeleteTrailMetadata) Reset()

func (*DeleteTrailMetadata) SetTrailId

func (m *DeleteTrailMetadata) SetTrailId(v string)

func (*DeleteTrailMetadata) String

func (x *DeleteTrailMetadata) String() string

type DeleteTrailRequest

type DeleteTrailRequest struct {

	// ID of the trail to be deleted.
	TrailId string `protobuf:"bytes,1,opt,name=trail_id,json=trailId,proto3" json:"trail_id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteTrailRequest) Descriptor deprecated

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

Deprecated: Use DeleteTrailRequest.ProtoReflect.Descriptor instead.

func (*DeleteTrailRequest) GetTrailId

func (x *DeleteTrailRequest) GetTrailId() string

func (*DeleteTrailRequest) ProtoMessage

func (*DeleteTrailRequest) ProtoMessage()

func (*DeleteTrailRequest) ProtoReflect

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

func (*DeleteTrailRequest) Reset

func (x *DeleteTrailRequest) Reset()

func (*DeleteTrailRequest) SetTrailId

func (m *DeleteTrailRequest) SetTrailId(v string)

func (*DeleteTrailRequest) String

func (x *DeleteTrailRequest) String() string

type GetTrailRequest

type GetTrailRequest struct {

	// ID of the trail to return.
	//
	// To get a trail ID make a [List] request.
	TrailId string `protobuf:"bytes,1,opt,name=trail_id,json=trailId,proto3" json:"trail_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetTrailRequest) Descriptor deprecated

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

Deprecated: Use GetTrailRequest.ProtoReflect.Descriptor instead.

func (*GetTrailRequest) GetTrailId

func (x *GetTrailRequest) GetTrailId() string

func (*GetTrailRequest) ProtoMessage

func (*GetTrailRequest) ProtoMessage()

func (*GetTrailRequest) ProtoReflect

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

func (*GetTrailRequest) Reset

func (x *GetTrailRequest) Reset()

func (*GetTrailRequest) SetTrailId

func (m *GetTrailRequest) SetTrailId(v string)

func (*GetTrailRequest) String

func (x *GetTrailRequest) String() string

type ListTrailOperationsRequest

type ListTrailOperationsRequest struct {

	// ID of the trail to get operations for.
	TrailId string `protobuf:"bytes,1,opt,name=trail_id,json=trailId,proto3" json:"trail_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 [ListTrailOperationsResponse.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. To get the next page of results, set `page_token` to the
	// [ListTrailOperationsRequest.next_page_token] returned by a previous list request.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListTrailOperationsRequest) Descriptor deprecated

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

Deprecated: Use ListTrailOperationsRequest.ProtoReflect.Descriptor instead.

func (*ListTrailOperationsRequest) GetPageSize

func (x *ListTrailOperationsRequest) GetPageSize() int64

func (*ListTrailOperationsRequest) GetPageToken

func (x *ListTrailOperationsRequest) GetPageToken() string

func (*ListTrailOperationsRequest) GetTrailId

func (x *ListTrailOperationsRequest) GetTrailId() string

func (*ListTrailOperationsRequest) ProtoMessage

func (*ListTrailOperationsRequest) ProtoMessage()

func (*ListTrailOperationsRequest) ProtoReflect

func (*ListTrailOperationsRequest) Reset

func (x *ListTrailOperationsRequest) Reset()

func (*ListTrailOperationsRequest) SetPageSize

func (m *ListTrailOperationsRequest) SetPageSize(v int64)

func (*ListTrailOperationsRequest) SetPageToken

func (m *ListTrailOperationsRequest) SetPageToken(v string)

func (*ListTrailOperationsRequest) SetTrailId

func (m *ListTrailOperationsRequest) SetTrailId(v string)

func (*ListTrailOperationsRequest) String

func (x *ListTrailOperationsRequest) String() string

type ListTrailOperationsResponse

type ListTrailOperationsResponse struct {

	// List of operations for the specified trail.
	Operations []*operation.Operation `protobuf:"bytes,1,rep,name=operations,proto3" json:"operations,omitempty"`
	// This token allows you to get the next page of results for list requests. If the number of results
	// is larger than [ListTrailOperationsResponse.page_size], use the `next_page_token` as the value
	// for the [ListTrailOperationsResponse.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 (*ListTrailOperationsResponse) Descriptor deprecated

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

Deprecated: Use ListTrailOperationsResponse.ProtoReflect.Descriptor instead.

func (*ListTrailOperationsResponse) GetNextPageToken

func (x *ListTrailOperationsResponse) GetNextPageToken() string

func (*ListTrailOperationsResponse) GetOperations

func (x *ListTrailOperationsResponse) GetOperations() []*operation.Operation

func (*ListTrailOperationsResponse) ProtoMessage

func (*ListTrailOperationsResponse) ProtoMessage()

func (*ListTrailOperationsResponse) ProtoReflect

func (*ListTrailOperationsResponse) Reset

func (x *ListTrailOperationsResponse) Reset()

func (*ListTrailOperationsResponse) SetNextPageToken

func (m *ListTrailOperationsResponse) SetNextPageToken(v string)

func (*ListTrailOperationsResponse) SetOperations

func (m *ListTrailOperationsResponse) SetOperations(v []*operation.Operation)

func (*ListTrailOperationsResponse) String

func (x *ListTrailOperationsResponse) String() string

type ListTrailsRequest

type ListTrailsRequest struct {

	// ID of the folder to list trails in.
	FolderId string `protobuf:"bytes,1,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"`
	// The maximum number of results per page to return. If the number of available
	// results is larger than `page_size`, the service returns a [ListTrailsResponse.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. To get the next page of results, set `page_token` to the
	// [ListTrailsRequest.next_page_token] returned by a previous list request.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// A filter expression that filters subscription locks listed in the response.
	//
	// The expression must specify:
	// 1. The field name. Currently you can use filtering on [Trail.name, Trail.created_at] fields.
	// 2. An operator. Can be either `=` or `!=` for single values, `IN` or `NOT IN` for lists of values.
	// 3. The value. Must be in double quotes `""`. Must be 3-63 characters long and match the regular expression `^[a-z][-a-z0-9]{1,61}[a-z0-9]`.
	// Example of a filter: `name="my-name"`.
	Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
	// By which column the listing should be ordered and in which direction.
	// format is "<field> desc|acs"
	OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
	// contains filtered or unexported fields
}

func (*ListTrailsRequest) Descriptor deprecated

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

Deprecated: Use ListTrailsRequest.ProtoReflect.Descriptor instead.

func (*ListTrailsRequest) GetFilter

func (x *ListTrailsRequest) GetFilter() string

func (*ListTrailsRequest) GetFolderId

func (x *ListTrailsRequest) GetFolderId() string

func (*ListTrailsRequest) GetOrderBy

func (x *ListTrailsRequest) GetOrderBy() string

func (*ListTrailsRequest) GetPageSize

func (x *ListTrailsRequest) GetPageSize() int64

func (*ListTrailsRequest) GetPageToken

func (x *ListTrailsRequest) GetPageToken() string

func (*ListTrailsRequest) ProtoMessage

func (*ListTrailsRequest) ProtoMessage()

func (*ListTrailsRequest) ProtoReflect

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

func (*ListTrailsRequest) Reset

func (x *ListTrailsRequest) Reset()

func (*ListTrailsRequest) SetFilter

func (m *ListTrailsRequest) SetFilter(v string)

func (*ListTrailsRequest) SetFolderId

func (m *ListTrailsRequest) SetFolderId(v string)

func (*ListTrailsRequest) SetOrderBy

func (m *ListTrailsRequest) SetOrderBy(v string)

func (*ListTrailsRequest) SetPageSize

func (m *ListTrailsRequest) SetPageSize(v int64)

func (*ListTrailsRequest) SetPageToken

func (m *ListTrailsRequest) SetPageToken(v string)

func (*ListTrailsRequest) String

func (x *ListTrailsRequest) String() string

type ListTrailsResponse

type ListTrailsResponse struct {

	// List of trails in the specified folder.
	Trails []*Trail `protobuf:"bytes,1,rep,name=trails,proto3" json:"trails,omitempty"`
	// This token allows you to get the next page of results for list requests. If the number
	// of results is greater than the specified [ListTrailsRequest.page_size], use
	// the `next_page_token` as the value for the [ListTrailsRequest.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 (*ListTrailsResponse) Descriptor deprecated

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

Deprecated: Use ListTrailsResponse.ProtoReflect.Descriptor instead.

func (*ListTrailsResponse) GetNextPageToken

func (x *ListTrailsResponse) GetNextPageToken() string

func (*ListTrailsResponse) GetTrails

func (x *ListTrailsResponse) GetTrails() []*Trail

func (*ListTrailsResponse) ProtoMessage

func (*ListTrailsResponse) ProtoMessage()

func (*ListTrailsResponse) ProtoReflect

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

func (*ListTrailsResponse) Reset

func (x *ListTrailsResponse) Reset()

func (*ListTrailsResponse) SetNextPageToken

func (m *ListTrailsResponse) SetNextPageToken(v string)

func (*ListTrailsResponse) SetTrails

func (m *ListTrailsResponse) SetTrails(v []*Trail)

func (*ListTrailsResponse) String

func (x *ListTrailsResponse) String() string

type Trail

type Trail struct {

	// ID of the trail
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// ID of the folder that the trail belongs to
	FolderId string `protobuf:"bytes,2,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"`
	// The timestamp for the creation operation
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// The timestamp of the last update operation
	UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// Name of the trail
	Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
	// Description of the trail
	Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
	// Custom labels of the trail as `key:value` pairs. Maximum 64 per key
	Labels map[string]string `` /* 153-byte string literal not displayed */
	// Destination configuration of the trail
	Destination *Trail_Destination `protobuf:"bytes,8,opt,name=destination,proto3" json:"destination,omitempty"`
	// Service account ID of the trail
	ServiceAccountId string `protobuf:"bytes,9,opt,name=service_account_id,json=serviceAccountId,proto3" json:"service_account_id,omitempty"`
	// Status of the trail
	Status Trail_Status `protobuf:"varint,10,opt,name=status,proto3,enum=yandex.cloud.audittrails.v1.Trail_Status" json:"status,omitempty"`
	// Filtering configuration of the trail
	Filter *Trail_Filter `protobuf:"bytes,11,opt,name=filter,proto3" json:"filter,omitempty"`
	// Current error message of the trail. Empty in case if the trail is active
	StatusErrorMessage string `protobuf:"bytes,12,opt,name=status_error_message,json=statusErrorMessage,proto3" json:"status_error_message,omitempty"`
	// ID of the cloud that the trail belongs to
	CloudId string `protobuf:"bytes,14,opt,name=cloud_id,json=cloudId,proto3" json:"cloud_id,omitempty"`
	// contains filtered or unexported fields
}

Trail describes the filtering and destination configuration of the process of sending Audit events

func (*Trail) Descriptor deprecated

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

Deprecated: Use Trail.ProtoReflect.Descriptor instead.

func (*Trail) GetCloudId

func (x *Trail) GetCloudId() string

func (*Trail) GetCreatedAt

func (x *Trail) GetCreatedAt() *timestamppb.Timestamp

func (*Trail) GetDescription

func (x *Trail) GetDescription() string

func (*Trail) GetDestination

func (x *Trail) GetDestination() *Trail_Destination

func (*Trail) GetFilter

func (x *Trail) GetFilter() *Trail_Filter

func (*Trail) GetFolderId

func (x *Trail) GetFolderId() string

func (*Trail) GetId

func (x *Trail) GetId() string

func (*Trail) GetLabels

func (x *Trail) GetLabels() map[string]string

func (*Trail) GetName

func (x *Trail) GetName() string

func (*Trail) GetServiceAccountId

func (x *Trail) GetServiceAccountId() string

func (*Trail) GetStatus

func (x *Trail) GetStatus() Trail_Status

func (*Trail) GetStatusErrorMessage

func (x *Trail) GetStatusErrorMessage() string

func (*Trail) GetUpdatedAt

func (x *Trail) GetUpdatedAt() *timestamppb.Timestamp

func (*Trail) ProtoMessage

func (*Trail) ProtoMessage()

func (*Trail) ProtoReflect

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

func (*Trail) Reset

func (x *Trail) Reset()

func (*Trail) SetCloudId

func (m *Trail) SetCloudId(v string)

func (*Trail) SetCreatedAt

func (m *Trail) SetCreatedAt(v *timestamppb.Timestamp)

func (*Trail) SetDescription

func (m *Trail) SetDescription(v string)

func (*Trail) SetDestination

func (m *Trail) SetDestination(v *Trail_Destination)

func (*Trail) SetFilter

func (m *Trail) SetFilter(v *Trail_Filter)

func (*Trail) SetFolderId

func (m *Trail) SetFolderId(v string)

func (*Trail) SetId

func (m *Trail) SetId(v string)

func (*Trail) SetLabels

func (m *Trail) SetLabels(v map[string]string)

func (*Trail) SetName

func (m *Trail) SetName(v string)

func (*Trail) SetServiceAccountId

func (m *Trail) SetServiceAccountId(v string)

func (*Trail) SetStatus

func (m *Trail) SetStatus(v Trail_Status)

func (*Trail) SetStatusErrorMessage

func (m *Trail) SetStatusErrorMessage(v string)

func (*Trail) SetUpdatedAt

func (m *Trail) SetUpdatedAt(v *timestamppb.Timestamp)

func (*Trail) String

func (x *Trail) String() string

type TrailServiceClient

type TrailServiceClient interface {
	// Returns the specified trail.
	//
	// To get the list of all available trails, make a [List] request.
	Get(ctx context.Context, in *GetTrailRequest, opts ...grpc.CallOption) (*Trail, error)
	// Retrieves the list of trails in the specified folder.
	List(ctx context.Context, in *ListTrailsRequest, opts ...grpc.CallOption) (*ListTrailsResponse, error)
	// Creates a trail in the specified folder.
	Create(ctx context.Context, in *CreateTrailRequest, opts ...grpc.CallOption) (*operation.Operation, error)
	// Updates the specified trail.
	Update(ctx context.Context, in *UpdateTrailRequest, opts ...grpc.CallOption) (*operation.Operation, error)
	// Deletes the specified trail.
	Delete(ctx context.Context, in *DeleteTrailRequest, opts ...grpc.CallOption) (*operation.Operation, error)
	// Lists operations for the specified trail.
	ListOperations(ctx context.Context, in *ListTrailOperationsRequest, opts ...grpc.CallOption) (*ListTrailOperationsResponse, error)
	// Lists existing access bindings for the specified trail.
	ListAccessBindings(ctx context.Context, in *access.ListAccessBindingsRequest, opts ...grpc.CallOption) (*access.ListAccessBindingsResponse, error)
	// Sets access bindings for the trail.
	SetAccessBindings(ctx context.Context, in *access.SetAccessBindingsRequest, opts ...grpc.CallOption) (*operation.Operation, error)
	// Updates access bindings for the trail.
	UpdateAccessBindings(ctx context.Context, in *access.UpdateAccessBindingsRequest, opts ...grpc.CallOption) (*operation.Operation, error)
}

TrailServiceClient is the client API for TrailService 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 TrailServiceServer

type TrailServiceServer interface {
	// Returns the specified trail.
	//
	// To get the list of all available trails, make a [List] request.
	Get(context.Context, *GetTrailRequest) (*Trail, error)
	// Retrieves the list of trails in the specified folder.
	List(context.Context, *ListTrailsRequest) (*ListTrailsResponse, error)
	// Creates a trail in the specified folder.
	Create(context.Context, *CreateTrailRequest) (*operation.Operation, error)
	// Updates the specified trail.
	Update(context.Context, *UpdateTrailRequest) (*operation.Operation, error)
	// Deletes the specified trail.
	Delete(context.Context, *DeleteTrailRequest) (*operation.Operation, error)
	// Lists operations for the specified trail.
	ListOperations(context.Context, *ListTrailOperationsRequest) (*ListTrailOperationsResponse, error)
	// Lists existing access bindings for the specified trail.
	ListAccessBindings(context.Context, *access.ListAccessBindingsRequest) (*access.ListAccessBindingsResponse, error)
	// Sets access bindings for the trail.
	SetAccessBindings(context.Context, *access.SetAccessBindingsRequest) (*operation.Operation, error)
	// Updates access bindings for the trail.
	UpdateAccessBindings(context.Context, *access.UpdateAccessBindingsRequest) (*operation.Operation, error)
}

TrailServiceServer is the server API for TrailService service. All implementations should embed UnimplementedTrailServiceServer for forward compatibility

type Trail_CloudLogging

type Trail_CloudLogging struct {

	// Types that are assignable to Destination:
	//
	//	*Trail_CloudLogging_LogGroupId
	Destination isTrail_CloudLogging_Destination `protobuf_oneof:"destination"`
	// contains filtered or unexported fields
}

func (*Trail_CloudLogging) Descriptor deprecated

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

Deprecated: Use Trail_CloudLogging.ProtoReflect.Descriptor instead.

func (*Trail_CloudLogging) GetDestination

func (m *Trail_CloudLogging) GetDestination() isTrail_CloudLogging_Destination

func (*Trail_CloudLogging) GetLogGroupId

func (x *Trail_CloudLogging) GetLogGroupId() string

func (*Trail_CloudLogging) ProtoMessage

func (*Trail_CloudLogging) ProtoMessage()

func (*Trail_CloudLogging) ProtoReflect

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

func (*Trail_CloudLogging) Reset

func (x *Trail_CloudLogging) Reset()

func (*Trail_CloudLogging) SetDestination

func (*Trail_CloudLogging) SetLogGroupId

func (m *Trail_CloudLogging) SetLogGroupId(v string)

func (*Trail_CloudLogging) String

func (x *Trail_CloudLogging) String() string

type Trail_CloudLogging_Destination

type Trail_CloudLogging_Destination = isTrail_CloudLogging_Destination

type Trail_CloudLogging_LogGroupId

type Trail_CloudLogging_LogGroupId struct {
	// ID of the Cloud Logging destination group
	LogGroupId string `protobuf:"bytes,1,opt,name=log_group_id,json=logGroupId,proto3,oneof"`
}

type Trail_DataStream

type Trail_DataStream struct {

	// ID of the database hosting the destination YDS
	DatabaseId string `protobuf:"bytes,1,opt,name=database_id,json=databaseId,proto3" json:"database_id,omitempty"`
	// Name of the destination YDS
	StreamName string `protobuf:"bytes,2,opt,name=stream_name,json=streamName,proto3" json:"stream_name,omitempty"`
	// contains filtered or unexported fields
}

func (*Trail_DataStream) Descriptor deprecated

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

Deprecated: Use Trail_DataStream.ProtoReflect.Descriptor instead.

func (*Trail_DataStream) GetDatabaseId

func (x *Trail_DataStream) GetDatabaseId() string

func (*Trail_DataStream) GetStreamName

func (x *Trail_DataStream) GetStreamName() string

func (*Trail_DataStream) ProtoMessage

func (*Trail_DataStream) ProtoMessage()

func (*Trail_DataStream) ProtoReflect

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

func (*Trail_DataStream) Reset

func (x *Trail_DataStream) Reset()

func (*Trail_DataStream) SetDatabaseId

func (m *Trail_DataStream) SetDatabaseId(v string)

func (*Trail_DataStream) SetStreamName

func (m *Trail_DataStream) SetStreamName(v string)

func (*Trail_DataStream) String

func (x *Trail_DataStream) String() string

type Trail_Destination

type Trail_Destination struct {

	// Types that are assignable to Destination:
	//
	//	*Trail_Destination_ObjectStorage
	//	*Trail_Destination_CloudLogging
	//	*Trail_Destination_DataStream
	Destination isTrail_Destination_Destination `protobuf_oneof:"destination"`
	// contains filtered or unexported fields
}

func (*Trail_Destination) Descriptor deprecated

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

Deprecated: Use Trail_Destination.ProtoReflect.Descriptor instead.

func (*Trail_Destination) GetCloudLogging

func (x *Trail_Destination) GetCloudLogging() *Trail_CloudLogging

func (*Trail_Destination) GetDataStream

func (x *Trail_Destination) GetDataStream() *Trail_DataStream

func (*Trail_Destination) GetDestination

func (m *Trail_Destination) GetDestination() isTrail_Destination_Destination

func (*Trail_Destination) GetObjectStorage

func (x *Trail_Destination) GetObjectStorage() *Trail_ObjectStorage

func (*Trail_Destination) ProtoMessage

func (*Trail_Destination) ProtoMessage()

func (*Trail_Destination) ProtoReflect

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

func (*Trail_Destination) Reset

func (x *Trail_Destination) Reset()

func (*Trail_Destination) SetCloudLogging

func (m *Trail_Destination) SetCloudLogging(v *Trail_CloudLogging)

func (*Trail_Destination) SetDataStream

func (m *Trail_Destination) SetDataStream(v *Trail_DataStream)

func (*Trail_Destination) SetDestination

func (m *Trail_Destination) SetDestination(v Trail_Destination_Destination)

func (*Trail_Destination) SetObjectStorage

func (m *Trail_Destination) SetObjectStorage(v *Trail_ObjectStorage)

func (*Trail_Destination) String

func (x *Trail_Destination) String() string

type Trail_Destination_CloudLogging

type Trail_Destination_CloudLogging struct {
	// Configuration for event delivery to Cloud Logging
	CloudLogging *Trail_CloudLogging `protobuf:"bytes,3,opt,name=cloud_logging,json=cloudLogging,proto3,oneof"`
}

type Trail_Destination_DataStream

type Trail_Destination_DataStream struct {
	// Configuration for event delivery to YDS
	DataStream *Trail_DataStream `protobuf:"bytes,4,opt,name=data_stream,json=dataStream,proto3,oneof"`
}

type Trail_Destination_Destination

type Trail_Destination_Destination = isTrail_Destination_Destination

type Trail_Destination_ObjectStorage

type Trail_Destination_ObjectStorage struct {
	// Configuration for event delivery to Object Storage
	//
	// Uploaded objects will have prefix <trail_id>/ by default
	ObjectStorage *Trail_ObjectStorage `protobuf:"bytes,1,opt,name=object_storage,json=objectStorage,proto3,oneof"`
}

type Trail_EventAccessTypeFilter

type Trail_EventAccessTypeFilter int32
const (
	Trail_EVENT_ACCESS_TYPE_FILTER_UNSPECIFIED Trail_EventAccessTypeFilter = 0
	// Events for operations that do perform some modification
	Trail_WRITE Trail_EventAccessTypeFilter = 1
	// Events for operations that do not perform any modifications
	Trail_READ Trail_EventAccessTypeFilter = 2
)

func (Trail_EventAccessTypeFilter) Descriptor

func (Trail_EventAccessTypeFilter) Enum

func (Trail_EventAccessTypeFilter) EnumDescriptor deprecated

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

Deprecated: Use Trail_EventAccessTypeFilter.Descriptor instead.

func (Trail_EventAccessTypeFilter) Number

func (Trail_EventAccessTypeFilter) String

func (Trail_EventAccessTypeFilter) Type

type Trail_EventCategoryFilter

type Trail_EventCategoryFilter int32
const (
	Trail_EVENT_CATEGORY_FILTER_UNSPECIFIED Trail_EventCategoryFilter = 0
	// The events that are generated during the interaction with the service's resources
	Trail_CONTROL_PLANE Trail_EventCategoryFilter = 1
	// Events that are generated during interaction with data within the service's resources
	Trail_DATA_PLANE Trail_EventCategoryFilter = 2
)

func (Trail_EventCategoryFilter) Descriptor

func (Trail_EventCategoryFilter) Enum

func (Trail_EventCategoryFilter) EnumDescriptor deprecated

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

Deprecated: Use Trail_EventCategoryFilter.Descriptor instead.

func (Trail_EventCategoryFilter) Number

func (Trail_EventCategoryFilter) String

func (x Trail_EventCategoryFilter) String() string

func (Trail_EventCategoryFilter) Type

type Trail_EventFilter

type Trail_EventFilter struct {

	// List of filters for services
	Filters []*Trail_EventFilterElement `protobuf:"bytes,1,rep,name=filters,proto3" json:"filters,omitempty"`
	// contains filtered or unexported fields
}

func (*Trail_EventFilter) Descriptor deprecated

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

Deprecated: Use Trail_EventFilter.ProtoReflect.Descriptor instead.

func (*Trail_EventFilter) GetFilters

func (x *Trail_EventFilter) GetFilters() []*Trail_EventFilterElement

func (*Trail_EventFilter) ProtoMessage

func (*Trail_EventFilter) ProtoMessage()

func (*Trail_EventFilter) ProtoReflect

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

func (*Trail_EventFilter) Reset

func (x *Trail_EventFilter) Reset()

func (*Trail_EventFilter) SetFilters

func (m *Trail_EventFilter) SetFilters(v []*Trail_EventFilterElement)

func (*Trail_EventFilter) String

func (x *Trail_EventFilter) String() string

type Trail_EventFilterElement

type Trail_EventFilterElement struct {

	// Service ID of the gathered events
	Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
	// List of the event categories gathered for a specified service
	Categories []*Trail_EventFilterElementCategory `protobuf:"bytes,2,rep,name=categories,proto3" json:"categories,omitempty"`
	// Resource path filter for a specified service
	PathFilter *Trail_PathFilter `protobuf:"bytes,3,opt,name=path_filter,json=pathFilter,proto3" json:"path_filter,omitempty"`
	// contains filtered or unexported fields
}

func (*Trail_EventFilterElement) Descriptor deprecated

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

Deprecated: Use Trail_EventFilterElement.ProtoReflect.Descriptor instead.

func (*Trail_EventFilterElement) GetCategories

func (*Trail_EventFilterElement) GetPathFilter

func (x *Trail_EventFilterElement) GetPathFilter() *Trail_PathFilter

func (*Trail_EventFilterElement) GetService

func (x *Trail_EventFilterElement) GetService() string

func (*Trail_EventFilterElement) ProtoMessage

func (*Trail_EventFilterElement) ProtoMessage()

func (*Trail_EventFilterElement) ProtoReflect

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

func (*Trail_EventFilterElement) Reset

func (x *Trail_EventFilterElement) Reset()

func (*Trail_EventFilterElement) SetCategories

func (*Trail_EventFilterElement) SetPathFilter

func (m *Trail_EventFilterElement) SetPathFilter(v *Trail_PathFilter)

func (*Trail_EventFilterElement) SetService

func (m *Trail_EventFilterElement) SetService(v string)

func (*Trail_EventFilterElement) String

func (x *Trail_EventFilterElement) String() string

type Trail_EventFilterElementCategory

type Trail_EventFilterElementCategory struct {

	// Plane of the gathered category
	Plane Trail_EventCategoryFilter `protobuf:"varint,1,opt,name=plane,proto3,enum=yandex.cloud.audittrails.v1.Trail_EventCategoryFilter" json:"plane,omitempty"`
	// Type of the gathered category
	Type Trail_EventAccessTypeFilter `protobuf:"varint,2,opt,name=type,proto3,enum=yandex.cloud.audittrails.v1.Trail_EventAccessTypeFilter" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*Trail_EventFilterElementCategory) Descriptor deprecated

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

Deprecated: Use Trail_EventFilterElementCategory.ProtoReflect.Descriptor instead.

func (*Trail_EventFilterElementCategory) GetPlane

func (*Trail_EventFilterElementCategory) GetType

func (*Trail_EventFilterElementCategory) ProtoMessage

func (*Trail_EventFilterElementCategory) ProtoMessage()

func (*Trail_EventFilterElementCategory) ProtoReflect

func (*Trail_EventFilterElementCategory) Reset

func (*Trail_EventFilterElementCategory) SetPlane

func (*Trail_EventFilterElementCategory) SetType

func (*Trail_EventFilterElementCategory) String

type Trail_Filter

type Trail_Filter struct {

	// Configuration of default events gathering for the trail
	// If not specified, default events won't be gathered for the trail
	PathFilter *Trail_PathFilter `protobuf:"bytes,1,opt,name=path_filter,json=pathFilter,proto3" json:"path_filter,omitempty"`
	// Configuration of additional events gathering from specific services
	EventFilter *Trail_EventFilter `protobuf:"bytes,2,opt,name=event_filter,json=eventFilter,proto3" json:"event_filter,omitempty"`
	// contains filtered or unexported fields
}

func (*Trail_Filter) Descriptor deprecated

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

Deprecated: Use Trail_Filter.ProtoReflect.Descriptor instead.

func (*Trail_Filter) GetEventFilter

func (x *Trail_Filter) GetEventFilter() *Trail_EventFilter

func (*Trail_Filter) GetPathFilter

func (x *Trail_Filter) GetPathFilter() *Trail_PathFilter

func (*Trail_Filter) ProtoMessage

func (*Trail_Filter) ProtoMessage()

func (*Trail_Filter) ProtoReflect

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

func (*Trail_Filter) Reset

func (x *Trail_Filter) Reset()

func (*Trail_Filter) SetEventFilter

func (m *Trail_Filter) SetEventFilter(v *Trail_EventFilter)

func (*Trail_Filter) SetPathFilter

func (m *Trail_Filter) SetPathFilter(v *Trail_PathFilter)

func (*Trail_Filter) String

func (x *Trail_Filter) String() string

type Trail_ObjectStorage

type Trail_ObjectStorage struct {

	// Name of the destination bucket
	BucketId string `protobuf:"bytes,1,opt,name=bucket_id,json=bucketId,proto3" json:"bucket_id,omitempty"`
	// Prefix for exported objects. Optional
	// If specified, uploaded objects will have prefix <object_prefix>/<trail_id>/
	ObjectPrefix string `protobuf:"bytes,2,opt,name=object_prefix,json=objectPrefix,proto3" json:"object_prefix,omitempty"`
	// contains filtered or unexported fields
}

func (*Trail_ObjectStorage) Descriptor deprecated

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

Deprecated: Use Trail_ObjectStorage.ProtoReflect.Descriptor instead.

func (*Trail_ObjectStorage) GetBucketId

func (x *Trail_ObjectStorage) GetBucketId() string

func (*Trail_ObjectStorage) GetObjectPrefix

func (x *Trail_ObjectStorage) GetObjectPrefix() string

func (*Trail_ObjectStorage) ProtoMessage

func (*Trail_ObjectStorage) ProtoMessage()

func (*Trail_ObjectStorage) ProtoReflect

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

func (*Trail_ObjectStorage) Reset

func (x *Trail_ObjectStorage) Reset()

func (*Trail_ObjectStorage) SetBucketId

func (m *Trail_ObjectStorage) SetBucketId(v string)

func (*Trail_ObjectStorage) SetObjectPrefix

func (m *Trail_ObjectStorage) SetObjectPrefix(v string)

func (*Trail_ObjectStorage) String

func (x *Trail_ObjectStorage) String() string

type Trail_PathFilter

type Trail_PathFilter struct {

	// Root element of the resource path filter for the trail
	// Resource described in that filter node must contain the trail itself
	Root *Trail_PathFilterElement `protobuf:"bytes,1,opt,name=root,proto3" json:"root,omitempty"`
	// contains filtered or unexported fields
}

func (*Trail_PathFilter) Descriptor deprecated

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

Deprecated: Use Trail_PathFilter.ProtoReflect.Descriptor instead.

func (*Trail_PathFilter) GetRoot

func (*Trail_PathFilter) ProtoMessage

func (*Trail_PathFilter) ProtoMessage()

func (*Trail_PathFilter) ProtoReflect

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

func (*Trail_PathFilter) Reset

func (x *Trail_PathFilter) Reset()

func (*Trail_PathFilter) SetRoot

func (*Trail_PathFilter) String

func (x *Trail_PathFilter) String() string

type Trail_PathFilterElement

type Trail_PathFilterElement struct {

	// Types that are assignable to Element:
	//
	//	*Trail_PathFilterElement_AnyFilter
	//	*Trail_PathFilterElement_SomeFilter
	Element isTrail_PathFilterElement_Element `protobuf_oneof:"element"`
	// contains filtered or unexported fields
}

func (*Trail_PathFilterElement) Descriptor deprecated

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

Deprecated: Use Trail_PathFilterElement.ProtoReflect.Descriptor instead.

func (*Trail_PathFilterElement) GetAnyFilter

func (*Trail_PathFilterElement) GetElement

func (m *Trail_PathFilterElement) GetElement() isTrail_PathFilterElement_Element

func (*Trail_PathFilterElement) GetSomeFilter

func (*Trail_PathFilterElement) ProtoMessage

func (*Trail_PathFilterElement) ProtoMessage()

func (*Trail_PathFilterElement) ProtoReflect

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

func (*Trail_PathFilterElement) Reset

func (x *Trail_PathFilterElement) Reset()

func (*Trail_PathFilterElement) SetAnyFilter

func (*Trail_PathFilterElement) SetElement

func (*Trail_PathFilterElement) SetSomeFilter

func (*Trail_PathFilterElement) String

func (x *Trail_PathFilterElement) String() string

type Trail_PathFilterElementAny

type Trail_PathFilterElementAny struct {

	// Resource definition
	Resource *Trail_Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
	// contains filtered or unexported fields
}

func (*Trail_PathFilterElementAny) Descriptor deprecated

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

Deprecated: Use Trail_PathFilterElementAny.ProtoReflect.Descriptor instead.

func (*Trail_PathFilterElementAny) GetResource

func (x *Trail_PathFilterElementAny) GetResource() *Trail_Resource

func (*Trail_PathFilterElementAny) ProtoMessage

func (*Trail_PathFilterElementAny) ProtoMessage()

func (*Trail_PathFilterElementAny) ProtoReflect

func (*Trail_PathFilterElementAny) Reset

func (x *Trail_PathFilterElementAny) Reset()

func (*Trail_PathFilterElementAny) SetResource

func (m *Trail_PathFilterElementAny) SetResource(v *Trail_Resource)

func (*Trail_PathFilterElementAny) String

func (x *Trail_PathFilterElementAny) String() string

type Trail_PathFilterElementSome

type Trail_PathFilterElementSome struct {

	// Definition of the resource that contains
	Resource *Trail_Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
	// Filters for the resources contained in the parent resource
	Filters []*Trail_PathFilterElement `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"`
	// contains filtered or unexported fields
}

func (*Trail_PathFilterElementSome) Descriptor deprecated

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

Deprecated: Use Trail_PathFilterElementSome.ProtoReflect.Descriptor instead.

func (*Trail_PathFilterElementSome) GetFilters

func (*Trail_PathFilterElementSome) GetResource

func (x *Trail_PathFilterElementSome) GetResource() *Trail_Resource

func (*Trail_PathFilterElementSome) ProtoMessage

func (*Trail_PathFilterElementSome) ProtoMessage()

func (*Trail_PathFilterElementSome) ProtoReflect

func (*Trail_PathFilterElementSome) Reset

func (x *Trail_PathFilterElementSome) Reset()

func (*Trail_PathFilterElementSome) SetFilters

func (*Trail_PathFilterElementSome) SetResource

func (m *Trail_PathFilterElementSome) SetResource(v *Trail_Resource)

func (*Trail_PathFilterElementSome) String

func (x *Trail_PathFilterElementSome) String() string

type Trail_PathFilterElement_AnyFilter

type Trail_PathFilterElement_AnyFilter struct {
	// Filter element with ANY type. If used, configures the trail to gather any events from the resource
	AnyFilter *Trail_PathFilterElementAny `protobuf:"bytes,1,opt,name=any_filter,json=anyFilter,proto3,oneof"`
}

type Trail_PathFilterElement_Element

type Trail_PathFilterElement_Element = isTrail_PathFilterElement_Element

type Trail_PathFilterElement_SomeFilter

type Trail_PathFilterElement_SomeFilter struct {
	// Filter element with SOME type. If used, configures the trail to gather some of the events from the resource
	SomeFilter *Trail_PathFilterElementSome `protobuf:"bytes,2,opt,name=some_filter,json=someFilter,proto3,oneof"`
}

type Trail_Resource

type Trail_Resource struct {

	// ID of the resource
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Type of the resource
	Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*Trail_Resource) Descriptor deprecated

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

Deprecated: Use Trail_Resource.ProtoReflect.Descriptor instead.

func (*Trail_Resource) GetId

func (x *Trail_Resource) GetId() string

func (*Trail_Resource) GetType

func (x *Trail_Resource) GetType() string

func (*Trail_Resource) ProtoMessage

func (*Trail_Resource) ProtoMessage()

func (*Trail_Resource) ProtoReflect

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

func (*Trail_Resource) Reset

func (x *Trail_Resource) Reset()

func (*Trail_Resource) SetId

func (m *Trail_Resource) SetId(v string)

func (*Trail_Resource) SetType

func (m *Trail_Resource) SetType(v string)

func (*Trail_Resource) String

func (x *Trail_Resource) String() string

type Trail_Status

type Trail_Status int32
const (
	Trail_STATUS_UNSPECIFIED Trail_Status = 0
	// The trail is active and Audit events are processed
	Trail_ACTIVE Trail_Status = 1
	// The trail configuration has issues that are preventing Audit Trails from delivering events
	Trail_ERROR Trail_Status = 2
	// The trail is being deleted
	Trail_DELETED Trail_Status = 3
)

func (Trail_Status) Descriptor

func (Trail_Status) Enum

func (x Trail_Status) Enum() *Trail_Status

func (Trail_Status) EnumDescriptor deprecated

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

Deprecated: Use Trail_Status.Descriptor instead.

func (Trail_Status) Number

func (Trail_Status) String

func (x Trail_Status) String() string

func (Trail_Status) Type

type UnimplementedTrailServiceServer

type UnimplementedTrailServiceServer struct {
}

UnimplementedTrailServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedTrailServiceServer) Create

func (UnimplementedTrailServiceServer) Delete

func (UnimplementedTrailServiceServer) Get

func (UnimplementedTrailServiceServer) List

func (UnimplementedTrailServiceServer) SetAccessBindings

func (UnimplementedTrailServiceServer) Update

func (UnimplementedTrailServiceServer) UpdateAccessBindings

type UnsafeTrailServiceServer

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

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

type UpdateTrailMetadata

type UpdateTrailMetadata struct {

	// ID of the trail that is being updated
	TrailId string `protobuf:"bytes,1,opt,name=trail_id,json=trailId,proto3" json:"trail_id,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateTrailMetadata) Descriptor deprecated

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

Deprecated: Use UpdateTrailMetadata.ProtoReflect.Descriptor instead.

func (*UpdateTrailMetadata) GetTrailId

func (x *UpdateTrailMetadata) GetTrailId() string

func (*UpdateTrailMetadata) ProtoMessage

func (*UpdateTrailMetadata) ProtoMessage()

func (*UpdateTrailMetadata) ProtoReflect

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

func (*UpdateTrailMetadata) Reset

func (x *UpdateTrailMetadata) Reset()

func (*UpdateTrailMetadata) SetTrailId

func (m *UpdateTrailMetadata) SetTrailId(v string)

func (*UpdateTrailMetadata) String

func (x *UpdateTrailMetadata) String() string

type UpdateTrailRequest

type UpdateTrailRequest struct {

	// ID of the trail to update.
	TrailId string `protobuf:"bytes,1,opt,name=trail_id,json=trailId,proto3" json:"trail_id,omitempty"`
	// Field mask that specifies which attributes of the trail are going to be updated.
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// New name of the trail.
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// New description of the trail.
	Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	// New custom labels for the secret as `key:value` pairs. Maximum 64 per key.
	Labels map[string]string `` /* 153-byte string literal not displayed */
	// New destination configuration for the trail
	Destination *Trail_Destination `protobuf:"bytes,6,opt,name=destination,proto3" json:"destination,omitempty"`
	// New service account ID of the trail
	ServiceAccountId string `protobuf:"bytes,7,opt,name=service_account_id,json=serviceAccountId,proto3" json:"service_account_id,omitempty"`
	// New filtering configuration of the trail
	Filter *Trail_Filter `protobuf:"bytes,8,opt,name=filter,proto3" json:"filter,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateTrailRequest) Descriptor deprecated

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

Deprecated: Use UpdateTrailRequest.ProtoReflect.Descriptor instead.

func (*UpdateTrailRequest) GetDescription

func (x *UpdateTrailRequest) GetDescription() string

func (*UpdateTrailRequest) GetDestination

func (x *UpdateTrailRequest) GetDestination() *Trail_Destination

func (*UpdateTrailRequest) GetFilter

func (x *UpdateTrailRequest) GetFilter() *Trail_Filter

func (*UpdateTrailRequest) GetLabels

func (x *UpdateTrailRequest) GetLabels() map[string]string

func (*UpdateTrailRequest) GetName

func (x *UpdateTrailRequest) GetName() string

func (*UpdateTrailRequest) GetServiceAccountId

func (x *UpdateTrailRequest) GetServiceAccountId() string

func (*UpdateTrailRequest) GetTrailId

func (x *UpdateTrailRequest) GetTrailId() string

func (*UpdateTrailRequest) GetUpdateMask

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

func (*UpdateTrailRequest) ProtoMessage

func (*UpdateTrailRequest) ProtoMessage()

func (*UpdateTrailRequest) ProtoReflect

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

func (*UpdateTrailRequest) Reset

func (x *UpdateTrailRequest) Reset()

func (*UpdateTrailRequest) SetDescription

func (m *UpdateTrailRequest) SetDescription(v string)

func (*UpdateTrailRequest) SetDestination

func (m *UpdateTrailRequest) SetDestination(v *Trail_Destination)

func (*UpdateTrailRequest) SetFilter

func (m *UpdateTrailRequest) SetFilter(v *Trail_Filter)

func (*UpdateTrailRequest) SetLabels

func (m *UpdateTrailRequest) SetLabels(v map[string]string)

func (*UpdateTrailRequest) SetName

func (m *UpdateTrailRequest) SetName(v string)

func (*UpdateTrailRequest) SetServiceAccountId

func (m *UpdateTrailRequest) SetServiceAccountId(v string)

func (*UpdateTrailRequest) SetTrailId

func (m *UpdateTrailRequest) SetTrailId(v string)

func (*UpdateTrailRequest) SetUpdateMask

func (m *UpdateTrailRequest) SetUpdateMask(v *fieldmaskpb.FieldMask)

func (*UpdateTrailRequest) String

func (x *UpdateTrailRequest) String() string

Jump to

Keyboard shortcuts

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