Workload Manager API v1 - Package cloud.google.com/go/workloadmanager/apiv1/workloadmanagerpb (v0.4.0)

Constants

WorkloadManager_ListEvaluations_FullMethodName, WorkloadManager_GetEvaluation_FullMethodName, WorkloadManager_CreateEvaluation_FullMethodName, WorkloadManager_UpdateEvaluation_FullMethodName, WorkloadManager_DeleteEvaluation_FullMethodName, WorkloadManager_ListExecutions_FullMethodName, WorkloadManager_GetExecution_FullMethodName, WorkloadManager_RunEvaluation_FullMethodName, WorkloadManager_DeleteExecution_FullMethodName, WorkloadManager_ListExecutionResults_FullMethodName, WorkloadManager_ListRules_FullMethodName, WorkloadManager_ListScannedResources_FullMethodName

const (
	WorkloadManager_ListEvaluations_FullMethodName      = "/google.cloud.workloadmanager.v1.WorkloadManager/ListEvaluations"
	WorkloadManager_GetEvaluation_FullMethodName        = "/google.cloud.workloadmanager.v1.WorkloadManager/GetEvaluation"
	WorkloadManager_CreateEvaluation_FullMethodName     = "/google.cloud.workloadmanager.v1.WorkloadManager/CreateEvaluation"
	WorkloadManager_UpdateEvaluation_FullMethodName     = "/google.cloud.workloadmanager.v1.WorkloadManager/UpdateEvaluation"
	WorkloadManager_DeleteEvaluation_FullMethodName     = "/google.cloud.workloadmanager.v1.WorkloadManager/DeleteEvaluation"
	WorkloadManager_ListExecutions_FullMethodName       = "/google.cloud.workloadmanager.v1.WorkloadManager/ListExecutions"
	WorkloadManager_GetExecution_FullMethodName         = "/google.cloud.workloadmanager.v1.WorkloadManager/GetExecution"
	WorkloadManager_RunEvaluation_FullMethodName        = "/google.cloud.workloadmanager.v1.WorkloadManager/RunEvaluation"
	WorkloadManager_DeleteExecution_FullMethodName      = "/google.cloud.workloadmanager.v1.WorkloadManager/DeleteExecution"
	WorkloadManager_ListExecutionResults_FullMethodName = "/google.cloud.workloadmanager.v1.WorkloadManager/ListExecutionResults"
	WorkloadManager_ListRules_FullMethodName            = "/google.cloud.workloadmanager.v1.WorkloadManager/ListRules"
	WorkloadManager_ListScannedResources_FullMethodName = "/google.cloud.workloadmanager.v1.WorkloadManager/ListScannedResources"
)

Variables

Evaluation_EvaluationType_name, Evaluation_EvaluationType_value

var (
	Evaluation_EvaluationType_name = map[int32]string{
		0: "EVALUATION_TYPE_UNSPECIFIED",
		1: "SAP",
		2: "SQL_SERVER",
		3: "OTHER",
	}
	Evaluation_EvaluationType_value = map[string]int32{
		"EVALUATION_TYPE_UNSPECIFIED": 0,
		"SAP":                         1,
		"SQL_SERVER":                  2,
		"OTHER":                       3,
	}
)

Enum value maps for Evaluation_EvaluationType.

ResourceStatus_State_name, ResourceStatus_State_value

var (
	ResourceStatus_State_name = map[int32]string{
		0: "STATE_UNSPECIFIED",
		1: "CREATING",
		2: "ACTIVE",
		3: "DELETING",
	}
	ResourceStatus_State_value = map[string]int32{
		"STATE_UNSPECIFIED": 0,
		"CREATING":          1,
		"ACTIVE":            2,
		"DELETING":          3,
	}
)

Enum value maps for ResourceStatus_State.

Execution_State_name, Execution_State_value

var (
	Execution_State_name = map[int32]string{
		0: "STATE_UNSPECIFIED",
		1: "RUNNING",
		2: "SUCCEEDED",
		3: "FAILED",
	}
	Execution_State_value = map[string]int32{
		"STATE_UNSPECIFIED": 0,
		"RUNNING":           1,
		"SUCCEEDED":         2,
		"FAILED":            3,
	}
)

Enum value maps for Execution_State.

Execution_Type_name, Execution_Type_value

var (
	Execution_Type_name = map[int32]string{
		0: "TYPE_UNSPECIFIED",
		1: "ONE_TIME",
		2: "SCHEDULED",
	}
	Execution_Type_value = map[string]int32{
		"TYPE_UNSPECIFIED": 0,
		"ONE_TIME":         1,
		"SCHEDULED":        2,
	}
)

Enum value maps for Execution_Type.

Execution_Engine_name, Execution_Engine_value

var (
	Execution_Engine_name = map[int32]string{
		0: "ENGINE_UNSPECIFIED",
		1: "ENGINE_SCANNER",
		2: "V2",
	}
	Execution_Engine_value = map[string]int32{
		"ENGINE_UNSPECIFIED": 0,
		"ENGINE_SCANNER":     1,
		"V2":                 2,
	}
)

Enum value maps for Execution_Engine.

Execution_ExternalDataSources_Type_name, Execution_ExternalDataSources_Type_value

var (
	Execution_ExternalDataSources_Type_name = map[int32]string{
		0: "TYPE_UNSPECIFIED",
		1: "BIG_QUERY_TABLE",
	}
	Execution_ExternalDataSources_Type_value = map[string]int32{
		"TYPE_UNSPECIFIED": 0,
		"BIG_QUERY_TABLE":  1,
	}
)

Enum value maps for Execution_ExternalDataSources_Type.

RuleExecutionResult_State_name, RuleExecutionResult_State_value

var (
	RuleExecutionResult_State_name = map[int32]string{
		0: "STATE_UNSPECIFIED",
		1: "STATE_SUCCESS",
		2: "STATE_FAILURE",
		3: "STATE_SKIPPED",
	}
	RuleExecutionResult_State_value = map[string]int32{
		"STATE_UNSPECIFIED": 0,
		"STATE_SUCCESS":     1,
		"STATE_FAILURE":     2,
		"STATE_SKIPPED":     3,
	}
)

Enum value maps for RuleExecutionResult_State.

ExecutionResult_Type_name, ExecutionResult_Type_value

var (
	ExecutionResult_Type_name = map[int32]string{
		0: "TYPE_UNSPECIFIED",
		1: "TYPE_PASSED",
		2: "TYPE_VIOLATED",
	}
	ExecutionResult_Type_value = map[string]int32{
		"TYPE_UNSPECIFIED": 0,
		"TYPE_PASSED":      1,
		"TYPE_VIOLATED":    2,
	}
)

Enum value maps for ExecutionResult_Type.

Rule_RuleType_name, Rule_RuleType_value

var (
	Rule_RuleType_name = map[int32]string{
		0: "RULE_TYPE_UNSPECIFIED",
		1: "BASELINE",
		2: "CUSTOM",
	}
	Rule_RuleType_value = map[string]int32{
		"RULE_TYPE_UNSPECIFIED": 0,
		"BASELINE":              1,
		"CUSTOM":                2,
	}
)

Enum value maps for Rule_RuleType.

File_google_cloud_workloadmanager_v1_service_proto

var File_google_cloud_workloadmanager_v1_service_proto protoreflect.FileDescriptor

WorkloadManager_ServiceDesc

var WorkloadManager_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "google.cloud.workloadmanager.v1.WorkloadManager",
	HandlerType: (*WorkloadManagerServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListEvaluations",
			Handler:    _WorkloadManager_ListEvaluations_Handler,
		},
		{
			MethodName: "GetEvaluation",
			Handler:    _WorkloadManager_GetEvaluation_Handler,
		},
		{
			MethodName: "CreateEvaluation",
			Handler:    _WorkloadManager_CreateEvaluation_Handler,
		},
		{
			MethodName: "UpdateEvaluation",
			Handler:    _WorkloadManager_UpdateEvaluation_Handler,
		},
		{
			MethodName: "DeleteEvaluation",
			Handler:    _WorkloadManager_DeleteEvaluation_Handler,
		},
		{
			MethodName: "ListExecutions",
			Handler:    _WorkloadManager_ListExecutions_Handler,
		},
		{
			MethodName: "GetExecution",
			Handler:    _WorkloadManager_GetExecution_Handler,
		},
		{
			MethodName: "RunEvaluation",
			Handler:    _WorkloadManager_RunEvaluation_Handler,
		},
		{
			MethodName: "DeleteExecution",
			Handler:    _WorkloadManager_DeleteExecution_Handler,
		},
		{
			MethodName: "ListExecutionResults",
			Handler:    _WorkloadManager_ListExecutionResults_Handler,
		},
		{
			MethodName: "ListRules",
			Handler:    _WorkloadManager_ListRules_Handler,
		},
		{
			MethodName: "ListScannedResources",
			Handler:    _WorkloadManager_ListScannedResources_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "google/cloud/workloadmanager/v1/service.proto",
}

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

Functions

func RegisterWorkloadManagerServer

func RegisterWorkloadManagerServer(s grpc.ServiceRegistrar, srv WorkloadManagerServer)

AgentCommand

type AgentCommand struct {

	// The name of the agent one-time executable that will be invoked.
	Command string `protobuf:"bytes,1,opt,name=command,proto3" json:"command,omitempty"`
	// A map of key/value pairs that can be used to specify
	// additional one-time executable settings.
	Parameters map[string]string `protobuf:"bytes,2,rep,name=parameters,proto3" json:"parameters,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
	// contains filtered or unexported fields
}

An AgentCommand specifies a one-time executable program for the agent to run.

func (*AgentCommand) Descriptor

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

Deprecated: Use AgentCommand.ProtoReflect.Descriptor instead.

func (*AgentCommand) GetCommand

func (x *AgentCommand) GetCommand() string

func (*AgentCommand) GetParameters

func (x *AgentCommand) GetParameters() map[string]string

func (*AgentCommand) ProtoMessage

func (*AgentCommand) ProtoMessage()

func (*AgentCommand) ProtoReflect

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

func (*AgentCommand) Reset

func (x *AgentCommand) Reset()

func (*AgentCommand) String

func (x *AgentCommand) String() string

BigQueryDestination

type BigQueryDestination struct {

	// Optional. Destination dataset to save evaluation results.
	DestinationDataset string `protobuf:"bytes,1,opt,name=destination_dataset,json=destinationDataset,proto3" json:"destination_dataset,omitempty"`
	// Optional. Determines if a new results table will be created when an
	// Execution is created.
	CreateNewResultsTable bool `protobuf:"varint,2,opt,name=create_new_results_table,json=createNewResultsTable,proto3" json:"create_new_results_table,omitempty"`
	// contains filtered or unexported fields
}

BigQuery destination for evaluation results.

func (*BigQueryDestination) Descriptor

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

Deprecated: Use BigQueryDestination.ProtoReflect.Descriptor instead.

func (*BigQueryDestination) GetCreateNewResultsTable

func (x *BigQueryDestination) GetCreateNewResultsTable() bool

func (*BigQueryDestination) GetDestinationDataset

func (x *BigQueryDestination) GetDestinationDataset() string

func (*BigQueryDestination) ProtoMessage

func (*BigQueryDestination) ProtoMessage()

func (*BigQueryDestination) ProtoReflect

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

func (*BigQueryDestination) Reset

func (x *BigQueryDestination) Reset()

func (*BigQueryDestination) String

func (x *BigQueryDestination) String() string

Command

type Command struct {

	// The type of command.
	//
	// Types that are valid to be assigned to CommandType:
	//
	//	*Command_AgentCommand
	//	*Command_ShellCommand
	CommandType isCommand_CommandType `protobuf_oneof:"command_type"`
	// contains filtered or unexported fields
}

Command specifies the type of command to execute.

func (*Command) Descriptor

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

Deprecated: Use Command.ProtoReflect.Descriptor instead.

func (*Command) GetAgentCommand

func (x *Command) GetAgentCommand() *AgentCommand

func (*Command) GetCommandType

func (x *Command) GetCommandType() isCommand_CommandType

func (*Command) GetShellCommand

func (x *Command) GetShellCommand() *ShellCommand

func (*Command) ProtoMessage

func (*Command) ProtoMessage()

func (*Command) ProtoReflect

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

func (*Command) Reset

func (x *Command) Reset()

func (*Command) String

func (x *Command) String() string

Command_AgentCommand

type Command_AgentCommand struct {
	// AgentCommand specifies a one-time executable program for the agent to
	// run.
	AgentCommand *AgentCommand `protobuf:"bytes,1,opt,name=agent_command,json=agentCommand,proto3,oneof"`
}

Command_ShellCommand

type Command_ShellCommand struct {
	// ShellCommand is invoked via the agent's command line executor.
	ShellCommand *ShellCommand `protobuf:"bytes,2,opt,name=shell_command,json=shellCommand,proto3,oneof"`
}

CreateEvaluationRequest

type CreateEvaluationRequest struct {

	// Required. The resource prefix of the evaluation location using the form:
	// `projects/{project_id}/locations/{location_id}`.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required. Id of the requesting object.
	EvaluationId string `protobuf:"bytes,2,opt,name=evaluation_id,json=evaluationId,proto3" json:"evaluation_id,omitempty"`
	// Required. The resource being created.
	Evaluation *Evaluation `protobuf:"bytes,3,opt,name=evaluation,proto3" json:"evaluation,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
	// the 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
}

Request message for the CreateEvaluation RPC.

func (*CreateEvaluationRequest) Descriptor

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

Deprecated: Use CreateEvaluationRequest.ProtoReflect.Descriptor instead.

func (*CreateEvaluationRequest) GetEvaluation

func (x *CreateEvaluationRequest) GetEvaluation() *Evaluation

func (*CreateEvaluationRequest) GetEvaluationId

func (x *CreateEvaluationRequest) GetEvaluationId() string

func (*CreateEvaluationRequest) GetParent

func (x *CreateEvaluationRequest) GetParent() string

func (*CreateEvaluationRequest) GetRequestId

func (x *CreateEvaluationRequest) GetRequestId() string

func (*CreateEvaluationRequest) ProtoMessage

func (*CreateEvaluationRequest) ProtoMessage()

func (*CreateEvaluationRequest) ProtoReflect

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

func (*CreateEvaluationRequest) Reset

func (x *CreateEvaluationRequest) Reset()

func (*CreateEvaluationRequest) String

func (x *CreateEvaluationRequest) String() string

DeleteEvaluationRequest

type DeleteEvaluationRequest struct {

	// Required. Name of the resource.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,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
	// the 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,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// Optional. Followed the best practice from
	// https://aip.dev/135#cascading-delete.
	Force bool `protobuf:"varint,3,opt,name=force,proto3" json:"force,omitempty"`
	// contains filtered or unexported fields
}

Request message for the DeleteEvaluation RPC.

func (*DeleteEvaluationRequest) Descriptor

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

Deprecated: Use DeleteEvaluationRequest.ProtoReflect.Descriptor instead.

func (*DeleteEvaluationRequest) GetForce

func (x *DeleteEvaluationRequest) GetForce() bool

func (*DeleteEvaluationRequest) GetName

func (x *DeleteEvaluationRequest) GetName() string

func (*DeleteEvaluationRequest) GetRequestId

func (x *DeleteEvaluationRequest) GetRequestId() string

func (*DeleteEvaluationRequest) ProtoMessage

func (*DeleteEvaluationRequest) ProtoMessage()

func (*DeleteEvaluationRequest) ProtoReflect

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

func (*DeleteEvaluationRequest) Reset

func (x *DeleteEvaluationRequest) Reset()

func (*DeleteEvaluationRequest) String

func (x *DeleteEvaluationRequest) String() string

DeleteExecutionRequest

type DeleteExecutionRequest struct {

	// Required. Name of the resource.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,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
	// the 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,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// contains filtered or unexported fields
}

Request message for the DeleteExecution RPC.

func (*DeleteExecutionRequest) Descriptor

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

Deprecated: Use DeleteExecutionRequest.ProtoReflect.Descriptor instead.

func (*DeleteExecutionRequest) GetName

func (x *DeleteExecutionRequest) GetName() string

func (*DeleteExecutionRequest) GetRequestId

func (x *DeleteExecutionRequest) GetRequestId() string

func (*DeleteExecutionRequest) ProtoMessage

func (*DeleteExecutionRequest) ProtoMessage()

func (*DeleteExecutionRequest) ProtoReflect

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

func (*DeleteExecutionRequest) Reset

func (x *DeleteExecutionRequest) Reset()

func (*DeleteExecutionRequest) String

func (x *DeleteExecutionRequest) String() string

Evaluation

type Evaluation struct {

	// Name of resource that has the form
	// `projects/{project_id}/locations/{location_id}/evaluations/{evaluation_id}`.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Description of the Evaluation.
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// Resource filter for an evaluation defining the scope of resources to be
	// evaluated.
	ResourceFilter *ResourceFilter `protobuf:"bytes,3,opt,name=resource_filter,json=resourceFilter,proto3" json:"resource_filter,omitempty"`
	// The names of the rules used for this evaluation.
	RuleNames []string `protobuf:"bytes,4,rep,name=rule_names,json=ruleNames,proto3" json:"rule_names,omitempty"`
	// Output only. [Output only] The current lifecycle state of the evaluation
	// resource.
	ResourceStatus *ResourceStatus `protobuf:"bytes,6,opt,name=resource_status,json=resourceStatus,proto3" json:"resource_status,omitempty"`
	// Output only. [Output only] Create time stamp.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Output only. [Output only] Update time stamp.
	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// Labels as key value pairs.
	Labels map[string]string `protobuf:"bytes,9,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
	// Crontab format schedule for scheduled evaluation, currently only supports
	// the following fixed schedules:
	// * `0 */1 * * *` # Hourly
	// * `0 */6 * * *` # Every 6 hours
	// * `0 */12 * * *` # Every 12 hours
	// * `0 0 */1 * *` # Daily
	// * `0 0 */7 * *` # Weekly
	// * `0 0 */14 * *` # Every 14 days
	// * `0 0 1 */1 *` # Monthly
	Schedule *string `protobuf:"bytes,10,opt,name=schedule,proto3,oneof" json:"schedule,omitempty"`
	// The Cloud Storage bucket name for custom rules.
	CustomRulesBucket string `protobuf:"bytes,11,opt,name=custom_rules_bucket,json=customRulesBucket,proto3" json:"custom_rules_bucket,omitempty"`
	// Evaluation type.
	EvaluationType Evaluation_EvaluationType `protobuf:"varint,12,opt,name=evaluation_type,json=evaluationType,proto3,enum=google.cloud.workloadmanager.v1.Evaluation_EvaluationType" json:"evaluation_type,omitempty"`
	// Optional. The BigQuery destination for detailed evaluation results.
	// If this field is specified, the results of each evaluation execution are
	// exported to BigQuery.
	BigQueryDestination *BigQueryDestination `protobuf:"bytes,13,opt,name=big_query_destination,json=bigQueryDestination,proto3" json:"big_query_destination,omitempty"`
	// Optional. Immutable. Customer-managed encryption key name, in the format
	// projects/*/locations/*/keyRings/*/cryptoKeys/*.
	// The key will be used for CMEK encryption of the evaluation resource.
	KmsKey string `protobuf:"bytes,15,opt,name=kms_key,json=kmsKey,proto3" json:"kms_key,omitempty"`
	// contains filtered or unexported fields
}

Represents a Workload Manager Evaluation configuration. An Evaluation defines a set of rules to be validated against a scope of Cloud resources.

func (*Evaluation) Descriptor

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

Deprecated: Use Evaluation.ProtoReflect.Descriptor instead.

func (*Evaluation) GetBigQueryDestination

func (x *Evaluation) GetBigQueryDestination() *BigQueryDestination

func (*Evaluation) GetCreateTime

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

func (*Evaluation) GetCustomRulesBucket

func (x *Evaluation) GetCustomRulesBucket() string

func (*Evaluation) GetDescription

func (x *Evaluation) GetDescription() string

func (*Evaluation) GetEvaluationType

func (x *Evaluation) GetEvaluationType() Evaluation_EvaluationType

func (*Evaluation) GetKmsKey

func (x *Evaluation) GetKmsKey() string

func (*Evaluation) GetLabels

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

func (*Evaluation) GetName

func (x *Evaluation) GetName() string

func (*Evaluation) GetResourceFilter

func (x *Evaluation) GetResourceFilter() *ResourceFilter

func (*Evaluation) GetResourceStatus

func (x *Evaluation) GetResourceStatus() *ResourceStatus

func (*Evaluation) GetRuleNames

func (x *Evaluation) GetRuleNames() []string

func (*Evaluation) GetSchedule

func (x *Evaluation) GetSchedule() string

func (*Evaluation) GetUpdateTime

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

func (*Evaluation) ProtoMessage

func (*Evaluation) ProtoMessage()

func (*Evaluation) ProtoReflect

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

func (*Evaluation) Reset

func (x *Evaluation) Reset()

func (*Evaluation) String

func (x *Evaluation) String() string

Evaluation_EvaluationType

type Evaluation_EvaluationType int32

Possible types of workload evaluations like SAP, SQL Server, etc.

Evaluation_EVALUATION_TYPE_UNSPECIFIED, Evaluation_SAP, Evaluation_SQL_SERVER, Evaluation_OTHER

const (
	// Not specified.
	Evaluation_EVALUATION_TYPE_UNSPECIFIED Evaluation_EvaluationType = 0
	// SAP best practices.
	Evaluation_SAP Evaluation_EvaluationType = 1
	// SQL best practices.
	Evaluation_SQL_SERVER Evaluation_EvaluationType = 2
	// Customized best practices.
	Evaluation_OTHER Evaluation_EvaluationType = 3
)

func (Evaluation_EvaluationType) Descriptor

func (Evaluation_EvaluationType) Enum

func (Evaluation_EvaluationType) EnumDescriptor

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

Deprecated: Use Evaluation_EvaluationType.Descriptor instead.

func (Evaluation_EvaluationType) Number

func (Evaluation_EvaluationType) String

func (x Evaluation_EvaluationType) String() string

func (Evaluation_EvaluationType) Type

Execution

type Execution struct {

	// The name of execution resource. The format is
	// projects/{project}/locations/{location}/evaluations/{evaluation}/executions/{execution}.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Output only. [Output only] Start time stamp.
	StartTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	// Output only. [Output only] End time stamp.
	EndTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	// Output only. [Output only] Inventory time stamp.
	InventoryTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=inventory_time,json=inventoryTime,proto3" json:"inventory_time,omitempty"`
	// Output only. [Output only] State.
	State Execution_State `protobuf:"varint,5,opt,name=state,proto3,enum=google.cloud.workloadmanager.v1.Execution_State" json:"state,omitempty"`
	// Output only. [Output only] Evaluation ID.
	EvaluationId string `protobuf:"bytes,6,opt,name=evaluation_id,json=evaluationId,proto3" json:"evaluation_id,omitempty"`
	// Labels as key value pairs.
	Labels map[string]string `protobuf:"bytes,7,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
	// Type which represents whether the execution executed directly by user or
	// scheduled according to the `Evaluation.schedule` field.
	RunType Execution_Type `protobuf:"varint,8,opt,name=run_type,json=runType,proto3,enum=google.cloud.workloadmanager.v1.Execution_Type" json:"run_type,omitempty"`
	// Output only. Execution result summary per rule.
	RuleResults []*RuleExecutionResult `protobuf:"bytes,9,rep,name=rule_results,json=ruleResults,proto3" json:"rule_results,omitempty"`
	// Optional. External data sources.
	ExternalDataSources []*Execution_ExternalDataSources `protobuf:"bytes,10,rep,name=external_data_sources,json=externalDataSources,proto3" json:"external_data_sources,omitempty"`
	// Output only. Additional information generated by the execution.
	Notices []*Execution_Notice `protobuf:"bytes,11,rep,name=notices,proto3" json:"notices,omitempty"`
	// Optional. Engine.
	Engine Execution_Engine `protobuf:"varint,12,opt,name=engine,proto3,enum=google.cloud.workloadmanager.v1.Execution_Engine" json:"engine,omitempty"`
	// Output only. [Output only] Result summary for the execution.
	ResultSummary *Execution_Summary `protobuf:"bytes,13,opt,name=result_summary,json=resultSummary,proto3" json:"result_summary,omitempty"`
	// contains filtered or unexported fields
}

Execution that represents a single run of an Evaluation.

func (*Execution) Descriptor

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

Deprecated: Use Execution.ProtoReflect.Descriptor instead.

func (*Execution) GetEndTime

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

func (*Execution) GetEngine

func (x *Execution) GetEngine() Execution_Engine

func (*Execution) GetEvaluationId

func (x *Execution) GetEvaluationId() string

func (*Execution) GetExternalDataSources

func (x *Execution) GetExternalDataSources() []*Execution_ExternalDataSources

func (*Execution) GetInventoryTime

func (x *Execution) GetInventoryTime() *timestamppb.Timestamp

func (*Execution) GetLabels

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

func (*Execution) GetName

func (x *Execution) GetName() string

func (*Execution) GetNotices

func (x *Execution) GetNotices() []*Execution_Notice

func (*Execution) GetResultSummary

func (x *Execution) GetResultSummary() *Execution_Summary

func (*Execution) GetRuleResults

func (x *Execution) GetRuleResults() []*RuleExecutionResult

func (*Execution) GetRunType

func (x *Execution) GetRunType() Execution_Type

func (*Execution) GetStartTime

func (x *Execution) GetStartTime() *timestamppb.Timestamp

func (*Execution) GetState

func (x *Execution) GetState() Execution_State

func (*Execution) ProtoMessage

func (*Execution) ProtoMessage()

func (*Execution) ProtoReflect

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

func (*Execution) Reset

func (x *Execution) Reset()

func (*Execution) String

func (x *Execution) String() string

ExecutionResult

type ExecutionResult struct {

	// The violation message of an execution.
	ViolationMessage string `protobuf:"bytes,1,opt,name=violation_message,json=violationMessage,proto3" json:"violation_message,omitempty"`
	// The severity of violation.
	Severity string `protobuf:"bytes,2,opt,name=severity,proto3" json:"severity,omitempty"`
	// The rule that is violated in an evaluation.
	Rule string `protobuf:"bytes,3,opt,name=rule,proto3" json:"rule,omitempty"`
	// The URL for the documentation of the rule.
	DocumentationUrl string `protobuf:"bytes,4,opt,name=documentation_url,json=documentationUrl,proto3" json:"documentation_url,omitempty"`
	// The resource that violates the rule.
	Resource *Resource `protobuf:"bytes,5,opt,name=resource,proto3" json:"resource,omitempty"`
	// The details of violation in an evaluation result.
	ViolationDetails *ViolationDetails `protobuf:"bytes,6,opt,name=violation_details,json=violationDetails,proto3" json:"violation_details,omitempty"`
	// The commands to remediate the violation.
	Commands []*Command `protobuf:"bytes,7,rep,name=commands,proto3" json:"commands,omitempty"`
	// Execution result type of the scanned resource.
	Type ExecutionResult_Type `protobuf:"varint,8,opt,name=type,proto3,enum=google.cloud.workloadmanager.v1.ExecutionResult_Type" json:"type,omitempty"`
	// contains filtered or unexported fields
}

The result of an execution.

func (*ExecutionResult) Descriptor

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

Deprecated: Use ExecutionResult.ProtoReflect.Descriptor instead.

func (*ExecutionResult) GetCommands

func (x *ExecutionResult) GetCommands() []*Command

func (*ExecutionResult) GetDocumentationUrl

func (x *ExecutionResult) GetDocumentationUrl() string

func (*ExecutionResult) GetResource

func (x *ExecutionResult) GetResource() *Resource

func (*ExecutionResult) GetRule

func (x *ExecutionResult) GetRule() string

func (*ExecutionResult) GetSeverity

func (x *ExecutionResult) GetSeverity() string

func (*ExecutionResult) GetType

func (*ExecutionResult) GetViolationDetails

func (x *ExecutionResult) GetViolationDetails() *ViolationDetails

func (*ExecutionResult) GetViolationMessage

func (x *ExecutionResult) GetViolationMessage() string

func (*ExecutionResult) ProtoMessage

func (*ExecutionResult) ProtoMessage()

func (*ExecutionResult) ProtoReflect

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

func (*ExecutionResult) Reset

func (x *ExecutionResult) Reset()

func (*ExecutionResult) String

func (x *ExecutionResult) String() string

ExecutionResult_Type

type ExecutionResult_Type int32

Enum of execution result type.

ExecutionResult_TYPE_UNSPECIFIED, ExecutionResult_TYPE_PASSED, ExecutionResult_TYPE_VIOLATED

const (
	// Unknown state.
	ExecutionResult_TYPE_UNSPECIFIED ExecutionResult_Type = 0
	// Resource successfully passed the rule.
	ExecutionResult_TYPE_PASSED ExecutionResult_Type = 1
	// Resource violated the rule.
	ExecutionResult_TYPE_VIOLATED ExecutionResult_Type = 2
)

func (ExecutionResult_Type) Descriptor

func (ExecutionResult_Type) Enum

func (ExecutionResult_Type) EnumDescriptor

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

Deprecated: Use ExecutionResult_Type.Descriptor instead.

func (ExecutionResult_Type) Number

func (ExecutionResult_Type) String

func (x ExecutionResult_Type) String() string

func (ExecutionResult_Type) Type

Execution_Engine

type Execution_Engine int32

The engine used for the execution.

Execution_ENGINE_UNSPECIFIED, Execution_ENGINE_SCANNER, Execution_V2

const (
	// The original CG.
	Execution_ENGINE_UNSPECIFIED Execution_Engine = 0
	// SlimCG / Scanner.
	Execution_ENGINE_SCANNER Execution_Engine = 1
	// Evaluation Engine V2.
	Execution_V2 Execution_Engine = 2
)

func (Execution_Engine) Descriptor

func (Execution_Engine) Enum

func (Execution_Engine) EnumDescriptor

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

Deprecated: Use Execution_Engine.Descriptor instead.

func (Execution_Engine) Number

func (Execution_Engine) String

func (x Execution_Engine) String() string

func (Execution_Engine) Type

Execution_ExternalDataSources

type Execution_ExternalDataSources struct {

	// Optional. Name of external data source. The name will be used inside the
	// rego/sql to refer the external data.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Required. URI of external data source. example of bq table
	// {project_ID}.{dataset_ID}.{table_ID}.
	Uri string `protobuf:"bytes,2,opt,name=uri,proto3" json:"uri,omitempty"`
	// Required. Type of external data source.
	Type Execution_ExternalDataSources_Type `protobuf:"varint,3,opt,name=type,proto3,enum=google.cloud.workloadmanager.v1.Execution_ExternalDataSources_Type" json:"type,omitempty"`
	// Required. The asset type of the external data source.
	// This can be a supported Cloud Asset Inventory asset type
	// (see https://cloud.google.com/asset-inventory/docs/supported-asset-types)
	// to override the default asset type, or it can be a custom type defined by
	// the user.
	AssetType string `protobuf:"bytes,4,opt,name=asset_type,json=assetType,proto3" json:"asset_type,omitempty"`
	// contains filtered or unexported fields
}

External data sources for an execution.

func (*Execution_ExternalDataSources) Descriptor

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

Deprecated: Use Execution_ExternalDataSources.ProtoReflect.Descriptor instead.

func (*Execution_ExternalDataSources) GetAssetType

func (x *Execution_ExternalDataSources) GetAssetType() string

func (*Execution_ExternalDataSources) GetName

func (*Execution_ExternalDataSources) GetType

func (*Execution_ExternalDataSources) GetUri

func (*Execution_ExternalDataSources) ProtoMessage

func (*Execution_ExternalDataSources) ProtoMessage()

func (*Execution_ExternalDataSources) ProtoReflect

func (*Execution_ExternalDataSources) Reset

func (x *Execution_ExternalDataSources) Reset()

func (*Execution_ExternalDataSources) String

Execution_ExternalDataSources_Type

type Execution_ExternalDataSources_Type int32

Possible types of external data sources like BigQuery table, etc.

Execution_ExternalDataSources_TYPE_UNSPECIFIED, Execution_ExternalDataSources_BIG_QUERY_TABLE

const (
	// Unknown type.
	Execution_ExternalDataSources_TYPE_UNSPECIFIED Execution_ExternalDataSources_Type = 0
	// BigQuery table.
	Execution_ExternalDataSources_BIG_QUERY_TABLE Execution_ExternalDataSources_Type = 1
)

func (Execution_ExternalDataSources_Type) Descriptor

func (Execution_ExternalDataSources_Type) Enum

func (Execution_ExternalDataSources_Type) EnumDescriptor

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

Deprecated: Use Execution_ExternalDataSources_Type.Descriptor instead.

func (Execution_ExternalDataSources_Type) Number

func (Execution_ExternalDataSources_Type) String

func (Execution_ExternalDataSources_Type) Type

Execution_Notice

type Execution_Notice struct {

	// Output only. Message of the notice.
	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

Additional information generated by an execution.

func (*Execution_Notice) Descriptor

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

Deprecated: Use Execution_Notice.ProtoReflect.Descriptor instead.

func (*Execution_Notice) GetMessage

func (x *Execution_Notice) GetMessage() string

func (*Execution_Notice) ProtoMessage

func (*Execution_Notice) ProtoMessage()

func (*Execution_Notice) ProtoReflect

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

func (*Execution_Notice) Reset

func (x *Execution_Notice) Reset()

func (*Execution_Notice) String

func (x *Execution_Notice) String() string

Execution_State

type Execution_State int32

The possible states of an execution like RUNNING, SUCCEEDED, FAILED, etc.

Execution_STATE_UNSPECIFIED, Execution_RUNNING, Execution_SUCCEEDED, Execution_FAILED

const (
	// State of execution is unspecified.
	Execution_STATE_UNSPECIFIED Execution_State = 0
	// The execution is running in backend service.
	Execution_RUNNING Execution_State = 1
	// The execution run succeeded.
	Execution_SUCCEEDED Execution_State = 2
	// The execution run failed.
	Execution_FAILED Execution_State = 3
)

func (Execution_State) Descriptor

func (Execution_State) Enum

func (x Execution_State) Enum() *Execution_State

func (Execution_State) EnumDescriptor

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

Deprecated: Use Execution_State.Descriptor instead.

func (Execution_State) Number

func (Execution_State) String

func (x Execution_State) String() string

func (Execution_State) Type

Execution_Summary

type Execution_Summary struct {

	// Output only. Number of failures.
	Failures int64 `protobuf:"varint,1,opt,name=failures,proto3" json:"failures,omitempty"`
	// Output only. Number of new failures compared to the previous execution.
	NewFailures int64 `protobuf:"varint,2,opt,name=new_failures,json=newFailures,proto3" json:"new_failures,omitempty"`
	// Output only. Number of new fixes compared to the previous execution.
	NewFixes int64 `protobuf:"varint,3,opt,name=new_fixes,json=newFixes,proto3" json:"new_fixes,omitempty"`
	// contains filtered or unexported fields
}

Execution summary.

func (*Execution_Summary) Descriptor

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

Deprecated: Use Execution_Summary.ProtoReflect.Descriptor instead.

func (*Execution_Summary) GetFailures

func (x *Execution_Summary) GetFailures() int64

func (*Execution_Summary) GetNewFailures

func (x *Execution_Summary) GetNewFailures() int64

func (*Execution_Summary) GetNewFixes

func (x *Execution_Summary) GetNewFixes() int64

func (*Execution_Summary) ProtoMessage

func (*Execution_Summary) ProtoMessage()

func (*Execution_Summary) ProtoReflect

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

func (*Execution_Summary) Reset

func (x *Execution_Summary) Reset()

func (*Execution_Summary) String

func (x *Execution_Summary) String() string

Execution_Type

type Execution_Type int32

The type of execution, could be on demand execute or scheduled execute.

Execution_TYPE_UNSPECIFIED, Execution_ONE_TIME, Execution_SCHEDULED

const (
	// Type of execution is unspecified.
	Execution_TYPE_UNSPECIFIED Execution_Type = 0
	// Type of execution is one time.
	Execution_ONE_TIME Execution_Type = 1
	// Type of execution is scheduled.
	Execution_SCHEDULED Execution_Type = 2
)

func (Execution_Type) Descriptor

func (Execution_Type) Enum

func (x Execution_Type) Enum() *Execution_Type

func (Execution_Type) EnumDescriptor

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

Deprecated: Use Execution_Type.Descriptor instead.

func (Execution_Type) Number

func (Execution_Type) String

func (x Execution_Type) String() string

func (Execution_Type) Type

GceInstanceFilter

type GceInstanceFilter struct {

	// If non-empty, only Compute Engine instances associated with at least one of
	// the provided service accounts will be included in the evaluation.
	ServiceAccounts []string `protobuf:"bytes,4,rep,name=service_accounts,json=serviceAccounts,proto3" json:"service_accounts,omitempty"`
	// contains filtered or unexported fields
}

A filter for matching Compute Engine instances.

func (*GceInstanceFilter) Descriptor

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

Deprecated: Use GceInstanceFilter.ProtoReflect.Descriptor instead.

func (*GceInstanceFilter) GetServiceAccounts

func (x *GceInstanceFilter) GetServiceAccounts() []string

func (*GceInstanceFilter) ProtoMessage

func (*GceInstanceFilter) ProtoMessage()

func (*GceInstanceFilter) ProtoReflect

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

func (*GceInstanceFilter) Reset

func (x *GceInstanceFilter) Reset()

func (*GceInstanceFilter) String

func (x *GceInstanceFilter) String() string

GetEvaluationRequest

type GetEvaluationRequest struct {

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

Request message for the GetEvaluation RPC.

func (*GetEvaluationRequest) Descriptor

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

Deprecated: Use GetEvaluationRequest.ProtoReflect.Descriptor instead.

func (*GetEvaluationRequest) GetName

func (x *GetEvaluationRequest) GetName() string

func (*GetEvaluationRequest) ProtoMessage

func (*GetEvaluationRequest) ProtoMessage()

func (*GetEvaluationRequest) ProtoReflect

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

func (*GetEvaluationRequest) Reset

func (x *GetEvaluationRequest) Reset()

func (*GetEvaluationRequest) String

func (x *GetEvaluationRequest) String() string

GetExecutionRequest

type GetExecutionRequest struct {

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

Request message for the GetExecution RPC.

func (*GetExecutionRequest) Descriptor

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

Deprecated: Use GetExecutionRequest.ProtoReflect.Descriptor instead.

func (*GetExecutionRequest) GetName

func (x *GetExecutionRequest) GetName() string

func (*GetExecutionRequest) ProtoMessage

func (*GetExecutionRequest) ProtoMessage()

func (*GetExecutionRequest) ProtoReflect

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

func (*GetExecutionRequest) Reset

func (x *GetExecutionRequest) Reset()

func (*GetExecutionRequest) String

func (x *GetExecutionRequest) String() string

ListEvaluationsRequest

type ListEvaluationsRequest struct {

	// Required. Parent value for ListEvaluationsRequest.
	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"`
	// Filter to be applied when listing the evaluation 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
}

Request message for the ListEvaluations RPC.

func (*ListEvaluationsRequest) Descriptor

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

Deprecated: Use ListEvaluationsRequest.ProtoReflect.Descriptor instead.

func (*ListEvaluationsRequest) GetFilter

func (x *ListEvaluationsRequest) GetFilter() string

func (*ListEvaluationsRequest) GetOrderBy

func (x *ListEvaluationsRequest) GetOrderBy() string

func (*ListEvaluationsRequest) GetPageSize

func (x *ListEvaluationsRequest) GetPageSize() int32

func (*ListEvaluationsRequest) GetPageToken

func (x *ListEvaluationsRequest) GetPageToken() string

func (*ListEvaluationsRequest) GetParent

func (x *ListEvaluationsRequest) GetParent() string

func (*ListEvaluationsRequest) ProtoMessage

func (*ListEvaluationsRequest) ProtoMessage()

func (*ListEvaluationsRequest) ProtoReflect

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

func (*ListEvaluationsRequest) Reset

func (x *ListEvaluationsRequest) Reset()

func (*ListEvaluationsRequest) String

func (x *ListEvaluationsRequest) String() string

ListEvaluationsResponse

type ListEvaluationsResponse struct {

	// The list of evaluations.
	Evaluations []*Evaluation `protobuf:"bytes,1,rep,name=evaluations,proto3" json:"evaluations,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
}

Response message for the ListEvaluations RPC.

func (*ListEvaluationsResponse) Descriptor

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

Deprecated: Use ListEvaluationsResponse.ProtoReflect.Descriptor instead.

func (*ListEvaluationsResponse) GetEvaluations

func (x *ListEvaluationsResponse) GetEvaluations() []*Evaluation

func (*ListEvaluationsResponse) GetNextPageToken

func (x *ListEvaluationsResponse) GetNextPageToken() string

func (*ListEvaluationsResponse) GetUnreachable

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

func (*ListEvaluationsResponse) ProtoMessage

func (*ListEvaluationsResponse) ProtoMessage()

func (*ListEvaluationsResponse) ProtoReflect

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

func (*ListEvaluationsResponse) Reset

func (x *ListEvaluationsResponse) Reset()

func (*ListEvaluationsResponse) String

func (x *ListEvaluationsResponse) String() string

ListExecutionResultsRequest

type ListExecutionResultsRequest struct {

	// Required. The execution results.
	// Format: {parent}/evaluations/*/executions/*/results.
	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"`
	// contains filtered or unexported fields
}

Request message for the ListExecutionResults RPC.

func (*ListExecutionResultsRequest) Descriptor

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

Deprecated: Use ListExecutionResultsRequest.ProtoReflect.Descriptor instead.

func (*ListExecutionResultsRequest) GetFilter

func (x *ListExecutionResultsRequest) GetFilter() string

func (*ListExecutionResultsRequest) GetPageSize

func (x *ListExecutionResultsRequest) GetPageSize() int32

func (*ListExecutionResultsRequest) GetPageToken

func (x *ListExecutionResultsRequest) GetPageToken() string

func (*ListExecutionResultsRequest) GetParent

func (x *ListExecutionResultsRequest) GetParent() string

func (*ListExecutionResultsRequest) ProtoMessage

func (*ListExecutionResultsRequest) ProtoMessage()

func (*ListExecutionResultsRequest) ProtoReflect

func (*ListExecutionResultsRequest) Reset

func (x *ListExecutionResultsRequest) Reset()

func (*ListExecutionResultsRequest) String

func (x *ListExecutionResultsRequest) String() string

ListExecutionResultsResponse

type ListExecutionResultsResponse struct {

	// The versions from the specified publisher.
	ExecutionResults []*ExecutionResult `protobuf:"bytes,1,rep,name=execution_results,json=executionResults,proto3" json:"execution_results,omitempty"`
	// A token, which can be sent as `page_token` to retrieve the next page.
	// If this field is omitted, there are no subsequent pages.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

Response message for the ListExecutionResults RPC.

func (*ListExecutionResultsResponse) Descriptor

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

Deprecated: Use ListExecutionResultsResponse.ProtoReflect.Descriptor instead.

func (*ListExecutionResultsResponse) GetExecutionResults

func (x *ListExecutionResultsResponse) GetExecutionResults() []*ExecutionResult

func (*ListExecutionResultsResponse) GetNextPageToken

func (x *ListExecutionResultsResponse) GetNextPageToken() string

func (*ListExecutionResultsResponse) ProtoMessage

func (*ListExecutionResultsResponse) ProtoMessage()

func (*ListExecutionResultsResponse) ProtoReflect

func (*ListExecutionResultsResponse) Reset

func (x *ListExecutionResultsResponse) Reset()

func (*ListExecutionResultsResponse) String

ListExecutionsRequest

type ListExecutionsRequest struct {

	// Required. The resource prefix of the Execution using the form:
	// `projects/{project}/locations/{location}/evaluations/{evaluation}`.
	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"`
	// Field to sort by. See https://google.aip.dev/132#ordering for more details.
	OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
	// contains filtered or unexported fields
}

Request message for the ListExecutions RPC.

func (*ListExecutionsRequest) Descriptor

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

Deprecated: Use ListExecutionsRequest.ProtoReflect.Descriptor instead.

func (*ListExecutionsRequest) GetFilter

func (x *ListExecutionsRequest) GetFilter() string

func (*ListExecutionsRequest) GetOrderBy

func (x *ListExecutionsRequest) GetOrderBy() string

func (*ListExecutionsRequest) GetPageSize

func (x *ListExecutionsRequest) GetPageSize() int32

func (*ListExecutionsRequest) GetPageToken

func (x *ListExecutionsRequest) GetPageToken() string

func (*ListExecutionsRequest) GetParent

func (x *ListExecutionsRequest) GetParent() string

func (*ListExecutionsRequest) ProtoMessage

func (*ListExecutionsRequest) ProtoMessage()

func (*ListExecutionsRequest) ProtoReflect

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

func (*ListExecutionsRequest) Reset

func (x *ListExecutionsRequest) Reset()

func (*ListExecutionsRequest) String

func (x *ListExecutionsRequest) String() string

ListExecutionsResponse

type ListExecutionsResponse struct {

	// The list of Execution.
	Executions []*Execution `protobuf:"bytes,1,rep,name=executions,proto3" json:"executions,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
}

Response message for the ListExecutions RPC.

func (*ListExecutionsResponse) Descriptor

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

Deprecated: Use ListExecutionsResponse.ProtoReflect.Descriptor instead.

func (*ListExecutionsResponse) GetExecutions

func (x *ListExecutionsResponse) GetExecutions() []*Execution

func (*ListExecutionsResponse) GetNextPageToken

func (x *ListExecutionsResponse) GetNextPageToken() string

func (*ListExecutionsResponse) GetUnreachable

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

func (*ListExecutionsResponse) ProtoMessage

func (*ListExecutionsResponse) ProtoMessage()

func (*ListExecutionsResponse) ProtoReflect

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

func (*ListExecutionsResponse) Reset

func (x *ListExecutionsResponse) Reset()

func (*ListExecutionsResponse) String

func (x *ListExecutionsResponse) String() string

ListRulesRequest

type ListRulesRequest struct {

	// Required. The [project] on which to execute the request. The format is:
	//
	//	projects/{project_id}/locations/{location}
	//
	// Currently, the pre-defined rules are global available to all projects and
	// all regions.
	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"`
	// Filter based on primary_category, secondary_category.
	Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
	// The Cloud Storage bucket name for custom rules.
	CustomRulesBucket string `protobuf:"bytes,5,opt,name=custom_rules_bucket,json=customRulesBucket,proto3" json:"custom_rules_bucket,omitempty"`
	// Optional. The evaluation type of the rules will be applied to.
	// The Cloud Storage bucket name for custom rules.
	EvaluationType Evaluation_EvaluationType `protobuf:"varint,6,opt,name=evaluation_type,json=evaluationType,proto3,enum=google.cloud.workloadmanager.v1.Evaluation_EvaluationType" json:"evaluation_type,omitempty"`
	// contains filtered or unexported fields
}

Request message for the ListRules RPC.

func (*ListRulesRequest) Descriptor

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

Deprecated: Use ListRulesRequest.ProtoReflect.Descriptor instead.

func (*ListRulesRequest) GetCustomRulesBucket

func (x *ListRulesRequest) GetCustomRulesBucket() string

func (*ListRulesRequest) GetEvaluationType

func (x *ListRulesRequest) GetEvaluationType() Evaluation_EvaluationType

func (*ListRulesRequest) GetFilter

func (x *ListRulesRequest) GetFilter() string

func (*ListRulesRequest) GetPageSize

func (x *ListRulesRequest) GetPageSize() int32

func (*ListRulesRequest) GetPageToken

func (x *ListRulesRequest) GetPageToken() string

func (*ListRulesRequest) GetParent

func (x *ListRulesRequest) GetParent() string

func (*ListRulesRequest) ProtoMessage

func (*ListRulesRequest) ProtoMessage()

func (*ListRulesRequest) ProtoReflect

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

func (*ListRulesRequest) Reset

func (x *ListRulesRequest) Reset()

func (*ListRulesRequest) String

func (x *ListRulesRequest) String() string

ListRulesResponse

type ListRulesResponse struct {

	// All rules in response.
	Rules []*Rule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"`
	// contains filtered or unexported fields
}

Response message for the ListRules RPC.

func (*ListRulesResponse) Descriptor

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

Deprecated: Use ListRulesResponse.ProtoReflect.Descriptor instead.

func (*ListRulesResponse) GetRules

func (x *ListRulesResponse) GetRules() []*Rule

func (*ListRulesResponse) ProtoMessage

func (*ListRulesResponse) ProtoMessage()

func (*ListRulesResponse) ProtoReflect

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

func (*ListRulesResponse) Reset

func (x *ListRulesResponse) Reset()

func (*ListRulesResponse) String

func (x *ListRulesResponse) String() string

ListScannedResourcesRequest

type ListScannedResourcesRequest struct {

	// Required. Parent for ListScannedResourcesRequest.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Rule name.
	Rule string `protobuf:"bytes,2,opt,name=rule,proto3" json:"rule,omitempty"`
	// Requested page size. Server may return fewer items than requested.
	// If unspecified, server will pick an appropriate default.
	PageSize int32 `protobuf:"varint,3,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,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// Filtering results.
	Filter string `protobuf:"bytes,5,opt,name=filter,proto3" json:"filter,omitempty"`
	// Field to sort by. See https://google.aip.dev/132#ordering for more details.
	OrderBy string `protobuf:"bytes,6,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
	// contains filtered or unexported fields
}

Request message for the ListScannedResources RPC.

func (*ListScannedResourcesRequest) Descriptor

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

Deprecated: Use ListScannedResourcesRequest.ProtoReflect.Descriptor instead.

func (*ListScannedResourcesRequest) GetFilter

func (x *ListScannedResourcesRequest) GetFilter() string

func (*ListScannedResourcesRequest) GetOrderBy

func (x *ListScannedResourcesRequest) GetOrderBy() string

func (*ListScannedResourcesRequest) GetPageSize

func (x *ListScannedResourcesRequest) GetPageSize() int32

func (*ListScannedResourcesRequest) GetPageToken

func (x *ListScannedResourcesRequest) GetPageToken() string

func (*ListScannedResourcesRequest) GetParent

func (x *ListScannedResourcesRequest) GetParent() string

func (*ListScannedResourcesRequest) GetRule

func (x *ListScannedResourcesRequest) GetRule() string

func (*ListScannedResourcesRequest) ProtoMessage

func (*ListScannedResourcesRequest) ProtoMessage()

func (*ListScannedResourcesRequest) ProtoReflect

func (*ListScannedResourcesRequest) Reset

func (x *ListScannedResourcesRequest) Reset()

func (*ListScannedResourcesRequest) String

func (x *ListScannedResourcesRequest) String() string

ListScannedResourcesResponse

type ListScannedResourcesResponse struct {

	// All scanned resources in response.
	ScannedResources []*ScannedResource `protobuf:"bytes,1,rep,name=scanned_resources,json=scannedResources,proto3" json:"scanned_resources,omitempty"`
	// A token, which can be sent as `page_token` to retrieve the next page.
	// If this field is omitted, there are no subsequent pages.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

Response message for the ListScannedResources RPC.

func (*ListScannedResourcesResponse) Descriptor

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

Deprecated: Use ListScannedResourcesResponse.ProtoReflect.Descriptor instead.

func (*ListScannedResourcesResponse) GetNextPageToken

func (x *ListScannedResourcesResponse) GetNextPageToken() string

func (*ListScannedResourcesResponse) GetScannedResources

func (x *ListScannedResourcesResponse) GetScannedResources() []*ScannedResource

func (*ListScannedResourcesResponse) ProtoMessage

func (*ListScannedResourcesResponse) ProtoMessage()

func (*ListScannedResourcesResponse) ProtoReflect

func (*ListScannedResourcesResponse) Reset

func (x *ListScannedResourcesResponse) Reset()

func (*ListScannedResourcesResponse) String

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

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

Resource

type Resource struct {

	// The type of resource.
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	// The name of the resource.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// The service account associated with the resource.
	ServiceAccount string `protobuf:"bytes,3,opt,name=service_account,json=serviceAccount,proto3" json:"service_account,omitempty"`
	// contains filtered or unexported fields
}

Resource in execution result.

func (*Resource) Descriptor

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

Deprecated: Use Resource.ProtoReflect.Descriptor instead.

func (*Resource) GetName

func (x *Resource) GetName() string

func (*Resource) GetServiceAccount

func (x *Resource) GetServiceAccount() string

func (*Resource) GetType

func (x *Resource) GetType() string

func (*Resource) ProtoMessage

func (*Resource) ProtoMessage()

func (*Resource) ProtoReflect

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

func (*Resource) Reset

func (x *Resource) Reset()

func (*Resource) String

func (x *Resource) String() string

ResourceFilter

type ResourceFilter struct {

	// The scopes of evaluation resource.
	// Format:
	// * `projects/{project_id}`
	// * `folders/{folder_id}`
	// * `organizations/{organization_id}`
	Scopes []string `protobuf:"bytes,1,rep,name=scopes,proto3" json:"scopes,omitempty"`
	// The pattern to filter resources by their id
	// For example, a pattern of ".*prod-cluster.*" will match all resources that
	// contain "prod-cluster" in their ID.
	ResourceIdPatterns []string `protobuf:"bytes,2,rep,name=resource_id_patterns,json=resourceIdPatterns,proto3" json:"resource_id_patterns,omitempty"`
	// Labels to filter resources by. Each key-value pair in the map must exist
	// on the resource for it to be included (e.g. VM instance labels).
	// For example, specifying `{ "env": "prod", "database": "nosql" }` will only
	// include resources that have labels `env=prod` and `database=nosql`.
	InclusionLabels map[string]string `protobuf:"bytes,3,rep,name=inclusion_labels,json=inclusionLabels,proto3" json:"inclusion_labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
	// Filter compute engine resources.
	GceInstanceFilter *GceInstanceFilter `protobuf:"bytes,4,opt,name=gce_instance_filter,json=gceInstanceFilter,proto3" json:"gce_instance_filter,omitempty"`
	// contains filtered or unexported fields
}

Resource filter for an evaluation defining the scope of resources to be evaluated.

func (*ResourceFilter) Descriptor

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

Deprecated: Use ResourceFilter.ProtoReflect.Descriptor instead.

func (*ResourceFilter) GetGceInstanceFilter

func (x *ResourceFilter) GetGceInstanceFilter() *GceInstanceFilter

func (*ResourceFilter) GetInclusionLabels

func (x *ResourceFilter) GetInclusionLabels() map[string]string

func (*ResourceFilter) GetResourceIdPatterns

func (x *ResourceFilter) GetResourceIdPatterns() []string

func (*ResourceFilter) GetScopes

func (x *ResourceFilter) GetScopes() []string

func (*ResourceFilter) ProtoMessage

func (*ResourceFilter) ProtoMessage()

func (*ResourceFilter) ProtoReflect

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

func (*ResourceFilter) Reset

func (x *ResourceFilter) Reset()

func (*ResourceFilter) String

func (x *ResourceFilter) String() string

ResourceStatus

type ResourceStatus struct {

	// State of the Evaluation resource.
	State ResourceStatus_State `protobuf:"varint,2,opt,name=state,proto3,enum=google.cloud.workloadmanager.v1.ResourceStatus_State" json:"state,omitempty"`
	// contains filtered or unexported fields
}

The lifecycle status of an Evaluation resource.

func (*ResourceStatus) Descriptor

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

Deprecated: Use ResourceStatus.ProtoReflect.Descriptor instead.

func (*ResourceStatus) GetState

func (x *ResourceStatus) GetState() ResourceStatus_State

func (*ResourceStatus) ProtoMessage

func (*ResourceStatus) ProtoMessage()

func (*ResourceStatus) ProtoReflect

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

func (*ResourceStatus) Reset

func (x *ResourceStatus) Reset()

func (*ResourceStatus) String

func (x *ResourceStatus) String() string

ResourceStatus_State

type ResourceStatus_State int32

Possible states of an evaluation, such as CREATING, ACTIVE, and DELETING.

ResourceStatus_STATE_UNSPECIFIED, ResourceStatus_CREATING, ResourceStatus_ACTIVE, ResourceStatus_DELETING

const (
	// The state has not been populated in this message.
	ResourceStatus_STATE_UNSPECIFIED ResourceStatus_State = 0
	// Resource has an active Create operation.
	ResourceStatus_CREATING ResourceStatus_State = 1
	// Resource has no outstanding operations on it or has active Update
	// operations.
	ResourceStatus_ACTIVE ResourceStatus_State = 2
	// Resource has an active Delete operation.
	ResourceStatus_DELETING ResourceStatus_State = 3
)

func (ResourceStatus_State) Descriptor

func (ResourceStatus_State) Enum

func (ResourceStatus_State) EnumDescriptor

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

Deprecated: Use ResourceStatus_State.Descriptor instead.

func (ResourceStatus_State) Number

func (ResourceStatus_State) String

func (x ResourceStatus_State) String() string

func (ResourceStatus_State) Type

Rule

type Rule struct {

	// Rule name.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Output only. The version of the rule.
	RevisionId string `protobuf:"bytes,2,opt,name=revision_id,json=revisionId,proto3" json:"revision_id,omitempty"`
	// The name display in UI.
	DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// Describe rule in plain language.
	Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	// The severity of the rule.
	Severity string `protobuf:"bytes,5,opt,name=severity,proto3" json:"severity,omitempty"`
	// The primary category.
	PrimaryCategory string `protobuf:"bytes,6,opt,name=primary_category,json=primaryCategory,proto3" json:"primary_category,omitempty"`
	// The secondary category.
	SecondaryCategory string `protobuf:"bytes,7,opt,name=secondary_category,json=secondaryCategory,proto3" json:"secondary_category,omitempty"`
	// The message template for rule.
	ErrorMessage string `protobuf:"bytes,8,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
	// The document url for the rule.
	Uri string `protobuf:"bytes,9,opt,name=uri,proto3" json:"uri,omitempty"`
	// The remediation for the rule.
	Remediation string `protobuf:"bytes,10,opt,name=remediation,proto3" json:"remediation,omitempty"`
	// List of user-defined tags.
	Tags []string `protobuf:"bytes,11,rep,name=tags,proto3" json:"tags,omitempty"`
	// The type of the rule.
	RuleType Rule_RuleType `protobuf:"varint,12,opt,name=rule_type,json=ruleType,proto3,enum=google.cloud.workloadmanager.v1.Rule_RuleType" json:"rule_type,omitempty"`
	// The CAI asset type of the rule is evaluating, for joined asset types, it
	// will be the corresponding primary asset types.
	AssetType string `protobuf:"bytes,13,opt,name=asset_type,json=assetType,proto3" json:"asset_type,omitempty"`
	// contains filtered or unexported fields
}

A rule to be evaluated.

func (*Rule) Descriptor

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

Deprecated: Use Rule.ProtoReflect.Descriptor instead.

func (*Rule) GetAssetType

func (x *Rule) GetAssetType() string

func (*Rule) GetDescription

func (x *Rule) GetDescription() string

func (*Rule) GetDisplayName

func (x *Rule) GetDisplayName() string

func (*Rule) GetErrorMessage

func (x *Rule) GetErrorMessage() string

func (*Rule) GetName

func (x *Rule) GetName() string

func (*Rule) GetPrimaryCategory

func (x *Rule) GetPrimaryCategory() string

func (*Rule) GetRemediation

func (x *Rule) GetRemediation() string

func (*Rule) GetRevisionId

func (x *Rule) GetRevisionId() string

func (*Rule) GetRuleType

func (x *Rule) GetRuleType() Rule_RuleType

func (*Rule) GetSecondaryCategory

func (x *Rule) GetSecondaryCategory() string

func (*Rule) GetSeverity

func (x *Rule) GetSeverity() string

func (*Rule) GetTags

func (x *Rule) GetTags() []string

func (*Rule) GetUri

func (x *Rule) GetUri() string

func (*Rule) ProtoMessage

func (*Rule) ProtoMessage()

func (*Rule) ProtoReflect

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

func (*Rule) Reset

func (x *Rule) Reset()

func (*Rule) String

func (x *Rule) String() string

RuleExecutionResult

type RuleExecutionResult struct {

	// Rule name as plain text like `sap-hana-configured`.
	Rule string `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"`
	// Output only. The execution status.
	State RuleExecutionResult_State `protobuf:"varint,2,opt,name=state,proto3,enum=google.cloud.workloadmanager.v1.RuleExecutionResult_State" json:"state,omitempty"`
	// Execution message, if any.
	Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	// Number of violations.
	ResultCount int64 `protobuf:"varint,4,opt,name=result_count,json=resultCount,proto3" json:"result_count,omitempty"`
	// Number of total scanned resources.
	ScannedResourceCount int64 `protobuf:"varint,5,opt,name=scanned_resource_count,json=scannedResourceCount,proto3" json:"scanned_resource_count,omitempty"`
	// contains filtered or unexported fields
}

Execution result summary per rule.

func (*RuleExecutionResult) Descriptor

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

Deprecated: Use RuleExecutionResult.ProtoReflect.Descriptor instead.

func (*RuleExecutionResult) GetMessage

func (x *RuleExecutionResult) GetMessage() string

func (*RuleExecutionResult) GetResultCount

func (x *RuleExecutionResult) GetResultCount() int64

func (*RuleExecutionResult) GetRule

func (x *RuleExecutionResult) GetRule() string

func (*RuleExecutionResult) GetScannedResourceCount

func (x *RuleExecutionResult) GetScannedResourceCount() int64

func (*RuleExecutionResult) GetState

func (*RuleExecutionResult) ProtoMessage

func (*RuleExecutionResult) ProtoMessage()

func (*RuleExecutionResult) ProtoReflect

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

func (*RuleExecutionResult) Reset

func (x *RuleExecutionResult) Reset()

func (*RuleExecutionResult) String

func (x *RuleExecutionResult) String() string

RuleExecutionResult_State

type RuleExecutionResult_State int32

Possible states of a rule execution like SUCCESS, FAILURE, etc.

RuleExecutionResult_STATE_UNSPECIFIED, RuleExecutionResult_STATE_SUCCESS, RuleExecutionResult_STATE_FAILURE, RuleExecutionResult_STATE_SKIPPED

const (
	// Unknown state
	RuleExecutionResult_STATE_UNSPECIFIED RuleExecutionResult_State = 0
	// Execution completed successfully
	RuleExecutionResult_STATE_SUCCESS RuleExecutionResult_State = 1
	// Execution completed with failures
	RuleExecutionResult_STATE_FAILURE RuleExecutionResult_State = 2
	// Execution was not executed
	RuleExecutionResult_STATE_SKIPPED RuleExecutionResult_State = 3
)

func (RuleExecutionResult_State) Descriptor

func (RuleExecutionResult_State) Enum

func (RuleExecutionResult_State) EnumDescriptor

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

Deprecated: Use RuleExecutionResult_State.Descriptor instead.

func (RuleExecutionResult_State) Number

func (RuleExecutionResult_State) String

func (x RuleExecutionResult_State) String() string

func (RuleExecutionResult_State) Type

RuleOutput

type RuleOutput struct {

	// Output only. Violation details generated by rule.
	Details map[string]string `protobuf:"bytes,1,rep,name=details,proto3" json:"details,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
	// Output only. The message generated by rule.
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

The rule output of the violation.

func (*RuleOutput) Descriptor

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

Deprecated: Use RuleOutput.ProtoReflect.Descriptor instead.

func (*RuleOutput) GetDetails

func (x *RuleOutput) GetDetails() map[string]string

func (*RuleOutput) GetMessage

func (x *RuleOutput) GetMessage() string

func (*RuleOutput) ProtoMessage

func (*RuleOutput) ProtoMessage()

func (*RuleOutput) ProtoReflect

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

func (*RuleOutput) Reset

func (x *RuleOutput) Reset()

func (*RuleOutput) String

func (x *RuleOutput) String() string

Rule_RuleType

type Rule_RuleType int32

The type of the rule.

Rule_RULE_TYPE_UNSPECIFIED, Rule_BASELINE, Rule_CUSTOM

const (
	// Not specified.
	Rule_RULE_TYPE_UNSPECIFIED Rule_RuleType = 0
	// Baseline rules.
	Rule_BASELINE Rule_RuleType = 1
	// Custom rules.
	Rule_CUSTOM Rule_RuleType = 2
)

func (Rule_RuleType) Descriptor

func (Rule_RuleType) Enum

func (x Rule_RuleType) Enum() *Rule_RuleType

func (Rule_RuleType) EnumDescriptor

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

Deprecated: Use Rule_RuleType.Descriptor instead.

func (Rule_RuleType) Number

func (Rule_RuleType) String

func (x Rule_RuleType) String() string

func (Rule_RuleType) Type

RunEvaluationRequest

type RunEvaluationRequest struct {

	// Required. The resource name of the Evaluation using the form:
	// `projects/{project}/locations/{location}/evaluations/{evaluation}`.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Required. ID of the execution which will be created.
	ExecutionId string `protobuf:"bytes,2,opt,name=execution_id,json=executionId,proto3" json:"execution_id,omitempty"`
	// Required. The resource being created.
	Execution *Execution `protobuf:"bytes,3,opt,name=execution,proto3" json:"execution,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
	// the 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
}

Request message for the RunEvaluation RPC.

func (*RunEvaluationRequest) Descriptor

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

Deprecated: Use RunEvaluationRequest.ProtoReflect.Descriptor instead.

func (*RunEvaluationRequest) GetExecution

func (x *RunEvaluationRequest) GetExecution() *Execution

func (*RunEvaluationRequest) GetExecutionId

func (x *RunEvaluationRequest) GetExecutionId() string

func (*RunEvaluationRequest) GetName

func (x *RunEvaluationRequest) GetName() string

func (*RunEvaluationRequest) GetRequestId

func (x *RunEvaluationRequest) GetRequestId() string

func (*RunEvaluationRequest) ProtoMessage

func (*RunEvaluationRequest) ProtoMessage()

func (*RunEvaluationRequest) ProtoReflect

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

func (*RunEvaluationRequest) Reset

func (x *RunEvaluationRequest) Reset()

func (*RunEvaluationRequest) String

func (x *RunEvaluationRequest) String() string

ScannedResource

type ScannedResource struct {

	// Resource name.
	Resource string `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
	// Resource type.
	Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	// contains filtered or unexported fields
}

A scanned resource.

func (*ScannedResource) Descriptor

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

Deprecated: Use ScannedResource.ProtoReflect.Descriptor instead.

func (*ScannedResource) GetResource

func (x *ScannedResource) GetResource() string

func (*ScannedResource) GetType

func (x *ScannedResource) GetType() string

func (*ScannedResource) ProtoMessage

func (*ScannedResource) ProtoMessage()

func (*ScannedResource) ProtoReflect

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

func (*ScannedResource) Reset

func (x *ScannedResource) Reset()

func (*ScannedResource) String

func (x *ScannedResource) String() string

ShellCommand

type ShellCommand struct {

	// The name of the command to be executed.
	Command string `protobuf:"bytes,1,opt,name=command,proto3" json:"command,omitempty"`
	// Arguments to be passed to the command.
	Args string `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty"`
	// Optional. If not specified, the default timeout is 60 seconds.
	TimeoutSeconds int32 `protobuf:"varint,3,opt,name=timeout_seconds,json=timeoutSeconds,proto3" json:"timeout_seconds,omitempty"`
	// contains filtered or unexported fields
}

A ShellCommand is invoked via the agent's command line executor.

func (*ShellCommand) Descriptor

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

Deprecated: Use ShellCommand.ProtoReflect.Descriptor instead.

func (*ShellCommand) GetArgs

func (x *ShellCommand) GetArgs() string

func (*ShellCommand) GetCommand

func (x *ShellCommand) GetCommand() string

func (*ShellCommand) GetTimeoutSeconds

func (x *ShellCommand) GetTimeoutSeconds() int32

func (*ShellCommand) ProtoMessage

func (*ShellCommand) ProtoMessage()

func (*ShellCommand) ProtoReflect

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

func (*ShellCommand) Reset

func (x *ShellCommand) Reset()

func (*ShellCommand) String

func (x *ShellCommand) String() string

UnimplementedWorkloadManagerServer

type UnimplementedWorkloadManagerServer struct {
}

UnimplementedWorkloadManagerServer should be embedded to have forward compatible implementations.

func (UnimplementedWorkloadManagerServer) CreateEvaluation

func (UnimplementedWorkloadManagerServer) DeleteEvaluation

func (UnimplementedWorkloadManagerServer) DeleteExecution

func (UnimplementedWorkloadManagerServer) GetEvaluation

func (UnimplementedWorkloadManagerServer) GetExecution

func (UnimplementedWorkloadManagerServer) ListEvaluations

func (UnimplementedWorkloadManagerServer) ListExecutionResults

func (UnimplementedWorkloadManagerServer) ListExecutions

func (UnimplementedWorkloadManagerServer) ListRules

func (UnimplementedWorkloadManagerServer) ListScannedResources

func (UnimplementedWorkloadManagerServer) RunEvaluation

func (UnimplementedWorkloadManagerServer) UpdateEvaluation

UnsafeWorkloadManagerServer

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

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

UpdateEvaluationRequest

type UpdateEvaluationRequest struct {

	// Required. Field mask is used to specify the fields to be overwritten in the
	// Evaluation 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.
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// Required. The resource being updated.
	Evaluation *Evaluation `protobuf:"bytes,2,opt,name=evaluation,proto3" json:"evaluation,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
	// the 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
}

Request message for the UpdateEvaluation RPC.

func (*UpdateEvaluationRequest) Descriptor

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

Deprecated: Use UpdateEvaluationRequest.ProtoReflect.Descriptor instead.

func (*UpdateEvaluationRequest) GetEvaluation

func (x *UpdateEvaluationRequest) GetEvaluation() *Evaluation

func (*UpdateEvaluationRequest) GetRequestId

func (x *UpdateEvaluationRequest) GetRequestId() string

func (*UpdateEvaluationRequest) GetUpdateMask

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

func (*UpdateEvaluationRequest) ProtoMessage

func (*UpdateEvaluationRequest) ProtoMessage()

func (*UpdateEvaluationRequest) ProtoReflect

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

func (*UpdateEvaluationRequest) Reset

func (x *UpdateEvaluationRequest) Reset()

func (*UpdateEvaluationRequest) String

func (x *UpdateEvaluationRequest) String() string

ViolationDetails

type ViolationDetails struct {

	// The name of the asset.
	Asset string `protobuf:"bytes,1,opt,name=asset,proto3" json:"asset,omitempty"`
	// The service account associated with the resource.
	ServiceAccount string `protobuf:"bytes,2,opt,name=service_account,json=serviceAccount,proto3" json:"service_account,omitempty"`
	// Details of the violation.
	Observed map[string]string `protobuf:"bytes,3,rep,name=observed,proto3" json:"observed,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
	// Output only. The rule output of the violation.
	RuleOutput []*RuleOutput `protobuf:"bytes,4,rep,name=rule_output,json=ruleOutput,proto3" json:"rule_output,omitempty"`
	// contains filtered or unexported fields
}

The violation in an evaluation result.

func (*ViolationDetails) Descriptor

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

Deprecated: Use ViolationDetails.ProtoReflect.Descriptor instead.

func (*ViolationDetails) GetAsset

func (x *ViolationDetails) GetAsset() string

func (*ViolationDetails) GetObserved

func (x *ViolationDetails) GetObserved() map[string]string

func (*ViolationDetails) GetRuleOutput

func (x *ViolationDetails) GetRuleOutput() []*RuleOutput

func (*ViolationDetails) GetServiceAccount

func (x *ViolationDetails) GetServiceAccount() string

func (*ViolationDetails) ProtoMessage

func (*ViolationDetails) ProtoMessage()

func (*ViolationDetails) ProtoReflect

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

func (*ViolationDetails) Reset

func (x *ViolationDetails) Reset()

func (*ViolationDetails) String

func (x *ViolationDetails) String() string

WorkloadManagerClient

type WorkloadManagerClient interface {
	// Lists Evaluations in a given project and location.
	ListEvaluations(ctx context.Context, in *ListEvaluationsRequest, opts ...grpc.CallOption) (*ListEvaluationsResponse, error)
	// Gets details of a single Evaluation.
	GetEvaluation(ctx context.Context, in *GetEvaluationRequest, opts ...grpc.CallOption) (*Evaluation, error)
	// Creates a new Evaluation in a given project and location.
	CreateEvaluation(ctx context.Context, in *CreateEvaluationRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
	// Updates the parameters of a single Evaluation.
	UpdateEvaluation(ctx context.Context, in *UpdateEvaluationRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
	// Deletes a single Evaluation.
	DeleteEvaluation(ctx context.Context, in *DeleteEvaluationRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
	// Lists Executions in a given project and location.
	ListExecutions(ctx context.Context, in *ListExecutionsRequest, opts ...grpc.CallOption) (*ListExecutionsResponse, error)
	// Gets details of a single Execution.
	GetExecution(ctx context.Context, in *GetExecutionRequest, opts ...grpc.CallOption) (*Execution, error)
	// Creates a new Execution in a given project and location.
	RunEvaluation(ctx context.Context, in *RunEvaluationRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
	// Deletes a single Execution.
	DeleteExecution(ctx context.Context, in *DeleteExecutionRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
	// Lists the result of a single evaluation.
	ListExecutionResults(ctx context.Context, in *ListExecutionResultsRequest, opts ...grpc.CallOption) (*ListExecutionResultsResponse, error)
	// Lists rules in a given project.
	ListRules(ctx context.Context, in *ListRulesRequest, opts ...grpc.CallOption) (*ListRulesResponse, error)
	// List all scanned resources for a single Execution.
	ListScannedResources(ctx context.Context, in *ListScannedResourcesRequest, opts ...grpc.CallOption) (*ListScannedResourcesResponse, error)
}

WorkloadManagerClient is the client API for WorkloadManager 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.

func NewWorkloadManagerClient

func NewWorkloadManagerClient(cc grpc.ClientConnInterface) WorkloadManagerClient

WorkloadManagerServer

type WorkloadManagerServer interface {
	// Lists Evaluations in a given project and location.
	ListEvaluations(context.Context, *ListEvaluationsRequest) (*ListEvaluationsResponse, error)
	// Gets details of a single Evaluation.
	GetEvaluation(context.Context, *GetEvaluationRequest) (*Evaluation, error)
	// Creates a new Evaluation in a given project and location.
	CreateEvaluation(context.Context, *CreateEvaluationRequest) (*longrunningpb.Operation, error)
	// Updates the parameters of a single Evaluation.
	UpdateEvaluation(context.Context, *UpdateEvaluationRequest) (*longrunningpb.Operation, error)
	// Deletes a single Evaluation.
	DeleteEvaluation(context.Context, *DeleteEvaluationRequest) (*longrunningpb.Operation, error)
	// Lists Executions in a given project and location.
	ListExecutions(context.Context, *ListExecutionsRequest) (*ListExecutionsResponse, error)
	// Gets details of a single Execution.
	GetExecution(context.Context, *GetExecutionRequest) (*Execution, error)
	// Creates a new Execution in a given project and location.
	RunEvaluation(context.Context, *RunEvaluationRequest) (*longrunningpb.Operation, error)
	// Deletes a single Execution.
	DeleteExecution(context.Context, *DeleteExecutionRequest) (*longrunningpb.Operation, error)
	// Lists the result of a single evaluation.
	ListExecutionResults(context.Context, *ListExecutionResultsRequest) (*ListExecutionResultsResponse, error)
	// Lists rules in a given project.
	ListRules(context.Context, *ListRulesRequest) (*ListRulesResponse, error)
	// List all scanned resources for a single Execution.
	ListScannedResources(context.Context, *ListScannedResourcesRequest) (*ListScannedResourcesResponse, error)
}

WorkloadManagerServer is the server API for WorkloadManager service. All implementations should embed UnimplementedWorkloadManagerServer for forward compatibility