resource_change_log_client

package
v1.0.31 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreatePreCommittedResourceChangeLogsDescriptor added in v0.4.28

type CreatePreCommittedResourceChangeLogsDescriptor struct{}

func GetCreatePreCommittedResourceChangeLogsDescriptor added in v0.4.28

func GetCreatePreCommittedResourceChangeLogsDescriptor() *CreatePreCommittedResourceChangeLogsDescriptor

func (*CreatePreCommittedResourceChangeLogsDescriptor) GetApiDescriptor added in v0.4.28

func (*CreatePreCommittedResourceChangeLogsDescriptor) GetApiName added in v0.4.28

func (*CreatePreCommittedResourceChangeLogsDescriptor) GetClientMsgReflectHandle added in v0.4.28

func (*CreatePreCommittedResourceChangeLogsDescriptor) GetFullMethodName added in v0.4.28

func (*CreatePreCommittedResourceChangeLogsDescriptor) GetMethodName added in v0.4.28

func (*CreatePreCommittedResourceChangeLogsDescriptor) GetProtoPkgName added in v0.4.28

func (*CreatePreCommittedResourceChangeLogsDescriptor) GetResourceDescriptor added in v0.4.30

func (*CreatePreCommittedResourceChangeLogsDescriptor) GetServerMsgReflectHandle added in v0.4.28

func (*CreatePreCommittedResourceChangeLogsDescriptor) GetServiceDomain added in v0.4.28

func (*CreatePreCommittedResourceChangeLogsDescriptor) GetServiceVersion added in v0.4.28

func (*CreatePreCommittedResourceChangeLogsDescriptor) GetVerb added in v0.4.28

func (*CreatePreCommittedResourceChangeLogsDescriptor) HasResource added in v0.4.30

func (*CreatePreCommittedResourceChangeLogsDescriptor) IsClientStream added in v0.4.28

func (*CreatePreCommittedResourceChangeLogsDescriptor) IsCollection added in v0.4.30

func (*CreatePreCommittedResourceChangeLogsDescriptor) IsPlural added in v0.4.30

func (*CreatePreCommittedResourceChangeLogsDescriptor) IsServerStream added in v0.4.28

func (*CreatePreCommittedResourceChangeLogsDescriptor) IsUnary added in v0.4.28

func (*CreatePreCommittedResourceChangeLogsDescriptor) NewEmptyClientMsg added in v0.4.28

func (*CreatePreCommittedResourceChangeLogsDescriptor) NewEmptyServerMsg added in v0.4.28

func (*CreatePreCommittedResourceChangeLogsDescriptor) RequestHasResourceBody added in v0.4.28

func (d *CreatePreCommittedResourceChangeLogsDescriptor) RequestHasResourceBody() bool

type CreatePreCommittedResourceChangeLogsDescriptorClientMsgHandle added in v0.4.28

type CreatePreCommittedResourceChangeLogsDescriptorClientMsgHandle struct{}

func (*CreatePreCommittedResourceChangeLogsDescriptorClientMsgHandle) ExtractCollectionName added in v0.4.30

func (*CreatePreCommittedResourceChangeLogsDescriptorClientMsgHandle) ExtractResourceBodies added in v1.0.21

func (*CreatePreCommittedResourceChangeLogsDescriptorClientMsgHandle) ExtractResourceBody added in v1.0.21

func (*CreatePreCommittedResourceChangeLogsDescriptorClientMsgHandle) ExtractResourceName added in v0.4.30

func (*CreatePreCommittedResourceChangeLogsDescriptorClientMsgHandle) ExtractResourceNames added in v0.4.30

type CreatePreCommittedResourceChangeLogsDescriptorServerMsgHandle added in v0.4.28

type CreatePreCommittedResourceChangeLogsDescriptorServerMsgHandle struct{}

func (*CreatePreCommittedResourceChangeLogsDescriptorServerMsgHandle) ExtractCollectionName added in v0.4.30

func (*CreatePreCommittedResourceChangeLogsDescriptorServerMsgHandle) ExtractResourceBodies added in v1.0.21

func (*CreatePreCommittedResourceChangeLogsDescriptorServerMsgHandle) ExtractResourceBody added in v1.0.21

func (*CreatePreCommittedResourceChangeLogsDescriptorServerMsgHandle) ExtractResourceName added in v0.4.30

func (*CreatePreCommittedResourceChangeLogsDescriptorServerMsgHandle) ExtractResourceNames added in v0.4.30

type CreatePreCommittedResourceChangeLogsRequest

type CreatePreCommittedResourceChangeLogsRequest struct {

	// ID of the request - must be same as the one used in activity logs
	RequestId uint64 `protobuf:"varint,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty" firestore:"requestId"`
	// Time of the request
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty" firestore:"timestamp"`
	// Authentication data - informs who made a change
	Authentication *common.Authentication `protobuf:"bytes,3,opt,name=authentication,proto3" json:"authentication,omitempty" firestore:"authentication"`
	// Information about the service
	Service *common.ServiceData `protobuf:"bytes,4,opt,name=service,proto3" json:"service,omitempty" firestore:"service"`
	// Information about transaction
	Transaction *resource_change_log.ResourceChangeLog_TransactionInfo `protobuf:"bytes,5,opt,name=transaction,proto3" json:"transaction,omitempty" firestore:"transaction"`
	// List of changes
	Changes []*resource_change_log.ResourceChangeLog_ResourceChange `protobuf:"bytes,6,rep,name=changes,proto3" json:"changes,omitempty" firestore:"changes"`
	// contains filtered or unexported fields
}

Request message for method [CreatePreCommittedResourceChangeLogs][ntt.audit.v1alpha2.CreatePreCommittedResourceChangeLogs]

Creates resource change log.

This request should not be used by regular users - only API services should be able to submit resource change logs. Developers of services should use logs exporter package offered along other Audit service packages instead of developing own components.

func (*CreatePreCommittedResourceChangeLogsRequest) Descriptor

Deprecated, Use CreatePreCommittedResourceChangeLogsRequest.ProtoReflect.Descriptor instead.

func (*CreatePreCommittedResourceChangeLogsRequest) GetAuthentication

func (*CreatePreCommittedResourceChangeLogsRequest) GetChanges

func (*CreatePreCommittedResourceChangeLogsRequest) GetRequestId

func (*CreatePreCommittedResourceChangeLogsRequest) GetService

func (*CreatePreCommittedResourceChangeLogsRequest) GetTimestamp

func (*CreatePreCommittedResourceChangeLogsRequest) GetTransaction

func (*CreatePreCommittedResourceChangeLogsRequest) GotenMessage

func (*CreatePreCommittedResourceChangeLogsRequest) GotenValidate

func (*CreatePreCommittedResourceChangeLogsRequest) Marshal

func (*CreatePreCommittedResourceChangeLogsRequest) MarshalJSON

func (*CreatePreCommittedResourceChangeLogsRequest) ProtoMessage

func (*CreatePreCommittedResourceChangeLogsRequest) ProtoReflect

func (*CreatePreCommittedResourceChangeLogsRequest) Reset

func (*CreatePreCommittedResourceChangeLogsRequest) SetAuthentication

func (*CreatePreCommittedResourceChangeLogsRequest) SetChanges

func (*CreatePreCommittedResourceChangeLogsRequest) SetRequestId

func (*CreatePreCommittedResourceChangeLogsRequest) SetService

func (*CreatePreCommittedResourceChangeLogsRequest) SetTimestamp

func (*CreatePreCommittedResourceChangeLogsRequest) SetTransaction

func (*CreatePreCommittedResourceChangeLogsRequest) String

func (*CreatePreCommittedResourceChangeLogsRequest) Unmarshal

func (*CreatePreCommittedResourceChangeLogsRequest) UnmarshalJSON

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

type CreatePreCommittedResourceChangeLogsResponse

type CreatePreCommittedResourceChangeLogsResponse struct {

	// Resource change log keys - one key per each resource change, in same order
	LogKeys [][]byte `protobuf:"bytes,1,rep,name=log_keys,json=logKeys,proto3" json:"log_keys,omitempty" firestore:"logKeys"`
	// contains filtered or unexported fields
}

Response message for method [CreateResourceChangeLogs][ntt.audit.v1alpha2.CreateResourceChangeLogs]

func (*CreatePreCommittedResourceChangeLogsResponse) Descriptor

Deprecated, Use CreatePreCommittedResourceChangeLogsResponse.ProtoReflect.Descriptor instead.

func (*CreatePreCommittedResourceChangeLogsResponse) GetLogKeys

func (*CreatePreCommittedResourceChangeLogsResponse) GotenMessage

func (*CreatePreCommittedResourceChangeLogsResponse) GotenValidate

func (*CreatePreCommittedResourceChangeLogsResponse) Marshal

func (*CreatePreCommittedResourceChangeLogsResponse) MarshalJSON

func (*CreatePreCommittedResourceChangeLogsResponse) ProtoMessage

func (*CreatePreCommittedResourceChangeLogsResponse) ProtoReflect

func (*CreatePreCommittedResourceChangeLogsResponse) Reset

func (*CreatePreCommittedResourceChangeLogsResponse) SetLogKeys

func (m *CreatePreCommittedResourceChangeLogsResponse) SetLogKeys(fv [][]byte)

func (*CreatePreCommittedResourceChangeLogsResponse) String

func (*CreatePreCommittedResourceChangeLogsResponse) Unmarshal

func (*CreatePreCommittedResourceChangeLogsResponse) UnmarshalJSON

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

type ListResourceChangeLogsDescriptor added in v0.4.28

type ListResourceChangeLogsDescriptor struct{}

func GetListResourceChangeLogsDescriptor added in v0.4.28

func GetListResourceChangeLogsDescriptor() *ListResourceChangeLogsDescriptor

func (*ListResourceChangeLogsDescriptor) GetApiDescriptor added in v0.4.28

func (*ListResourceChangeLogsDescriptor) GetApiName added in v0.4.28

func (d *ListResourceChangeLogsDescriptor) GetApiName() string

func (*ListResourceChangeLogsDescriptor) GetClientMsgReflectHandle added in v0.4.28

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

func (*ListResourceChangeLogsDescriptor) GetFullMethodName added in v0.4.28

func (d *ListResourceChangeLogsDescriptor) GetFullMethodName() string

func (*ListResourceChangeLogsDescriptor) GetMethodName added in v0.4.28

func (d *ListResourceChangeLogsDescriptor) GetMethodName() string

func (*ListResourceChangeLogsDescriptor) GetProtoPkgName added in v0.4.28

func (d *ListResourceChangeLogsDescriptor) GetProtoPkgName() string

func (*ListResourceChangeLogsDescriptor) GetResourceDescriptor added in v0.4.30

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

func (*ListResourceChangeLogsDescriptor) GetServerMsgReflectHandle added in v0.4.28

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

func (*ListResourceChangeLogsDescriptor) GetServiceDomain added in v0.4.28

func (d *ListResourceChangeLogsDescriptor) GetServiceDomain() string

func (*ListResourceChangeLogsDescriptor) GetServiceVersion added in v0.4.28

func (d *ListResourceChangeLogsDescriptor) GetServiceVersion() string

func (*ListResourceChangeLogsDescriptor) GetVerb added in v0.4.28

func (*ListResourceChangeLogsDescriptor) HasResource added in v0.4.30

func (d *ListResourceChangeLogsDescriptor) HasResource() bool

func (*ListResourceChangeLogsDescriptor) IsClientStream added in v0.4.28

func (d *ListResourceChangeLogsDescriptor) IsClientStream() bool

func (*ListResourceChangeLogsDescriptor) IsCollection added in v0.4.30

func (d *ListResourceChangeLogsDescriptor) IsCollection() bool

func (*ListResourceChangeLogsDescriptor) IsPlural added in v0.4.30

func (d *ListResourceChangeLogsDescriptor) IsPlural() bool

func (*ListResourceChangeLogsDescriptor) IsServerStream added in v0.4.28

func (d *ListResourceChangeLogsDescriptor) IsServerStream() bool

func (*ListResourceChangeLogsDescriptor) IsUnary added in v0.4.28

func (*ListResourceChangeLogsDescriptor) NewEmptyClientMsg added in v0.4.28

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

func (*ListResourceChangeLogsDescriptor) NewEmptyServerMsg added in v0.4.28

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

func (*ListResourceChangeLogsDescriptor) RequestHasResourceBody added in v0.4.28

func (d *ListResourceChangeLogsDescriptor) RequestHasResourceBody() bool

type ListResourceChangeLogsDescriptorClientMsgHandle added in v0.4.28

type ListResourceChangeLogsDescriptorClientMsgHandle struct{}

func (*ListResourceChangeLogsDescriptorClientMsgHandle) ExtractCollectionName added in v0.4.30

func (*ListResourceChangeLogsDescriptorClientMsgHandle) ExtractResourceBodies added in v1.0.21

func (*ListResourceChangeLogsDescriptorClientMsgHandle) ExtractResourceBody added in v1.0.21

func (*ListResourceChangeLogsDescriptorClientMsgHandle) ExtractResourceName added in v0.4.30

func (*ListResourceChangeLogsDescriptorClientMsgHandle) ExtractResourceNames added in v0.4.30

type ListResourceChangeLogsDescriptorServerMsgHandle added in v0.4.28

type ListResourceChangeLogsDescriptorServerMsgHandle struct{}

func (*ListResourceChangeLogsDescriptorServerMsgHandle) ExtractCollectionName added in v0.4.30

func (*ListResourceChangeLogsDescriptorServerMsgHandle) ExtractResourceBodies added in v1.0.21

func (*ListResourceChangeLogsDescriptorServerMsgHandle) ExtractResourceBody added in v1.0.21

func (*ListResourceChangeLogsDescriptorServerMsgHandle) ExtractResourceName added in v0.4.30

func (*ListResourceChangeLogsDescriptorServerMsgHandle) ExtractResourceNames added in v0.4.30

type ListResourceChangeLogsRequest

type ListResourceChangeLogsRequest struct {

	// Parent names of ntt.audit.v1alpha2.ResourceChangeLog
	Parents []*resource_change_log.ParentName `protobuf:"bytes,1,rep,customtype=ParentName,name=parents,proto3" json:"parents,omitempty" firestore:"parents"`
	// A audit filter that specifies which resource change logs should be returned
	Filter *resource_change_log.Filter `protobuf:"bytes,2,opt,customtype=Filter,name=filter,proto3" json:"filter,omitempty" firestore:"filter"`
	// The time interval for which results should be returned. Only logs
	// that contain data points in the specified interval are included
	// in the response.
	Interval *common.TimeInterval `protobuf:"bytes,4,opt,name=interval,proto3" json:"interval,omitempty" firestore:"interval"`
	// Cap on a number of resource change logs to be included in a response.
	// Number of logs in an actual response can be higher, since logs are
	// read in bulk with second precision - exceed logs above the limit will share
	// same timestamp as the logs below the limit.
	//
	// Results will be adjusted to the "end time" taken from interval field
	// (adjusted also by page_token if provided).
	PageSize int32 `protobuf:"varint,5,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty" firestore:"pageSize"`
	// Token which identifies next page with further results. Token should be
	// taken from ListResourceChangeLogsResponse
	// [ListResourceChangeLogsResponse.next_page_token][ntt.audit.v1alpha2.ListResourceChangeLogsResponse.next_page_token].
	PageToken string `protobuf:"bytes,6,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty" firestore:"pageToken"`
	// contains filtered or unexported fields
}

Request message for method [ListResourceChangeLogs][ntt.audit.v1alpha2.ListResourceChangeLogs]

Returns resource changes for specified time range, region, scope and filter. Note that resource change logs are Resource oriented - primary object is resource here. Audit monitors resources that have non-custom store.

Note that filter field is mandatory and minimal filters are: * --filter 'service.name=[SERVICE_NAME] and resource.type=[RESOURCE_NAME]' (what is happening for this resource type) * --filter 'request_id=[REQUEST_ID]' (which resources were changed by this request_id?)

Be aware that server will append scope filter condition (and scope IN ...) to an any of the above filters. All scopes are extracted from parents field in ListResourceChangeLogsRequest body. This ensures that users can view only scopes he/she is allowed to.

For all of the above filters you can replace filter condition compare (=) with IN operator. You can therefore query for multiple services, methods or users at once. Above filters are also preferred as we have optimization for them.

Resource change logs can also be filtered by custom labels (field labels in ResourceChangeLog - pre and post versions). Labels are custom per each API resource - so you must specify service.name and resource.type conditions to enable them. For example, suppose you have a VM resource which contains "group" field, which is a reference to some other resource. If you create label "group" in VM resource spec (in proto model) you can make a following query: *--filter 'service.name=vms.domain.com and resource.type=VM and resource.post.labels.group=projects/P/vmgroups/myGroup'*.

Examples of usage (with cuttle - we are interested only in one region and scope): * Checks activities within one hour for role binding resources

$ cuttle audit query activity-log --parents 'project/demo'

--filter 'service.name="IAM.edgelq.com" and resource.type="RoleBinding"'
--interval '{"startTime":"2020-09-08T12:00:00Z",
"endTime":"2020-09-08T13:00:00Z"}' -o json

* Checks modification of specific RoleBinding

$ cuttle audit query activity-log --parents 'project/demo'

--filter 'service.name="IAM.edgelq.com" and resource.type="RoleBinding" and
resource.name="projects/x/roleBindings/myRB"'
--interval '{"startTime":"2020-09-08T12:00:00Z"}' -o json

* Checks changes on resource RoleBinding made by specific user (we need their email)

$ cuttle audit query resource-change-log --parents 'project/demo'

--filter 'service.name="IAM.edgelq.com" and resource.type="RoleBinding" and
authentication.principal="user:we.know.who@domain.com"'
--interval '{"startTime":"2020-09-08T12:00:00Z"}' -o json

func (*ListResourceChangeLogsRequest) Descriptor

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

Deprecated, Use ListResourceChangeLogsRequest.ProtoReflect.Descriptor instead.

func (*ListResourceChangeLogsRequest) GetFilter

func (*ListResourceChangeLogsRequest) GetInterval

func (*ListResourceChangeLogsRequest) GetPageSize

func (m *ListResourceChangeLogsRequest) GetPageSize() int32

func (*ListResourceChangeLogsRequest) GetPageToken

func (m *ListResourceChangeLogsRequest) GetPageToken() string

func (*ListResourceChangeLogsRequest) GetParents

func (*ListResourceChangeLogsRequest) GotenMessage

func (*ListResourceChangeLogsRequest) GotenMessage()

func (*ListResourceChangeLogsRequest) GotenValidate

func (obj *ListResourceChangeLogsRequest) GotenValidate() error

func (*ListResourceChangeLogsRequest) Marshal

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

func (*ListResourceChangeLogsRequest) MarshalJSON

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

func (*ListResourceChangeLogsRequest) ProtoMessage

func (*ListResourceChangeLogsRequest) ProtoMessage()

func (*ListResourceChangeLogsRequest) ProtoReflect

func (*ListResourceChangeLogsRequest) Reset

func (m *ListResourceChangeLogsRequest) Reset()

func (*ListResourceChangeLogsRequest) SetFilter

func (*ListResourceChangeLogsRequest) SetInterval

func (*ListResourceChangeLogsRequest) SetPageSize

func (m *ListResourceChangeLogsRequest) SetPageSize(fv int32)

func (*ListResourceChangeLogsRequest) SetPageToken

func (m *ListResourceChangeLogsRequest) SetPageToken(fv string)

func (*ListResourceChangeLogsRequest) SetParents

func (*ListResourceChangeLogsRequest) String

func (*ListResourceChangeLogsRequest) Unmarshal

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

func (*ListResourceChangeLogsRequest) UnmarshalJSON

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

type ListResourceChangeLogsResponse

type ListResourceChangeLogsResponse struct {

	// One or more resource change logs that match the filter included in the
	// request. Contains results from all queried regions. Its possible however
	// that some logs may be missing, for this see execution_errors.
	ResourceChangeLogs []*resource_change_log.ResourceChangeLog `` /* 148-byte string literal not displayed */
	// If there are more results than have been returned, then this field is set
	// to a non-empty value. To see the additional results,
	// use that value as `pageToken` in the next call to this method.
	NextPageToken string `` /* 128-byte string literal not displayed */
	// Query execution errors that may have caused the response data returned to
	// be incomplete. Because logs are stored only locally (for each region), all
	// resource change log queries are split and merged by a receiving request
	// server according to the queried regions. Its possible that some regions
	// will fail when request is redirected to them, but others not. For each
	// failed region, one execution error will be appended. In each ntt.rpc.Status
	// message, fields code and message will contain error obtained from failed
	// regional server, while field details will contain always one item and this
	// item will be of type ErrorDetails.
	ExecutionErrors []*rpc.Status `` /* 134-byte string literal not displayed */
	// contains filtered or unexported fields
}

Response message for method [ListResourceChangeLogs][ntt.audit.v1alpha2.ListResourceChangeLogs]

func (*ListResourceChangeLogsResponse) Descriptor

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

Deprecated, Use ListResourceChangeLogsResponse.ProtoReflect.Descriptor instead.

func (*ListResourceChangeLogsResponse) GetExecutionErrors

func (m *ListResourceChangeLogsResponse) GetExecutionErrors() []*rpc.Status

func (*ListResourceChangeLogsResponse) GetNextPageToken

func (m *ListResourceChangeLogsResponse) GetNextPageToken() string

func (*ListResourceChangeLogsResponse) GetResourceChangeLogs

func (*ListResourceChangeLogsResponse) GotenMessage

func (*ListResourceChangeLogsResponse) GotenMessage()

func (*ListResourceChangeLogsResponse) GotenValidate

func (obj *ListResourceChangeLogsResponse) GotenValidate() error

func (*ListResourceChangeLogsResponse) Marshal

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

func (*ListResourceChangeLogsResponse) MarshalJSON

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

func (*ListResourceChangeLogsResponse) ProtoMessage

func (*ListResourceChangeLogsResponse) ProtoMessage()

func (*ListResourceChangeLogsResponse) ProtoReflect

func (*ListResourceChangeLogsResponse) Reset

func (m *ListResourceChangeLogsResponse) Reset()

func (*ListResourceChangeLogsResponse) SetExecutionErrors

func (m *ListResourceChangeLogsResponse) SetExecutionErrors(fv []*rpc.Status)

func (*ListResourceChangeLogsResponse) SetNextPageToken

func (m *ListResourceChangeLogsResponse) SetNextPageToken(fv string)

func (*ListResourceChangeLogsResponse) SetResourceChangeLogs

func (*ListResourceChangeLogsResponse) String

func (*ListResourceChangeLogsResponse) Unmarshal

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

func (*ListResourceChangeLogsResponse) UnmarshalJSON

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

type ListResourceChangeLogsResponse_ErrorDetails

type ListResourceChangeLogsResponse_ErrorDetails struct {

	// region id which failed to give results.
	RegionId string `protobuf:"bytes,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty" firestore:"regionId"`
	// contains filtered or unexported fields
}

ErrorDetails is used when one of the queried regions fails to produce results. It is used in execution_errors field (see subfield ntt.rpc.Status.details).

func (*ListResourceChangeLogsResponse_ErrorDetails) Descriptor

Deprecated, Use ListResourceChangeLogsResponse_ErrorDetails.ProtoReflect.Descriptor instead.

func (*ListResourceChangeLogsResponse_ErrorDetails) GetRegionId

func (*ListResourceChangeLogsResponse_ErrorDetails) GotenMessage

func (*ListResourceChangeLogsResponse_ErrorDetails) GotenValidate

func (*ListResourceChangeLogsResponse_ErrorDetails) Marshal

func (*ListResourceChangeLogsResponse_ErrorDetails) MarshalJSON

func (*ListResourceChangeLogsResponse_ErrorDetails) ProtoMessage

func (*ListResourceChangeLogsResponse_ErrorDetails) ProtoReflect

func (*ListResourceChangeLogsResponse_ErrorDetails) Reset

func (*ListResourceChangeLogsResponse_ErrorDetails) SetRegionId

func (*ListResourceChangeLogsResponse_ErrorDetails) String

func (*ListResourceChangeLogsResponse_ErrorDetails) Unmarshal

func (*ListResourceChangeLogsResponse_ErrorDetails) UnmarshalJSON

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

type ResourceChangeLogServiceClient

type ResourceChangeLogServiceClient interface {
	ListResourceChangeLogs(ctx context.Context, in *ListResourceChangeLogsRequest, opts ...grpc.CallOption) (*ListResourceChangeLogsResponse, error)
	CreatePreCommittedResourceChangeLogs(ctx context.Context, in *CreatePreCommittedResourceChangeLogsRequest, opts ...grpc.CallOption) (*CreatePreCommittedResourceChangeLogsResponse, error)
	SetResourceChangeLogsCommitState(ctx context.Context, in *SetResourceChangeLogsCommitStateRequest, opts ...grpc.CallOption) (*SetResourceChangeLogsCommitStateResponse, error)
}

ResourceChangeLogServiceClient is the client API for ResourceChangeLogService.

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

type ResourceChangeLogServiceDescriptor added in v0.4.28

type ResourceChangeLogServiceDescriptor struct{}

func GetResourceChangeLogServiceDescriptor added in v0.4.28

func GetResourceChangeLogServiceDescriptor() *ResourceChangeLogServiceDescriptor

func (*ResourceChangeLogServiceDescriptor) AllMethodDescriptors added in v0.4.28

func (*ResourceChangeLogServiceDescriptor) GetApiName added in v0.4.28

func (*ResourceChangeLogServiceDescriptor) GetFullAPIName added in v0.4.28

func (d *ResourceChangeLogServiceDescriptor) GetFullAPIName() string

func (*ResourceChangeLogServiceDescriptor) GetProtoPkgName added in v0.4.28

func (d *ResourceChangeLogServiceDescriptor) GetProtoPkgName() string

func (*ResourceChangeLogServiceDescriptor) GetServiceDomain added in v0.4.28

func (d *ResourceChangeLogServiceDescriptor) GetServiceDomain() string

func (*ResourceChangeLogServiceDescriptor) GetServiceVersion added in v0.4.28

func (d *ResourceChangeLogServiceDescriptor) GetServiceVersion() string

type SetResourceChangeLogsCommitStateDescriptor added in v0.4.28

type SetResourceChangeLogsCommitStateDescriptor struct{}

func GetSetResourceChangeLogsCommitStateDescriptor added in v0.4.28

func GetSetResourceChangeLogsCommitStateDescriptor() *SetResourceChangeLogsCommitStateDescriptor

func (*SetResourceChangeLogsCommitStateDescriptor) GetApiDescriptor added in v0.4.28

func (*SetResourceChangeLogsCommitStateDescriptor) GetApiName added in v0.4.28

func (*SetResourceChangeLogsCommitStateDescriptor) GetClientMsgReflectHandle added in v0.4.28

func (*SetResourceChangeLogsCommitStateDescriptor) GetFullMethodName added in v0.4.28

func (d *SetResourceChangeLogsCommitStateDescriptor) GetFullMethodName() string

func (*SetResourceChangeLogsCommitStateDescriptor) GetMethodName added in v0.4.28

func (*SetResourceChangeLogsCommitStateDescriptor) GetProtoPkgName added in v0.4.28

func (*SetResourceChangeLogsCommitStateDescriptor) GetResourceDescriptor added in v0.4.30

func (*SetResourceChangeLogsCommitStateDescriptor) GetServerMsgReflectHandle added in v0.4.28

func (*SetResourceChangeLogsCommitStateDescriptor) GetServiceDomain added in v0.4.28

func (d *SetResourceChangeLogsCommitStateDescriptor) GetServiceDomain() string

func (*SetResourceChangeLogsCommitStateDescriptor) GetServiceVersion added in v0.4.28

func (d *SetResourceChangeLogsCommitStateDescriptor) GetServiceVersion() string

func (*SetResourceChangeLogsCommitStateDescriptor) GetVerb added in v0.4.28

func (*SetResourceChangeLogsCommitStateDescriptor) HasResource added in v0.4.30

func (*SetResourceChangeLogsCommitStateDescriptor) IsClientStream added in v0.4.28

func (*SetResourceChangeLogsCommitStateDescriptor) IsCollection added in v0.4.30

func (*SetResourceChangeLogsCommitStateDescriptor) IsPlural added in v0.4.30

func (*SetResourceChangeLogsCommitStateDescriptor) IsServerStream added in v0.4.28

func (*SetResourceChangeLogsCommitStateDescriptor) IsUnary added in v0.4.28

func (*SetResourceChangeLogsCommitStateDescriptor) NewEmptyClientMsg added in v0.4.28

func (*SetResourceChangeLogsCommitStateDescriptor) NewEmptyServerMsg added in v0.4.28

func (*SetResourceChangeLogsCommitStateDescriptor) RequestHasResourceBody added in v0.4.28

func (d *SetResourceChangeLogsCommitStateDescriptor) RequestHasResourceBody() bool

type SetResourceChangeLogsCommitStateDescriptorClientMsgHandle added in v0.4.28

type SetResourceChangeLogsCommitStateDescriptorClientMsgHandle struct{}

func (*SetResourceChangeLogsCommitStateDescriptorClientMsgHandle) ExtractCollectionName added in v0.4.30

func (*SetResourceChangeLogsCommitStateDescriptorClientMsgHandle) ExtractResourceBodies added in v1.0.21

func (*SetResourceChangeLogsCommitStateDescriptorClientMsgHandle) ExtractResourceBody added in v1.0.21

func (*SetResourceChangeLogsCommitStateDescriptorClientMsgHandle) ExtractResourceName added in v0.4.30

func (*SetResourceChangeLogsCommitStateDescriptorClientMsgHandle) ExtractResourceNames added in v0.4.30

type SetResourceChangeLogsCommitStateDescriptorServerMsgHandle added in v0.4.28

type SetResourceChangeLogsCommitStateDescriptorServerMsgHandle struct{}

func (*SetResourceChangeLogsCommitStateDescriptorServerMsgHandle) ExtractCollectionName added in v0.4.30

func (*SetResourceChangeLogsCommitStateDescriptorServerMsgHandle) ExtractResourceBodies added in v1.0.21

func (*SetResourceChangeLogsCommitStateDescriptorServerMsgHandle) ExtractResourceBody added in v1.0.21

func (*SetResourceChangeLogsCommitStateDescriptorServerMsgHandle) ExtractResourceName added in v0.4.30

func (*SetResourceChangeLogsCommitStateDescriptorServerMsgHandle) ExtractResourceNames added in v0.4.30

type SetResourceChangeLogsCommitStateRequest

type SetResourceChangeLogsCommitStateRequest struct {

	// list of resource change log keys.
	LogKeys [][]byte `protobuf:"bytes,1,rep,name=log_keys,json=logKeys,proto3" json:"log_keys,omitempty" firestore:"logKeys"`
	// Time of the request - must be same as in
	// CreatePreCommittedResourceChangeLogsRequest
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty" firestore:"timestamp"`
	// final state of the transaction - must be COMMITTED or ROLLED_BACK
	TxResult resource_change_log.ResourceChangeLog_TransactionInfo_State `` /* 171-byte string literal not displayed */
	// contains filtered or unexported fields
}

Request message for method [SetResourceChangeLogsCommitState][ntt.audit.v1alpha2.SetResourceChangeLogsCommitState]

Sets transaction status of selected resource change logs.

This request should not be used by regular users - only API services should be able to modify resource change logs. Developers of services should use logs exporter package offered along other Audit service packages instead of developing own components.

func (*SetResourceChangeLogsCommitStateRequest) Descriptor

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

Deprecated, Use SetResourceChangeLogsCommitStateRequest.ProtoReflect.Descriptor instead.

func (*SetResourceChangeLogsCommitStateRequest) GetLogKeys

func (m *SetResourceChangeLogsCommitStateRequest) GetLogKeys() [][]byte

func (*SetResourceChangeLogsCommitStateRequest) GetTimestamp

func (*SetResourceChangeLogsCommitStateRequest) GetTxResult

func (*SetResourceChangeLogsCommitStateRequest) GotenMessage

func (*SetResourceChangeLogsCommitStateRequest) GotenValidate

func (obj *SetResourceChangeLogsCommitStateRequest) GotenValidate() error

func (*SetResourceChangeLogsCommitStateRequest) Marshal

func (*SetResourceChangeLogsCommitStateRequest) MarshalJSON

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

func (*SetResourceChangeLogsCommitStateRequest) ProtoMessage

func (*SetResourceChangeLogsCommitStateRequest) ProtoReflect

func (*SetResourceChangeLogsCommitStateRequest) Reset

func (*SetResourceChangeLogsCommitStateRequest) SetLogKeys

func (m *SetResourceChangeLogsCommitStateRequest) SetLogKeys(fv [][]byte)

func (*SetResourceChangeLogsCommitStateRequest) SetTimestamp

func (*SetResourceChangeLogsCommitStateRequest) SetTxResult

func (*SetResourceChangeLogsCommitStateRequest) String

func (*SetResourceChangeLogsCommitStateRequest) Unmarshal

func (*SetResourceChangeLogsCommitStateRequest) UnmarshalJSON

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

type SetResourceChangeLogsCommitStateResponse

type SetResourceChangeLogsCommitStateResponse struct {
	// contains filtered or unexported fields
}

Response message for method [SetResourceChangeLogsCommitState][ntt.audit.v1alpha2.SetResourceChangeLogsCommitState]

func (*SetResourceChangeLogsCommitStateResponse) Descriptor

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

Deprecated, Use SetResourceChangeLogsCommitStateResponse.ProtoReflect.Descriptor instead.

func (*SetResourceChangeLogsCommitStateResponse) GotenMessage

func (*SetResourceChangeLogsCommitStateResponse) GotenValidate

func (obj *SetResourceChangeLogsCommitStateResponse) GotenValidate() error

func (*SetResourceChangeLogsCommitStateResponse) Marshal

func (*SetResourceChangeLogsCommitStateResponse) MarshalJSON

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

func (*SetResourceChangeLogsCommitStateResponse) ProtoMessage

func (*SetResourceChangeLogsCommitStateResponse) ProtoReflect

func (*SetResourceChangeLogsCommitStateResponse) Reset

func (*SetResourceChangeLogsCommitStateResponse) String

func (*SetResourceChangeLogsCommitStateResponse) Unmarshal

func (*SetResourceChangeLogsCommitStateResponse) UnmarshalJSON

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

Jump to

Keyboard shortcuts

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