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.FileDescriptorWorkloadManager_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() stringfunc (*AgentCommand) GetParameters
func (x *AgentCommand) GetParameters() map[string]stringfunc (*AgentCommand) ProtoMessage
func (*AgentCommand) ProtoMessage()func (*AgentCommand) ProtoReflect
func (x *AgentCommand) ProtoReflect() protoreflect.Messagefunc (*AgentCommand) Reset
func (x *AgentCommand) Reset()func (*AgentCommand) String
func (x *AgentCommand) String() stringBigQueryDestination
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() boolfunc (*BigQueryDestination) GetDestinationDataset
func (x *BigQueryDestination) GetDestinationDataset() stringfunc (*BigQueryDestination) ProtoMessage
func (*BigQueryDestination) ProtoMessage()func (*BigQueryDestination) ProtoReflect
func (x *BigQueryDestination) ProtoReflect() protoreflect.Messagefunc (*BigQueryDestination) Reset
func (x *BigQueryDestination) Reset()func (*BigQueryDestination) String
func (x *BigQueryDestination) String() stringCommand
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
Deprecated: Use Command.ProtoReflect.Descriptor instead.
func (*Command) GetAgentCommand
func (x *Command) GetAgentCommand() *AgentCommandfunc (*Command) GetCommandType
func (x *Command) GetCommandType() isCommand_CommandTypefunc (*Command) GetShellCommand
func (x *Command) GetShellCommand() *ShellCommandfunc (*Command) ProtoMessage
func (*Command) ProtoMessage()func (*Command) ProtoReflect
func (x *Command) ProtoReflect() protoreflect.Messagefunc (*Command) Reset
func (x *Command) Reset()func (*Command) 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() *Evaluationfunc (*CreateEvaluationRequest) GetEvaluationId
func (x *CreateEvaluationRequest) GetEvaluationId() stringfunc (*CreateEvaluationRequest) GetParent
func (x *CreateEvaluationRequest) GetParent() stringfunc (*CreateEvaluationRequest) GetRequestId
func (x *CreateEvaluationRequest) GetRequestId() stringfunc (*CreateEvaluationRequest) ProtoMessage
func (*CreateEvaluationRequest) ProtoMessage()func (*CreateEvaluationRequest) ProtoReflect
func (x *CreateEvaluationRequest) ProtoReflect() protoreflect.Messagefunc (*CreateEvaluationRequest) Reset
func (x *CreateEvaluationRequest) Reset()func (*CreateEvaluationRequest) String
func (x *CreateEvaluationRequest) String() stringDeleteEvaluationRequest
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() boolfunc (*DeleteEvaluationRequest) GetName
func (x *DeleteEvaluationRequest) GetName() stringfunc (*DeleteEvaluationRequest) GetRequestId
func (x *DeleteEvaluationRequest) GetRequestId() stringfunc (*DeleteEvaluationRequest) ProtoMessage
func (*DeleteEvaluationRequest) ProtoMessage()func (*DeleteEvaluationRequest) ProtoReflect
func (x *DeleteEvaluationRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteEvaluationRequest) Reset
func (x *DeleteEvaluationRequest) Reset()func (*DeleteEvaluationRequest) String
func (x *DeleteEvaluationRequest) String() stringDeleteExecutionRequest
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() stringfunc (*DeleteExecutionRequest) GetRequestId
func (x *DeleteExecutionRequest) GetRequestId() stringfunc (*DeleteExecutionRequest) ProtoMessage
func (*DeleteExecutionRequest) ProtoMessage()func (*DeleteExecutionRequest) ProtoReflect
func (x *DeleteExecutionRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteExecutionRequest) Reset
func (x *DeleteExecutionRequest) Reset()func (*DeleteExecutionRequest) String
func (x *DeleteExecutionRequest) String() stringEvaluation
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() *BigQueryDestinationfunc (*Evaluation) GetCreateTime
func (x *Evaluation) GetCreateTime() *timestamppb.Timestampfunc (*Evaluation) GetCustomRulesBucket
func (x *Evaluation) GetCustomRulesBucket() stringfunc (*Evaluation) GetDescription
func (x *Evaluation) GetDescription() stringfunc (*Evaluation) GetEvaluationType
func (x *Evaluation) GetEvaluationType() Evaluation_EvaluationTypefunc (*Evaluation) GetKmsKey
func (x *Evaluation) GetKmsKey() stringfunc (*Evaluation) GetLabels
func (x *Evaluation) GetLabels() map[string]stringfunc (*Evaluation) GetName
func (x *Evaluation) GetName() stringfunc (*Evaluation) GetResourceFilter
func (x *Evaluation) GetResourceFilter() *ResourceFilterfunc (*Evaluation) GetResourceStatus
func (x *Evaluation) GetResourceStatus() *ResourceStatusfunc (*Evaluation) GetRuleNames
func (x *Evaluation) GetRuleNames() []stringfunc (*Evaluation) GetSchedule
func (x *Evaluation) GetSchedule() stringfunc (*Evaluation) GetUpdateTime
func (x *Evaluation) GetUpdateTime() *timestamppb.Timestampfunc (*Evaluation) ProtoMessage
func (*Evaluation) ProtoMessage()func (*Evaluation) ProtoReflect
func (x *Evaluation) ProtoReflect() protoreflect.Messagefunc (*Evaluation) Reset
func (x *Evaluation) Reset()func (*Evaluation) String
func (x *Evaluation) String() stringEvaluation_EvaluationType
type Evaluation_EvaluationType int32Possible 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) Descriptor() protoreflect.EnumDescriptorfunc (Evaluation_EvaluationType) Enum
func (x Evaluation_EvaluationType) Enum() *Evaluation_EvaluationTypefunc (Evaluation_EvaluationType) EnumDescriptor
func (Evaluation_EvaluationType) EnumDescriptor() ([]byte, []int)Deprecated: Use Evaluation_EvaluationType.Descriptor instead.
func (Evaluation_EvaluationType) Number
func (x Evaluation_EvaluationType) Number() protoreflect.EnumNumberfunc (Evaluation_EvaluationType) String
func (x Evaluation_EvaluationType) String() stringfunc (Evaluation_EvaluationType) Type
func (Evaluation_EvaluationType) Type() protoreflect.EnumTypeExecution
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
Deprecated: Use Execution.ProtoReflect.Descriptor instead.
func (*Execution) GetEndTime
func (x *Execution) GetEndTime() *timestamppb.Timestampfunc (*Execution) GetEngine
func (x *Execution) GetEngine() Execution_Enginefunc (*Execution) GetEvaluationId
func (*Execution) GetExternalDataSources
func (x *Execution) GetExternalDataSources() []*Execution_ExternalDataSourcesfunc (*Execution) GetInventoryTime
func (x *Execution) GetInventoryTime() *timestamppb.Timestampfunc (*Execution) GetLabels
func (*Execution) GetName
func (*Execution) GetNotices
func (x *Execution) GetNotices() []*Execution_Noticefunc (*Execution) GetResultSummary
func (x *Execution) GetResultSummary() *Execution_Summaryfunc (*Execution) GetRuleResults
func (x *Execution) GetRuleResults() []*RuleExecutionResultfunc (*Execution) GetRunType
func (x *Execution) GetRunType() Execution_Typefunc (*Execution) GetStartTime
func (x *Execution) GetStartTime() *timestamppb.Timestampfunc (*Execution) GetState
func (x *Execution) GetState() Execution_Statefunc (*Execution) ProtoMessage
func (*Execution) ProtoMessage()func (*Execution) ProtoReflect
func (x *Execution) ProtoReflect() protoreflect.Messagefunc (*Execution) Reset
func (x *Execution) Reset()func (*Execution) 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() []*Commandfunc (*ExecutionResult) GetDocumentationUrl
func (x *ExecutionResult) GetDocumentationUrl() stringfunc (*ExecutionResult) GetResource
func (x *ExecutionResult) GetResource() *Resourcefunc (*ExecutionResult) GetRule
func (x *ExecutionResult) GetRule() stringfunc (*ExecutionResult) GetSeverity
func (x *ExecutionResult) GetSeverity() stringfunc (*ExecutionResult) GetType
func (x *ExecutionResult) GetType() ExecutionResult_Typefunc (*ExecutionResult) GetViolationDetails
func (x *ExecutionResult) GetViolationDetails() *ViolationDetailsfunc (*ExecutionResult) GetViolationMessage
func (x *ExecutionResult) GetViolationMessage() stringfunc (*ExecutionResult) ProtoMessage
func (*ExecutionResult) ProtoMessage()func (*ExecutionResult) ProtoReflect
func (x *ExecutionResult) ProtoReflect() protoreflect.Messagefunc (*ExecutionResult) Reset
func (x *ExecutionResult) Reset()func (*ExecutionResult) String
func (x *ExecutionResult) String() stringExecutionResult_Type
type ExecutionResult_Type int32Enum 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) Descriptor() protoreflect.EnumDescriptorfunc (ExecutionResult_Type) Enum
func (x ExecutionResult_Type) Enum() *ExecutionResult_Typefunc (ExecutionResult_Type) EnumDescriptor
func (ExecutionResult_Type) EnumDescriptor() ([]byte, []int)Deprecated: Use ExecutionResult_Type.Descriptor instead.
func (ExecutionResult_Type) Number
func (x ExecutionResult_Type) Number() protoreflect.EnumNumberfunc (ExecutionResult_Type) String
func (x ExecutionResult_Type) String() stringfunc (ExecutionResult_Type) Type
func (ExecutionResult_Type) Type() protoreflect.EnumTypeExecution_Engine
type Execution_Engine int32The 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) Descriptor() protoreflect.EnumDescriptorfunc (Execution_Engine) Enum
func (x Execution_Engine) Enum() *Execution_Enginefunc (Execution_Engine) EnumDescriptor
func (Execution_Engine) EnumDescriptor() ([]byte, []int)Deprecated: Use Execution_Engine.Descriptor instead.
func (Execution_Engine) Number
func (x Execution_Engine) Number() protoreflect.EnumNumberfunc (Execution_Engine) String
func (x Execution_Engine) String() stringfunc (Execution_Engine) Type
func (Execution_Engine) Type() protoreflect.EnumTypeExecution_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() stringfunc (*Execution_ExternalDataSources) GetName
func (x *Execution_ExternalDataSources) GetName() stringfunc (*Execution_ExternalDataSources) GetType
func (x *Execution_ExternalDataSources) GetType() Execution_ExternalDataSources_Typefunc (*Execution_ExternalDataSources) GetUri
func (x *Execution_ExternalDataSources) GetUri() stringfunc (*Execution_ExternalDataSources) ProtoMessage
func (*Execution_ExternalDataSources) ProtoMessage()func (*Execution_ExternalDataSources) ProtoReflect
func (x *Execution_ExternalDataSources) ProtoReflect() protoreflect.Messagefunc (*Execution_ExternalDataSources) Reset
func (x *Execution_ExternalDataSources) Reset()func (*Execution_ExternalDataSources) String
func (x *Execution_ExternalDataSources) String() stringExecution_ExternalDataSources_Type
type Execution_ExternalDataSources_Type int32Possible 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) Descriptor() protoreflect.EnumDescriptorfunc (Execution_ExternalDataSources_Type) Enum
func (x Execution_ExternalDataSources_Type) Enum() *Execution_ExternalDataSources_Typefunc (Execution_ExternalDataSources_Type) EnumDescriptor
func (Execution_ExternalDataSources_Type) EnumDescriptor() ([]byte, []int)Deprecated: Use Execution_ExternalDataSources_Type.Descriptor instead.
func (Execution_ExternalDataSources_Type) Number
func (x Execution_ExternalDataSources_Type) Number() protoreflect.EnumNumberfunc (Execution_ExternalDataSources_Type) String
func (x Execution_ExternalDataSources_Type) String() stringfunc (Execution_ExternalDataSources_Type) Type
func (Execution_ExternalDataSources_Type) Type() protoreflect.EnumTypeExecution_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() stringfunc (*Execution_Notice) ProtoMessage
func (*Execution_Notice) ProtoMessage()func (*Execution_Notice) ProtoReflect
func (x *Execution_Notice) ProtoReflect() protoreflect.Messagefunc (*Execution_Notice) Reset
func (x *Execution_Notice) Reset()func (*Execution_Notice) String
func (x *Execution_Notice) String() stringExecution_State
type Execution_State int32The 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) Descriptor() protoreflect.EnumDescriptorfunc (Execution_State) Enum
func (x Execution_State) Enum() *Execution_Statefunc (Execution_State) EnumDescriptor
func (Execution_State) EnumDescriptor() ([]byte, []int)Deprecated: Use Execution_State.Descriptor instead.
func (Execution_State) Number
func (x Execution_State) Number() protoreflect.EnumNumberfunc (Execution_State) String
func (x Execution_State) String() stringfunc (Execution_State) Type
func (Execution_State) Type() protoreflect.EnumTypeExecution_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() int64func (*Execution_Summary) GetNewFailures
func (x *Execution_Summary) GetNewFailures() int64func (*Execution_Summary) GetNewFixes
func (x *Execution_Summary) GetNewFixes() int64func (*Execution_Summary) ProtoMessage
func (*Execution_Summary) ProtoMessage()func (*Execution_Summary) ProtoReflect
func (x *Execution_Summary) ProtoReflect() protoreflect.Messagefunc (*Execution_Summary) Reset
func (x *Execution_Summary) Reset()func (*Execution_Summary) String
func (x *Execution_Summary) String() stringExecution_Type
type Execution_Type int32The 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) Descriptor() protoreflect.EnumDescriptorfunc (Execution_Type) Enum
func (x Execution_Type) Enum() *Execution_Typefunc (Execution_Type) EnumDescriptor
func (Execution_Type) EnumDescriptor() ([]byte, []int)Deprecated: Use Execution_Type.Descriptor instead.
func (Execution_Type) Number
func (x Execution_Type) Number() protoreflect.EnumNumberfunc (Execution_Type) String
func (x Execution_Type) String() stringfunc (Execution_Type) Type
func (Execution_Type) Type() protoreflect.EnumTypeGceInstanceFilter
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() []stringfunc (*GceInstanceFilter) ProtoMessage
func (*GceInstanceFilter) ProtoMessage()func (*GceInstanceFilter) ProtoReflect
func (x *GceInstanceFilter) ProtoReflect() protoreflect.Messagefunc (*GceInstanceFilter) Reset
func (x *GceInstanceFilter) Reset()func (*GceInstanceFilter) String
func (x *GceInstanceFilter) String() stringGetEvaluationRequest
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() stringfunc (*GetEvaluationRequest) ProtoMessage
func (*GetEvaluationRequest) ProtoMessage()func (*GetEvaluationRequest) ProtoReflect
func (x *GetEvaluationRequest) ProtoReflect() protoreflect.Messagefunc (*GetEvaluationRequest) Reset
func (x *GetEvaluationRequest) Reset()func (*GetEvaluationRequest) String
func (x *GetEvaluationRequest) String() stringGetExecutionRequest
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() stringfunc (*GetExecutionRequest) ProtoMessage
func (*GetExecutionRequest) ProtoMessage()func (*GetExecutionRequest) ProtoReflect
func (x *GetExecutionRequest) ProtoReflect() protoreflect.Messagefunc (*GetExecutionRequest) Reset
func (x *GetExecutionRequest) Reset()func (*GetExecutionRequest) String
func (x *GetExecutionRequest) String() stringListEvaluationsRequest
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() stringfunc (*ListEvaluationsRequest) GetOrderBy
func (x *ListEvaluationsRequest) GetOrderBy() stringfunc (*ListEvaluationsRequest) GetPageSize
func (x *ListEvaluationsRequest) GetPageSize() int32func (*ListEvaluationsRequest) GetPageToken
func (x *ListEvaluationsRequest) GetPageToken() stringfunc (*ListEvaluationsRequest) GetParent
func (x *ListEvaluationsRequest) GetParent() stringfunc (*ListEvaluationsRequest) ProtoMessage
func (*ListEvaluationsRequest) ProtoMessage()func (*ListEvaluationsRequest) ProtoReflect
func (x *ListEvaluationsRequest) ProtoReflect() protoreflect.Messagefunc (*ListEvaluationsRequest) Reset
func (x *ListEvaluationsRequest) Reset()func (*ListEvaluationsRequest) String
func (x *ListEvaluationsRequest) String() stringListEvaluationsResponse
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() []*Evaluationfunc (*ListEvaluationsResponse) GetNextPageToken
func (x *ListEvaluationsResponse) GetNextPageToken() stringfunc (*ListEvaluationsResponse) GetUnreachable
func (x *ListEvaluationsResponse) GetUnreachable() []stringfunc (*ListEvaluationsResponse) ProtoMessage
func (*ListEvaluationsResponse) ProtoMessage()func (*ListEvaluationsResponse) ProtoReflect
func (x *ListEvaluationsResponse) ProtoReflect() protoreflect.Messagefunc (*ListEvaluationsResponse) Reset
func (x *ListEvaluationsResponse) Reset()func (*ListEvaluationsResponse) String
func (x *ListEvaluationsResponse) String() stringListExecutionResultsRequest
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() stringfunc (*ListExecutionResultsRequest) GetPageSize
func (x *ListExecutionResultsRequest) GetPageSize() int32func (*ListExecutionResultsRequest) GetPageToken
func (x *ListExecutionResultsRequest) GetPageToken() stringfunc (*ListExecutionResultsRequest) GetParent
func (x *ListExecutionResultsRequest) GetParent() stringfunc (*ListExecutionResultsRequest) ProtoMessage
func (*ListExecutionResultsRequest) ProtoMessage()func (*ListExecutionResultsRequest) ProtoReflect
func (x *ListExecutionResultsRequest) ProtoReflect() protoreflect.Messagefunc (*ListExecutionResultsRequest) Reset
func (x *ListExecutionResultsRequest) Reset()func (*ListExecutionResultsRequest) String
func (x *ListExecutionResultsRequest) String() stringListExecutionResultsResponse
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() []*ExecutionResultfunc (*ListExecutionResultsResponse) GetNextPageToken
func (x *ListExecutionResultsResponse) GetNextPageToken() stringfunc (*ListExecutionResultsResponse) ProtoMessage
func (*ListExecutionResultsResponse) ProtoMessage()func (*ListExecutionResultsResponse) ProtoReflect
func (x *ListExecutionResultsResponse) ProtoReflect() protoreflect.Messagefunc (*ListExecutionResultsResponse) Reset
func (x *ListExecutionResultsResponse) Reset()func (*ListExecutionResultsResponse) String
func (x *ListExecutionResultsResponse) String() stringListExecutionsRequest
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() stringfunc (*ListExecutionsRequest) GetOrderBy
func (x *ListExecutionsRequest) GetOrderBy() stringfunc (*ListExecutionsRequest) GetPageSize
func (x *ListExecutionsRequest) GetPageSize() int32func (*ListExecutionsRequest) GetPageToken
func (x *ListExecutionsRequest) GetPageToken() stringfunc (*ListExecutionsRequest) GetParent
func (x *ListExecutionsRequest) GetParent() stringfunc (*ListExecutionsRequest) ProtoMessage
func (*ListExecutionsRequest) ProtoMessage()func (*ListExecutionsRequest) ProtoReflect
func (x *ListExecutionsRequest) ProtoReflect() protoreflect.Messagefunc (*ListExecutionsRequest) Reset
func (x *ListExecutionsRequest) Reset()func (*ListExecutionsRequest) String
func (x *ListExecutionsRequest) String() stringListExecutionsResponse
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() []*Executionfunc (*ListExecutionsResponse) GetNextPageToken
func (x *ListExecutionsResponse) GetNextPageToken() stringfunc (*ListExecutionsResponse) GetUnreachable
func (x *ListExecutionsResponse) GetUnreachable() []stringfunc (*ListExecutionsResponse) ProtoMessage
func (*ListExecutionsResponse) ProtoMessage()func (*ListExecutionsResponse) ProtoReflect
func (x *ListExecutionsResponse) ProtoReflect() protoreflect.Messagefunc (*ListExecutionsResponse) Reset
func (x *ListExecutionsResponse) Reset()func (*ListExecutionsResponse) String
func (x *ListExecutionsResponse) String() stringListRulesRequest
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() stringfunc (*ListRulesRequest) GetEvaluationType
func (x *ListRulesRequest) GetEvaluationType() Evaluation_EvaluationTypefunc (*ListRulesRequest) GetFilter
func (x *ListRulesRequest) GetFilter() stringfunc (*ListRulesRequest) GetPageSize
func (x *ListRulesRequest) GetPageSize() int32func (*ListRulesRequest) GetPageToken
func (x *ListRulesRequest) GetPageToken() stringfunc (*ListRulesRequest) GetParent
func (x *ListRulesRequest) GetParent() stringfunc (*ListRulesRequest) ProtoMessage
func (*ListRulesRequest) ProtoMessage()func (*ListRulesRequest) ProtoReflect
func (x *ListRulesRequest) ProtoReflect() protoreflect.Messagefunc (*ListRulesRequest) Reset
func (x *ListRulesRequest) Reset()func (*ListRulesRequest) String
func (x *ListRulesRequest) String() stringListRulesResponse
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() []*Rulefunc (*ListRulesResponse) ProtoMessage
func (*ListRulesResponse) ProtoMessage()func (*ListRulesResponse) ProtoReflect
func (x *ListRulesResponse) ProtoReflect() protoreflect.Messagefunc (*ListRulesResponse) Reset
func (x *ListRulesResponse) Reset()func (*ListRulesResponse) String
func (x *ListRulesResponse) String() stringListScannedResourcesRequest
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() stringfunc (*ListScannedResourcesRequest) GetOrderBy
func (x *ListScannedResourcesRequest) GetOrderBy() stringfunc (*ListScannedResourcesRequest) GetPageSize
func (x *ListScannedResourcesRequest) GetPageSize() int32func (*ListScannedResourcesRequest) GetPageToken
func (x *ListScannedResourcesRequest) GetPageToken() stringfunc (*ListScannedResourcesRequest) GetParent
func (x *ListScannedResourcesRequest) GetParent() stringfunc (*ListScannedResourcesRequest) GetRule
func (x *ListScannedResourcesRequest) GetRule() stringfunc (*ListScannedResourcesRequest) ProtoMessage
func (*ListScannedResourcesRequest) ProtoMessage()func (*ListScannedResourcesRequest) ProtoReflect
func (x *ListScannedResourcesRequest) ProtoReflect() protoreflect.Messagefunc (*ListScannedResourcesRequest) Reset
func (x *ListScannedResourcesRequest) Reset()func (*ListScannedResourcesRequest) String
func (x *ListScannedResourcesRequest) String() stringListScannedResourcesResponse
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() stringfunc (*ListScannedResourcesResponse) GetScannedResources
func (x *ListScannedResourcesResponse) GetScannedResources() []*ScannedResourcefunc (*ListScannedResourcesResponse) ProtoMessage
func (*ListScannedResourcesResponse) ProtoMessage()func (*ListScannedResourcesResponse) ProtoReflect
func (x *ListScannedResourcesResponse) ProtoReflect() protoreflect.Messagefunc (*ListScannedResourcesResponse) Reset
func (x *ListScannedResourcesResponse) Reset()func (*ListScannedResourcesResponse) String
func (x *ListScannedResourcesResponse) String() stringOperationMetadata
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() stringfunc (*OperationMetadata) GetCreateTime
func (x *OperationMetadata) GetCreateTime() *timestamppb.Timestampfunc (*OperationMetadata) GetEndTime
func (x *OperationMetadata) GetEndTime() *timestamppb.Timestampfunc (*OperationMetadata) GetRequestedCancellation
func (x *OperationMetadata) GetRequestedCancellation() boolfunc (*OperationMetadata) GetStatusMessage
func (x *OperationMetadata) GetStatusMessage() stringfunc (*OperationMetadata) GetTarget
func (x *OperationMetadata) GetTarget() stringfunc (*OperationMetadata) GetVerb
func (x *OperationMetadata) GetVerb() stringfunc (*OperationMetadata) ProtoMessage
func (*OperationMetadata) ProtoMessage()func (*OperationMetadata) ProtoReflect
func (x *OperationMetadata) ProtoReflect() protoreflect.Messagefunc (*OperationMetadata) Reset
func (x *OperationMetadata) Reset()func (*OperationMetadata) String
func (x *OperationMetadata) String() stringResource
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
Deprecated: Use Resource.ProtoReflect.Descriptor instead.
func (*Resource) GetName
func (*Resource) GetServiceAccount
func (*Resource) GetType
func (*Resource) ProtoMessage
func (*Resource) ProtoMessage()func (*Resource) ProtoReflect
func (x *Resource) ProtoReflect() protoreflect.Messagefunc (*Resource) Reset
func (x *Resource) Reset()func (*Resource) 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() *GceInstanceFilterfunc (*ResourceFilter) GetInclusionLabels
func (x *ResourceFilter) GetInclusionLabels() map[string]stringfunc (*ResourceFilter) GetResourceIdPatterns
func (x *ResourceFilter) GetResourceIdPatterns() []stringfunc (*ResourceFilter) GetScopes
func (x *ResourceFilter) GetScopes() []stringfunc (*ResourceFilter) ProtoMessage
func (*ResourceFilter) ProtoMessage()func (*ResourceFilter) ProtoReflect
func (x *ResourceFilter) ProtoReflect() protoreflect.Messagefunc (*ResourceFilter) Reset
func (x *ResourceFilter) Reset()func (*ResourceFilter) String
func (x *ResourceFilter) String() stringResourceStatus
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_Statefunc (*ResourceStatus) ProtoMessage
func (*ResourceStatus) ProtoMessage()func (*ResourceStatus) ProtoReflect
func (x *ResourceStatus) ProtoReflect() protoreflect.Messagefunc (*ResourceStatus) Reset
func (x *ResourceStatus) Reset()func (*ResourceStatus) String
func (x *ResourceStatus) String() stringResourceStatus_State
type ResourceStatus_State int32Possible 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) Descriptor() protoreflect.EnumDescriptorfunc (ResourceStatus_State) Enum
func (x ResourceStatus_State) Enum() *ResourceStatus_Statefunc (ResourceStatus_State) EnumDescriptor
func (ResourceStatus_State) EnumDescriptor() ([]byte, []int)Deprecated: Use ResourceStatus_State.Descriptor instead.
func (ResourceStatus_State) Number
func (x ResourceStatus_State) Number() protoreflect.EnumNumberfunc (ResourceStatus_State) String
func (x ResourceStatus_State) String() stringfunc (ResourceStatus_State) Type
func (ResourceStatus_State) Type() protoreflect.EnumTypeRule
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
Deprecated: Use Rule.ProtoReflect.Descriptor instead.
func (*Rule) GetAssetType
func (*Rule) GetDescription
func (*Rule) GetDisplayName
func (*Rule) GetErrorMessage
func (*Rule) GetName
func (*Rule) GetPrimaryCategory
func (*Rule) GetRemediation
func (*Rule) GetRevisionId
func (*Rule) GetRuleType
func (x *Rule) GetRuleType() Rule_RuleTypefunc (*Rule) GetSecondaryCategory
func (*Rule) GetSeverity
func (*Rule) GetTags
func (*Rule) GetUri
func (*Rule) ProtoMessage
func (*Rule) ProtoMessage()func (*Rule) ProtoReflect
func (x *Rule) ProtoReflect() protoreflect.Messagefunc (*Rule) Reset
func (x *Rule) Reset()func (*Rule) 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() stringfunc (*RuleExecutionResult) GetResultCount
func (x *RuleExecutionResult) GetResultCount() int64func (*RuleExecutionResult) GetRule
func (x *RuleExecutionResult) GetRule() stringfunc (*RuleExecutionResult) GetScannedResourceCount
func (x *RuleExecutionResult) GetScannedResourceCount() int64func (*RuleExecutionResult) GetState
func (x *RuleExecutionResult) GetState() RuleExecutionResult_Statefunc (*RuleExecutionResult) ProtoMessage
func (*RuleExecutionResult) ProtoMessage()func (*RuleExecutionResult) ProtoReflect
func (x *RuleExecutionResult) ProtoReflect() protoreflect.Messagefunc (*RuleExecutionResult) Reset
func (x *RuleExecutionResult) Reset()func (*RuleExecutionResult) String
func (x *RuleExecutionResult) String() stringRuleExecutionResult_State
type RuleExecutionResult_State int32Possible 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) Descriptor() protoreflect.EnumDescriptorfunc (RuleExecutionResult_State) Enum
func (x RuleExecutionResult_State) Enum() *RuleExecutionResult_Statefunc (RuleExecutionResult_State) EnumDescriptor
func (RuleExecutionResult_State) EnumDescriptor() ([]byte, []int)Deprecated: Use RuleExecutionResult_State.Descriptor instead.
func (RuleExecutionResult_State) Number
func (x RuleExecutionResult_State) Number() protoreflect.EnumNumberfunc (RuleExecutionResult_State) String
func (x RuleExecutionResult_State) String() stringfunc (RuleExecutionResult_State) Type
func (RuleExecutionResult_State) Type() protoreflect.EnumTypeRuleOutput
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]stringfunc (*RuleOutput) GetMessage
func (x *RuleOutput) GetMessage() stringfunc (*RuleOutput) ProtoMessage
func (*RuleOutput) ProtoMessage()func (*RuleOutput) ProtoReflect
func (x *RuleOutput) ProtoReflect() protoreflect.Messagefunc (*RuleOutput) Reset
func (x *RuleOutput) Reset()func (*RuleOutput) String
func (x *RuleOutput) String() stringRule_RuleType
type Rule_RuleType int32The 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) Descriptor() protoreflect.EnumDescriptorfunc (Rule_RuleType) Enum
func (x Rule_RuleType) Enum() *Rule_RuleTypefunc (Rule_RuleType) EnumDescriptor
func (Rule_RuleType) EnumDescriptor() ([]byte, []int)Deprecated: Use Rule_RuleType.Descriptor instead.
func (Rule_RuleType) Number
func (x Rule_RuleType) Number() protoreflect.EnumNumberfunc (Rule_RuleType) String
func (x Rule_RuleType) String() stringfunc (Rule_RuleType) Type
func (Rule_RuleType) Type() protoreflect.EnumTypeRunEvaluationRequest
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() *Executionfunc (*RunEvaluationRequest) GetExecutionId
func (x *RunEvaluationRequest) GetExecutionId() stringfunc (*RunEvaluationRequest) GetName
func (x *RunEvaluationRequest) GetName() stringfunc (*RunEvaluationRequest) GetRequestId
func (x *RunEvaluationRequest) GetRequestId() stringfunc (*RunEvaluationRequest) ProtoMessage
func (*RunEvaluationRequest) ProtoMessage()func (*RunEvaluationRequest) ProtoReflect
func (x *RunEvaluationRequest) ProtoReflect() protoreflect.Messagefunc (*RunEvaluationRequest) Reset
func (x *RunEvaluationRequest) Reset()func (*RunEvaluationRequest) String
func (x *RunEvaluationRequest) String() stringScannedResource
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() stringfunc (*ScannedResource) GetType
func (x *ScannedResource) GetType() stringfunc (*ScannedResource) ProtoMessage
func (*ScannedResource) ProtoMessage()func (*ScannedResource) ProtoReflect
func (x *ScannedResource) ProtoReflect() protoreflect.Messagefunc (*ScannedResource) Reset
func (x *ScannedResource) Reset()func (*ScannedResource) String
func (x *ScannedResource) String() stringShellCommand
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() stringfunc (*ShellCommand) GetCommand
func (x *ShellCommand) GetCommand() stringfunc (*ShellCommand) GetTimeoutSeconds
func (x *ShellCommand) GetTimeoutSeconds() int32func (*ShellCommand) ProtoMessage
func (*ShellCommand) ProtoMessage()func (*ShellCommand) ProtoReflect
func (x *ShellCommand) ProtoReflect() protoreflect.Messagefunc (*ShellCommand) Reset
func (x *ShellCommand) Reset()func (*ShellCommand) String
func (x *ShellCommand) String() stringUnimplementedWorkloadManagerServer
type UnimplementedWorkloadManagerServer struct {
}UnimplementedWorkloadManagerServer should be embedded to have forward compatible implementations.
func (UnimplementedWorkloadManagerServer) CreateEvaluation
func (UnimplementedWorkloadManagerServer) CreateEvaluation(context.Context, *CreateEvaluationRequest) (*longrunningpb.Operation, error)func (UnimplementedWorkloadManagerServer) DeleteEvaluation
func (UnimplementedWorkloadManagerServer) DeleteEvaluation(context.Context, *DeleteEvaluationRequest) (*longrunningpb.Operation, error)func (UnimplementedWorkloadManagerServer) DeleteExecution
func (UnimplementedWorkloadManagerServer) DeleteExecution(context.Context, *DeleteExecutionRequest) (*longrunningpb.Operation, error)func (UnimplementedWorkloadManagerServer) GetEvaluation
func (UnimplementedWorkloadManagerServer) GetEvaluation(context.Context, *GetEvaluationRequest) (*Evaluation, error)func (UnimplementedWorkloadManagerServer) GetExecution
func (UnimplementedWorkloadManagerServer) GetExecution(context.Context, *GetExecutionRequest) (*Execution, error)func (UnimplementedWorkloadManagerServer) ListEvaluations
func (UnimplementedWorkloadManagerServer) ListEvaluations(context.Context, *ListEvaluationsRequest) (*ListEvaluationsResponse, error)func (UnimplementedWorkloadManagerServer) ListExecutionResults
func (UnimplementedWorkloadManagerServer) ListExecutionResults(context.Context, *ListExecutionResultsRequest) (*ListExecutionResultsResponse, error)func (UnimplementedWorkloadManagerServer) ListExecutions
func (UnimplementedWorkloadManagerServer) ListExecutions(context.Context, *ListExecutionsRequest) (*ListExecutionsResponse, error)func (UnimplementedWorkloadManagerServer) ListRules
func (UnimplementedWorkloadManagerServer) ListRules(context.Context, *ListRulesRequest) (*ListRulesResponse, error)func (UnimplementedWorkloadManagerServer) ListScannedResources
func (UnimplementedWorkloadManagerServer) ListScannedResources(context.Context, *ListScannedResourcesRequest) (*ListScannedResourcesResponse, error)func (UnimplementedWorkloadManagerServer) RunEvaluation
func (UnimplementedWorkloadManagerServer) RunEvaluation(context.Context, *RunEvaluationRequest) (*longrunningpb.Operation, error)func (UnimplementedWorkloadManagerServer) UpdateEvaluation
func (UnimplementedWorkloadManagerServer) UpdateEvaluation(context.Context, *UpdateEvaluationRequest) (*longrunningpb.Operation, error)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() *Evaluationfunc (*UpdateEvaluationRequest) GetRequestId
func (x *UpdateEvaluationRequest) GetRequestId() stringfunc (*UpdateEvaluationRequest) GetUpdateMask
func (x *UpdateEvaluationRequest) GetUpdateMask() *fieldmaskpb.FieldMaskfunc (*UpdateEvaluationRequest) ProtoMessage
func (*UpdateEvaluationRequest) ProtoMessage()func (*UpdateEvaluationRequest) ProtoReflect
func (x *UpdateEvaluationRequest) ProtoReflect() protoreflect.Messagefunc (*UpdateEvaluationRequest) Reset
func (x *UpdateEvaluationRequest) Reset()func (*UpdateEvaluationRequest) String
func (x *UpdateEvaluationRequest) String() stringViolationDetails
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() stringfunc (*ViolationDetails) GetObserved
func (x *ViolationDetails) GetObserved() map[string]stringfunc (*ViolationDetails) GetRuleOutput
func (x *ViolationDetails) GetRuleOutput() []*RuleOutputfunc (*ViolationDetails) GetServiceAccount
func (x *ViolationDetails) GetServiceAccount() stringfunc (*ViolationDetails) ProtoMessage
func (*ViolationDetails) ProtoMessage()func (*ViolationDetails) ProtoReflect
func (x *ViolationDetails) ProtoReflect() protoreflect.Messagefunc (*ViolationDetails) Reset
func (x *ViolationDetails) Reset()func (*ViolationDetails) String
func (x *ViolationDetails) String() stringWorkloadManagerClient
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) WorkloadManagerClientWorkloadManagerServer
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