package assuredworkloadspb
import "cloud.google.com/go/assuredworkloads/apiv1beta1/assuredworkloadspb"
Index ¶
- Variables
- func RegisterAssuredWorkloadsServiceServer(s *grpc.Server, srv AssuredWorkloadsServiceServer)
- type AnalyzeWorkloadMoveRequest
- func (*AnalyzeWorkloadMoveRequest) Descriptor() ([]byte, []int)
- func (x *AnalyzeWorkloadMoveRequest) GetProject() string
- func (m *AnalyzeWorkloadMoveRequest) GetProjectOrWorkloadResource() isAnalyzeWorkloadMoveRequest_ProjectOrWorkloadResource
- func (x *AnalyzeWorkloadMoveRequest) GetSource() string
- func (x *AnalyzeWorkloadMoveRequest) GetTarget() string
- func (*AnalyzeWorkloadMoveRequest) ProtoMessage()
- func (x *AnalyzeWorkloadMoveRequest) ProtoReflect() protoreflect.Message
- func (x *AnalyzeWorkloadMoveRequest) Reset()
- func (x *AnalyzeWorkloadMoveRequest) String() string
- type AnalyzeWorkloadMoveRequest_Project
- type AnalyzeWorkloadMoveRequest_Source
- type AnalyzeWorkloadMoveResponse
- func (*AnalyzeWorkloadMoveResponse) Descriptor() ([]byte, []int)
- func (x *AnalyzeWorkloadMoveResponse) GetBlockers() []string
- func (*AnalyzeWorkloadMoveResponse) ProtoMessage()
- func (x *AnalyzeWorkloadMoveResponse) ProtoReflect() protoreflect.Message
- func (x *AnalyzeWorkloadMoveResponse) Reset()
- func (x *AnalyzeWorkloadMoveResponse) String() string
- type AssuredWorkloadsServiceClient
- type AssuredWorkloadsServiceServer
- type CreateWorkloadOperationMetadata
- func (*CreateWorkloadOperationMetadata) Descriptor() ([]byte, []int)
- func (x *CreateWorkloadOperationMetadata) GetComplianceRegime() Workload_ComplianceRegime
- func (x *CreateWorkloadOperationMetadata) GetCreateTime() *timestamppb.Timestamp
- func (x *CreateWorkloadOperationMetadata) GetDisplayName() string
- func (x *CreateWorkloadOperationMetadata) GetParent() string
- func (x *CreateWorkloadOperationMetadata) GetResourceSettings() []*Workload_ResourceSettings
- func (*CreateWorkloadOperationMetadata) ProtoMessage()
- func (x *CreateWorkloadOperationMetadata) ProtoReflect() protoreflect.Message
- func (x *CreateWorkloadOperationMetadata) Reset()
- func (x *CreateWorkloadOperationMetadata) String() string
- type CreateWorkloadRequest
- func (*CreateWorkloadRequest) Descriptor() ([]byte, []int)
- func (x *CreateWorkloadRequest) GetExternalId() string
- func (x *CreateWorkloadRequest) GetParent() string
- func (x *CreateWorkloadRequest) GetWorkload() *Workload
- func (*CreateWorkloadRequest) ProtoMessage()
- func (x *CreateWorkloadRequest) ProtoReflect() protoreflect.Message
- func (x *CreateWorkloadRequest) Reset()
- func (x *CreateWorkloadRequest) String() string
- type DeleteWorkloadRequest
- func (*DeleteWorkloadRequest) Descriptor() ([]byte, []int)
- func (x *DeleteWorkloadRequest) GetEtag() string
- func (x *DeleteWorkloadRequest) GetName() string
- func (*DeleteWorkloadRequest) ProtoMessage()
- func (x *DeleteWorkloadRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteWorkloadRequest) Reset()
- func (x *DeleteWorkloadRequest) String() string
- type GetWorkloadRequest
- func (*GetWorkloadRequest) Descriptor() ([]byte, []int)
- func (x *GetWorkloadRequest) GetName() string
- func (*GetWorkloadRequest) ProtoMessage()
- func (x *GetWorkloadRequest) ProtoReflect() protoreflect.Message
- func (x *GetWorkloadRequest) Reset()
- func (x *GetWorkloadRequest) String() string
- type ListWorkloadsRequest
- func (*ListWorkloadsRequest) Descriptor() ([]byte, []int)
- func (x *ListWorkloadsRequest) GetFilter() string
- func (x *ListWorkloadsRequest) GetPageSize() int32
- func (x *ListWorkloadsRequest) GetPageToken() string
- func (x *ListWorkloadsRequest) GetParent() string
- func (*ListWorkloadsRequest) ProtoMessage()
- func (x *ListWorkloadsRequest) ProtoReflect() protoreflect.Message
- func (x *ListWorkloadsRequest) Reset()
- func (x *ListWorkloadsRequest) String() string
- type ListWorkloadsResponse
- func (*ListWorkloadsResponse) Descriptor() ([]byte, []int)
- func (x *ListWorkloadsResponse) GetNextPageToken() string
- func (x *ListWorkloadsResponse) GetWorkloads() []*Workload
- func (*ListWorkloadsResponse) ProtoMessage()
- func (x *ListWorkloadsResponse) ProtoReflect() protoreflect.Message
- func (x *ListWorkloadsResponse) Reset()
- func (x *ListWorkloadsResponse) String() string
- type RestrictAllowedResourcesRequest
- func (*RestrictAllowedResourcesRequest) Descriptor() ([]byte, []int)
- func (x *RestrictAllowedResourcesRequest) GetName() string
- func (x *RestrictAllowedResourcesRequest) GetRestrictionType() RestrictAllowedResourcesRequest_RestrictionType
- func (*RestrictAllowedResourcesRequest) ProtoMessage()
- func (x *RestrictAllowedResourcesRequest) ProtoReflect() protoreflect.Message
- func (x *RestrictAllowedResourcesRequest) Reset()
- func (x *RestrictAllowedResourcesRequest) String() string
- type RestrictAllowedResourcesRequest_RestrictionType
- func (RestrictAllowedResourcesRequest_RestrictionType) Descriptor() protoreflect.EnumDescriptor
- func (x RestrictAllowedResourcesRequest_RestrictionType) Enum() *RestrictAllowedResourcesRequest_RestrictionType
- func (RestrictAllowedResourcesRequest_RestrictionType) EnumDescriptor() ([]byte, []int)
- func (x RestrictAllowedResourcesRequest_RestrictionType) Number() protoreflect.EnumNumber
- func (x RestrictAllowedResourcesRequest_RestrictionType) String() string
- func (RestrictAllowedResourcesRequest_RestrictionType) Type() protoreflect.EnumType
- type RestrictAllowedResourcesResponse
- func (*RestrictAllowedResourcesResponse) Descriptor() ([]byte, []int)
- func (*RestrictAllowedResourcesResponse) ProtoMessage()
- func (x *RestrictAllowedResourcesResponse) ProtoReflect() protoreflect.Message
- func (x *RestrictAllowedResourcesResponse) Reset()
- func (x *RestrictAllowedResourcesResponse) String() string
- type UnimplementedAssuredWorkloadsServiceServer
- func (*UnimplementedAssuredWorkloadsServiceServer) AnalyzeWorkloadMove(context.Context, *AnalyzeWorkloadMoveRequest) (*AnalyzeWorkloadMoveResponse, error)
- func (*UnimplementedAssuredWorkloadsServiceServer) CreateWorkload(context.Context, *CreateWorkloadRequest) (*longrunningpb.Operation, error)
- func (*UnimplementedAssuredWorkloadsServiceServer) DeleteWorkload(context.Context, *DeleteWorkloadRequest) (*emptypb.Empty, error)
- func (*UnimplementedAssuredWorkloadsServiceServer) GetWorkload(context.Context, *GetWorkloadRequest) (*Workload, error)
- func (*UnimplementedAssuredWorkloadsServiceServer) ListWorkloads(context.Context, *ListWorkloadsRequest) (*ListWorkloadsResponse, error)
- func (*UnimplementedAssuredWorkloadsServiceServer) RestrictAllowedResources(context.Context, *RestrictAllowedResourcesRequest) (*RestrictAllowedResourcesResponse, error)
- func (*UnimplementedAssuredWorkloadsServiceServer) UpdateWorkload(context.Context, *UpdateWorkloadRequest) (*Workload, error)
- type UpdateWorkloadRequest
- func (*UpdateWorkloadRequest) Descriptor() ([]byte, []int)
- func (x *UpdateWorkloadRequest) GetUpdateMask() *fieldmaskpb.FieldMask
- func (x *UpdateWorkloadRequest) GetWorkload() *Workload
- func (*UpdateWorkloadRequest) ProtoMessage()
- func (x *UpdateWorkloadRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateWorkloadRequest) Reset()
- func (x *UpdateWorkloadRequest) String() string
- type Workload
- func (*Workload) Descriptor() ([]byte, []int)
- func (x *Workload) GetBillingAccount() string
- func (x *Workload) GetCjisSettings() *Workload_CJISSettings
- func (x *Workload) GetComplianceRegime() Workload_ComplianceRegime
- func (m *Workload) GetComplianceRegimeSettings() isWorkload_ComplianceRegimeSettings
- func (x *Workload) GetCompliantButDisallowedServices() []string
- func (x *Workload) GetCreateTime() *timestamppb.Timestamp
- func (x *Workload) GetDisplayName() string
- func (x *Workload) GetEnableSovereignControls() bool
- func (x *Workload) GetEtag() string
- func (x *Workload) GetFedrampHighSettings() *Workload_FedrampHighSettings
- func (x *Workload) GetFedrampModerateSettings() *Workload_FedrampModerateSettings
- func (x *Workload) GetIl4Settings() *Workload_IL4Settings
- func (x *Workload) GetKajEnrollmentState() Workload_KajEnrollmentState
- func (x *Workload) GetKmsSettings() *Workload_KMSSettings
- func (x *Workload) GetLabels() map[string]string
- func (x *Workload) GetName() string
- func (x *Workload) GetProvisionedResourcesParent() string
- func (x *Workload) GetResourceSettings() []*Workload_ResourceSettings
- func (x *Workload) GetResources() []*Workload_ResourceInfo
- func (x *Workload) GetSaaEnrollmentResponse() *Workload_SaaEnrollmentResponse
- func (*Workload) ProtoMessage()
- func (x *Workload) ProtoReflect() protoreflect.Message
- func (x *Workload) Reset()
- func (x *Workload) String() string
- type Workload_CJISSettings
- func (*Workload_CJISSettings) Descriptor() ([]byte, []int)
- func (x *Workload_CJISSettings) GetKmsSettings() *Workload_KMSSettings
- func (*Workload_CJISSettings) ProtoMessage()
- func (x *Workload_CJISSettings) ProtoReflect() protoreflect.Message
- func (x *Workload_CJISSettings) Reset()
- func (x *Workload_CJISSettings) String() string
- type Workload_CjisSettings
- type Workload_ComplianceRegime
- func (Workload_ComplianceRegime) Descriptor() protoreflect.EnumDescriptor
- func (x Workload_ComplianceRegime) Enum() *Workload_ComplianceRegime
- func (Workload_ComplianceRegime) EnumDescriptor() ([]byte, []int)
- func (x Workload_ComplianceRegime) Number() protoreflect.EnumNumber
- func (x Workload_ComplianceRegime) String() string
- func (Workload_ComplianceRegime) Type() protoreflect.EnumType
- type Workload_FedrampHighSettings
- func (*Workload_FedrampHighSettings) Descriptor() ([]byte, []int)
- func (x *Workload_FedrampHighSettings) GetKmsSettings() *Workload_KMSSettings
- func (*Workload_FedrampHighSettings) ProtoMessage()
- func (x *Workload_FedrampHighSettings) ProtoReflect() protoreflect.Message
- func (x *Workload_FedrampHighSettings) Reset()
- func (x *Workload_FedrampHighSettings) String() string
- type Workload_FedrampHighSettings_
- type Workload_FedrampModerateSettings
- func (*Workload_FedrampModerateSettings) Descriptor() ([]byte, []int)
- func (x *Workload_FedrampModerateSettings) GetKmsSettings() *Workload_KMSSettings
- func (*Workload_FedrampModerateSettings) ProtoMessage()
- func (x *Workload_FedrampModerateSettings) ProtoReflect() protoreflect.Message
- func (x *Workload_FedrampModerateSettings) Reset()
- func (x *Workload_FedrampModerateSettings) String() string
- type Workload_FedrampModerateSettings_
- type Workload_IL4Settings
- func (*Workload_IL4Settings) Descriptor() ([]byte, []int)
- func (x *Workload_IL4Settings) GetKmsSettings() *Workload_KMSSettings
- func (*Workload_IL4Settings) ProtoMessage()
- func (x *Workload_IL4Settings) ProtoReflect() protoreflect.Message
- func (x *Workload_IL4Settings) Reset()
- func (x *Workload_IL4Settings) String() string
- type Workload_Il4Settings
- type Workload_KMSSettings
- func (*Workload_KMSSettings) Descriptor() ([]byte, []int)
- func (x *Workload_KMSSettings) GetNextRotationTime() *timestamppb.Timestamp
- func (x *Workload_KMSSettings) GetRotationPeriod() *durationpb.Duration
- func (*Workload_KMSSettings) ProtoMessage()
- func (x *Workload_KMSSettings) ProtoReflect() protoreflect.Message
- func (x *Workload_KMSSettings) Reset()
- func (x *Workload_KMSSettings) String() string
- type Workload_KajEnrollmentState
- func (Workload_KajEnrollmentState) Descriptor() protoreflect.EnumDescriptor
- func (x Workload_KajEnrollmentState) Enum() *Workload_KajEnrollmentState
- func (Workload_KajEnrollmentState) EnumDescriptor() ([]byte, []int)
- func (x Workload_KajEnrollmentState) Number() protoreflect.EnumNumber
- func (x Workload_KajEnrollmentState) String() string
- func (Workload_KajEnrollmentState) Type() protoreflect.EnumType
- type Workload_ResourceInfo
- func (*Workload_ResourceInfo) Descriptor() ([]byte, []int)
- func (x *Workload_ResourceInfo) GetResourceId() int64
- func (x *Workload_ResourceInfo) GetResourceType() Workload_ResourceInfo_ResourceType
- func (*Workload_ResourceInfo) ProtoMessage()
- func (x *Workload_ResourceInfo) ProtoReflect() protoreflect.Message
- func (x *Workload_ResourceInfo) Reset()
- func (x *Workload_ResourceInfo) String() string
- type Workload_ResourceInfo_ResourceType
- func (Workload_ResourceInfo_ResourceType) Descriptor() protoreflect.EnumDescriptor
- func (x Workload_ResourceInfo_ResourceType) Enum() *Workload_ResourceInfo_ResourceType
- func (Workload_ResourceInfo_ResourceType) EnumDescriptor() ([]byte, []int)
- func (x Workload_ResourceInfo_ResourceType) Number() protoreflect.EnumNumber
- func (x Workload_ResourceInfo_ResourceType) String() string
- func (Workload_ResourceInfo_ResourceType) Type() protoreflect.EnumType
- type Workload_ResourceSettings
- func (*Workload_ResourceSettings) Descriptor() ([]byte, []int)
- func (x *Workload_ResourceSettings) GetDisplayName() string
- func (x *Workload_ResourceSettings) GetResourceId() string
- func (x *Workload_ResourceSettings) GetResourceType() Workload_ResourceInfo_ResourceType
- func (*Workload_ResourceSettings) ProtoMessage()
- func (x *Workload_ResourceSettings) ProtoReflect() protoreflect.Message
- func (x *Workload_ResourceSettings) Reset()
- func (x *Workload_ResourceSettings) String() string
- type Workload_SaaEnrollmentResponse
- func (*Workload_SaaEnrollmentResponse) Descriptor() ([]byte, []int)
- func (x *Workload_SaaEnrollmentResponse) GetSetupErrors() []Workload_SaaEnrollmentResponse_SetupError
- func (x *Workload_SaaEnrollmentResponse) GetSetupStatus() Workload_SaaEnrollmentResponse_SetupState
- func (*Workload_SaaEnrollmentResponse) ProtoMessage()
- func (x *Workload_SaaEnrollmentResponse) ProtoReflect() protoreflect.Message
- func (x *Workload_SaaEnrollmentResponse) Reset()
- func (x *Workload_SaaEnrollmentResponse) String() string
- type Workload_SaaEnrollmentResponse_SetupError
- func (Workload_SaaEnrollmentResponse_SetupError) Descriptor() protoreflect.EnumDescriptor
- func (x Workload_SaaEnrollmentResponse_SetupError) Enum() *Workload_SaaEnrollmentResponse_SetupError
- func (Workload_SaaEnrollmentResponse_SetupError) EnumDescriptor() ([]byte, []int)
- func (x Workload_SaaEnrollmentResponse_SetupError) Number() protoreflect.EnumNumber
- func (x Workload_SaaEnrollmentResponse_SetupError) String() string
- func (Workload_SaaEnrollmentResponse_SetupError) Type() protoreflect.EnumType
- type Workload_SaaEnrollmentResponse_SetupState
- func (Workload_SaaEnrollmentResponse_SetupState) Descriptor() protoreflect.EnumDescriptor
- func (x Workload_SaaEnrollmentResponse_SetupState) Enum() *Workload_SaaEnrollmentResponse_SetupState
- func (Workload_SaaEnrollmentResponse_SetupState) EnumDescriptor() ([]byte, []int)
- func (x Workload_SaaEnrollmentResponse_SetupState) Number() protoreflect.EnumNumber
- func (x Workload_SaaEnrollmentResponse_SetupState) String() string
- func (Workload_SaaEnrollmentResponse_SetupState) Type() protoreflect.EnumType
Variables ¶
var ( RestrictAllowedResourcesRequest_RestrictionType_name = map[int32]string{ 0: "RESTRICTION_TYPE_UNSPECIFIED", 1: "ALLOW_ALL_GCP_RESOURCES", 2: "ALLOW_COMPLIANT_RESOURCES", } RestrictAllowedResourcesRequest_RestrictionType_value = map[string]int32{ "RESTRICTION_TYPE_UNSPECIFIED": 0, "ALLOW_ALL_GCP_RESOURCES": 1, "ALLOW_COMPLIANT_RESOURCES": 2, } )
Enum value maps for RestrictAllowedResourcesRequest_RestrictionType.
var ( Workload_ComplianceRegime_name = map[int32]string{ 0: "COMPLIANCE_REGIME_UNSPECIFIED", 1: "IL4", 2: "CJIS", 3: "FEDRAMP_HIGH", 4: "FEDRAMP_MODERATE", 5: "US_REGIONAL_ACCESS", 6: "HIPAA", 7: "HITRUST", 8: "EU_REGIONS_AND_SUPPORT", 9: "CA_REGIONS_AND_SUPPORT", 10: "ITAR", 11: "AU_REGIONS_AND_US_SUPPORT", } Workload_ComplianceRegime_value = map[string]int32{ "COMPLIANCE_REGIME_UNSPECIFIED": 0, "IL4": 1, "CJIS": 2, "FEDRAMP_HIGH": 3, "FEDRAMP_MODERATE": 4, "US_REGIONAL_ACCESS": 5, "HIPAA": 6, "HITRUST": 7, "EU_REGIONS_AND_SUPPORT": 8, "CA_REGIONS_AND_SUPPORT": 9, "ITAR": 10, "AU_REGIONS_AND_US_SUPPORT": 11, } )
Enum value maps for Workload_ComplianceRegime.
var ( Workload_KajEnrollmentState_name = map[int32]string{ 0: "KAJ_ENROLLMENT_STATE_UNSPECIFIED", 1: "KAJ_ENROLLMENT_STATE_PENDING", 2: "KAJ_ENROLLMENT_STATE_COMPLETE", } Workload_KajEnrollmentState_value = map[string]int32{ "KAJ_ENROLLMENT_STATE_UNSPECIFIED": 0, "KAJ_ENROLLMENT_STATE_PENDING": 1, "KAJ_ENROLLMENT_STATE_COMPLETE": 2, } )
Enum value maps for Workload_KajEnrollmentState.
var ( Workload_ResourceInfo_ResourceType_name = map[int32]string{ 0: "RESOURCE_TYPE_UNSPECIFIED", 1: "CONSUMER_PROJECT", 4: "CONSUMER_FOLDER", 2: "ENCRYPTION_KEYS_PROJECT", 3: "KEYRING", } Workload_ResourceInfo_ResourceType_value = map[string]int32{ "RESOURCE_TYPE_UNSPECIFIED": 0, "CONSUMER_PROJECT": 1, "CONSUMER_FOLDER": 4, "ENCRYPTION_KEYS_PROJECT": 2, "KEYRING": 3, } )
Enum value maps for Workload_ResourceInfo_ResourceType.
var ( Workload_SaaEnrollmentResponse_SetupState_name = map[int32]string{ 0: "SETUP_STATE_UNSPECIFIED", 1: "STATUS_PENDING", 2: "STATUS_COMPLETE", } Workload_SaaEnrollmentResponse_SetupState_value = map[string]int32{ "SETUP_STATE_UNSPECIFIED": 0, "STATUS_PENDING": 1, "STATUS_COMPLETE": 2, } )
Enum value maps for Workload_SaaEnrollmentResponse_SetupState.
var ( Workload_SaaEnrollmentResponse_SetupError_name = map[int32]string{ 0: "SETUP_ERROR_UNSPECIFIED", 1: "ERROR_INVALID_BASE_SETUP", 2: "ERROR_MISSING_EXTERNAL_SIGNING_KEY", 3: "ERROR_NOT_ALL_SERVICES_ENROLLED", 4: "ERROR_SETUP_CHECK_FAILED", } Workload_SaaEnrollmentResponse_SetupError_value = map[string]int32{ "SETUP_ERROR_UNSPECIFIED": 0, "ERROR_INVALID_BASE_SETUP": 1, "ERROR_MISSING_EXTERNAL_SIGNING_KEY": 2, "ERROR_NOT_ALL_SERVICES_ENROLLED": 3, "ERROR_SETUP_CHECK_FAILED": 4, } )
Enum value maps for Workload_SaaEnrollmentResponse_SetupError.
var File_google_cloud_assuredworkloads_v1beta1_assuredworkloads_proto protoreflect.FileDescriptor
var File_google_cloud_assuredworkloads_v1beta1_assuredworkloads_service_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAssuredWorkloadsServiceServer ¶
func RegisterAssuredWorkloadsServiceServer(s *grpc.Server, srv AssuredWorkloadsServiceServer)
Types ¶
type AnalyzeWorkloadMoveRequest ¶
type AnalyzeWorkloadMoveRequest struct {
// The resource type to be moved to the destination workload. It can be either
// an existing project or a project-based workload.
//
// Types that are assignable to ProjectOrWorkloadResource:
//
// *AnalyzeWorkloadMoveRequest_Source
// *AnalyzeWorkloadMoveRequest_Project
ProjectOrWorkloadResource isAnalyzeWorkloadMoveRequest_ProjectOrWorkloadResource `protobuf_oneof:"projectOrWorkloadResource"`
// Required. The resource ID of the folder-based destination workload. This workload is
// where the source project will hypothetically be moved to. Specify the
// workload's relative resource name, formatted as:
// "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}"
// For example:
// "organizations/123/locations/us-east1/workloads/assured-workload-2"
Target string `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"`
// contains filtered or unexported fields
}
A request to analyze a hypothetical move of a source project or project-based workload to a target (destination) folder-based workload.
func (*AnalyzeWorkloadMoveRequest) Descriptor ¶
func (*AnalyzeWorkloadMoveRequest) Descriptor() ([]byte, []int)
Deprecated: Use AnalyzeWorkloadMoveRequest.ProtoReflect.Descriptor instead.
func (*AnalyzeWorkloadMoveRequest) GetProject ¶
func (x *AnalyzeWorkloadMoveRequest) GetProject() string
func (*AnalyzeWorkloadMoveRequest) GetProjectOrWorkloadResource ¶
func (m *AnalyzeWorkloadMoveRequest) GetProjectOrWorkloadResource() isAnalyzeWorkloadMoveRequest_ProjectOrWorkloadResource
func (*AnalyzeWorkloadMoveRequest) GetSource ¶
func (x *AnalyzeWorkloadMoveRequest) GetSource() string
func (*AnalyzeWorkloadMoveRequest) GetTarget ¶
func (x *AnalyzeWorkloadMoveRequest) GetTarget() string
func (*AnalyzeWorkloadMoveRequest) ProtoMessage ¶
func (*AnalyzeWorkloadMoveRequest) ProtoMessage()
func (*AnalyzeWorkloadMoveRequest) ProtoReflect ¶
func (x *AnalyzeWorkloadMoveRequest) ProtoReflect() protoreflect.Message
func (*AnalyzeWorkloadMoveRequest) Reset ¶
func (x *AnalyzeWorkloadMoveRequest) Reset()
func (*AnalyzeWorkloadMoveRequest) String ¶
func (x *AnalyzeWorkloadMoveRequest) String() string
type AnalyzeWorkloadMoveRequest_Project ¶
type AnalyzeWorkloadMoveRequest_Project struct {
// The source type is a project. Specify the project's relative resource
// name, formatted as either a project number or a project ID:
// "projects/{PROJECT_NUMBER}" or "projects/{PROJECT_ID}"
// For example:
// "projects/951040570662" when specifying a project number, or
// "projects/my-project-123" when specifying a project ID.
Project string `protobuf:"bytes,3,opt,name=project,proto3,oneof"`
}
type AnalyzeWorkloadMoveRequest_Source ¶
type AnalyzeWorkloadMoveRequest_Source struct {
// The source type is a project-based workload. Specify the workloads's
// relative resource name, formatted as:
// "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}"
// For example:
// "organizations/123/locations/us-east1/workloads/assured-workload-1"
Source string `protobuf:"bytes,1,opt,name=source,proto3,oneof"`
}
type AnalyzeWorkloadMoveResponse ¶
type AnalyzeWorkloadMoveResponse struct {
// A list of blockers that should be addressed before moving the source
// project or project-based workload to the destination folder-based workload.
Blockers []string `protobuf:"bytes,1,rep,name=blockers,proto3" json:"blockers,omitempty"`
// contains filtered or unexported fields
}
A response that includes the analysis of the hypothetical resource move.
func (*AnalyzeWorkloadMoveResponse) Descriptor ¶
func (*AnalyzeWorkloadMoveResponse) Descriptor() ([]byte, []int)
Deprecated: Use AnalyzeWorkloadMoveResponse.ProtoReflect.Descriptor instead.
func (*AnalyzeWorkloadMoveResponse) GetBlockers ¶
func (x *AnalyzeWorkloadMoveResponse) GetBlockers() []string
func (*AnalyzeWorkloadMoveResponse) ProtoMessage ¶
func (*AnalyzeWorkloadMoveResponse) ProtoMessage()
func (*AnalyzeWorkloadMoveResponse) ProtoReflect ¶
func (x *AnalyzeWorkloadMoveResponse) ProtoReflect() protoreflect.Message
func (*AnalyzeWorkloadMoveResponse) Reset ¶
func (x *AnalyzeWorkloadMoveResponse) Reset()
func (*AnalyzeWorkloadMoveResponse) String ¶
func (x *AnalyzeWorkloadMoveResponse) String() string
type AssuredWorkloadsServiceClient ¶
type AssuredWorkloadsServiceClient interface {
// Creates Assured Workload.
CreateWorkload(ctx context.Context, in *CreateWorkloadRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Updates an existing workload.
// Currently allows updating of workload display_name and labels.
// For force updates don't set etag field in the Workload.
// Only one update operation per workload can be in progress.
UpdateWorkload(ctx context.Context, in *UpdateWorkloadRequest, opts ...grpc.CallOption) (*Workload, error)
// Restrict the list of resources allowed in the Workload environment.
// The current list of allowed products can be found at
// https://cloud.google.com/assured-workloads/docs/supported-products
// In addition to assuredworkloads.workload.update permission, the user should
// also have orgpolicy.policy.set permission on the folder resource
// to use this functionality.
RestrictAllowedResources(ctx context.Context, in *RestrictAllowedResourcesRequest, opts ...grpc.CallOption) (*RestrictAllowedResourcesResponse, error)
// Deletes the workload. Make sure that workload's direct children are already
// in a deleted state, otherwise the request will fail with a
// FAILED_PRECONDITION error.
// In addition to assuredworkloads.workload.delete permission, the user should
// also have orgpolicy.policy.set permission on the deleted folder to remove
// Assured Workloads OrgPolicies.
DeleteWorkload(ctx context.Context, in *DeleteWorkloadRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Gets Assured Workload associated with a CRM Node
GetWorkload(ctx context.Context, in *GetWorkloadRequest, opts ...grpc.CallOption) (*Workload, error)
// Analyze if the source Assured Workloads can be moved to the target Assured
// Workload
AnalyzeWorkloadMove(ctx context.Context, in *AnalyzeWorkloadMoveRequest, opts ...grpc.CallOption) (*AnalyzeWorkloadMoveResponse, error)
// Lists Assured Workloads under a CRM Node.
ListWorkloads(ctx context.Context, in *ListWorkloadsRequest, opts ...grpc.CallOption) (*ListWorkloadsResponse, error)
}
AssuredWorkloadsServiceClient is the client API for AssuredWorkloadsService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAssuredWorkloadsServiceClient ¶
func NewAssuredWorkloadsServiceClient(cc grpc.ClientConnInterface) AssuredWorkloadsServiceClient
type AssuredWorkloadsServiceServer ¶
type AssuredWorkloadsServiceServer interface {
// Creates Assured Workload.
CreateWorkload(context.Context, *CreateWorkloadRequest) (*longrunningpb.Operation, error)
// Updates an existing workload.
// Currently allows updating of workload display_name and labels.
// For force updates don't set etag field in the Workload.
// Only one update operation per workload can be in progress.
UpdateWorkload(context.Context, *UpdateWorkloadRequest) (*Workload, error)
// Restrict the list of resources allowed in the Workload environment.
// The current list of allowed products can be found at
// https://cloud.google.com/assured-workloads/docs/supported-products
// In addition to assuredworkloads.workload.update permission, the user should
// also have orgpolicy.policy.set permission on the folder resource
// to use this functionality.
RestrictAllowedResources(context.Context, *RestrictAllowedResourcesRequest) (*RestrictAllowedResourcesResponse, error)
// Deletes the workload. Make sure that workload's direct children are already
// in a deleted state, otherwise the request will fail with a
// FAILED_PRECONDITION error.
// In addition to assuredworkloads.workload.delete permission, the user should
// also have orgpolicy.policy.set permission on the deleted folder to remove
// Assured Workloads OrgPolicies.
DeleteWorkload(context.Context, *DeleteWorkloadRequest) (*emptypb.Empty, error)
// Gets Assured Workload associated with a CRM Node
GetWorkload(context.Context, *GetWorkloadRequest) (*Workload, error)
// Analyze if the source Assured Workloads can be moved to the target Assured
// Workload
AnalyzeWorkloadMove(context.Context, *AnalyzeWorkloadMoveRequest) (*AnalyzeWorkloadMoveResponse, error)
// Lists Assured Workloads under a CRM Node.
ListWorkloads(context.Context, *ListWorkloadsRequest) (*ListWorkloadsResponse, error)
}
AssuredWorkloadsServiceServer is the server API for AssuredWorkloadsService service.
type CreateWorkloadOperationMetadata ¶
type CreateWorkloadOperationMetadata struct {
// Optional. Time when the operation was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Optional. The display name of the workload.
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Optional. The parent of the workload.
Parent string `protobuf:"bytes,3,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. Compliance controls that should be applied to the resources managed by
// the workload.
ComplianceRegime Workload_ComplianceRegime `protobuf:"varint,4,opt,name=compliance_regime,json=complianceRegime,proto3,enum=google.cloud.assuredworkloads.v1beta1.Workload_ComplianceRegime" json:"compliance_regime,omitempty"`
// Optional. Resource properties in the input that are used for creating/customizing
// workload resources.
ResourceSettings []*Workload_ResourceSettings `protobuf:"bytes,5,rep,name=resource_settings,json=resourceSettings,proto3" json:"resource_settings,omitempty"`
// contains filtered or unexported fields
}
Operation metadata to give request details of CreateWorkload.
func (*CreateWorkloadOperationMetadata) Descriptor ¶
func (*CreateWorkloadOperationMetadata) Descriptor() ([]byte, []int)
Deprecated: Use CreateWorkloadOperationMetadata.ProtoReflect.Descriptor instead.
func (*CreateWorkloadOperationMetadata) GetComplianceRegime ¶
func (x *CreateWorkloadOperationMetadata) GetComplianceRegime() Workload_ComplianceRegime
func (*CreateWorkloadOperationMetadata) GetCreateTime ¶
func (x *CreateWorkloadOperationMetadata) GetCreateTime() *timestamppb.Timestamp
func (*CreateWorkloadOperationMetadata) GetDisplayName ¶
func (x *CreateWorkloadOperationMetadata) GetDisplayName() string
func (*CreateWorkloadOperationMetadata) GetParent ¶
func (x *CreateWorkloadOperationMetadata) GetParent() string
func (*CreateWorkloadOperationMetadata) GetResourceSettings ¶
func (x *CreateWorkloadOperationMetadata) GetResourceSettings() []*Workload_ResourceSettings
func (*CreateWorkloadOperationMetadata) ProtoMessage ¶
func (*CreateWorkloadOperationMetadata) ProtoMessage()
func (*CreateWorkloadOperationMetadata) ProtoReflect ¶
func (x *CreateWorkloadOperationMetadata) ProtoReflect() protoreflect.Message
func (*CreateWorkloadOperationMetadata) Reset ¶
func (x *CreateWorkloadOperationMetadata) Reset()
func (*CreateWorkloadOperationMetadata) String ¶
func (x *CreateWorkloadOperationMetadata) String() string
type CreateWorkloadRequest ¶
type CreateWorkloadRequest struct {
// Required. The resource name of the new Workload's parent.
// Must be of the form `organizations/{org_id}/locations/{location_id}`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. Assured Workload to create
Workload *Workload `protobuf:"bytes,2,opt,name=workload,proto3" json:"workload,omitempty"`
// Optional. A identifier associated with the workload and underlying projects which
// allows for the break down of billing costs for a workload. The value
// provided for the identifier will add a label to the workload and contained
// projects with the identifier as the value.
ExternalId string `protobuf:"bytes,3,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"`
// contains filtered or unexported fields
}
Request for creating a workload.
func (*CreateWorkloadRequest) Descriptor ¶
func (*CreateWorkloadRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateWorkloadRequest.ProtoReflect.Descriptor instead.
func (*CreateWorkloadRequest) GetExternalId ¶
func (x *CreateWorkloadRequest) GetExternalId() string
func (*CreateWorkloadRequest) GetParent ¶
func (x *CreateWorkloadRequest) GetParent() string
func (*CreateWorkloadRequest) GetWorkload ¶
func (x *CreateWorkloadRequest) GetWorkload() *Workload
func (*CreateWorkloadRequest) ProtoMessage ¶
func (*CreateWorkloadRequest) ProtoMessage()
func (*CreateWorkloadRequest) ProtoReflect ¶
func (x *CreateWorkloadRequest) ProtoReflect() protoreflect.Message
func (*CreateWorkloadRequest) Reset ¶
func (x *CreateWorkloadRequest) Reset()
func (*CreateWorkloadRequest) String ¶
func (x *CreateWorkloadRequest) String() string
type DeleteWorkloadRequest ¶
type DeleteWorkloadRequest struct {
// Required. The `name` field is used to identify the workload.
// Format:
// organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. The etag of the workload.
// If this is provided, it must match the server's etag.
Etag string `protobuf:"bytes,2,opt,name=etag,proto3" json:"etag,omitempty"`
// contains filtered or unexported fields
}
Request for deleting a Workload.
func (*DeleteWorkloadRequest) Descriptor ¶
func (*DeleteWorkloadRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteWorkloadRequest.ProtoReflect.Descriptor instead.
func (*DeleteWorkloadRequest) GetEtag ¶
func (x *DeleteWorkloadRequest) GetEtag() string
func (*DeleteWorkloadRequest) GetName ¶
func (x *DeleteWorkloadRequest) GetName() string
func (*DeleteWorkloadRequest) ProtoMessage ¶
func (*DeleteWorkloadRequest) ProtoMessage()
func (*DeleteWorkloadRequest) ProtoReflect ¶
func (x *DeleteWorkloadRequest) ProtoReflect() protoreflect.Message
func (*DeleteWorkloadRequest) Reset ¶
func (x *DeleteWorkloadRequest) Reset()
func (*DeleteWorkloadRequest) String ¶
func (x *DeleteWorkloadRequest) String() string
type GetWorkloadRequest ¶
type GetWorkloadRequest struct {
// Required. The resource name of the Workload to fetch. This is the workloads's
// relative path in the API, formatted as
// "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}".
// For example,
// "organizations/123/locations/us-east1/workloads/assured-workload-1".
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
Request for fetching a workload.
func (*GetWorkloadRequest) Descriptor ¶
func (*GetWorkloadRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetWorkloadRequest.ProtoReflect.Descriptor instead.
func (*GetWorkloadRequest) GetName ¶
func (x *GetWorkloadRequest) GetName() string
func (*GetWorkloadRequest) ProtoMessage ¶
func (*GetWorkloadRequest) ProtoMessage()
func (*GetWorkloadRequest) ProtoReflect ¶
func (x *GetWorkloadRequest) ProtoReflect() protoreflect.Message
func (*GetWorkloadRequest) Reset ¶
func (x *GetWorkloadRequest) Reset()
func (*GetWorkloadRequest) String ¶
func (x *GetWorkloadRequest) String() string
type ListWorkloadsRequest ¶
type ListWorkloadsRequest struct {
// Required. Parent Resource to list workloads from.
// Must be of the form `organizations/{org_id}/locations/{location}`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Page size.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Page token returned from previous request. Page token contains context from
// previous request. Page token needs to be passed in the second and following
// requests.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// A custom filter for filtering by properties of a workload. At this time,
// only filtering by labels is supported.
Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
// contains filtered or unexported fields
}
Request for fetching workloads in an organization.
func (*ListWorkloadsRequest) Descriptor ¶
func (*ListWorkloadsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListWorkloadsRequest.ProtoReflect.Descriptor instead.
func (*ListWorkloadsRequest) GetFilter ¶
func (x *ListWorkloadsRequest) GetFilter() string
func (*ListWorkloadsRequest) GetPageSize ¶
func (x *ListWorkloadsRequest) GetPageSize() int32
func (*ListWorkloadsRequest) GetPageToken ¶
func (x *ListWorkloadsRequest) GetPageToken() string
func (*ListWorkloadsRequest) GetParent ¶
func (x *ListWorkloadsRequest) GetParent() string
func (*ListWorkloadsRequest) ProtoMessage ¶
func (*ListWorkloadsRequest) ProtoMessage()
func (*ListWorkloadsRequest) ProtoReflect ¶
func (x *ListWorkloadsRequest) ProtoReflect() protoreflect.Message
func (*ListWorkloadsRequest) Reset ¶
func (x *ListWorkloadsRequest) Reset()
func (*ListWorkloadsRequest) String ¶
func (x *ListWorkloadsRequest) String() string
type ListWorkloadsResponse ¶
type ListWorkloadsResponse struct {
// List of Workloads under a given parent.
Workloads []*Workload `protobuf:"bytes,1,rep,name=workloads,proto3" json:"workloads,omitempty"`
// The next page token. Return empty if reached the last page.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}
Response of ListWorkloads endpoint.
func (*ListWorkloadsResponse) Descriptor ¶
func (*ListWorkloadsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListWorkloadsResponse.ProtoReflect.Descriptor instead.
func (*ListWorkloadsResponse) GetNextPageToken ¶
func (x *ListWorkloadsResponse) GetNextPageToken() string
func (*ListWorkloadsResponse) GetWorkloads ¶
func (x *ListWorkloadsResponse) GetWorkloads() []*Workload
func (*ListWorkloadsResponse) ProtoMessage ¶
func (*ListWorkloadsResponse) ProtoMessage()
func (*ListWorkloadsResponse) ProtoReflect ¶
func (x *ListWorkloadsResponse) ProtoReflect() protoreflect.Message
func (*ListWorkloadsResponse) Reset ¶
func (x *ListWorkloadsResponse) Reset()
func (*ListWorkloadsResponse) String ¶
func (x *ListWorkloadsResponse) String() string
type RestrictAllowedResourcesRequest ¶
type RestrictAllowedResourcesRequest struct {
// Required. The resource name of the Workload. This is the workloads's
// relative path in the API, formatted as
// "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}".
// For example,
// "organizations/123/locations/us-east1/workloads/assured-workload-1".
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. The type of restriction for using gcp products in the Workload environment.
RestrictionType RestrictAllowedResourcesRequest_RestrictionType `protobuf:"varint,2,opt,name=restriction_type,json=restrictionType,proto3,enum=google.cloud.assuredworkloads.v1beta1.RestrictAllowedResourcesRequest_RestrictionType" json:"restriction_type,omitempty"`
// contains filtered or unexported fields
}
Request for restricting list of available resources in Workload environment.
func (*RestrictAllowedResourcesRequest) Descriptor ¶
func (*RestrictAllowedResourcesRequest) Descriptor() ([]byte, []int)
Deprecated: Use RestrictAllowedResourcesRequest.ProtoReflect.Descriptor instead.
func (*RestrictAllowedResourcesRequest) GetName ¶
func (x *RestrictAllowedResourcesRequest) GetName() string
func (*RestrictAllowedResourcesRequest) GetRestrictionType ¶
func (x *RestrictAllowedResourcesRequest) GetRestrictionType() RestrictAllowedResourcesRequest_RestrictionType
func (*RestrictAllowedResourcesRequest) ProtoMessage ¶
func (*RestrictAllowedResourcesRequest) ProtoMessage()
func (*RestrictAllowedResourcesRequest) ProtoReflect ¶
func (x *RestrictAllowedResourcesRequest) ProtoReflect() protoreflect.Message
func (*RestrictAllowedResourcesRequest) Reset ¶
func (x *RestrictAllowedResourcesRequest) Reset()
func (*RestrictAllowedResourcesRequest) String ¶
func (x *RestrictAllowedResourcesRequest) String() string
type RestrictAllowedResourcesRequest_RestrictionType ¶
type RestrictAllowedResourcesRequest_RestrictionType int32
The type of restriction.
const ( // Unknown restriction type. RestrictAllowedResourcesRequest_RESTRICTION_TYPE_UNSPECIFIED RestrictAllowedResourcesRequest_RestrictionType = 0 // Allow the use all of all gcp products, irrespective of the compliance // posture. This effectively removes gcp.restrictServiceUsage OrgPolicy // on the AssuredWorkloads Folder. RestrictAllowedResourcesRequest_ALLOW_ALL_GCP_RESOURCES RestrictAllowedResourcesRequest_RestrictionType = 1 // Based on Workload's compliance regime, allowed list changes. // See - https://cloud.google.com/assured-workloads/docs/supported-products // for the list of supported resources. RestrictAllowedResourcesRequest_ALLOW_COMPLIANT_RESOURCES RestrictAllowedResourcesRequest_RestrictionType = 2 )
func (RestrictAllowedResourcesRequest_RestrictionType) Descriptor ¶
func (RestrictAllowedResourcesRequest_RestrictionType) Descriptor() protoreflect.EnumDescriptor
func (RestrictAllowedResourcesRequest_RestrictionType) Enum ¶
func (x RestrictAllowedResourcesRequest_RestrictionType) Enum() *RestrictAllowedResourcesRequest_RestrictionType
func (RestrictAllowedResourcesRequest_RestrictionType) EnumDescriptor ¶
func (RestrictAllowedResourcesRequest_RestrictionType) EnumDescriptor() ([]byte, []int)
Deprecated: Use RestrictAllowedResourcesRequest_RestrictionType.Descriptor instead.
func (RestrictAllowedResourcesRequest_RestrictionType) Number ¶
func (x RestrictAllowedResourcesRequest_RestrictionType) Number() protoreflect.EnumNumber
func (RestrictAllowedResourcesRequest_RestrictionType) String ¶
func (x RestrictAllowedResourcesRequest_RestrictionType) String() string
func (RestrictAllowedResourcesRequest_RestrictionType) Type ¶
type RestrictAllowedResourcesResponse ¶
type RestrictAllowedResourcesResponse struct {
// contains filtered or unexported fields
}
Response for restricting the list of allowed resources.
func (*RestrictAllowedResourcesResponse) Descriptor ¶
func (*RestrictAllowedResourcesResponse) Descriptor() ([]byte, []int)
Deprecated: Use RestrictAllowedResourcesResponse.ProtoReflect.Descriptor instead.
func (*RestrictAllowedResourcesResponse) ProtoMessage ¶
func (*RestrictAllowedResourcesResponse) ProtoMessage()
func (*RestrictAllowedResourcesResponse) ProtoReflect ¶
func (x *RestrictAllowedResourcesResponse) ProtoReflect() protoreflect.Message
func (*RestrictAllowedResourcesResponse) Reset ¶
func (x *RestrictAllowedResourcesResponse) Reset()
func (*RestrictAllowedResourcesResponse) String ¶
func (x *RestrictAllowedResourcesResponse) String() string
type UnimplementedAssuredWorkloadsServiceServer ¶
type UnimplementedAssuredWorkloadsServiceServer struct {
}
UnimplementedAssuredWorkloadsServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedAssuredWorkloadsServiceServer) AnalyzeWorkloadMove ¶
func (*UnimplementedAssuredWorkloadsServiceServer) AnalyzeWorkloadMove(context.Context, *AnalyzeWorkloadMoveRequest) (*AnalyzeWorkloadMoveResponse, error)
func (*UnimplementedAssuredWorkloadsServiceServer) CreateWorkload ¶
func (*UnimplementedAssuredWorkloadsServiceServer) CreateWorkload(context.Context, *CreateWorkloadRequest) (*longrunningpb.Operation, error)
func (*UnimplementedAssuredWorkloadsServiceServer) DeleteWorkload ¶
func (*UnimplementedAssuredWorkloadsServiceServer) DeleteWorkload(context.Context, *DeleteWorkloadRequest) (*emptypb.Empty, error)
func (*UnimplementedAssuredWorkloadsServiceServer) GetWorkload ¶
func (*UnimplementedAssuredWorkloadsServiceServer) GetWorkload(context.Context, *GetWorkloadRequest) (*Workload, error)
func (*UnimplementedAssuredWorkloadsServiceServer) ListWorkloads ¶
func (*UnimplementedAssuredWorkloadsServiceServer) ListWorkloads(context.Context, *ListWorkloadsRequest) (*ListWorkloadsResponse, error)
func (*UnimplementedAssuredWorkloadsServiceServer) RestrictAllowedResources ¶
func (*UnimplementedAssuredWorkloadsServiceServer) RestrictAllowedResources(context.Context, *RestrictAllowedResourcesRequest) (*RestrictAllowedResourcesResponse, error)
func (*UnimplementedAssuredWorkloadsServiceServer) UpdateWorkload ¶
func (*UnimplementedAssuredWorkloadsServiceServer) UpdateWorkload(context.Context, *UpdateWorkloadRequest) (*Workload, error)
type UpdateWorkloadRequest ¶
type UpdateWorkloadRequest struct {
// Required. The workload to update.
// The workload's `name` field is used to identify the workload to be updated.
// Format:
// organizations/{org_id}/locations/{location_id}/workloads/{workload_id}
Workload *Workload `protobuf:"bytes,1,opt,name=workload,proto3" json:"workload,omitempty"`
// Required. The list of fields to be updated.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// contains filtered or unexported fields
}
Request for Updating a workload.
func (*UpdateWorkloadRequest) Descriptor ¶
func (*UpdateWorkloadRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateWorkloadRequest.ProtoReflect.Descriptor instead.
func (*UpdateWorkloadRequest) GetUpdateMask ¶
func (x *UpdateWorkloadRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateWorkloadRequest) GetWorkload ¶
func (x *UpdateWorkloadRequest) GetWorkload() *Workload
func (*UpdateWorkloadRequest) ProtoMessage ¶
func (*UpdateWorkloadRequest) ProtoMessage()
func (*UpdateWorkloadRequest) ProtoReflect ¶
func (x *UpdateWorkloadRequest) ProtoReflect() protoreflect.Message
func (*UpdateWorkloadRequest) Reset ¶
func (x *UpdateWorkloadRequest) Reset()
func (*UpdateWorkloadRequest) String ¶
func (x *UpdateWorkloadRequest) String() string
type Workload ¶
type Workload struct {
// Optional. The resource name of the workload.
// Format:
// organizations/{organization}/locations/{location}/workloads/{workload}
//
// Read-only.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. The user-assigned display name of the Workload.
// When present it must be between 4 to 30 characters.
// Allowed characters are: lowercase and uppercase letters, numbers,
// hyphen, and spaces.
//
// Example: My Workload
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Output only. The resources associated with this workload.
// These resources will be created when creating the workload.
// If any of the projects already exist, the workload creation will fail.
// Always read only.
Resources []*Workload_ResourceInfo `protobuf:"bytes,3,rep,name=resources,proto3" json:"resources,omitempty"`
// Required. Immutable. Compliance Regime associated with this workload.
ComplianceRegime Workload_ComplianceRegime `protobuf:"varint,4,opt,name=compliance_regime,json=complianceRegime,proto3,enum=google.cloud.assuredworkloads.v1beta1.Workload_ComplianceRegime" json:"compliance_regime,omitempty"`
// Output only. Immutable. The Workload creation timestamp.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The billing account used for the resources which are
// direct children of workload. This billing account is initially associated
// with the resources created as part of Workload creation.
// After the initial creation of these resources, the customer can change
// the assigned billing account.
// The resource name has the form
// `billingAccounts/{billing_account_id}`. For example,
// `billingAccounts/012345-567890-ABCDEF`.
BillingAccount string `protobuf:"bytes,6,opt,name=billing_account,json=billingAccount,proto3" json:"billing_account,omitempty"`
// Settings specific to the selected [compliance_regime]
//
// Types that are assignable to ComplianceRegimeSettings:
//
// *Workload_Il4Settings
// *Workload_CjisSettings
// *Workload_FedrampHighSettings_
// *Workload_FedrampModerateSettings_
ComplianceRegimeSettings isWorkload_ComplianceRegimeSettings `protobuf_oneof:"compliance_regime_settings"`
// Optional. ETag of the workload, it is calculated on the basis
// of the Workload contents. It will be used in Update & Delete operations.
Etag string `protobuf:"bytes,9,opt,name=etag,proto3" json:"etag,omitempty"`
// Optional. Labels applied to the workload.
Labels map[string]string `protobuf:"bytes,10,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Input only. The parent resource for the resources managed by this Assured Workload. May
// be either empty or a folder resource which is a child of the
// Workload parent. If not specified all resources are created under the
// parent organization.
// Format:
// folders/{folder_id}
ProvisionedResourcesParent string `protobuf:"bytes,13,opt,name=provisioned_resources_parent,json=provisionedResourcesParent,proto3" json:"provisioned_resources_parent,omitempty"`
// Input only. Settings used to create a CMEK crypto key. When set, a project with a KMS
// CMEK key is provisioned.
// This field is deprecated as of Feb 28, 2022.
// In order to create a Keyring, callers should specify,
// ENCRYPTION_KEYS_PROJECT or KEYRING in ResourceSettings.resource_type field.
//
// Deprecated: Marked as deprecated in google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto.
KmsSettings *Workload_KMSSettings `protobuf:"bytes,14,opt,name=kms_settings,json=kmsSettings,proto3" json:"kms_settings,omitempty"`
// Input only. Resource properties that are used to customize workload resources.
// These properties (such as custom project id) will be used to create
// workload resources if possible. This field is optional.
ResourceSettings []*Workload_ResourceSettings `protobuf:"bytes,15,rep,name=resource_settings,json=resourceSettings,proto3" json:"resource_settings,omitempty"`
// Output only. Represents the KAJ enrollment state of the given workload.
KajEnrollmentState Workload_KajEnrollmentState `protobuf:"varint,17,opt,name=kaj_enrollment_state,json=kajEnrollmentState,proto3,enum=google.cloud.assuredworkloads.v1beta1.Workload_KajEnrollmentState" json:"kaj_enrollment_state,omitempty"`
// Optional. Indicates the sovereignty status of the given workload.
// Currently meant to be used by Europe/Canada customers.
EnableSovereignControls bool `protobuf:"varint,18,opt,name=enable_sovereign_controls,json=enableSovereignControls,proto3" json:"enable_sovereign_controls,omitempty"`
// Output only. Represents the SAA enrollment response of the given workload.
// SAA enrollment response is queried during GetWorkload call.
// In failure cases, user friendly error message is shown in SAA details page.
SaaEnrollmentResponse *Workload_SaaEnrollmentResponse `protobuf:"bytes,20,opt,name=saa_enrollment_response,json=saaEnrollmentResponse,proto3" json:"saa_enrollment_response,omitempty"`
// Output only. Urls for services which are compliant for this Assured Workload, but which
// are currently disallowed by the ResourceUsageRestriction org policy.
// Invoke RestrictAllowedResources endpoint to allow your project developers
// to use these services in their environment."
CompliantButDisallowedServices []string `protobuf:"bytes,24,rep,name=compliant_but_disallowed_services,json=compliantButDisallowedServices,proto3" json:"compliant_but_disallowed_services,omitempty"`
// contains filtered or unexported fields
}
An Workload object for managing highly regulated workloads of cloud customers.
func (*Workload) Descriptor ¶
Deprecated: Use Workload.ProtoReflect.Descriptor instead.
func (*Workload) GetBillingAccount ¶
func (*Workload) GetCjisSettings ¶
func (x *Workload) GetCjisSettings() *Workload_CJISSettings
Deprecated: Marked as deprecated in google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto.
func (*Workload) GetComplianceRegime ¶
func (x *Workload) GetComplianceRegime() Workload_ComplianceRegime
func (*Workload) GetComplianceRegimeSettings ¶
func (m *Workload) GetComplianceRegimeSettings() isWorkload_ComplianceRegimeSettings
func (*Workload) GetCompliantButDisallowedServices ¶
func (*Workload) GetCreateTime ¶
func (x *Workload) GetCreateTime() *timestamppb.Timestamp
func (*Workload) GetDisplayName ¶
func (*Workload) GetEnableSovereignControls ¶
func (*Workload) GetEtag ¶
func (*Workload) GetFedrampHighSettings ¶
func (x *Workload) GetFedrampHighSettings() *Workload_FedrampHighSettings
Deprecated: Marked as deprecated in google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto.
func (*Workload) GetFedrampModerateSettings ¶
func (x *Workload) GetFedrampModerateSettings() *Workload_FedrampModerateSettings
Deprecated: Marked as deprecated in google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto.
func (*Workload) GetIl4Settings ¶
func (x *Workload) GetIl4Settings() *Workload_IL4Settings
Deprecated: Marked as deprecated in google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto.
func (*Workload) GetKajEnrollmentState ¶
func (x *Workload) GetKajEnrollmentState() Workload_KajEnrollmentState
func (*Workload) GetKmsSettings ¶
func (x *Workload) GetKmsSettings() *Workload_KMSSettings
Deprecated: Marked as deprecated in google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto.
func (*Workload) GetLabels ¶
func (*Workload) GetName ¶
func (*Workload) GetProvisionedResourcesParent ¶
func (*Workload) GetResourceSettings ¶
func (x *Workload) GetResourceSettings() []*Workload_ResourceSettings
func (*Workload) GetResources ¶
func (x *Workload) GetResources() []*Workload_ResourceInfo
func (*Workload) GetSaaEnrollmentResponse ¶
func (x *Workload) GetSaaEnrollmentResponse() *Workload_SaaEnrollmentResponse
func (*Workload) ProtoMessage ¶
func (*Workload) ProtoMessage()
func (*Workload) ProtoReflect ¶
func (x *Workload) ProtoReflect() protoreflect.Message
func (*Workload) Reset ¶
func (x *Workload) Reset()
func (*Workload) String ¶
type Workload_CJISSettings ¶
type Workload_CJISSettings struct {
// Input only. Immutable. Settings used to create a CMEK crypto key.
KmsSettings *Workload_KMSSettings `protobuf:"bytes,1,opt,name=kms_settings,json=kmsSettings,proto3" json:"kms_settings,omitempty"`
// contains filtered or unexported fields
}
Settings specific to resources needed for CJIS.
Deprecated: Marked as deprecated in google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto.
func (*Workload_CJISSettings) Descriptor ¶
func (*Workload_CJISSettings) Descriptor() ([]byte, []int)
Deprecated: Use Workload_CJISSettings.ProtoReflect.Descriptor instead.
func (*Workload_CJISSettings) GetKmsSettings ¶
func (x *Workload_CJISSettings) GetKmsSettings() *Workload_KMSSettings
func (*Workload_CJISSettings) ProtoMessage ¶
func (*Workload_CJISSettings) ProtoMessage()
func (*Workload_CJISSettings) ProtoReflect ¶
func (x *Workload_CJISSettings) ProtoReflect() protoreflect.Message
func (*Workload_CJISSettings) Reset ¶
func (x *Workload_CJISSettings) Reset()
func (*Workload_CJISSettings) String ¶
func (x *Workload_CJISSettings) String() string
type Workload_CjisSettings ¶
type Workload_CjisSettings struct {
// Input only. Immutable. Settings specific to resources needed for CJIS.
//
// Deprecated: Marked as deprecated in google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto.
CjisSettings *Workload_CJISSettings `protobuf:"bytes,8,opt,name=cjis_settings,json=cjisSettings,proto3,oneof"`
}
type Workload_ComplianceRegime ¶
type Workload_ComplianceRegime int32
Supported Compliance Regimes.
const ( // Unknown compliance regime. Workload_COMPLIANCE_REGIME_UNSPECIFIED Workload_ComplianceRegime = 0 // Information protection as per DoD IL4 requirements. Workload_IL4 Workload_ComplianceRegime = 1 // Criminal Justice Information Services (CJIS) Security policies. Workload_CJIS Workload_ComplianceRegime = 2 // FedRAMP High data protection controls Workload_FEDRAMP_HIGH Workload_ComplianceRegime = 3 // FedRAMP Moderate data protection controls Workload_FEDRAMP_MODERATE Workload_ComplianceRegime = 4 // Assured Workloads For US Regions data protection controls Workload_US_REGIONAL_ACCESS Workload_ComplianceRegime = 5 // Health Insurance Portability and Accountability Act controls Workload_HIPAA Workload_ComplianceRegime = 6 // Health Information Trust Alliance controls Workload_HITRUST Workload_ComplianceRegime = 7 // Assured Workloads For EU Regions and Support controls Workload_EU_REGIONS_AND_SUPPORT Workload_ComplianceRegime = 8 // Assured Workloads For Canada Regions and Support controls Workload_CA_REGIONS_AND_SUPPORT Workload_ComplianceRegime = 9 // International Traffic in Arms Regulations Workload_ITAR Workload_ComplianceRegime = 10 // Assured Workloads for Australia Regions and Support controls Workload_AU_REGIONS_AND_US_SUPPORT Workload_ComplianceRegime = 11 )
func (Workload_ComplianceRegime) Descriptor ¶
func (Workload_ComplianceRegime) Descriptor() protoreflect.EnumDescriptor
func (Workload_ComplianceRegime) Enum ¶
func (x Workload_ComplianceRegime) Enum() *Workload_ComplianceRegime
func (Workload_ComplianceRegime) EnumDescriptor ¶
func (Workload_ComplianceRegime) EnumDescriptor() ([]byte, []int)
Deprecated: Use Workload_ComplianceRegime.Descriptor instead.
func (Workload_ComplianceRegime) Number ¶
func (x Workload_ComplianceRegime) Number() protoreflect.EnumNumber
func (Workload_ComplianceRegime) String ¶
func (x Workload_ComplianceRegime) String() string
func (Workload_ComplianceRegime) Type ¶
func (Workload_ComplianceRegime) Type() protoreflect.EnumType
type Workload_FedrampHighSettings ¶
type Workload_FedrampHighSettings struct {
// Input only. Immutable. Settings used to create a CMEK crypto key.
KmsSettings *Workload_KMSSettings `protobuf:"bytes,1,opt,name=kms_settings,json=kmsSettings,proto3" json:"kms_settings,omitempty"`
// contains filtered or unexported fields
}
Settings specific to resources needed for FedRAMP High.
Deprecated: Marked as deprecated in google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto.
func (*Workload_FedrampHighSettings) Descriptor ¶
func (*Workload_FedrampHighSettings) Descriptor() ([]byte, []int)
Deprecated: Use Workload_FedrampHighSettings.ProtoReflect.Descriptor instead.
func (*Workload_FedrampHighSettings) GetKmsSettings ¶
func (x *Workload_FedrampHighSettings) GetKmsSettings() *Workload_KMSSettings
func (*Workload_FedrampHighSettings) ProtoMessage ¶
func (*Workload_FedrampHighSettings) ProtoMessage()
func (*Workload_FedrampHighSettings) ProtoReflect ¶
func (x *Workload_FedrampHighSettings) ProtoReflect() protoreflect.Message
func (*Workload_FedrampHighSettings) Reset ¶
func (x *Workload_FedrampHighSettings) Reset()
func (*Workload_FedrampHighSettings) String ¶
func (x *Workload_FedrampHighSettings) String() string
type Workload_FedrampHighSettings_ ¶
type Workload_FedrampHighSettings_ struct {
// Input only. Immutable. Settings specific to resources needed for FedRAMP High.
//
// Deprecated: Marked as deprecated in google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto.
FedrampHighSettings *Workload_FedrampHighSettings `protobuf:"bytes,11,opt,name=fedramp_high_settings,json=fedrampHighSettings,proto3,oneof"`
}
type Workload_FedrampModerateSettings ¶
type Workload_FedrampModerateSettings struct {
// Input only. Immutable. Settings used to create a CMEK crypto key.
KmsSettings *Workload_KMSSettings `protobuf:"bytes,1,opt,name=kms_settings,json=kmsSettings,proto3" json:"kms_settings,omitempty"`
// contains filtered or unexported fields
}
Settings specific to resources needed for FedRAMP Moderate.
Deprecated: Marked as deprecated in google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto.
func (*Workload_FedrampModerateSettings) Descriptor ¶
func (*Workload_FedrampModerateSettings) Descriptor() ([]byte, []int)
Deprecated: Use Workload_FedrampModerateSettings.ProtoReflect.Descriptor instead.
func (*Workload_FedrampModerateSettings) GetKmsSettings ¶
func (x *Workload_FedrampModerateSettings) GetKmsSettings() *Workload_KMSSettings
func (*Workload_FedrampModerateSettings) ProtoMessage ¶
func (*Workload_FedrampModerateSettings) ProtoMessage()
func (*Workload_FedrampModerateSettings) ProtoReflect ¶
func (x *Workload_FedrampModerateSettings) ProtoReflect() protoreflect.Message
func (*Workload_FedrampModerateSettings) Reset ¶
func (x *Workload_FedrampModerateSettings) Reset()
func (*Workload_FedrampModerateSettings) String ¶
func (x *Workload_FedrampModerateSettings) String() string
type Workload_FedrampModerateSettings_ ¶
type Workload_FedrampModerateSettings_ struct {
// Input only. Immutable. Settings specific to resources needed for FedRAMP Moderate.
//
// Deprecated: Marked as deprecated in google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto.
FedrampModerateSettings *Workload_FedrampModerateSettings `protobuf:"bytes,12,opt,name=fedramp_moderate_settings,json=fedrampModerateSettings,proto3,oneof"`
}
type Workload_IL4Settings ¶
type Workload_IL4Settings struct {
// Input only. Immutable. Settings used to create a CMEK crypto key.
KmsSettings *Workload_KMSSettings `protobuf:"bytes,1,opt,name=kms_settings,json=kmsSettings,proto3" json:"kms_settings,omitempty"`
// contains filtered or unexported fields
}
Settings specific to resources needed for IL4.
Deprecated: Marked as deprecated in google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto.
func (*Workload_IL4Settings) Descriptor ¶
func (*Workload_IL4Settings) Descriptor() ([]byte, []int)
Deprecated: Use Workload_IL4Settings.ProtoReflect.Descriptor instead.
func (*Workload_IL4Settings) GetKmsSettings ¶
func (x *Workload_IL4Settings) GetKmsSettings() *Workload_KMSSettings
func (*Workload_IL4Settings) ProtoMessage ¶
func (*Workload_IL4Settings) ProtoMessage()
func (*Workload_IL4Settings) ProtoReflect ¶
func (x *Workload_IL4Settings) ProtoReflect() protoreflect.Message
func (*Workload_IL4Settings) Reset ¶
func (x *Workload_IL4Settings) Reset()
func (*Workload_IL4Settings) String ¶
func (x *Workload_IL4Settings) String() string
type Workload_Il4Settings ¶
type Workload_Il4Settings struct {
// Input only. Immutable. Settings specific to resources needed for IL4.
//
// Deprecated: Marked as deprecated in google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto.
Il4Settings *Workload_IL4Settings `protobuf:"bytes,7,opt,name=il4_settings,json=il4Settings,proto3,oneof"`
}
type Workload_KMSSettings ¶
type Workload_KMSSettings struct {
// Required. Input only. Immutable. The time at which the Key Management Service will automatically create a
// new version of the crypto key and mark it as the primary.
NextRotationTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=next_rotation_time,json=nextRotationTime,proto3" json:"next_rotation_time,omitempty"`
// Required. Input only. Immutable. [next_rotation_time] will be advanced by this period when the Key
// Management Service automatically rotates a key. Must be at least 24 hours
// and at most 876,000 hours.
RotationPeriod *durationpb.Duration `protobuf:"bytes,2,opt,name=rotation_period,json=rotationPeriod,proto3" json:"rotation_period,omitempty"`
// contains filtered or unexported fields
}
Settings specific to the Key Management Service.
Deprecated: Marked as deprecated in google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto.
func (*Workload_KMSSettings) Descriptor ¶
func (*Workload_KMSSettings) Descriptor() ([]byte, []int)
Deprecated: Use Workload_KMSSettings.ProtoReflect.Descriptor instead.
func (*Workload_KMSSettings) GetNextRotationTime ¶
func (x *Workload_KMSSettings) GetNextRotationTime() *timestamppb.Timestamp
func (*Workload_KMSSettings) GetRotationPeriod ¶
func (x *Workload_KMSSettings) GetRotationPeriod() *durationpb.Duration
func (*Workload_KMSSettings) ProtoMessage ¶
func (*Workload_KMSSettings) ProtoMessage()
func (*Workload_KMSSettings) ProtoReflect ¶
func (x *Workload_KMSSettings) ProtoReflect() protoreflect.Message
func (*Workload_KMSSettings) Reset ¶
func (x *Workload_KMSSettings) Reset()
func (*Workload_KMSSettings) String ¶
func (x *Workload_KMSSettings) String() string
type Workload_KajEnrollmentState ¶
type Workload_KajEnrollmentState int32
Key Access Justifications(KAJ) Enrollment State.
const ( // Default State for KAJ Enrollment. Workload_KAJ_ENROLLMENT_STATE_UNSPECIFIED Workload_KajEnrollmentState = 0 // Pending State for KAJ Enrollment. Workload_KAJ_ENROLLMENT_STATE_PENDING Workload_KajEnrollmentState = 1 // Complete State for KAJ Enrollment. Workload_KAJ_ENROLLMENT_STATE_COMPLETE Workload_KajEnrollmentState = 2 )
func (Workload_KajEnrollmentState) Descriptor ¶
func (Workload_KajEnrollmentState) Descriptor() protoreflect.EnumDescriptor
func (Workload_KajEnrollmentState) Enum ¶
func (x Workload_KajEnrollmentState) Enum() *Workload_KajEnrollmentState
func (Workload_KajEnrollmentState) EnumDescriptor ¶
func (Workload_KajEnrollmentState) EnumDescriptor() ([]byte, []int)
Deprecated: Use Workload_KajEnrollmentState.Descriptor instead.
func (Workload_KajEnrollmentState) Number ¶
func (x Workload_KajEnrollmentState) Number() protoreflect.EnumNumber
func (Workload_KajEnrollmentState) String ¶
func (x Workload_KajEnrollmentState) String() string
func (Workload_KajEnrollmentState) Type ¶
func (Workload_KajEnrollmentState) Type() protoreflect.EnumType
type Workload_ResourceInfo ¶
type Workload_ResourceInfo struct {
// Resource identifier.
// For a project this represents project_number.
ResourceId int64 `protobuf:"varint,1,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
// Indicates the type of resource.
ResourceType Workload_ResourceInfo_ResourceType `protobuf:"varint,2,opt,name=resource_type,json=resourceType,proto3,enum=google.cloud.assuredworkloads.v1beta1.Workload_ResourceInfo_ResourceType" json:"resource_type,omitempty"`
// contains filtered or unexported fields
}
Represent the resources that are children of this Workload.
func (*Workload_ResourceInfo) Descriptor ¶
func (*Workload_ResourceInfo) Descriptor() ([]byte, []int)
Deprecated: Use Workload_ResourceInfo.ProtoReflect.Descriptor instead.
func (*Workload_ResourceInfo) GetResourceId ¶
func (x *Workload_ResourceInfo) GetResourceId() int64
func (*Workload_ResourceInfo) GetResourceType ¶
func (x *Workload_ResourceInfo) GetResourceType() Workload_ResourceInfo_ResourceType
func (*Workload_ResourceInfo) ProtoMessage ¶
func (*Workload_ResourceInfo) ProtoMessage()
func (*Workload_ResourceInfo) ProtoReflect ¶
func (x *Workload_ResourceInfo) ProtoReflect() protoreflect.Message
func (*Workload_ResourceInfo) Reset ¶
func (x *Workload_ResourceInfo) Reset()
func (*Workload_ResourceInfo) String ¶
func (x *Workload_ResourceInfo) String() string
type Workload_ResourceInfo_ResourceType ¶
type Workload_ResourceInfo_ResourceType int32
The type of resource.
const ( // Unknown resource type. Workload_ResourceInfo_RESOURCE_TYPE_UNSPECIFIED Workload_ResourceInfo_ResourceType = 0 // Deprecated. Existing workloads will continue to support this, but new // CreateWorkloadRequests should not specify this as an input value. // // Deprecated: Marked as deprecated in google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto. Workload_ResourceInfo_CONSUMER_PROJECT Workload_ResourceInfo_ResourceType = 1 // Consumer Folder. Workload_ResourceInfo_CONSUMER_FOLDER Workload_ResourceInfo_ResourceType = 4 // Consumer project containing encryption keys. Workload_ResourceInfo_ENCRYPTION_KEYS_PROJECT Workload_ResourceInfo_ResourceType = 2 // Keyring resource that hosts encryption keys. Workload_ResourceInfo_KEYRING Workload_ResourceInfo_ResourceType = 3 )
func (Workload_ResourceInfo_ResourceType) Descriptor ¶
func (Workload_ResourceInfo_ResourceType) Descriptor() protoreflect.EnumDescriptor
func (Workload_ResourceInfo_ResourceType) Enum ¶
func (x Workload_ResourceInfo_ResourceType) Enum() *Workload_ResourceInfo_ResourceType
func (Workload_ResourceInfo_ResourceType) EnumDescriptor ¶
func (Workload_ResourceInfo_ResourceType) EnumDescriptor() ([]byte, []int)
Deprecated: Use Workload_ResourceInfo_ResourceType.Descriptor instead.
func (Workload_ResourceInfo_ResourceType) Number ¶
func (x Workload_ResourceInfo_ResourceType) Number() protoreflect.EnumNumber
func (Workload_ResourceInfo_ResourceType) String ¶
func (x Workload_ResourceInfo_ResourceType) String() string
func (Workload_ResourceInfo_ResourceType) Type ¶
func (Workload_ResourceInfo_ResourceType) Type() protoreflect.EnumType
type Workload_ResourceSettings ¶
type Workload_ResourceSettings struct {
// Resource identifier.
// For a project this represents project_id. If the project is already
// taken, the workload creation will fail.
// For KeyRing, this represents the keyring_id.
// For a folder, don't set this value as folder_id is assigned by Google.
ResourceId string `protobuf:"bytes,1,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
// Indicates the type of resource. This field should be specified to
// correspond the id to the right project type (CONSUMER_PROJECT or
// ENCRYPTION_KEYS_PROJECT)
ResourceType Workload_ResourceInfo_ResourceType `protobuf:"varint,2,opt,name=resource_type,json=resourceType,proto3,enum=google.cloud.assuredworkloads.v1beta1.Workload_ResourceInfo_ResourceType" json:"resource_type,omitempty"`
// User-assigned resource display name.
// If not empty it will be used to create a resource with the specified
// name.
DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// contains filtered or unexported fields
}
Represent the custom settings for the resources to be created.
func (*Workload_ResourceSettings) Descriptor ¶
func (*Workload_ResourceSettings) Descriptor() ([]byte, []int)
Deprecated: Use Workload_ResourceSettings.ProtoReflect.Descriptor instead.
func (*Workload_ResourceSettings) GetDisplayName ¶
func (x *Workload_ResourceSettings) GetDisplayName() string
func (*Workload_ResourceSettings) GetResourceId ¶
func (x *Workload_ResourceSettings) GetResourceId() string
func (*Workload_ResourceSettings) GetResourceType ¶
func (x *Workload_ResourceSettings) GetResourceType() Workload_ResourceInfo_ResourceType
func (*Workload_ResourceSettings) ProtoMessage ¶
func (*Workload_ResourceSettings) ProtoMessage()
func (*Workload_ResourceSettings) ProtoReflect ¶
func (x *Workload_ResourceSettings) ProtoReflect() protoreflect.Message
func (*Workload_ResourceSettings) Reset ¶
func (x *Workload_ResourceSettings) Reset()
func (*Workload_ResourceSettings) String ¶
func (x *Workload_ResourceSettings) String() string
type Workload_SaaEnrollmentResponse ¶
type Workload_SaaEnrollmentResponse struct {
// Indicates SAA enrollment status of a given workload.
SetupStatus *Workload_SaaEnrollmentResponse_SetupState `protobuf:"varint,1,opt,name=setup_status,json=setupStatus,proto3,enum=google.cloud.assuredworkloads.v1beta1.Workload_SaaEnrollmentResponse_SetupState,oneof" json:"setup_status,omitempty"`
// Indicates SAA enrollment setup error if any.
SetupErrors []Workload_SaaEnrollmentResponse_SetupError `protobuf:"varint,2,rep,packed,name=setup_errors,json=setupErrors,proto3,enum=google.cloud.assuredworkloads.v1beta1.Workload_SaaEnrollmentResponse_SetupError" json:"setup_errors,omitempty"`
// contains filtered or unexported fields
}
Signed Access Approvals (SAA) enrollment response.
func (*Workload_SaaEnrollmentResponse) Descriptor ¶
func (*Workload_SaaEnrollmentResponse) Descriptor() ([]byte, []int)
Deprecated: Use Workload_SaaEnrollmentResponse.ProtoReflect.Descriptor instead.
func (*Workload_SaaEnrollmentResponse) GetSetupErrors ¶
func (x *Workload_SaaEnrollmentResponse) GetSetupErrors() []Workload_SaaEnrollmentResponse_SetupError
func (*Workload_SaaEnrollmentResponse) GetSetupStatus ¶
func (x *Workload_SaaEnrollmentResponse) GetSetupStatus() Workload_SaaEnrollmentResponse_SetupState
func (*Workload_SaaEnrollmentResponse) ProtoMessage ¶
func (*Workload_SaaEnrollmentResponse) ProtoMessage()
func (*Workload_SaaEnrollmentResponse) ProtoReflect ¶
func (x *Workload_SaaEnrollmentResponse) ProtoReflect() protoreflect.Message
func (*Workload_SaaEnrollmentResponse) Reset ¶
func (x *Workload_SaaEnrollmentResponse) Reset()
func (*Workload_SaaEnrollmentResponse) String ¶
func (x *Workload_SaaEnrollmentResponse) String() string
type Workload_SaaEnrollmentResponse_SetupError ¶
type Workload_SaaEnrollmentResponse_SetupError int32
Setup error of SAA enrollment.
const ( // Unspecified. Workload_SaaEnrollmentResponse_SETUP_ERROR_UNSPECIFIED Workload_SaaEnrollmentResponse_SetupError = 0 // Invalid states for all customers, to be redirected to AA UI for // additional details. Workload_SaaEnrollmentResponse_ERROR_INVALID_BASE_SETUP Workload_SaaEnrollmentResponse_SetupError = 1 // Returned when there is not an EKM key configured. Workload_SaaEnrollmentResponse_ERROR_MISSING_EXTERNAL_SIGNING_KEY Workload_SaaEnrollmentResponse_SetupError = 2 // Returned when there are no enrolled services or the customer is // enrolled in CAA only for a subset of services. Workload_SaaEnrollmentResponse_ERROR_NOT_ALL_SERVICES_ENROLLED Workload_SaaEnrollmentResponse_SetupError = 3 // Returned when exception was encountered during evaluation of other // criteria. Workload_SaaEnrollmentResponse_ERROR_SETUP_CHECK_FAILED Workload_SaaEnrollmentResponse_SetupError = 4 )
func (Workload_SaaEnrollmentResponse_SetupError) Descriptor ¶
func (Workload_SaaEnrollmentResponse_SetupError) Descriptor() protoreflect.EnumDescriptor
func (Workload_SaaEnrollmentResponse_SetupError) Enum ¶
func (x Workload_SaaEnrollmentResponse_SetupError) Enum() *Workload_SaaEnrollmentResponse_SetupError
func (Workload_SaaEnrollmentResponse_SetupError) EnumDescriptor ¶
func (Workload_SaaEnrollmentResponse_SetupError) EnumDescriptor() ([]byte, []int)
Deprecated: Use Workload_SaaEnrollmentResponse_SetupError.Descriptor instead.
func (Workload_SaaEnrollmentResponse_SetupError) Number ¶
func (x Workload_SaaEnrollmentResponse_SetupError) Number() protoreflect.EnumNumber
func (Workload_SaaEnrollmentResponse_SetupError) String ¶
func (x Workload_SaaEnrollmentResponse_SetupError) String() string
func (Workload_SaaEnrollmentResponse_SetupError) Type ¶
func (Workload_SaaEnrollmentResponse_SetupError) Type() protoreflect.EnumType
type Workload_SaaEnrollmentResponse_SetupState ¶
type Workload_SaaEnrollmentResponse_SetupState int32
Setup state of SAA enrollment.
const ( // Unspecified. Workload_SaaEnrollmentResponse_SETUP_STATE_UNSPECIFIED Workload_SaaEnrollmentResponse_SetupState = 0 // SAA enrollment pending. Workload_SaaEnrollmentResponse_STATUS_PENDING Workload_SaaEnrollmentResponse_SetupState = 1 // SAA enrollment comopleted. Workload_SaaEnrollmentResponse_STATUS_COMPLETE Workload_SaaEnrollmentResponse_SetupState = 2 )
func (Workload_SaaEnrollmentResponse_SetupState) Descriptor ¶
func (Workload_SaaEnrollmentResponse_SetupState) Descriptor() protoreflect.EnumDescriptor
func (Workload_SaaEnrollmentResponse_SetupState) Enum ¶
func (x Workload_SaaEnrollmentResponse_SetupState) Enum() *Workload_SaaEnrollmentResponse_SetupState
func (Workload_SaaEnrollmentResponse_SetupState) EnumDescriptor ¶
func (Workload_SaaEnrollmentResponse_SetupState) EnumDescriptor() ([]byte, []int)
Deprecated: Use Workload_SaaEnrollmentResponse_SetupState.Descriptor instead.
func (Workload_SaaEnrollmentResponse_SetupState) Number ¶
func (x Workload_SaaEnrollmentResponse_SetupState) Number() protoreflect.EnumNumber
func (Workload_SaaEnrollmentResponse_SetupState) String ¶
func (x Workload_SaaEnrollmentResponse_SetupState) String() string
func (Workload_SaaEnrollmentResponse_SetupState) Type ¶
func (Workload_SaaEnrollmentResponse_SetupState) Type() protoreflect.EnumType
Source Files ¶
assuredworkloads.pb.go assuredworkloads_service.pb.go
- Version
- v1.12.6 (latest)
- Published
- Apr 15, 2025
- Platform
- linux/amd64
- Imports
- 14 packages
- Last checked
- 9 months ago –
Tools for package owners.