storageinsights

package
v0.0.0-...-d307bd8 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FrequencyOptions_Frequency_name = map[int32]string{
		0: "FREQUENCY_UNSPECIFIED",
		1: "DAILY",
		2: "WEEKLY",
	}
	FrequencyOptions_Frequency_value = map[string]int32{
		"FREQUENCY_UNSPECIFIED": 0,
		"DAILY":                 1,
		"WEEKLY":                2,
	}
)

Enum value maps for FrequencyOptions_Frequency.

View Source
var File_google_cloud_storageinsights_v1_storageinsights_proto protoreflect.FileDescriptor

Functions

func RegisterStorageInsightsServer

func RegisterStorageInsightsServer(s *grpc.Server, srv StorageInsightsServer)

Types

type CSVOptions

type CSVOptions struct {

	// Record separator characters in CSV.
	RecordSeparator string `protobuf:"bytes,1,opt,name=record_separator,json=recordSeparator,proto3" json:"record_separator,omitempty"`
	// Delimiter characters in CSV.
	Delimiter string `protobuf:"bytes,2,opt,name=delimiter,proto3" json:"delimiter,omitempty"`
	// If set, will include a header row in the CSV report.
	HeaderRequired bool `protobuf:"varint,3,opt,name=header_required,json=headerRequired,proto3" json:"header_required,omitempty"`
	// contains filtered or unexported fields
}

Options to configure CSV formatted reports.

func (*CSVOptions) Descriptor deprecated

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

Deprecated: Use CSVOptions.ProtoReflect.Descriptor instead.

func (*CSVOptions) GetDelimiter

func (x *CSVOptions) GetDelimiter() string

func (*CSVOptions) GetHeaderRequired

func (x *CSVOptions) GetHeaderRequired() bool

func (*CSVOptions) GetRecordSeparator

func (x *CSVOptions) GetRecordSeparator() string

func (*CSVOptions) ProtoMessage

func (*CSVOptions) ProtoMessage()

func (*CSVOptions) ProtoReflect

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

func (*CSVOptions) Reset

func (x *CSVOptions) Reset()

func (*CSVOptions) String

func (x *CSVOptions) String() string

type CloudStorageDestinationOptions

type CloudStorageDestinationOptions struct {

	// Destination bucket.
	Bucket string `protobuf:"bytes,1,opt,name=bucket,proto3" json:"bucket,omitempty"`
	// Destination path is the path in the bucket where the report should be
	// generated.
	DestinationPath string `protobuf:"bytes,2,opt,name=destination_path,json=destinationPath,proto3" json:"destination_path,omitempty"`
	// contains filtered or unexported fields
}

Options to store reports in storage systems. Next ID: 3

func (*CloudStorageDestinationOptions) Descriptor deprecated

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

Deprecated: Use CloudStorageDestinationOptions.ProtoReflect.Descriptor instead.

func (*CloudStorageDestinationOptions) GetBucket

func (x *CloudStorageDestinationOptions) GetBucket() string

func (*CloudStorageDestinationOptions) GetDestinationPath

func (x *CloudStorageDestinationOptions) GetDestinationPath() string

func (*CloudStorageDestinationOptions) ProtoMessage

func (*CloudStorageDestinationOptions) ProtoMessage()

func (*CloudStorageDestinationOptions) ProtoReflect

func (*CloudStorageDestinationOptions) Reset

func (x *CloudStorageDestinationOptions) Reset()

func (*CloudStorageDestinationOptions) String

type CloudStorageFilters

type CloudStorageFilters struct {

	// Bucket for which the report will be generated.
	Bucket string `protobuf:"bytes,1,opt,name=bucket,proto3" json:"bucket,omitempty"`
	// contains filtered or unexported fields
}

Options to filter data on storage systems. Next ID: 2

func (*CloudStorageFilters) Descriptor deprecated

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

Deprecated: Use CloudStorageFilters.ProtoReflect.Descriptor instead.

func (*CloudStorageFilters) GetBucket

func (x *CloudStorageFilters) GetBucket() string

func (*CloudStorageFilters) ProtoMessage

func (*CloudStorageFilters) ProtoMessage()

func (*CloudStorageFilters) ProtoReflect

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

func (*CloudStorageFilters) Reset

func (x *CloudStorageFilters) Reset()

func (*CloudStorageFilters) String

func (x *CloudStorageFilters) String() string

type CreateReportConfigRequest

type CreateReportConfigRequest struct {

	// Required. Value for parent.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required. The resource being created
	ReportConfig *ReportConfig `protobuf:"bytes,3,opt,name=report_config,json=reportConfig,proto3" json:"report_config,omitempty"`
	// Optional. An optional request ID to identify requests. Specify a unique
	// request ID so that if you must retry your request, the server will know to
	// ignore the request if it has already been completed. The server will
	// guarantee that for at least 60 minutes since the first request.
	//
	// For example, consider a situation where you make an initial request and t
	// he request times out. If you make the request again with the same request
	// ID, the server can check if original operation with the same request ID
	// was received, and if so, will ignore the second request. This prevents
	// clients from accidentally creating duplicate commitments.
	//
	// The request ID must be a valid UUID with the exception that zero UUID is
	// not supported (00000000-0000-0000-0000-000000000000).
	RequestId string `protobuf:"bytes,4,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// contains filtered or unexported fields
}

Message for creating a ReportConfig

func (*CreateReportConfigRequest) Descriptor deprecated

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

Deprecated: Use CreateReportConfigRequest.ProtoReflect.Descriptor instead.

func (*CreateReportConfigRequest) GetParent

func (x *CreateReportConfigRequest) GetParent() string

func (*CreateReportConfigRequest) GetReportConfig

func (x *CreateReportConfigRequest) GetReportConfig() *ReportConfig

func (*CreateReportConfigRequest) GetRequestId

func (x *CreateReportConfigRequest) GetRequestId() string

func (*CreateReportConfigRequest) ProtoMessage

func (*CreateReportConfigRequest) ProtoMessage()

func (*CreateReportConfigRequest) ProtoReflect

func (*CreateReportConfigRequest) Reset

func (x *CreateReportConfigRequest) Reset()

func (*CreateReportConfigRequest) String

func (x *CreateReportConfigRequest) String() string

type DeleteReportConfigRequest

type DeleteReportConfigRequest struct {

	// Required. Name of the resource
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Optional. If set, all ReportDetails for this ReportConfig will be deleted.
	Force bool `protobuf:"varint,2,opt,name=force,proto3" json:"force,omitempty"`
	// Optional. An optional request ID to identify requests. Specify a unique
	// request ID so that if you must retry your request, the server will know to
	// ignore the request if it has already been completed. The server will
	// guarantee that for at least 60 minutes after the first request.
	//
	// For example, consider a situation where you make an initial request and t
	// he request times out. If you make the request again with the same request
	// ID, the server can check if original operation with the same request ID
	// was received, and if so, will ignore the second request. This prevents
	// clients from accidentally creating duplicate commitments.
	//
	// The request ID must be a valid UUID with the exception that zero UUID is
	// not supported (00000000-0000-0000-0000-000000000000).
	RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// contains filtered or unexported fields
}

Message for deleting a ReportConfig

func (*DeleteReportConfigRequest) Descriptor deprecated

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

Deprecated: Use DeleteReportConfigRequest.ProtoReflect.Descriptor instead.

func (*DeleteReportConfigRequest) GetForce

func (x *DeleteReportConfigRequest) GetForce() bool

func (*DeleteReportConfigRequest) GetName

func (x *DeleteReportConfigRequest) GetName() string

func (*DeleteReportConfigRequest) GetRequestId

func (x *DeleteReportConfigRequest) GetRequestId() string

func (*DeleteReportConfigRequest) ProtoMessage

func (*DeleteReportConfigRequest) ProtoMessage()

func (*DeleteReportConfigRequest) ProtoReflect

func (*DeleteReportConfigRequest) Reset

func (x *DeleteReportConfigRequest) Reset()

func (*DeleteReportConfigRequest) String

func (x *DeleteReportConfigRequest) String() string

type FrequencyOptions

type FrequencyOptions struct {

	// Frequency of report generation.
	Frequency FrequencyOptions_Frequency `` /* 136-byte string literal not displayed */
	// The date from which report generation should start.
	// UTC time zone.
	StartDate *date.Date `protobuf:"bytes,2,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"`
	// The date on which report generation should stop (Inclusive).
	// UTC time zone.
	EndDate *date.Date `protobuf:"bytes,3,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"`
	// contains filtered or unexported fields
}

ReportConfig Resource:

Options to setup frequency of report generation.

func (*FrequencyOptions) Descriptor deprecated

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

Deprecated: Use FrequencyOptions.ProtoReflect.Descriptor instead.

func (*FrequencyOptions) GetEndDate

func (x *FrequencyOptions) GetEndDate() *date.Date

func (*FrequencyOptions) GetFrequency

func (x *FrequencyOptions) GetFrequency() FrequencyOptions_Frequency

func (*FrequencyOptions) GetStartDate

func (x *FrequencyOptions) GetStartDate() *date.Date

func (*FrequencyOptions) ProtoMessage

func (*FrequencyOptions) ProtoMessage()

func (*FrequencyOptions) ProtoReflect

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

func (*FrequencyOptions) Reset

func (x *FrequencyOptions) Reset()

func (*FrequencyOptions) String

func (x *FrequencyOptions) String() string

type FrequencyOptions_Frequency

type FrequencyOptions_Frequency int32

This ENUM specifies possible frequencies of report generation.

const (
	// Unspecified.
	FrequencyOptions_FREQUENCY_UNSPECIFIED FrequencyOptions_Frequency = 0
	// Report will be generated daily.
	FrequencyOptions_DAILY FrequencyOptions_Frequency = 1
	// Report will be generated weekly.
	FrequencyOptions_WEEKLY FrequencyOptions_Frequency = 2
)

func (FrequencyOptions_Frequency) Descriptor

func (FrequencyOptions_Frequency) Enum

func (FrequencyOptions_Frequency) EnumDescriptor deprecated

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

Deprecated: Use FrequencyOptions_Frequency.Descriptor instead.

func (FrequencyOptions_Frequency) Number

func (FrequencyOptions_Frequency) String

func (FrequencyOptions_Frequency) Type

type GetReportConfigRequest

type GetReportConfigRequest struct {

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

Message for getting a ReportConfig

func (*GetReportConfigRequest) Descriptor deprecated

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

Deprecated: Use GetReportConfigRequest.ProtoReflect.Descriptor instead.

func (*GetReportConfigRequest) GetName

func (x *GetReportConfigRequest) GetName() string

func (*GetReportConfigRequest) ProtoMessage

func (*GetReportConfigRequest) ProtoMessage()

func (*GetReportConfigRequest) ProtoReflect

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

func (*GetReportConfigRequest) Reset

func (x *GetReportConfigRequest) Reset()

func (*GetReportConfigRequest) String

func (x *GetReportConfigRequest) String() string

type GetReportDetailRequest

type GetReportDetailRequest struct {

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

Message for getting a ReportDetail

func (*GetReportDetailRequest) Descriptor deprecated

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

Deprecated: Use GetReportDetailRequest.ProtoReflect.Descriptor instead.

func (*GetReportDetailRequest) GetName

func (x *GetReportDetailRequest) GetName() string

func (*GetReportDetailRequest) ProtoMessage

func (*GetReportDetailRequest) ProtoMessage()

func (*GetReportDetailRequest) ProtoReflect

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

func (*GetReportDetailRequest) Reset

func (x *GetReportDetailRequest) Reset()

func (*GetReportDetailRequest) String

func (x *GetReportDetailRequest) String() string

type ListReportConfigsRequest

type ListReportConfigsRequest struct {

	// Required. Parent value for ListReportConfigsRequest
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Requested page size. Server may return fewer items than requested.
	// If unspecified, server will pick an appropriate default.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// A token identifying a page of results the server should return.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// Filtering results
	Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
	// Hint for how to order the results
	OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
	// contains filtered or unexported fields
}

Message for requesting list of ReportConfigs

func (*ListReportConfigsRequest) Descriptor deprecated

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

Deprecated: Use ListReportConfigsRequest.ProtoReflect.Descriptor instead.

func (*ListReportConfigsRequest) GetFilter

func (x *ListReportConfigsRequest) GetFilter() string

func (*ListReportConfigsRequest) GetOrderBy

func (x *ListReportConfigsRequest) GetOrderBy() string

func (*ListReportConfigsRequest) GetPageSize

func (x *ListReportConfigsRequest) GetPageSize() int32

func (*ListReportConfigsRequest) GetPageToken

func (x *ListReportConfigsRequest) GetPageToken() string

func (*ListReportConfigsRequest) GetParent

func (x *ListReportConfigsRequest) GetParent() string

func (*ListReportConfigsRequest) ProtoMessage

func (*ListReportConfigsRequest) ProtoMessage()

func (*ListReportConfigsRequest) ProtoReflect

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

func (*ListReportConfigsRequest) Reset

func (x *ListReportConfigsRequest) Reset()

func (*ListReportConfigsRequest) String

func (x *ListReportConfigsRequest) String() string

type ListReportConfigsResponse

type ListReportConfigsResponse struct {

	// The list of ReportConfig
	ReportConfigs []*ReportConfig `protobuf:"bytes,1,rep,name=report_configs,json=reportConfigs,proto3" json:"report_configs,omitempty"`
	// A token identifying a page of results the server should return.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// Locations that could not be reached.
	Unreachable []string `protobuf:"bytes,3,rep,name=unreachable,proto3" json:"unreachable,omitempty"`
	// contains filtered or unexported fields
}

Message for response to listing ReportConfigs

func (*ListReportConfigsResponse) Descriptor deprecated

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

Deprecated: Use ListReportConfigsResponse.ProtoReflect.Descriptor instead.

func (*ListReportConfigsResponse) GetNextPageToken

func (x *ListReportConfigsResponse) GetNextPageToken() string

func (*ListReportConfigsResponse) GetReportConfigs

func (x *ListReportConfigsResponse) GetReportConfigs() []*ReportConfig

func (*ListReportConfigsResponse) GetUnreachable

func (x *ListReportConfigsResponse) GetUnreachable() []string

func (*ListReportConfigsResponse) ProtoMessage

func (*ListReportConfigsResponse) ProtoMessage()

func (*ListReportConfigsResponse) ProtoReflect

func (*ListReportConfigsResponse) Reset

func (x *ListReportConfigsResponse) Reset()

func (*ListReportConfigsResponse) String

func (x *ListReportConfigsResponse) String() string

type ListReportDetailsRequest

type ListReportDetailsRequest struct {

	// Required. Parent value for ListReportDetailsRequest
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Requested page size. Server may return fewer items than requested.
	// If unspecified, server will pick an appropriate default.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// A token identifying a page of results the server should return.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// Filtering results
	Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
	// Hint for how to order the results
	OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
	// contains filtered or unexported fields
}

Message for requesting list of ReportDetails

func (*ListReportDetailsRequest) Descriptor deprecated

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

Deprecated: Use ListReportDetailsRequest.ProtoReflect.Descriptor instead.

func (*ListReportDetailsRequest) GetFilter

func (x *ListReportDetailsRequest) GetFilter() string

func (*ListReportDetailsRequest) GetOrderBy

func (x *ListReportDetailsRequest) GetOrderBy() string

func (*ListReportDetailsRequest) GetPageSize

func (x *ListReportDetailsRequest) GetPageSize() int32

func (*ListReportDetailsRequest) GetPageToken

func (x *ListReportDetailsRequest) GetPageToken() string

func (*ListReportDetailsRequest) GetParent

func (x *ListReportDetailsRequest) GetParent() string

func (*ListReportDetailsRequest) ProtoMessage

func (*ListReportDetailsRequest) ProtoMessage()

func (*ListReportDetailsRequest) ProtoReflect

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

func (*ListReportDetailsRequest) Reset

func (x *ListReportDetailsRequest) Reset()

func (*ListReportDetailsRequest) String

func (x *ListReportDetailsRequest) String() string

type ListReportDetailsResponse

type ListReportDetailsResponse struct {

	// The list of ReportDetail
	ReportDetails []*ReportDetail `protobuf:"bytes,1,rep,name=report_details,json=reportDetails,proto3" json:"report_details,omitempty"`
	// A token identifying a page of results the server should return.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// Locations that could not be reached.
	Unreachable []string `protobuf:"bytes,3,rep,name=unreachable,proto3" json:"unreachable,omitempty"`
	// contains filtered or unexported fields
}

Message for response to listing ReportDetails

func (*ListReportDetailsResponse) Descriptor deprecated

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

Deprecated: Use ListReportDetailsResponse.ProtoReflect.Descriptor instead.

func (*ListReportDetailsResponse) GetNextPageToken

func (x *ListReportDetailsResponse) GetNextPageToken() string

func (*ListReportDetailsResponse) GetReportDetails

func (x *ListReportDetailsResponse) GetReportDetails() []*ReportDetail

func (*ListReportDetailsResponse) GetUnreachable

func (x *ListReportDetailsResponse) GetUnreachable() []string

func (*ListReportDetailsResponse) ProtoMessage

func (*ListReportDetailsResponse) ProtoMessage()

func (*ListReportDetailsResponse) ProtoReflect

func (*ListReportDetailsResponse) Reset

func (x *ListReportDetailsResponse) Reset()

func (*ListReportDetailsResponse) String

func (x *ListReportDetailsResponse) String() string

type ObjectMetadataReportOptions

type ObjectMetadataReportOptions struct {

	// Metadata fields to be included in the report.
	MetadataFields []string `protobuf:"bytes,1,rep,name=metadata_fields,json=metadataFields,proto3" json:"metadata_fields,omitempty"`
	// Filter options for storage systems.
	//
	// Types that are assignable to Filter:
	//
	//	*ObjectMetadataReportOptions_StorageFilters
	Filter isObjectMetadataReportOptions_Filter `protobuf_oneof:"filter"`
	// Options on destination for storage systems.
	//
	// Types that are assignable to DestinationOptions:
	//
	//	*ObjectMetadataReportOptions_StorageDestinationOptions
	DestinationOptions isObjectMetadataReportOptions_DestinationOptions `protobuf_oneof:"destination_options"`
	// contains filtered or unexported fields
}

Report specification for exporting object metadata. Next ID: 4

func (*ObjectMetadataReportOptions) Descriptor deprecated

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

Deprecated: Use ObjectMetadataReportOptions.ProtoReflect.Descriptor instead.

func (*ObjectMetadataReportOptions) GetDestinationOptions

func (m *ObjectMetadataReportOptions) GetDestinationOptions() isObjectMetadataReportOptions_DestinationOptions

func (*ObjectMetadataReportOptions) GetFilter

func (m *ObjectMetadataReportOptions) GetFilter() isObjectMetadataReportOptions_Filter

func (*ObjectMetadataReportOptions) GetMetadataFields

func (x *ObjectMetadataReportOptions) GetMetadataFields() []string

func (*ObjectMetadataReportOptions) GetStorageDestinationOptions

func (x *ObjectMetadataReportOptions) GetStorageDestinationOptions() *CloudStorageDestinationOptions

func (*ObjectMetadataReportOptions) GetStorageFilters

func (x *ObjectMetadataReportOptions) GetStorageFilters() *CloudStorageFilters

func (*ObjectMetadataReportOptions) ProtoMessage

func (*ObjectMetadataReportOptions) ProtoMessage()

func (*ObjectMetadataReportOptions) ProtoReflect

func (*ObjectMetadataReportOptions) Reset

func (x *ObjectMetadataReportOptions) Reset()

func (*ObjectMetadataReportOptions) String

func (x *ObjectMetadataReportOptions) String() string

type ObjectMetadataReportOptions_StorageDestinationOptions

type ObjectMetadataReportOptions_StorageDestinationOptions struct {
	// Cloud Storage as the storage system.
	StorageDestinationOptions *CloudStorageDestinationOptions `protobuf:"bytes,3,opt,name=storage_destination_options,json=storageDestinationOptions,proto3,oneof"`
}

type ObjectMetadataReportOptions_StorageFilters

type ObjectMetadataReportOptions_StorageFilters struct {
	// Cloud Storage as the storage system.
	StorageFilters *CloudStorageFilters `protobuf:"bytes,2,opt,name=storage_filters,json=storageFilters,proto3,oneof"`
}

type OperationMetadata

type OperationMetadata struct {

	// Output only. The time the operation was created.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Output only. The time the operation finished running.
	EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	// Output only. Server-defined resource path for the target of the operation.
	Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"`
	// Output only. Name of the verb executed by the operation.
	Verb string `protobuf:"bytes,4,opt,name=verb,proto3" json:"verb,omitempty"`
	// Output only. Human-readable status of the operation, if any.
	StatusMessage string `protobuf:"bytes,5,opt,name=status_message,json=statusMessage,proto3" json:"status_message,omitempty"`
	// Output only. Identifies whether the user has requested cancellation
	// of the operation. Operations that have been cancelled successfully
	// have [Operation.error][] value with a
	// [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
	// `Code.CANCELLED`.
	RequestedCancellation bool `protobuf:"varint,6,opt,name=requested_cancellation,json=requestedCancellation,proto3" json:"requested_cancellation,omitempty"`
	// Output only. API version used to start the operation.
	ApiVersion string `protobuf:"bytes,7,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"`
	// contains filtered or unexported fields
}

Represents the metadata of the long-running operation.

func (*OperationMetadata) Descriptor deprecated

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

Deprecated: Use OperationMetadata.ProtoReflect.Descriptor instead.

func (*OperationMetadata) GetApiVersion

func (x *OperationMetadata) GetApiVersion() string

func (*OperationMetadata) GetCreateTime

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

func (*OperationMetadata) GetEndTime

func (x *OperationMetadata) GetEndTime() *timestamppb.Timestamp

func (*OperationMetadata) GetRequestedCancellation

func (x *OperationMetadata) GetRequestedCancellation() bool

func (*OperationMetadata) GetStatusMessage

func (x *OperationMetadata) GetStatusMessage() string

func (*OperationMetadata) GetTarget

func (x *OperationMetadata) GetTarget() string

func (*OperationMetadata) GetVerb

func (x *OperationMetadata) GetVerb() string

func (*OperationMetadata) ProtoMessage

func (*OperationMetadata) ProtoMessage()

func (*OperationMetadata) ProtoReflect

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

func (*OperationMetadata) Reset

func (x *OperationMetadata) Reset()

func (*OperationMetadata) String

func (x *OperationMetadata) String() string

type ReportConfig

type ReportConfig struct {

	// name of resource. It will be of form
	// projects/<project>/locations/<location>/reportConfigs/<report-config-id>.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Output only. [Output only] Create time stamp
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Output only. [Output only] Update time stamp
	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// The frequency of report generation.
	FrequencyOptions *FrequencyOptions `protobuf:"bytes,5,opt,name=frequency_options,json=frequencyOptions,proto3" json:"frequency_options,omitempty"`
	// Format in which report will be published.
	//
	// Types that are assignable to ReportFormat:
	//
	//	*ReportConfig_CsvOptions
	ReportFormat isReportConfig_ReportFormat `protobuf_oneof:"report_format"`
	// Configuration options for report contents.
	//
	// Types that are assignable to ReportKind:
	//
	//	*ReportConfig_ObjectMetadataReportOptions
	ReportKind isReportConfig_ReportKind `protobuf_oneof:"report_kind"`
	// Labels as key value pairs
	Labels map[string]string `` /* 154-byte string literal not displayed */
	// User provided display name which can be empty and limited to 256 characters
	// that is editable.
	DisplayName string `protobuf:"bytes,11,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// contains filtered or unexported fields
}

Message describing ReportConfig object. ReportConfig is the configuration to generate reports. Next ID: 12

func (*ReportConfig) Descriptor deprecated

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

Deprecated: Use ReportConfig.ProtoReflect.Descriptor instead.

func (*ReportConfig) GetCreateTime

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

func (*ReportConfig) GetCsvOptions

func (x *ReportConfig) GetCsvOptions() *CSVOptions

func (*ReportConfig) GetDisplayName

func (x *ReportConfig) GetDisplayName() string

func (*ReportConfig) GetFrequencyOptions

func (x *ReportConfig) GetFrequencyOptions() *FrequencyOptions

func (*ReportConfig) GetLabels

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

func (*ReportConfig) GetName

func (x *ReportConfig) GetName() string

func (*ReportConfig) GetObjectMetadataReportOptions

func (x *ReportConfig) GetObjectMetadataReportOptions() *ObjectMetadataReportOptions

func (*ReportConfig) GetReportFormat

func (m *ReportConfig) GetReportFormat() isReportConfig_ReportFormat

func (*ReportConfig) GetReportKind

func (m *ReportConfig) GetReportKind() isReportConfig_ReportKind

func (*ReportConfig) GetUpdateTime

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

func (*ReportConfig) ProtoMessage

func (*ReportConfig) ProtoMessage()

func (*ReportConfig) ProtoReflect

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

func (*ReportConfig) Reset

func (x *ReportConfig) Reset()

func (*ReportConfig) String

func (x *ReportConfig) String() string

type ReportConfig_CsvOptions

type ReportConfig_CsvOptions struct {
	// Options for CSV formatted reports.
	CsvOptions *CSVOptions `protobuf:"bytes,6,opt,name=csv_options,json=csvOptions,proto3,oneof"`
}

type ReportConfig_ObjectMetadataReportOptions

type ReportConfig_ObjectMetadataReportOptions struct {
	// Report for exporting object metadata.
	ObjectMetadataReportOptions *ObjectMetadataReportOptions `protobuf:"bytes,8,opt,name=object_metadata_report_options,json=objectMetadataReportOptions,proto3,oneof"`
}

type ReportDetail

type ReportDetail struct {

	// Name of resource. It will be of form
	// projects/<project>/locations/<location>/reportConfigs/<report-config-id>/reportDetails/<report-detail-id>.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The snapshot time.
	// All the report data is referenced at this point of time.
	SnapshotTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=snapshot_time,json=snapshotTime,proto3" json:"snapshot_time,omitempty"`
	// Generated report's full path with name. It will be of the form
	// destination_bucket/<destination_path>/<report>.
	ReportNames []string `protobuf:"bytes,3,rep,name=report_names,json=reportNames,proto3" json:"report_names,omitempty"`
	// Status of the ReportDetail.
	Status *status.Status `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"`
	// Labels as key value pairs
	Labels map[string]string `` /* 153-byte string literal not displayed */
	// The date for which report is generated. The time part of target_datetime
	// will be zero till we support multiple reports per day.
	TargetDatetime *datetime.DateTime `protobuf:"bytes,6,opt,name=target_datetime,json=targetDatetime,proto3" json:"target_datetime,omitempty"`
	// Metrics of the report.
	ReportMetrics *ReportDetail_Metrics `protobuf:"bytes,7,opt,name=report_metrics,json=reportMetrics,proto3" json:"report_metrics,omitempty"`
	// contains filtered or unexported fields
}

Message describing ReportDetail object. ReportDetail represents metadata of generated reports for a ReportConfig. Next ID: 8

func (*ReportDetail) Descriptor deprecated

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

Deprecated: Use ReportDetail.ProtoReflect.Descriptor instead.

func (*ReportDetail) GetLabels

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

func (*ReportDetail) GetName

func (x *ReportDetail) GetName() string

func (*ReportDetail) GetReportMetrics

func (x *ReportDetail) GetReportMetrics() *ReportDetail_Metrics

func (*ReportDetail) GetReportNames

func (x *ReportDetail) GetReportNames() []string

func (*ReportDetail) GetSnapshotTime

func (x *ReportDetail) GetSnapshotTime() *timestamppb.Timestamp

func (*ReportDetail) GetStatus

func (x *ReportDetail) GetStatus() *status.Status

func (*ReportDetail) GetTargetDatetime

func (x *ReportDetail) GetTargetDatetime() *datetime.DateTime

func (*ReportDetail) ProtoMessage

func (*ReportDetail) ProtoMessage()

func (*ReportDetail) ProtoReflect

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

func (*ReportDetail) Reset

func (x *ReportDetail) Reset()

func (*ReportDetail) String

func (x *ReportDetail) String() string

type ReportDetail_Metrics

type ReportDetail_Metrics struct {

	// Count of Cloud Storage objects which are part of the report.
	ProcessedRecordsCount int64 `` /* 127-byte string literal not displayed */
	// contains filtered or unexported fields
}

Different metrics associated with the generated report.

func (*ReportDetail_Metrics) Descriptor deprecated

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

Deprecated: Use ReportDetail_Metrics.ProtoReflect.Descriptor instead.

func (*ReportDetail_Metrics) GetProcessedRecordsCount

func (x *ReportDetail_Metrics) GetProcessedRecordsCount() int64

func (*ReportDetail_Metrics) ProtoMessage

func (*ReportDetail_Metrics) ProtoMessage()

func (*ReportDetail_Metrics) ProtoReflect

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

func (*ReportDetail_Metrics) Reset

func (x *ReportDetail_Metrics) Reset()

func (*ReportDetail_Metrics) String

func (x *ReportDetail_Metrics) String() string

type StorageInsightsClient

type StorageInsightsClient interface {
	// Lists ReportConfigs in a given project and location.
	ListReportConfigs(ctx context.Context, in *ListReportConfigsRequest, opts ...grpc.CallOption) (*ListReportConfigsResponse, error)
	// Gets details of a single ReportConfig.
	GetReportConfig(ctx context.Context, in *GetReportConfigRequest, opts ...grpc.CallOption) (*ReportConfig, error)
	// Creates a new ReportConfig in a given project and location.
	CreateReportConfig(ctx context.Context, in *CreateReportConfigRequest, opts ...grpc.CallOption) (*ReportConfig, error)
	// Updates the parameters of a single ReportConfig.
	UpdateReportConfig(ctx context.Context, in *UpdateReportConfigRequest, opts ...grpc.CallOption) (*ReportConfig, error)
	// Deletes a single ReportConfig.
	DeleteReportConfig(ctx context.Context, in *DeleteReportConfigRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Lists ReportDetails in a given project and location.
	ListReportDetails(ctx context.Context, in *ListReportDetailsRequest, opts ...grpc.CallOption) (*ListReportDetailsResponse, error)
	// Gets details of a single ReportDetail.
	GetReportDetail(ctx context.Context, in *GetReportDetailRequest, opts ...grpc.CallOption) (*ReportDetail, error)
}

StorageInsightsClient is the client API for StorageInsights service.

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

type StorageInsightsServer

type StorageInsightsServer interface {
	// Lists ReportConfigs in a given project and location.
	ListReportConfigs(context.Context, *ListReportConfigsRequest) (*ListReportConfigsResponse, error)
	// Gets details of a single ReportConfig.
	GetReportConfig(context.Context, *GetReportConfigRequest) (*ReportConfig, error)
	// Creates a new ReportConfig in a given project and location.
	CreateReportConfig(context.Context, *CreateReportConfigRequest) (*ReportConfig, error)
	// Updates the parameters of a single ReportConfig.
	UpdateReportConfig(context.Context, *UpdateReportConfigRequest) (*ReportConfig, error)
	// Deletes a single ReportConfig.
	DeleteReportConfig(context.Context, *DeleteReportConfigRequest) (*emptypb.Empty, error)
	// Lists ReportDetails in a given project and location.
	ListReportDetails(context.Context, *ListReportDetailsRequest) (*ListReportDetailsResponse, error)
	// Gets details of a single ReportDetail.
	GetReportDetail(context.Context, *GetReportDetailRequest) (*ReportDetail, error)
}

StorageInsightsServer is the server API for StorageInsights service.

type UnimplementedStorageInsightsServer

type UnimplementedStorageInsightsServer struct {
}

UnimplementedStorageInsightsServer can be embedded to have forward compatible implementations.

func (*UnimplementedStorageInsightsServer) CreateReportConfig

func (*UnimplementedStorageInsightsServer) DeleteReportConfig

func (*UnimplementedStorageInsightsServer) GetReportConfig

func (*UnimplementedStorageInsightsServer) GetReportDetail

func (*UnimplementedStorageInsightsServer) ListReportConfigs

func (*UnimplementedStorageInsightsServer) ListReportDetails

func (*UnimplementedStorageInsightsServer) UpdateReportConfig

type UpdateReportConfigRequest

type UpdateReportConfigRequest struct {

	// Required. Field mask is used to specify the fields to be overwritten in the
	// ReportConfig resource by the update.
	// The fields specified in the update_mask are relative to the resource, not
	// the full request. A field will be overwritten if it is in the mask. If the
	// user does not provide a mask then all fields will be overwritten.
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// Required. The resource being updated
	ReportConfig *ReportConfig `protobuf:"bytes,2,opt,name=report_config,json=reportConfig,proto3" json:"report_config,omitempty"`
	// Optional. An optional request ID to identify requests. Specify a unique
	// request ID so that if you must retry your request, the server will know to
	// ignore the request if it has already been completed. The server will
	// guarantee that for at least 60 minutes since the first request.
	//
	// For example, consider a situation where you make an initial request and t
	// he request times out. If you make the request again with the same request
	// ID, the server can check if original operation with the same request ID
	// was received, and if so, will ignore the second request. This prevents
	// clients from accidentally creating duplicate commitments.
	//
	// The request ID must be a valid UUID with the exception that zero UUID is
	// not supported (00000000-0000-0000-0000-000000000000).
	RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// contains filtered or unexported fields
}

Message for updating a ReportConfig

func (*UpdateReportConfigRequest) Descriptor deprecated

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

Deprecated: Use UpdateReportConfigRequest.ProtoReflect.Descriptor instead.

func (*UpdateReportConfigRequest) GetReportConfig

func (x *UpdateReportConfigRequest) GetReportConfig() *ReportConfig

func (*UpdateReportConfigRequest) GetRequestId

func (x *UpdateReportConfigRequest) GetRequestId() string

func (*UpdateReportConfigRequest) GetUpdateMask

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

func (*UpdateReportConfigRequest) ProtoMessage

func (*UpdateReportConfigRequest) ProtoMessage()

func (*UpdateReportConfigRequest) ProtoReflect

func (*UpdateReportConfigRequest) Reset

func (x *UpdateReportConfigRequest) Reset()

func (*UpdateReportConfigRequest) String

func (x *UpdateReportConfigRequest) String() string

Jump to

Keyboard shortcuts

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