assuredworkloads
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
Package assuredworkloads provides access to the Assured Workloads API.
For product documentation, see:https://cloud.google.com/learnmoreurl
Library status¶
These client libraries are officially supported by Google. However, thislibrary is considered complete and is in maintenance mode. This meansthat we will address critical bugs and security issues but will not addany new features.
When possible, we recommend using our newer[Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go)that are still actively being worked and iterated on.
Creating a client¶
Usage example:
import "google.golang.org/api/assuredworkloads/v1"...ctx := context.Background()assuredworkloadsService, err := assuredworkloads.NewService(ctx)
In this example, Google Application Default Credentials are used forauthentication. For information on how to create and obtain ApplicationDefault Credentials, seehttps://developers.google.com/identity/protocols/application-default-credentials.
Other authentication options¶
To use an API key for authentication (note: some APIs do not support APIkeys), usegoogle.golang.org/api/option.WithAPIKey:
assuredworkloadsService, err := assuredworkloads.NewService(ctx, option.WithAPIKey("AIza..."))To use an OAuth token (e.g., a user token obtained via a three-legged OAuthflow, usegoogle.golang.org/api/option.WithTokenSource:
config := &oauth2.Config{...}// ...token, err := config.Exchange(ctx, ...)assuredworkloadsService, err := assuredworkloads.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))Seegoogle.golang.org/api/option.ClientOption for details on options.
Index¶
- Constants
- type GoogleCloudAssuredworkloadsV1AcknowledgeViolationRequest
- type GoogleCloudAssuredworkloadsV1AcknowledgeViolationResponse
- type GoogleCloudAssuredworkloadsV1AnalyzeWorkloadMoveResponse
- type GoogleCloudAssuredworkloadsV1ApplyWorkloadUpdateOperationMetadata
- type GoogleCloudAssuredworkloadsV1ApplyWorkloadUpdateRequest
- type GoogleCloudAssuredworkloadsV1ApplyWorkloadUpdateResponse
- type GoogleCloudAssuredworkloadsV1AssetMoveAnalysis
- type GoogleCloudAssuredworkloadsV1CreateWorkloadOperationMetadata
- type GoogleCloudAssuredworkloadsV1EnableComplianceUpdatesResponse
- type GoogleCloudAssuredworkloadsV1EnableResourceMonitoringResponse
- type GoogleCloudAssuredworkloadsV1ListViolationsResponse
- type GoogleCloudAssuredworkloadsV1ListWorkloadUpdatesResponse
- type GoogleCloudAssuredworkloadsV1ListWorkloadsResponse
- type GoogleCloudAssuredworkloadsV1MoveAnalysisGroup
- type GoogleCloudAssuredworkloadsV1MoveAnalysisResult
- type GoogleCloudAssuredworkloadsV1MoveImpact
- type GoogleCloudAssuredworkloadsV1MutatePartnerPermissionsRequest
- type GoogleCloudAssuredworkloadsV1OrgPolicy
- type GoogleCloudAssuredworkloadsV1OrgPolicyPolicyRule
- type GoogleCloudAssuredworkloadsV1OrgPolicyPolicyRuleStringValues
- type GoogleCloudAssuredworkloadsV1OrgPolicyUpdate
- type GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesRequest
- type GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesResponse
- type GoogleCloudAssuredworkloadsV1UpdateDetails
- type GoogleCloudAssuredworkloadsV1Violation
- type GoogleCloudAssuredworkloadsV1ViolationExceptionContext
- type GoogleCloudAssuredworkloadsV1ViolationRemediation
- type GoogleCloudAssuredworkloadsV1ViolationRemediationInstructions
- type GoogleCloudAssuredworkloadsV1ViolationRemediationInstructionsConsole
- type GoogleCloudAssuredworkloadsV1ViolationRemediationInstructionsGcloud
- type GoogleCloudAssuredworkloadsV1Workload
- type GoogleCloudAssuredworkloadsV1WorkloadComplianceStatus
- type GoogleCloudAssuredworkloadsV1WorkloadEkmProvisioningResponse
- type GoogleCloudAssuredworkloadsV1WorkloadKMSSettings
- type GoogleCloudAssuredworkloadsV1WorkloadPartnerPermissions
- type GoogleCloudAssuredworkloadsV1WorkloadResourceInfo
- type GoogleCloudAssuredworkloadsV1WorkloadResourceSettings
- type GoogleCloudAssuredworkloadsV1WorkloadSaaEnrollmentResponse
- type GoogleCloudAssuredworkloadsV1WorkloadUpdate
- type GoogleCloudAssuredworkloadsV1WorkloadWorkloadOptions
- type GoogleLongrunningListOperationsResponse
- type GoogleLongrunningOperation
- type GoogleProtobufEmpty
- type GoogleRpcStatus
- type OrganizationsLocationsOperationsGetCall
- func (c *OrganizationsLocationsOperationsGetCall) Context(ctx context.Context) *OrganizationsLocationsOperationsGetCall
- func (c *OrganizationsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error)
- func (c *OrganizationsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsOperationsGetCall
- func (c *OrganizationsLocationsOperationsGetCall) Header() http.Header
- func (c *OrganizationsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *OrganizationsLocationsOperationsGetCall
- type OrganizationsLocationsOperationsListCall
- func (c *OrganizationsLocationsOperationsListCall) Context(ctx context.Context) *OrganizationsLocationsOperationsListCall
- func (c *OrganizationsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error)
- func (c *OrganizationsLocationsOperationsListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsOperationsListCall
- func (c *OrganizationsLocationsOperationsListCall) Filter(filter string) *OrganizationsLocationsOperationsListCall
- func (c *OrganizationsLocationsOperationsListCall) Header() http.Header
- func (c *OrganizationsLocationsOperationsListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsOperationsListCall
- func (c *OrganizationsLocationsOperationsListCall) PageSize(pageSize int64) *OrganizationsLocationsOperationsListCall
- func (c *OrganizationsLocationsOperationsListCall) PageToken(pageToken string) *OrganizationsLocationsOperationsListCall
- func (c *OrganizationsLocationsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error
- func (c *OrganizationsLocationsOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *OrganizationsLocationsOperationsListCall
- type OrganizationsLocationsOperationsService
- type OrganizationsLocationsService
- type OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall
- func (c *OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall) AssetTypes(assetTypes ...string) *OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall
- func (c *OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall) Context(ctx context.Context) *OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall
- func (c *OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAssuredworkloadsV1AnalyzeWorkloadMoveResponse, error)
- func (c *OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall) Fields(s ...googleapi.Field) *OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall
- func (c *OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall) Header() http.Header
- func (c *OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall) IfNoneMatch(entityTag string) *OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall
- func (c *OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall) PageSize(pageSize int64) *OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall
- func (c *OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall) PageToken(pageToken string) *OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall
- func (c *OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall) Pages(ctx context.Context, ...) error
- func (c *OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall) Project(project string) *OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall
- type OrganizationsLocationsWorkloadsCreateCall
- func (c *OrganizationsLocationsWorkloadsCreateCall) Context(ctx context.Context) *OrganizationsLocationsWorkloadsCreateCall
- func (c *OrganizationsLocationsWorkloadsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error)
- func (c *OrganizationsLocationsWorkloadsCreateCall) ExternalId(externalId string) *OrganizationsLocationsWorkloadsCreateCall
- func (c *OrganizationsLocationsWorkloadsCreateCall) Fields(s ...googleapi.Field) *OrganizationsLocationsWorkloadsCreateCall
- func (c *OrganizationsLocationsWorkloadsCreateCall) Header() http.Header
- type OrganizationsLocationsWorkloadsDeleteCall
- func (c *OrganizationsLocationsWorkloadsDeleteCall) Context(ctx context.Context) *OrganizationsLocationsWorkloadsDeleteCall
- func (c *OrganizationsLocationsWorkloadsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error)
- func (c *OrganizationsLocationsWorkloadsDeleteCall) Etag(etag string) *OrganizationsLocationsWorkloadsDeleteCall
- func (c *OrganizationsLocationsWorkloadsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsLocationsWorkloadsDeleteCall
- func (c *OrganizationsLocationsWorkloadsDeleteCall) Header() http.Header
- type OrganizationsLocationsWorkloadsEnableComplianceUpdatesCall
- func (c *OrganizationsLocationsWorkloadsEnableComplianceUpdatesCall) Context(ctx context.Context) *OrganizationsLocationsWorkloadsEnableComplianceUpdatesCall
- func (c *OrganizationsLocationsWorkloadsEnableComplianceUpdatesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAssuredworkloadsV1EnableComplianceUpdatesResponse, error)
- func (c *OrganizationsLocationsWorkloadsEnableComplianceUpdatesCall) Fields(s ...googleapi.Field) *OrganizationsLocationsWorkloadsEnableComplianceUpdatesCall
- func (c *OrganizationsLocationsWorkloadsEnableComplianceUpdatesCall) Header() http.Header
- type OrganizationsLocationsWorkloadsEnableResourceMonitoringCall
- func (c *OrganizationsLocationsWorkloadsEnableResourceMonitoringCall) Context(ctx context.Context) *OrganizationsLocationsWorkloadsEnableResourceMonitoringCall
- func (c *OrganizationsLocationsWorkloadsEnableResourceMonitoringCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAssuredworkloadsV1EnableResourceMonitoringResponse, error)
- func (c *OrganizationsLocationsWorkloadsEnableResourceMonitoringCall) Fields(s ...googleapi.Field) *OrganizationsLocationsWorkloadsEnableResourceMonitoringCall
- func (c *OrganizationsLocationsWorkloadsEnableResourceMonitoringCall) Header() http.Header
- type OrganizationsLocationsWorkloadsGetCall
- func (c *OrganizationsLocationsWorkloadsGetCall) Context(ctx context.Context) *OrganizationsLocationsWorkloadsGetCall
- func (c *OrganizationsLocationsWorkloadsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAssuredworkloadsV1Workload, error)
- func (c *OrganizationsLocationsWorkloadsGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsWorkloadsGetCall
- func (c *OrganizationsLocationsWorkloadsGetCall) Header() http.Header
- func (c *OrganizationsLocationsWorkloadsGetCall) IfNoneMatch(entityTag string) *OrganizationsLocationsWorkloadsGetCall
- type OrganizationsLocationsWorkloadsListCall
- func (c *OrganizationsLocationsWorkloadsListCall) Context(ctx context.Context) *OrganizationsLocationsWorkloadsListCall
- func (c *OrganizationsLocationsWorkloadsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAssuredworkloadsV1ListWorkloadsResponse, error)
- func (c *OrganizationsLocationsWorkloadsListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsWorkloadsListCall
- func (c *OrganizationsLocationsWorkloadsListCall) Filter(filter string) *OrganizationsLocationsWorkloadsListCall
- func (c *OrganizationsLocationsWorkloadsListCall) Header() http.Header
- func (c *OrganizationsLocationsWorkloadsListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsWorkloadsListCall
- func (c *OrganizationsLocationsWorkloadsListCall) PageSize(pageSize int64) *OrganizationsLocationsWorkloadsListCall
- func (c *OrganizationsLocationsWorkloadsListCall) PageToken(pageToken string) *OrganizationsLocationsWorkloadsListCall
- func (c *OrganizationsLocationsWorkloadsListCall) Pages(ctx context.Context, ...) error
- type OrganizationsLocationsWorkloadsMutatePartnerPermissionsCall
- func (c *OrganizationsLocationsWorkloadsMutatePartnerPermissionsCall) Context(ctx context.Context) *OrganizationsLocationsWorkloadsMutatePartnerPermissionsCall
- func (c *OrganizationsLocationsWorkloadsMutatePartnerPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAssuredworkloadsV1Workload, error)
- func (c *OrganizationsLocationsWorkloadsMutatePartnerPermissionsCall) Fields(s ...googleapi.Field) *OrganizationsLocationsWorkloadsMutatePartnerPermissionsCall
- func (c *OrganizationsLocationsWorkloadsMutatePartnerPermissionsCall) Header() http.Header
- type OrganizationsLocationsWorkloadsPatchCall
- func (c *OrganizationsLocationsWorkloadsPatchCall) Context(ctx context.Context) *OrganizationsLocationsWorkloadsPatchCall
- func (c *OrganizationsLocationsWorkloadsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAssuredworkloadsV1Workload, error)
- func (c *OrganizationsLocationsWorkloadsPatchCall) Fields(s ...googleapi.Field) *OrganizationsLocationsWorkloadsPatchCall
- func (c *OrganizationsLocationsWorkloadsPatchCall) Header() http.Header
- func (c *OrganizationsLocationsWorkloadsPatchCall) UpdateMask(updateMask string) *OrganizationsLocationsWorkloadsPatchCall
- type OrganizationsLocationsWorkloadsRestrictAllowedResourcesCall
- func (c *OrganizationsLocationsWorkloadsRestrictAllowedResourcesCall) Context(ctx context.Context) *OrganizationsLocationsWorkloadsRestrictAllowedResourcesCall
- func (c *OrganizationsLocationsWorkloadsRestrictAllowedResourcesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesResponse, error)
- func (c *OrganizationsLocationsWorkloadsRestrictAllowedResourcesCall) Fields(s ...googleapi.Field) *OrganizationsLocationsWorkloadsRestrictAllowedResourcesCall
- func (c *OrganizationsLocationsWorkloadsRestrictAllowedResourcesCall) Header() http.Header
- type OrganizationsLocationsWorkloadsService
- func (r *OrganizationsLocationsWorkloadsService) AnalyzeWorkloadMove(target string) *OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall
- func (r *OrganizationsLocationsWorkloadsService) Create(parent string, ...) *OrganizationsLocationsWorkloadsCreateCall
- func (r *OrganizationsLocationsWorkloadsService) Delete(name string) *OrganizationsLocationsWorkloadsDeleteCall
- func (r *OrganizationsLocationsWorkloadsService) EnableComplianceUpdates(name string) *OrganizationsLocationsWorkloadsEnableComplianceUpdatesCall
- func (r *OrganizationsLocationsWorkloadsService) EnableResourceMonitoring(name string) *OrganizationsLocationsWorkloadsEnableResourceMonitoringCall
- func (r *OrganizationsLocationsWorkloadsService) Get(name string) *OrganizationsLocationsWorkloadsGetCall
- func (r *OrganizationsLocationsWorkloadsService) List(parent string) *OrganizationsLocationsWorkloadsListCall
- func (r *OrganizationsLocationsWorkloadsService) MutatePartnerPermissions(name string, ...) *OrganizationsLocationsWorkloadsMutatePartnerPermissionsCall
- func (r *OrganizationsLocationsWorkloadsService) Patch(name string, ...) *OrganizationsLocationsWorkloadsPatchCall
- func (r *OrganizationsLocationsWorkloadsService) RestrictAllowedResources(name string, ...) *OrganizationsLocationsWorkloadsRestrictAllowedResourcesCall
- type OrganizationsLocationsWorkloadsUpdatesApplyCall
- func (c *OrganizationsLocationsWorkloadsUpdatesApplyCall) Context(ctx context.Context) *OrganizationsLocationsWorkloadsUpdatesApplyCall
- func (c *OrganizationsLocationsWorkloadsUpdatesApplyCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error)
- func (c *OrganizationsLocationsWorkloadsUpdatesApplyCall) Fields(s ...googleapi.Field) *OrganizationsLocationsWorkloadsUpdatesApplyCall
- func (c *OrganizationsLocationsWorkloadsUpdatesApplyCall) Header() http.Header
- type OrganizationsLocationsWorkloadsUpdatesListCall
- func (c *OrganizationsLocationsWorkloadsUpdatesListCall) Context(ctx context.Context) *OrganizationsLocationsWorkloadsUpdatesListCall
- func (c *OrganizationsLocationsWorkloadsUpdatesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAssuredworkloadsV1ListWorkloadUpdatesResponse, error)
- func (c *OrganizationsLocationsWorkloadsUpdatesListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsWorkloadsUpdatesListCall
- func (c *OrganizationsLocationsWorkloadsUpdatesListCall) Header() http.Header
- func (c *OrganizationsLocationsWorkloadsUpdatesListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsWorkloadsUpdatesListCall
- func (c *OrganizationsLocationsWorkloadsUpdatesListCall) PageSize(pageSize int64) *OrganizationsLocationsWorkloadsUpdatesListCall
- func (c *OrganizationsLocationsWorkloadsUpdatesListCall) PageToken(pageToken string) *OrganizationsLocationsWorkloadsUpdatesListCall
- func (c *OrganizationsLocationsWorkloadsUpdatesListCall) Pages(ctx context.Context, ...) error
- type OrganizationsLocationsWorkloadsUpdatesService
- type OrganizationsLocationsWorkloadsViolationsAcknowledgeCall
- func (c *OrganizationsLocationsWorkloadsViolationsAcknowledgeCall) Context(ctx context.Context) *OrganizationsLocationsWorkloadsViolationsAcknowledgeCall
- func (c *OrganizationsLocationsWorkloadsViolationsAcknowledgeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAssuredworkloadsV1AcknowledgeViolationResponse, error)
- func (c *OrganizationsLocationsWorkloadsViolationsAcknowledgeCall) Fields(s ...googleapi.Field) *OrganizationsLocationsWorkloadsViolationsAcknowledgeCall
- func (c *OrganizationsLocationsWorkloadsViolationsAcknowledgeCall) Header() http.Header
- type OrganizationsLocationsWorkloadsViolationsGetCall
- func (c *OrganizationsLocationsWorkloadsViolationsGetCall) Context(ctx context.Context) *OrganizationsLocationsWorkloadsViolationsGetCall
- func (c *OrganizationsLocationsWorkloadsViolationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAssuredworkloadsV1Violation, error)
- func (c *OrganizationsLocationsWorkloadsViolationsGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsWorkloadsViolationsGetCall
- func (c *OrganizationsLocationsWorkloadsViolationsGetCall) Header() http.Header
- func (c *OrganizationsLocationsWorkloadsViolationsGetCall) IfNoneMatch(entityTag string) *OrganizationsLocationsWorkloadsViolationsGetCall
- type OrganizationsLocationsWorkloadsViolationsListCall
- func (c *OrganizationsLocationsWorkloadsViolationsListCall) Context(ctx context.Context) *OrganizationsLocationsWorkloadsViolationsListCall
- func (c *OrganizationsLocationsWorkloadsViolationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAssuredworkloadsV1ListViolationsResponse, error)
- func (c *OrganizationsLocationsWorkloadsViolationsListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsWorkloadsViolationsListCall
- func (c *OrganizationsLocationsWorkloadsViolationsListCall) Filter(filter string) *OrganizationsLocationsWorkloadsViolationsListCall
- func (c *OrganizationsLocationsWorkloadsViolationsListCall) Header() http.Header
- func (c *OrganizationsLocationsWorkloadsViolationsListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsWorkloadsViolationsListCall
- func (c *OrganizationsLocationsWorkloadsViolationsListCall) IntervalEndTime(intervalEndTime string) *OrganizationsLocationsWorkloadsViolationsListCall
- func (c *OrganizationsLocationsWorkloadsViolationsListCall) IntervalStartTime(intervalStartTime string) *OrganizationsLocationsWorkloadsViolationsListCall
- func (c *OrganizationsLocationsWorkloadsViolationsListCall) PageSize(pageSize int64) *OrganizationsLocationsWorkloadsViolationsListCall
- func (c *OrganizationsLocationsWorkloadsViolationsListCall) PageToken(pageToken string) *OrganizationsLocationsWorkloadsViolationsListCall
- func (c *OrganizationsLocationsWorkloadsViolationsListCall) Pages(ctx context.Context, ...) error
- type OrganizationsLocationsWorkloadsViolationsService
- func (r *OrganizationsLocationsWorkloadsViolationsService) Acknowledge(name string, ...) *OrganizationsLocationsWorkloadsViolationsAcknowledgeCall
- func (r *OrganizationsLocationsWorkloadsViolationsService) Get(name string) *OrganizationsLocationsWorkloadsViolationsGetCall
- func (r *OrganizationsLocationsWorkloadsViolationsService) List(parent string) *OrganizationsLocationsWorkloadsViolationsListCall
- type OrganizationsService
- type Service
Constants¶
const (// See, edit, configure, and delete your Google Cloud data and see the email// address for your Google Account.CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform")
OAuth2 scopes used by this API.
Variables¶
This section is empty.
Functions¶
This section is empty.
Types¶
typeGoogleCloudAssuredworkloadsV1AcknowledgeViolationRequest¶added inv0.98.0
type GoogleCloudAssuredworkloadsV1AcknowledgeViolationRequest struct {// AcknowledgeType: Optional. Acknowledge type of specified violation.//// Possible values:// "ACKNOWLEDGE_TYPE_UNSPECIFIED" - Acknowledge type unspecified.// "SINGLE_VIOLATION" - Acknowledge only the specific violation.// "EXISTING_CHILD_RESOURCE_VIOLATIONS" - Acknowledge specified orgPolicy// violation and also associated resource violations.AcknowledgeTypestring `json:"acknowledgeType,omitempty"`// Comment: Required. Business justification explaining the need for violation// acknowledgementCommentstring `json:"comment,omitempty"`// NonCompliantOrgPolicy: Optional. This field is deprecated and will be// removed in future version of the API. Name of the OrgPolicy which was// modified with non-compliant change and resulted in this violation. Format:// projects/{project_number}/policies/{constraint_name}// folders/{folder_id}/policies/{constraint_name}// organizations/{organization_id}/policies/{constraint_name}NonCompliantOrgPolicystring `json:"nonCompliantOrgPolicy,omitempty"`// ForceSendFields is a list of field names (e.g. "AcknowledgeType") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AcknowledgeType") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleCloudAssuredworkloadsV1AcknowledgeViolationRequest: Request foracknowledging the violation
func (GoogleCloudAssuredworkloadsV1AcknowledgeViolationRequest)MarshalJSON¶added inv0.98.0
func (sGoogleCloudAssuredworkloadsV1AcknowledgeViolationRequest) MarshalJSON() ([]byte,error)
typeGoogleCloudAssuredworkloadsV1AcknowledgeViolationResponse¶added inv0.98.0
type GoogleCloudAssuredworkloadsV1AcknowledgeViolationResponse struct {// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`}GoogleCloudAssuredworkloadsV1AcknowledgeViolationResponse: Response forviolation acknowledgement
typeGoogleCloudAssuredworkloadsV1AnalyzeWorkloadMoveResponse¶added inv0.141.0
type GoogleCloudAssuredworkloadsV1AnalyzeWorkloadMoveResponse struct {// AssetMoveAnalyses: List of analysis results for each asset in scope.AssetMoveAnalyses []*GoogleCloudAssuredworkloadsV1AssetMoveAnalysis `json:"assetMoveAnalyses,omitempty"`// NextPageToken: The next page token. Is empty if the last page is reached.NextPageTokenstring `json:"nextPageToken,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AssetMoveAnalyses") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AssetMoveAnalyses") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleCloudAssuredworkloadsV1AnalyzeWorkloadMoveResponse: Responsecontaining the analysis results for the hypothetical resource move.
func (GoogleCloudAssuredworkloadsV1AnalyzeWorkloadMoveResponse)MarshalJSON¶added inv0.141.0
func (sGoogleCloudAssuredworkloadsV1AnalyzeWorkloadMoveResponse) MarshalJSON() ([]byte,error)
typeGoogleCloudAssuredworkloadsV1ApplyWorkloadUpdateOperationMetadata¶added inv0.230.0
type GoogleCloudAssuredworkloadsV1ApplyWorkloadUpdateOperationMetadata struct {// Action: Optional. The time the operation was created.//// Possible values:// "WORKLOAD_UPDATE_ACTION_UNSPECIFIED" - Unspecified value.// "APPLY" - The update is applied.Actionstring `json:"action,omitempty"`// CreateTime: Optional. Output only. The time the operation was created.CreateTimestring `json:"createTime,omitempty"`// UpdateName: Required. The resource name of the updateUpdateNamestring `json:"updateName,omitempty"`// ForceSendFields is a list of field names (e.g. "Action") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Action") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleCloudAssuredworkloadsV1ApplyWorkloadUpdateOperationMetadata: Operationmetadata to give request details of ApplyWorkloadUpdate.
func (GoogleCloudAssuredworkloadsV1ApplyWorkloadUpdateOperationMetadata)MarshalJSON¶added inv0.230.0
func (sGoogleCloudAssuredworkloadsV1ApplyWorkloadUpdateOperationMetadata) MarshalJSON() ([]byte,error)
typeGoogleCloudAssuredworkloadsV1ApplyWorkloadUpdateRequest¶added inv0.230.0
type GoogleCloudAssuredworkloadsV1ApplyWorkloadUpdateRequest struct {// Action: The action to be performed on the update.//// Possible values:// "WORKLOAD_UPDATE_ACTION_UNSPECIFIED" - Unspecified value.// "APPLY" - The update is applied.Actionstring `json:"action,omitempty"`// ForceSendFields is a list of field names (e.g. "Action") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Action") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleCloudAssuredworkloadsV1ApplyWorkloadUpdateRequest: Request to applyupdate to a workload.
func (GoogleCloudAssuredworkloadsV1ApplyWorkloadUpdateRequest)MarshalJSON¶added inv0.230.0
func (sGoogleCloudAssuredworkloadsV1ApplyWorkloadUpdateRequest) MarshalJSON() ([]byte,error)
typeGoogleCloudAssuredworkloadsV1ApplyWorkloadUpdateResponse¶added inv0.230.0
type GoogleCloudAssuredworkloadsV1ApplyWorkloadUpdateResponse struct {// AppliedUpdate: The update that was applied.AppliedUpdate *GoogleCloudAssuredworkloadsV1WorkloadUpdate `json:"appliedUpdate,omitempty"`// ForceSendFields is a list of field names (e.g. "AppliedUpdate") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AppliedUpdate") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleCloudAssuredworkloadsV1ApplyWorkloadUpdateResponse: Response forApplyWorkloadUpdate endpoint.
func (GoogleCloudAssuredworkloadsV1ApplyWorkloadUpdateResponse)MarshalJSON¶added inv0.230.0
func (sGoogleCloudAssuredworkloadsV1ApplyWorkloadUpdateResponse) MarshalJSON() ([]byte,error)
typeGoogleCloudAssuredworkloadsV1AssetMoveAnalysis¶added inv0.141.0
type GoogleCloudAssuredworkloadsV1AssetMoveAnalysis struct {// AnalysisGroups: List of eligible analyses performed for the asset.AnalysisGroups []*GoogleCloudAssuredworkloadsV1MoveAnalysisGroup `json:"analysisGroups,omitempty"`// Asset: The full resource name of the asset being analyzed. Example:// //compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instan// ce1Assetstring `json:"asset,omitempty"`// AssetType: Type of the asset being analyzed. Possible values will be among// the ones listed here// (https://cloud.google.com/asset-inventory/docs/supported-asset-types).AssetTypestring `json:"assetType,omitempty"`// ForceSendFields is a list of field names (e.g. "AnalysisGroups") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AnalysisGroups") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleCloudAssuredworkloadsV1AssetMoveAnalysis: Represents move analysisresults for an asset.
func (GoogleCloudAssuredworkloadsV1AssetMoveAnalysis)MarshalJSON¶added inv0.141.0
func (sGoogleCloudAssuredworkloadsV1AssetMoveAnalysis) MarshalJSON() ([]byte,error)
typeGoogleCloudAssuredworkloadsV1CreateWorkloadOperationMetadata¶
type GoogleCloudAssuredworkloadsV1CreateWorkloadOperationMetadata struct {// ComplianceRegime: Optional. Compliance controls that should be applied to// the resources managed by the workload.//// Possible values:// "COMPLIANCE_REGIME_UNSPECIFIED" - Unknown compliance regime.// "IL4" - Information protection as per DoD IL4 requirements.// "CJIS" - Criminal Justice Information Services (CJIS) Security policies.// "FEDRAMP_HIGH" - FedRAMP High data protection controls// "FEDRAMP_MODERATE" - FedRAMP Moderate data protection controls// "US_REGIONAL_ACCESS" - Assured Workloads For US Regions data protection// controls// "HIPAA" - [DEPRECATED] Health Insurance Portability and Accountability Act// controls// "HITRUST" - [DEPRECATED] Health Information Trust Alliance controls// "EU_REGIONS_AND_SUPPORT" - Assured Workloads For EU Regions and Support// controls// "CA_REGIONS_AND_SUPPORT" - Assured Workloads For Canada Regions and// Support controls// "ITAR" - International Traffic in Arms Regulations// "AU_REGIONS_AND_US_SUPPORT" - Assured Workloads for Australia Regions and// Support controls// "ASSURED_WORKLOADS_FOR_PARTNERS" - Assured Workloads for Partners;// "ISR_REGIONS" - Assured Workloads for Israel Regions// "ISR_REGIONS_AND_SUPPORT" - Assured Workloads for Israel Regions// "CA_PROTECTED_B" - Assured Workloads for Canada Protected B regime// "IL5" - Information protection as per DoD IL5 requirements.// "IL2" - Information protection as per DoD IL2 requirements.// "JP_REGIONS_AND_SUPPORT" - Assured Workloads for Japan Regions// "KSA_REGIONS_AND_SUPPORT_WITH_SOVEREIGNTY_CONTROLS" - Assured Workloads// Sovereign Controls KSA// "REGIONAL_CONTROLS" - Assured Workloads for Regional Controls// "HEALTHCARE_AND_LIFE_SCIENCES_CONTROLS" - Healthcare and Life Science// Controls// "HEALTHCARE_AND_LIFE_SCIENCES_CONTROLS_US_SUPPORT" - Healthcare and Life// Science Controls with US Support// "IRS_1075" - Internal Revenue Service 1075 controls// "CANADA_CONTROLLED_GOODS" - Canada Controlled Goods// "AUSTRALIA_DATA_BOUNDARY_AND_SUPPORT" - Australia Data Boundary and// Support// "CANADA_DATA_BOUNDARY_AND_SUPPORT" - Canada Data Boundary and Support// "DATA_BOUNDARY_FOR_CANADA_CONTROLLED_GOODS" - Data Boundary for Canada// Controlled Goods// "DATA_BOUNDARY_FOR_CANADA_PROTECTED_B" - Data Boundary for Canada// Protected B// "DATA_BOUNDARY_FOR_CJIS" - Data Boundary for CJIS// "DATA_BOUNDARY_FOR_FEDRAMP_HIGH" - Data Boundary for FedRAMP High// "DATA_BOUNDARY_FOR_FEDRAMP_MODERATE" - Data Boundary for FedRAMP Moderate// "DATA_BOUNDARY_FOR_IL2" - Data Boundary for IL2// "DATA_BOUNDARY_FOR_IL4" - Data Boundary for IL4// "DATA_BOUNDARY_FOR_IL5" - Data Boundary for IL5// "DATA_BOUNDARY_FOR_IRS_PUBLICATION_1075" - Data Boundary for IRS// Publication 1075// "DATA_BOUNDARY_FOR_ITAR" - Data Boundary for ITAR// "EU_DATA_BOUNDARY_AND_SUPPORT" - Data Boundary for EU Regions and Support// "ISRAEL_DATA_BOUNDARY_AND_SUPPORT" - Data Boundary for Israel Regions// "US_DATA_BOUNDARY_AND_SUPPORT" - Data Boundary for US Regions and Support// "US_DATA_BOUNDARY_FOR_HEALTHCARE_AND_LIFE_SCIENCES" - Data Boundary for US// Healthcare and Life Sciences// "US_DATA_BOUNDARY_FOR_HEALTHCARE_AND_LIFE_SCIENCES_WITH_SUPPORT" - Data// Boundary for US Healthcare and Life Sciences with Support// "KSA_DATA_BOUNDARY_WITH_ACCESS_JUSTIFICATIONS" - KSA Data Boundary with// Access Justifications// "REGIONAL_DATA_BOUNDARY" - Regional Data Boundary// "JAPAN_DATA_BOUNDARY" - JAPAN Data BoundaryComplianceRegimestring `json:"complianceRegime,omitempty"`// CreateTime: Optional. Time when the operation was created.CreateTimestring `json:"createTime,omitempty"`// DisplayName: Optional. The display name of the workload.DisplayNamestring `json:"displayName,omitempty"`// Parent: Optional. The parent of the workload.Parentstring `json:"parent,omitempty"`// ForceSendFields is a list of field names (e.g. "ComplianceRegime") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ComplianceRegime") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleCloudAssuredworkloadsV1CreateWorkloadOperationMetadata: Operationmetadata to give request details of CreateWorkload.
func (GoogleCloudAssuredworkloadsV1CreateWorkloadOperationMetadata)MarshalJSON¶
func (sGoogleCloudAssuredworkloadsV1CreateWorkloadOperationMetadata) MarshalJSON() ([]byte,error)
typeGoogleCloudAssuredworkloadsV1EnableComplianceUpdatesResponse¶added inv0.230.0
type GoogleCloudAssuredworkloadsV1EnableComplianceUpdatesResponse struct {// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`}GoogleCloudAssuredworkloadsV1EnableComplianceUpdatesResponse: Response forEnableComplianceUpdates endpoint.
typeGoogleCloudAssuredworkloadsV1EnableResourceMonitoringResponse¶added inv0.153.0
type GoogleCloudAssuredworkloadsV1EnableResourceMonitoringResponse struct {// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`}GoogleCloudAssuredworkloadsV1EnableResourceMonitoringResponse: Response forEnableResourceMonitoring endpoint.
typeGoogleCloudAssuredworkloadsV1ListViolationsResponse¶added inv0.98.0
type GoogleCloudAssuredworkloadsV1ListViolationsResponse struct {// NextPageToken: The next page token. Returns empty if reached the last page.NextPageTokenstring `json:"nextPageToken,omitempty"`// Violations: List of Violations under a Workload.Violations []*GoogleCloudAssuredworkloadsV1Violation `json:"violations,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "NextPageToken") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "NextPageToken") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleCloudAssuredworkloadsV1ListViolationsResponse: Response ofListViolations endpoint.
func (GoogleCloudAssuredworkloadsV1ListViolationsResponse)MarshalJSON¶added inv0.98.0
func (sGoogleCloudAssuredworkloadsV1ListViolationsResponse) MarshalJSON() ([]byte,error)
typeGoogleCloudAssuredworkloadsV1ListWorkloadUpdatesResponse¶added inv0.230.0
type GoogleCloudAssuredworkloadsV1ListWorkloadUpdatesResponse struct {// NextPageToken: The next page token. Return empty if reached the last page.NextPageTokenstring `json:"nextPageToken,omitempty"`// WorkloadUpdates: The list of workload updates for a given workload.WorkloadUpdates []*GoogleCloudAssuredworkloadsV1WorkloadUpdate `json:"workloadUpdates,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "NextPageToken") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "NextPageToken") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleCloudAssuredworkloadsV1ListWorkloadUpdatesResponse: Response oflisting the compliance updates per workload with pagination.
func (GoogleCloudAssuredworkloadsV1ListWorkloadUpdatesResponse)MarshalJSON¶added inv0.230.0
func (sGoogleCloudAssuredworkloadsV1ListWorkloadUpdatesResponse) MarshalJSON() ([]byte,error)
typeGoogleCloudAssuredworkloadsV1ListWorkloadsResponse¶
type GoogleCloudAssuredworkloadsV1ListWorkloadsResponse struct {// NextPageToken: The next page token. Return empty if reached the last page.NextPageTokenstring `json:"nextPageToken,omitempty"`// Workloads: List of Workloads under a given parent.Workloads []*GoogleCloudAssuredworkloadsV1Workload `json:"workloads,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "NextPageToken") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "NextPageToken") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleCloudAssuredworkloadsV1ListWorkloadsResponse: Response ofListWorkloads endpoint.
func (GoogleCloudAssuredworkloadsV1ListWorkloadsResponse)MarshalJSON¶
func (sGoogleCloudAssuredworkloadsV1ListWorkloadsResponse) MarshalJSON() ([]byte,error)
typeGoogleCloudAssuredworkloadsV1MoveAnalysisGroup¶added inv0.141.0
type GoogleCloudAssuredworkloadsV1MoveAnalysisGroup struct {// AnalysisResult: Result of a successful analysis.AnalysisResult *GoogleCloudAssuredworkloadsV1MoveAnalysisResult `json:"analysisResult,omitempty"`// DisplayName: Name of the analysis group.DisplayNamestring `json:"displayName,omitempty"`// Error: Error details for a failed analysis.Error *GoogleRpcStatus `json:"error,omitempty"`// ForceSendFields is a list of field names (e.g. "AnalysisResult") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AnalysisResult") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleCloudAssuredworkloadsV1MoveAnalysisGroup: Represents a logical groupof checks performed for an asset. If successful, the group contains theanalysis result, otherwise it contains an error with the failure reason.
func (GoogleCloudAssuredworkloadsV1MoveAnalysisGroup)MarshalJSON¶added inv0.141.0
func (sGoogleCloudAssuredworkloadsV1MoveAnalysisGroup) MarshalJSON() ([]byte,error)
typeGoogleCloudAssuredworkloadsV1MoveAnalysisResult¶added inv0.141.0
type GoogleCloudAssuredworkloadsV1MoveAnalysisResult struct {// Blockers: List of blockers. If not resolved, these will result in compliance// violations in the target.Blockers []*GoogleCloudAssuredworkloadsV1MoveImpact `json:"blockers,omitempty"`// Warnings: List of warnings. These are risks that may or may not result in// compliance violations.Warnings []*GoogleCloudAssuredworkloadsV1MoveImpact `json:"warnings,omitempty"`// ForceSendFields is a list of field names (e.g. "Blockers") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Blockers") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleCloudAssuredworkloadsV1MoveAnalysisResult: Represents the successfulmove analysis results for a group.
func (GoogleCloudAssuredworkloadsV1MoveAnalysisResult)MarshalJSON¶added inv0.141.0
func (sGoogleCloudAssuredworkloadsV1MoveAnalysisResult) MarshalJSON() ([]byte,error)
typeGoogleCloudAssuredworkloadsV1MoveImpact¶added inv0.141.0
type GoogleCloudAssuredworkloadsV1MoveImpact struct {// Detail: Explanation of the impact.Detailstring `json:"detail,omitempty"`// ForceSendFields is a list of field names (e.g. "Detail") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Detail") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleCloudAssuredworkloadsV1MoveImpact: Represents the impact of moving theasset to the target.
func (GoogleCloudAssuredworkloadsV1MoveImpact)MarshalJSON¶added inv0.141.0
func (sGoogleCloudAssuredworkloadsV1MoveImpact) MarshalJSON() ([]byte,error)
typeGoogleCloudAssuredworkloadsV1MutatePartnerPermissionsRequest¶added inv0.104.0
type GoogleCloudAssuredworkloadsV1MutatePartnerPermissionsRequest struct {// Etag: Optional. The etag of the workload. If this is provided, it must match// the server's etag.Etagstring `json:"etag,omitempty"`// PartnerPermissions: Required. The partner permissions to be updated.PartnerPermissions *GoogleCloudAssuredworkloadsV1WorkloadPartnerPermissions `json:"partnerPermissions,omitempty"`// UpdateMask: Required. The list of fields to be updated. E.g. update_mask {// paths: "partner_permissions.data_logs_viewer"}UpdateMaskstring `json:"updateMask,omitempty"`// ForceSendFields is a list of field names (e.g. "Etag") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Etag") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleCloudAssuredworkloadsV1MutatePartnerPermissionsRequest: Request forupdating permission settings for a partner workload.
func (GoogleCloudAssuredworkloadsV1MutatePartnerPermissionsRequest)MarshalJSON¶added inv0.104.0
func (sGoogleCloudAssuredworkloadsV1MutatePartnerPermissionsRequest) MarshalJSON() ([]byte,error)
typeGoogleCloudAssuredworkloadsV1OrgPolicy¶added inv0.230.0
type GoogleCloudAssuredworkloadsV1OrgPolicy struct {// Constraint: The constraint name of the OrgPolicy. e.g.// "constraints/gcp.resourceLocations".Constraintstring `json:"constraint,omitempty"`// Inherit: If `inherit` is true, policy rules of the lowest ancestor in the// resource hierarchy chain are inherited. If it is false, policy rules are not// inherited.Inheritbool `json:"inherit,omitempty"`// Reset: Ignores policies set above this resource and restores to the// `constraint_default` value. `reset` can only be true when `rules` is empty// and `inherit` is false.Resetbool `json:"reset,omitempty"`// Resource: Resource that the OrgPolicy attaches to. Format: folders/123"// projects/123".Resourcestring `json:"resource,omitempty"`// Rule: The rule of the OrgPolicy.Rule *GoogleCloudAssuredworkloadsV1OrgPolicyPolicyRule `json:"rule,omitempty"`// ForceSendFields is a list of field names (e.g. "Constraint") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Constraint") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleCloudAssuredworkloadsV1OrgPolicy: This assured workload service objectis used to represent the org policy attached to a resource. It servces thesame purpose as the orgpolicy.v2.Policy object but with functionality thatis limited to what is supported by Assured Workloads(e.g. only one ruleunder one OrgPolicy object, no conditions, etc).
func (GoogleCloudAssuredworkloadsV1OrgPolicy)MarshalJSON¶added inv0.230.0
func (sGoogleCloudAssuredworkloadsV1OrgPolicy) MarshalJSON() ([]byte,error)
typeGoogleCloudAssuredworkloadsV1OrgPolicyPolicyRule¶added inv0.230.0
type GoogleCloudAssuredworkloadsV1OrgPolicyPolicyRule struct {// AllowAll: ListPolicy only when all values are allowed.AllowAllbool `json:"allowAll,omitempty"`// DenyAll: ListPolicy only when all values are denied.DenyAllbool `json:"denyAll,omitempty"`// Enforce: BooleanPolicy only.Enforcebool `json:"enforce,omitempty"`// Values: ListPolicy only when custom values are specified.Values *GoogleCloudAssuredworkloadsV1OrgPolicyPolicyRuleStringValues `json:"values,omitempty"`// ForceSendFields is a list of field names (e.g. "AllowAll") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AllowAll") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleCloudAssuredworkloadsV1OrgPolicyPolicyRule: A rule used to expressthis policy.
func (GoogleCloudAssuredworkloadsV1OrgPolicyPolicyRule)MarshalJSON¶added inv0.230.0
func (sGoogleCloudAssuredworkloadsV1OrgPolicyPolicyRule) MarshalJSON() ([]byte,error)
typeGoogleCloudAssuredworkloadsV1OrgPolicyPolicyRuleStringValues¶added inv0.230.0
type GoogleCloudAssuredworkloadsV1OrgPolicyPolicyRuleStringValues struct {// AllowedValues: List of values allowed at this resource.AllowedValues []string `json:"allowedValues,omitempty"`// DeniedValues: List of values denied at this resource.DeniedValues []string `json:"deniedValues,omitempty"`// ForceSendFields is a list of field names (e.g. "AllowedValues") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AllowedValues") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleCloudAssuredworkloadsV1OrgPolicyPolicyRuleStringValues: The valuesallowed for a ListPolicy.
func (GoogleCloudAssuredworkloadsV1OrgPolicyPolicyRuleStringValues)MarshalJSON¶added inv0.230.0
func (sGoogleCloudAssuredworkloadsV1OrgPolicyPolicyRuleStringValues) MarshalJSON() ([]byte,error)
typeGoogleCloudAssuredworkloadsV1OrgPolicyUpdate¶added inv0.230.0
type GoogleCloudAssuredworkloadsV1OrgPolicyUpdate struct {// AppliedPolicy: The org policy currently applied on the assured workload// resource.AppliedPolicy *GoogleCloudAssuredworkloadsV1OrgPolicy `json:"appliedPolicy,omitempty"`// SuggestedPolicy: The suggested org policy that replaces the applied policy.SuggestedPolicy *GoogleCloudAssuredworkloadsV1OrgPolicy `json:"suggestedPolicy,omitempty"`// ForceSendFields is a list of field names (e.g. "AppliedPolicy") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AppliedPolicy") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleCloudAssuredworkloadsV1OrgPolicyUpdate: Represents an update for anorg policy control applied on an Assured Workload resource. The inheritedorg policy is not considered.
func (GoogleCloudAssuredworkloadsV1OrgPolicyUpdate)MarshalJSON¶added inv0.230.0
func (sGoogleCloudAssuredworkloadsV1OrgPolicyUpdate) MarshalJSON() ([]byte,error)
typeGoogleCloudAssuredworkloadsV1RestrictAllowedResourcesRequest¶added inv0.85.0
type GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesRequest struct {// RestrictionType: Required. The type of restriction for using gcp products in// the Workload environment.//// Possible values:// "RESTRICTION_TYPE_UNSPECIFIED" - Unknown restriction type.// "ALLOW_ALL_GCP_RESOURCES" - Allow the use all of all gcp products,// irrespective of the compliance posture. This effectively removes// gcp.restrictServiceUsage OrgPolicy on the AssuredWorkloads Folder.// "ALLOW_COMPLIANT_RESOURCES" - 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.// "APPEND_COMPLIANT_RESOURCES" - Similar to ALLOW_COMPLIANT_RESOURCES but// adds the list of compliant resources to the existing list of compliant// resources. Effective org-policy of the Folder is considered to ensure there// is no disruption to the existing customer workflows.RestrictionTypestring `json:"restrictionType,omitempty"`// ForceSendFields is a list of field names (e.g. "RestrictionType") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "RestrictionType") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesRequest: Request forrestricting list of available resources in Workload environment.
func (GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesRequest)MarshalJSON¶added inv0.85.0
func (sGoogleCloudAssuredworkloadsV1RestrictAllowedResourcesRequest) MarshalJSON() ([]byte,error)
typeGoogleCloudAssuredworkloadsV1RestrictAllowedResourcesResponse¶added inv0.85.0
type GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesResponse struct {// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`}GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesResponse: Response forrestricting the list of allowed resources.
typeGoogleCloudAssuredworkloadsV1UpdateDetails¶added inv0.230.0
type GoogleCloudAssuredworkloadsV1UpdateDetails struct {// OrgPolicyUpdate: Update to one org policy, e.g. gcp.resourceLocation.OrgPolicyUpdate *GoogleCloudAssuredworkloadsV1OrgPolicyUpdate `json:"orgPolicyUpdate,omitempty"`// ForceSendFields is a list of field names (e.g. "OrgPolicyUpdate") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "OrgPolicyUpdate") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleCloudAssuredworkloadsV1UpdateDetails: The details of the update.
func (GoogleCloudAssuredworkloadsV1UpdateDetails)MarshalJSON¶added inv0.230.0
func (sGoogleCloudAssuredworkloadsV1UpdateDetails) MarshalJSON() ([]byte,error)
typeGoogleCloudAssuredworkloadsV1Violation¶added inv0.98.0
type GoogleCloudAssuredworkloadsV1Violation struct {// Acknowledged: A boolean that indicates if the violation is acknowledgedAcknowledgedbool `json:"acknowledged,omitempty"`// AcknowledgementTime: Optional. Timestamp when this violation was// acknowledged first. Check exception_contexts to find the last time the// violation was acknowledged when there are more than one violations. This// field will be absent when acknowledged field is marked as false.AcknowledgementTimestring `json:"acknowledgementTime,omitempty"`// AssociatedOrgPolicyViolationId: Optional. Output only. Violation Id of the// org-policy violation due to which the resource violation is caused. Empty// for org-policy violations.AssociatedOrgPolicyViolationIdstring `json:"associatedOrgPolicyViolationId,omitempty"`// AuditLogLink: Output only. Immutable. Audit Log Link for violated resource// Format://https://console.cloud.google.com/logs/query;query={logName}{protoPayload.resourceName}{timeRange}{folder}AuditLogLinkstring `json:"auditLogLink,omitempty"`// BeginTime: Output only. Time of the event which triggered the Violation.BeginTimestring `json:"beginTime,omitempty"`// Category: Output only. Category under which this violation is mapped. e.g.// Location, Service Usage, Access, Encryption, etc.Categorystring `json:"category,omitempty"`// Description: Output only. Description for the Violation. e.g. OrgPolicy// gcp.resourceLocations has non compliant value.Descriptionstring `json:"description,omitempty"`// ExceptionAuditLogLink: Output only. Immutable. Audit Log link to find// business justification provided for violation exception. Format://https://console.cloud.google.com/logs/query;query={logName}{protoPayload.resourceName}{protoPayload.methodName}{timeRange}{organization}ExceptionAuditLogLinkstring `json:"exceptionAuditLogLink,omitempty"`// ExceptionContexts: Output only. List of all the exception detail added for// the violation.ExceptionContexts []*GoogleCloudAssuredworkloadsV1ViolationExceptionContext `json:"exceptionContexts,omitempty"`// Name: Output only. Immutable. Name of the Violation. Format:// organizations/{organization}/locations/{location}/workloads/{workload_id}/vio// lations/{violations_id}Namestring `json:"name,omitempty"`// NonCompliantOrgPolicy: Output only. Immutable. Name of the OrgPolicy which// was modified with non-compliant change and resulted this violation. Format:// projects/{project_number}/policies/{constraint_name}// folders/{folder_id}/policies/{constraint_name}// organizations/{organization_id}/policies/{constraint_name}NonCompliantOrgPolicystring `json:"nonCompliantOrgPolicy,omitempty"`// OrgPolicyConstraint: Output only. Immutable. The org-policy-constraint that// was incorrectly changed, which resulted in this violation.OrgPolicyConstraintstring `json:"orgPolicyConstraint,omitempty"`// ParentProjectNumber: Optional. Output only. Parent project number where// resource is present. Empty for org-policy violations.ParentProjectNumberstring `json:"parentProjectNumber,omitempty"`// Remediation: Output only. Compliance violation remediationRemediation *GoogleCloudAssuredworkloadsV1ViolationRemediation `json:"remediation,omitempty"`// ResolveTime: Output only. Time of the event which fixed the Violation. If// the violation is ACTIVE this will be empty.ResolveTimestring `json:"resolveTime,omitempty"`// ResourceName: Optional. Output only. Name of the resource like// //storage.googleapis.com/myprojectxyz-testbucket. Empty for org-policy// violations.ResourceNamestring `json:"resourceName,omitempty"`// ResourceType: Optional. Output only. Type of the resource like// compute.googleapis.com/Disk, etc. Empty for org-policy violations.ResourceTypestring `json:"resourceType,omitempty"`// State: Output only. State of the violation//// Possible values:// "STATE_UNSPECIFIED" - Unspecified state.// "RESOLVED" - Violation is resolved.// "UNRESOLVED" - Violation is Unresolved// "EXCEPTION" - Violation is ExceptionStatestring `json:"state,omitempty"`// UpdateTime: Output only. The last time when the Violation record was// updated.UpdateTimestring `json:"updateTime,omitempty"`// ViolationType: Output only. Type of the violation//// Possible values:// "VIOLATION_TYPE_UNSPECIFIED" - Unspecified type.// "ORG_POLICY" - Org Policy Violation.// "RESOURCE" - Resource Violation.ViolationTypestring `json:"violationType,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Acknowledged") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Acknowledged") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleCloudAssuredworkloadsV1Violation: Workload monitoring Violation.
func (GoogleCloudAssuredworkloadsV1Violation)MarshalJSON¶added inv0.98.0
func (sGoogleCloudAssuredworkloadsV1Violation) MarshalJSON() ([]byte,error)
typeGoogleCloudAssuredworkloadsV1ViolationExceptionContext¶added inv0.119.0
type GoogleCloudAssuredworkloadsV1ViolationExceptionContext struct {// AcknowledgementTime: Timestamp when the violation was acknowledged.AcknowledgementTimestring `json:"acknowledgementTime,omitempty"`// Comment: Business justification provided towards the acknowledgement of the// violation.Commentstring `json:"comment,omitempty"`// UserName: Name of the user (or service account) who acknowledged the// violation.UserNamestring `json:"userName,omitempty"`// ForceSendFields is a list of field names (e.g. "AcknowledgementTime") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AcknowledgementTime") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleCloudAssuredworkloadsV1ViolationExceptionContext: Violation exceptiondetail.
func (GoogleCloudAssuredworkloadsV1ViolationExceptionContext)MarshalJSON¶added inv0.119.0
func (sGoogleCloudAssuredworkloadsV1ViolationExceptionContext) MarshalJSON() ([]byte,error)
typeGoogleCloudAssuredworkloadsV1ViolationRemediation¶added inv0.98.0
type GoogleCloudAssuredworkloadsV1ViolationRemediation struct {// CompliantValues: Values that can resolve the violation For example: for list// org policy violations, this will either be the list of allowed or denied// valuesCompliantValues []string `json:"compliantValues,omitempty"`// Instructions: Required. Remediation instructions to resolve violationsInstructions *GoogleCloudAssuredworkloadsV1ViolationRemediationInstructions `json:"instructions,omitempty"`// RemediationType: Output only. Reemediation type based on the type of org// policy values violated//// Possible values:// "REMEDIATION_TYPE_UNSPECIFIED" - Unspecified remediation type// "REMEDIATION_BOOLEAN_ORG_POLICY_VIOLATION" - Remediation type for boolean// org policy// "REMEDIATION_LIST_ALLOWED_VALUES_ORG_POLICY_VIOLATION" - Remediation type// for list org policy which have allowed values in the monitoring rule// "REMEDIATION_LIST_DENIED_VALUES_ORG_POLICY_VIOLATION" - Remediation type// for list org policy which have denied values in the monitoring rule// "REMEDIATION_RESTRICT_CMEK_CRYPTO_KEY_PROJECTS_ORG_POLICY_VIOLATION" -// Remediation type for gcp.restrictCmekCryptoKeyProjects// "REMEDIATION_RESOURCE_VIOLATION" - Remediation type for resource// violation.// "REMEDIATION_RESOURCE_VIOLATION_NON_CMEK_SERVICES" - Remediation type for// resource violation due to gcp.restrictNonCmekServicesRemediationTypestring `json:"remediationType,omitempty"`// ForceSendFields is a list of field names (e.g. "CompliantValues") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CompliantValues") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleCloudAssuredworkloadsV1ViolationRemediation: Represents remediationguidance to resolve compliance violation for AssuredWorkload
func (GoogleCloudAssuredworkloadsV1ViolationRemediation)MarshalJSON¶added inv0.98.0
func (sGoogleCloudAssuredworkloadsV1ViolationRemediation) MarshalJSON() ([]byte,error)
typeGoogleCloudAssuredworkloadsV1ViolationRemediationInstructions¶added inv0.98.0
type GoogleCloudAssuredworkloadsV1ViolationRemediationInstructions struct {// ConsoleInstructions: Remediation instructions to resolve violation via cloud// consoleConsoleInstructions *GoogleCloudAssuredworkloadsV1ViolationRemediationInstructionsConsole `json:"consoleInstructions,omitempty"`// GcloudInstructions: Remediation instructions to resolve violation via gcloud// cliGcloudInstructions *GoogleCloudAssuredworkloadsV1ViolationRemediationInstructionsGcloud `json:"gcloudInstructions,omitempty"`// ForceSendFields is a list of field names (e.g. "ConsoleInstructions") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ConsoleInstructions") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleCloudAssuredworkloadsV1ViolationRemediationInstructions: Instructionsto remediate violation
func (GoogleCloudAssuredworkloadsV1ViolationRemediationInstructions)MarshalJSON¶added inv0.98.0
func (sGoogleCloudAssuredworkloadsV1ViolationRemediationInstructions) MarshalJSON() ([]byte,error)
typeGoogleCloudAssuredworkloadsV1ViolationRemediationInstructionsConsole¶added inv0.98.0
type GoogleCloudAssuredworkloadsV1ViolationRemediationInstructionsConsole struct {// AdditionalLinks: Additional urls for more information about stepsAdditionalLinks []string `json:"additionalLinks,omitempty"`// ConsoleUris: Link to console page where violations can be resolvedConsoleUris []string `json:"consoleUris,omitempty"`// Steps: Steps to resolve violation via cloud consoleSteps []string `json:"steps,omitempty"`// ForceSendFields is a list of field names (e.g. "AdditionalLinks") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AdditionalLinks") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleCloudAssuredworkloadsV1ViolationRemediationInstructionsConsole:Remediation instructions to resolve violation via cloud console
func (GoogleCloudAssuredworkloadsV1ViolationRemediationInstructionsConsole)MarshalJSON¶added inv0.98.0
func (sGoogleCloudAssuredworkloadsV1ViolationRemediationInstructionsConsole) MarshalJSON() ([]byte,error)
typeGoogleCloudAssuredworkloadsV1ViolationRemediationInstructionsGcloud¶added inv0.98.0
type GoogleCloudAssuredworkloadsV1ViolationRemediationInstructionsGcloud struct {// AdditionalLinks: Additional urls for more information about stepsAdditionalLinks []string `json:"additionalLinks,omitempty"`// GcloudCommands: Gcloud command to resolve violationGcloudCommands []string `json:"gcloudCommands,omitempty"`// Steps: Steps to resolve violation via gcloud cliSteps []string `json:"steps,omitempty"`// ForceSendFields is a list of field names (e.g. "AdditionalLinks") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AdditionalLinks") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleCloudAssuredworkloadsV1ViolationRemediationInstructionsGcloud:Remediation instructions to resolve violation via gcloud cli
func (GoogleCloudAssuredworkloadsV1ViolationRemediationInstructionsGcloud)MarshalJSON¶added inv0.98.0
func (sGoogleCloudAssuredworkloadsV1ViolationRemediationInstructionsGcloud) MarshalJSON() ([]byte,error)
typeGoogleCloudAssuredworkloadsV1Workload¶
type GoogleCloudAssuredworkloadsV1Workload struct {// BillingAccount: Optional. 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`.BillingAccountstring `json:"billingAccount,omitempty"`// ComplianceRegime: Required. Immutable. Compliance Regime associated with// this workload.//// Possible values:// "COMPLIANCE_REGIME_UNSPECIFIED" - Unknown compliance regime.// "IL4" - Information protection as per DoD IL4 requirements.// "CJIS" - Criminal Justice Information Services (CJIS) Security policies.// "FEDRAMP_HIGH" - FedRAMP High data protection controls// "FEDRAMP_MODERATE" - FedRAMP Moderate data protection controls// "US_REGIONAL_ACCESS" - Assured Workloads For US Regions data protection// controls// "HIPAA" - [DEPRECATED] Health Insurance Portability and Accountability Act// controls// "HITRUST" - [DEPRECATED] Health Information Trust Alliance controls// "EU_REGIONS_AND_SUPPORT" - Assured Workloads For EU Regions and Support// controls// "CA_REGIONS_AND_SUPPORT" - Assured Workloads For Canada Regions and// Support controls// "ITAR" - International Traffic in Arms Regulations// "AU_REGIONS_AND_US_SUPPORT" - Assured Workloads for Australia Regions and// Support controls// "ASSURED_WORKLOADS_FOR_PARTNERS" - Assured Workloads for Partners;// "ISR_REGIONS" - Assured Workloads for Israel Regions// "ISR_REGIONS_AND_SUPPORT" - Assured Workloads for Israel Regions// "CA_PROTECTED_B" - Assured Workloads for Canada Protected B regime// "IL5" - Information protection as per DoD IL5 requirements.// "IL2" - Information protection as per DoD IL2 requirements.// "JP_REGIONS_AND_SUPPORT" - Assured Workloads for Japan Regions// "KSA_REGIONS_AND_SUPPORT_WITH_SOVEREIGNTY_CONTROLS" - Assured Workloads// Sovereign Controls KSA// "REGIONAL_CONTROLS" - Assured Workloads for Regional Controls// "HEALTHCARE_AND_LIFE_SCIENCES_CONTROLS" - Healthcare and Life Science// Controls// "HEALTHCARE_AND_LIFE_SCIENCES_CONTROLS_US_SUPPORT" - Healthcare and Life// Science Controls with US Support// "IRS_1075" - Internal Revenue Service 1075 controls// "CANADA_CONTROLLED_GOODS" - Canada Controlled Goods// "AUSTRALIA_DATA_BOUNDARY_AND_SUPPORT" - Australia Data Boundary and// Support// "CANADA_DATA_BOUNDARY_AND_SUPPORT" - Canada Data Boundary and Support// "DATA_BOUNDARY_FOR_CANADA_CONTROLLED_GOODS" - Data Boundary for Canada// Controlled Goods// "DATA_BOUNDARY_FOR_CANADA_PROTECTED_B" - Data Boundary for Canada// Protected B// "DATA_BOUNDARY_FOR_CJIS" - Data Boundary for CJIS// "DATA_BOUNDARY_FOR_FEDRAMP_HIGH" - Data Boundary for FedRAMP High// "DATA_BOUNDARY_FOR_FEDRAMP_MODERATE" - Data Boundary for FedRAMP Moderate// "DATA_BOUNDARY_FOR_IL2" - Data Boundary for IL2// "DATA_BOUNDARY_FOR_IL4" - Data Boundary for IL4// "DATA_BOUNDARY_FOR_IL5" - Data Boundary for IL5// "DATA_BOUNDARY_FOR_IRS_PUBLICATION_1075" - Data Boundary for IRS// Publication 1075// "DATA_BOUNDARY_FOR_ITAR" - Data Boundary for ITAR// "EU_DATA_BOUNDARY_AND_SUPPORT" - Data Boundary for EU Regions and Support// "ISRAEL_DATA_BOUNDARY_AND_SUPPORT" - Data Boundary for Israel Regions// "US_DATA_BOUNDARY_AND_SUPPORT" - Data Boundary for US Regions and Support// "US_DATA_BOUNDARY_FOR_HEALTHCARE_AND_LIFE_SCIENCES" - Data Boundary for US// Healthcare and Life Sciences// "US_DATA_BOUNDARY_FOR_HEALTHCARE_AND_LIFE_SCIENCES_WITH_SUPPORT" - Data// Boundary for US Healthcare and Life Sciences with Support// "KSA_DATA_BOUNDARY_WITH_ACCESS_JUSTIFICATIONS" - KSA Data Boundary with// Access Justifications// "REGIONAL_DATA_BOUNDARY" - Regional Data Boundary// "JAPAN_DATA_BOUNDARY" - JAPAN Data BoundaryComplianceRegimestring `json:"complianceRegime,omitempty"`// ComplianceStatus: Output only. Count of active Violations in the Workload.ComplianceStatus *GoogleCloudAssuredworkloadsV1WorkloadComplianceStatus `json:"complianceStatus,omitempty"`// CompliantButDisallowedServices: 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 `json:"compliantButDisallowedServices,omitempty"`// CreateTime: Output only. Immutable. The Workload creation timestamp.CreateTimestring `json:"createTime,omitempty"`// DisplayName: 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// WorkloadDisplayNamestring `json:"displayName,omitempty"`// EkmProvisioningResponse: Output only. Represents the Ekm Provisioning State// of the given workload.EkmProvisioningResponse *GoogleCloudAssuredworkloadsV1WorkloadEkmProvisioningResponse `json:"ekmProvisioningResponse,omitempty"`// EnableSovereignControls: Optional. Indicates the sovereignty status of the// given workload. Currently meant to be used by Europe/Canada customers.EnableSovereignControlsbool `json:"enableSovereignControls,omitempty"`// Etag: Optional. ETag of the workload, it is calculated on the basis of the// Workload contents. It will be used in Update & Delete operations.Etagstring `json:"etag,omitempty"`// KajEnrollmentState: Output only. Represents the KAJ enrollment state of the// given workload.//// Possible values:// "KAJ_ENROLLMENT_STATE_UNSPECIFIED" - Default State for KAJ Enrollment.// "KAJ_ENROLLMENT_STATE_PENDING" - Pending State for KAJ Enrollment.// "KAJ_ENROLLMENT_STATE_COMPLETE" - Complete State for KAJ Enrollment.KajEnrollmentStatestring `json:"kajEnrollmentState,omitempty"`// KmsSettings: 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.KmsSettings *GoogleCloudAssuredworkloadsV1WorkloadKMSSettings `json:"kmsSettings,omitempty"`// Labels: Optional. Labels applied to the workload.Labels map[string]string `json:"labels,omitempty"`// Name: Optional. The resource name of the workload. Format:// organizations/{organization}/locations/{location}/workloads/{workload}// Read-only.Namestring `json:"name,omitempty"`// Partner: Optional. Partner regime associated with this workload.//// Possible values:// "PARTNER_UNSPECIFIED"// "LOCAL_CONTROLS_BY_S3NS" - Enum representing S3NS (Thales) partner.// "SOVEREIGN_CONTROLS_BY_T_SYSTEMS" - Enum representing T_SYSTEM (TSI)// partner.// "SOVEREIGN_CONTROLS_BY_SIA_MINSAIT" - Enum representing SIA_MINSAIT// (Indra) partner.// "SOVEREIGN_CONTROLS_BY_PSN" - Enum representing PSN (TIM) partner.// "SOVEREIGN_CONTROLS_BY_CNTXT" - Enum representing CNTXT (Kingdom of Saudi// Arabia) partner.// "SOVEREIGN_CONTROLS_BY_CNTXT_NO_EKM" - Enum representing CNTXT (Kingdom of// Saudi Arabia) partner offering without EKM.Partnerstring `json:"partner,omitempty"`// PartnerPermissions: Optional. Permissions granted to the AW Partner SA// account for the customer workloadPartnerPermissions *GoogleCloudAssuredworkloadsV1WorkloadPartnerPermissions `json:"partnerPermissions,omitempty"`// PartnerServicesBillingAccount: Optional. Billing account necessary for// purchasing services from Sovereign Partners. This field is required for// creating SIA/PSN/CNTXT partner workloads. The caller should have// 'billing.resourceAssociations.create' IAM permission on this// billing-account. The format of this string is// billingAccounts/AAAAAA-BBBBBB-CCCCCCPartnerServicesBillingAccountstring `json:"partnerServicesBillingAccount,omitempty"`// ProvisionedResourcesParent: 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}ProvisionedResourcesParentstring `json:"provisionedResourcesParent,omitempty"`// ResourceMonitoringEnabled: Output only. Indicates whether resource// monitoring is enabled for workload or not. It is true when Resource feed is// subscribed to AWM topic and AWM Service Agent Role is binded to AW Service// Account for resource Assured workload.ResourceMonitoringEnabledbool `json:"resourceMonitoringEnabled,omitempty"`// ResourceSettings: 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 []*GoogleCloudAssuredworkloadsV1WorkloadResourceSettings `json:"resourceSettings,omitempty"`// Resources: 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 []*GoogleCloudAssuredworkloadsV1WorkloadResourceInfo `json:"resources,omitempty"`// SaaEnrollmentResponse: 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 *GoogleCloudAssuredworkloadsV1WorkloadSaaEnrollmentResponse `json:"saaEnrollmentResponse,omitempty"`// ViolationNotificationsEnabled: Optional. Indicates whether the e-mail// notification for a violation is enabled for a workload. This value will be// by default True, and if not present will be considered as true. This should// only be updated via updateWorkload call. Any Changes to this field during// the createWorkload call will not be honored. This will always be true while// creating the workload.ViolationNotificationsEnabledbool `json:"violationNotificationsEnabled,omitempty"`// WorkloadOptions: Optional. Options to be set for the given created workload.WorkloadOptions *GoogleCloudAssuredworkloadsV1WorkloadWorkloadOptions `json:"workloadOptions,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "BillingAccount") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "BillingAccount") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleCloudAssuredworkloadsV1Workload: A Workload object for managing highlyregulated workloads of cloud customers.
func (GoogleCloudAssuredworkloadsV1Workload)MarshalJSON¶
func (sGoogleCloudAssuredworkloadsV1Workload) MarshalJSON() ([]byte,error)
typeGoogleCloudAssuredworkloadsV1WorkloadComplianceStatus¶added inv0.102.0
type GoogleCloudAssuredworkloadsV1WorkloadComplianceStatus struct {// AcknowledgedResourceViolationCount: Number of current resource violations// which are not acknowledged.AcknowledgedResourceViolationCountint64 `json:"acknowledgedResourceViolationCount,omitempty"`// AcknowledgedViolationCount: Number of current orgPolicy violations which are// acknowledged.AcknowledgedViolationCountint64 `json:"acknowledgedViolationCount,omitempty"`// ActiveResourceViolationCount: Number of current resource violations which// are acknowledged.ActiveResourceViolationCountint64 `json:"activeResourceViolationCount,omitempty"`// ActiveViolationCount: Number of current orgPolicy violations which are not// acknowledged.ActiveViolationCountint64 `json:"activeViolationCount,omitempty"`// ForceSendFields is a list of field names (e.g.// "AcknowledgedResourceViolationCount") to unconditionally include in API// requests. By default, fields with empty or default values are omitted from// API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g.// "AcknowledgedResourceViolationCount") to include in API requests with the// JSON null value. By default, fields with empty values are omitted from API// requests. Seehttps://pkg.go.dev/google.golang.org/api#hdr-NullFields for// more details.NullFields []string `json:"-"`}GoogleCloudAssuredworkloadsV1WorkloadComplianceStatus: Represents theCompliance Status of this workload
func (GoogleCloudAssuredworkloadsV1WorkloadComplianceStatus)MarshalJSON¶added inv0.102.0
func (sGoogleCloudAssuredworkloadsV1WorkloadComplianceStatus) MarshalJSON() ([]byte,error)
typeGoogleCloudAssuredworkloadsV1WorkloadEkmProvisioningResponse¶added inv0.112.0
type GoogleCloudAssuredworkloadsV1WorkloadEkmProvisioningResponse struct {// EkmProvisioningErrorDomain: Indicates Ekm provisioning error if any.//// Possible values:// "EKM_PROVISIONING_ERROR_DOMAIN_UNSPECIFIED" - No error domain// "UNSPECIFIED_ERROR" - Error but domain is unspecified.// "GOOGLE_SERVER_ERROR" - Internal logic breaks within provisioning code.// "EXTERNAL_USER_ERROR" - Error occurred with the customer not granting// permission/creating resource.// "EXTERNAL_PARTNER_ERROR" - Error occurred within the partner's// provisioning cluster.// "TIMEOUT_ERROR" - Resource wasn't provisioned in the required 7 day time// periodEkmProvisioningErrorDomainstring `json:"ekmProvisioningErrorDomain,omitempty"`// EkmProvisioningErrorMapping: Detailed error message if Ekm provisioning// fails//// Possible values:// "EKM_PROVISIONING_ERROR_MAPPING_UNSPECIFIED" - Error is unspecified.// "INVALID_SERVICE_ACCOUNT" - Service account is used is invalid.// "MISSING_METRICS_SCOPE_ADMIN_PERMISSION" - Iam permission// monitoring.MetricsScopeAdmin wasn't applied.// "MISSING_EKM_CONNECTION_ADMIN_PERMISSION" - Iam permission// cloudkms.ekmConnectionsAdmin wasn't applied.EkmProvisioningErrorMappingstring `json:"ekmProvisioningErrorMapping,omitempty"`// EkmProvisioningState: Output only. Indicates Ekm enrollment Provisioning of// a given workload.//// Possible values:// "EKM_PROVISIONING_STATE_UNSPECIFIED" - Default State for Ekm Provisioning// "EKM_PROVISIONING_STATE_PENDING" - Pending State for Ekm Provisioning// "EKM_PROVISIONING_STATE_FAILED" - Failed State for Ekm Provisioning// "EKM_PROVISIONING_STATE_COMPLETED" - Completed State for Ekm ProvisioningEkmProvisioningStatestring `json:"ekmProvisioningState,omitempty"`// ForceSendFields is a list of field names (e.g. "EkmProvisioningErrorDomain")// to unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "EkmProvisioningErrorDomain") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleCloudAssuredworkloadsV1WorkloadEkmProvisioningResponse: External keymanagement systems(EKM) Provisioning response
func (GoogleCloudAssuredworkloadsV1WorkloadEkmProvisioningResponse)MarshalJSON¶added inv0.112.0
func (sGoogleCloudAssuredworkloadsV1WorkloadEkmProvisioningResponse) MarshalJSON() ([]byte,error)
typeGoogleCloudAssuredworkloadsV1WorkloadKMSSettings¶
type GoogleCloudAssuredworkloadsV1WorkloadKMSSettings struct {// NextRotationTime: 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.NextRotationTimestring `json:"nextRotationTime,omitempty"`// RotationPeriod: 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.RotationPeriodstring `json:"rotationPeriod,omitempty"`// ForceSendFields is a list of field names (e.g. "NextRotationTime") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "NextRotationTime") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleCloudAssuredworkloadsV1WorkloadKMSSettings: Settings specific to theKey Management Service.
func (GoogleCloudAssuredworkloadsV1WorkloadKMSSettings)MarshalJSON¶
func (sGoogleCloudAssuredworkloadsV1WorkloadKMSSettings) MarshalJSON() ([]byte,error)
typeGoogleCloudAssuredworkloadsV1WorkloadPartnerPermissions¶added inv0.104.0
type GoogleCloudAssuredworkloadsV1WorkloadPartnerPermissions struct {// AccessTransparencyLogsSupportCaseViewer: Optional. Allow partner to view// support case details for an AXT logAccessTransparencyLogsSupportCaseViewerbool `json:"accessTransparencyLogsSupportCaseViewer,omitempty"`// AssuredWorkloadsMonitoring: Optional. Allow partner to view violation// alerts.AssuredWorkloadsMonitoringbool `json:"assuredWorkloadsMonitoring,omitempty"`// DataLogsViewer: Optional. Allow the partner to view inspectability logs and// monitoring violations.DataLogsViewerbool `json:"dataLogsViewer,omitempty"`// ServiceAccessApprover: Optional. Allow partner to view access approval logs.ServiceAccessApproverbool `json:"serviceAccessApprover,omitempty"`// ForceSendFields is a list of field names (e.g.// "AccessTransparencyLogsSupportCaseViewer") to unconditionally include in API// requests. By default, fields with empty or default values are omitted from// API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g.// "AccessTransparencyLogsSupportCaseViewer") to include in API requests with// the JSON null value. By default, fields with empty values are omitted from// API requests. Seehttps://pkg.go.dev/google.golang.org/api#hdr-NullFields// for more details.NullFields []string `json:"-"`}GoogleCloudAssuredworkloadsV1WorkloadPartnerPermissions: Permissions grantedto the AW Partner SA account for the customer workload
func (GoogleCloudAssuredworkloadsV1WorkloadPartnerPermissions)MarshalJSON¶added inv0.104.0
func (sGoogleCloudAssuredworkloadsV1WorkloadPartnerPermissions) MarshalJSON() ([]byte,error)
typeGoogleCloudAssuredworkloadsV1WorkloadResourceInfo¶
type GoogleCloudAssuredworkloadsV1WorkloadResourceInfo struct {// ResourceId: Output only. Resource identifier. For a project this represents// project_number.ResourceIdint64 `json:"resourceId,omitempty,string"`// ResourceType: Indicates the type of resource.//// Possible values:// "RESOURCE_TYPE_UNSPECIFIED" - Unknown resource type.// "CONSUMER_PROJECT" - Deprecated. Existing workloads will continue to// support this, but new CreateWorkloadRequests should not specify this as an// input value.// "CONSUMER_FOLDER" - Consumer Folder.// "ENCRYPTION_KEYS_PROJECT" - Consumer project containing encryption keys.// "KEYRING" - Keyring resource that hosts encryption keys.ResourceTypestring `json:"resourceType,omitempty"`// ForceSendFields is a list of field names (e.g. "ResourceId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ResourceId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleCloudAssuredworkloadsV1WorkloadResourceInfo: Represent the resourcesthat are children of this Workload.
func (GoogleCloudAssuredworkloadsV1WorkloadResourceInfo)MarshalJSON¶
func (sGoogleCloudAssuredworkloadsV1WorkloadResourceInfo) MarshalJSON() ([]byte,error)
typeGoogleCloudAssuredworkloadsV1WorkloadResourceSettings¶added inv0.45.0
type GoogleCloudAssuredworkloadsV1WorkloadResourceSettings struct {// DisplayName: User-assigned resource display name. If not empty it will be// used to create a resource with the specified name.DisplayNamestring `json:"displayName,omitempty"`// ResourceId: 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.ResourceIdstring `json:"resourceId,omitempty"`// ResourceType: 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)//// Possible values:// "RESOURCE_TYPE_UNSPECIFIED" - Unknown resource type.// "CONSUMER_PROJECT" - Deprecated. Existing workloads will continue to// support this, but new CreateWorkloadRequests should not specify this as an// input value.// "CONSUMER_FOLDER" - Consumer Folder.// "ENCRYPTION_KEYS_PROJECT" - Consumer project containing encryption keys.// "KEYRING" - Keyring resource that hosts encryption keys.ResourceTypestring `json:"resourceType,omitempty"`// ForceSendFields is a list of field names (e.g. "DisplayName") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DisplayName") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleCloudAssuredworkloadsV1WorkloadResourceSettings: Represent the customsettings for the resources to be created.
func (GoogleCloudAssuredworkloadsV1WorkloadResourceSettings)MarshalJSON¶added inv0.45.0
func (sGoogleCloudAssuredworkloadsV1WorkloadResourceSettings) MarshalJSON() ([]byte,error)
typeGoogleCloudAssuredworkloadsV1WorkloadSaaEnrollmentResponse¶added inv0.62.0
type GoogleCloudAssuredworkloadsV1WorkloadSaaEnrollmentResponse struct {// SetupErrors: Indicates SAA enrollment setup error if any.//// Possible values:// "SETUP_ERROR_UNSPECIFIED" - Unspecified.// "ERROR_INVALID_BASE_SETUP" - Invalid states for all customers, to be// redirected to AA UI for additional details.// "ERROR_MISSING_EXTERNAL_SIGNING_KEY" - Returned when there is not an EKM// key configured.// "ERROR_NOT_ALL_SERVICES_ENROLLED" - Returned when there are no enrolled// services or the customer is enrolled in CAA only for a subset of services.// "ERROR_SETUP_CHECK_FAILED" - Returned when exception was encountered// during evaluation of other criteria.SetupErrors []string `json:"setupErrors,omitempty"`// SetupStatus: Output only. Indicates SAA enrollment status of a given// workload.//// Possible values:// "SETUP_STATE_UNSPECIFIED" - Unspecified.// "STATUS_PENDING" - SAA enrollment pending.// "STATUS_COMPLETE" - SAA enrollment comopleted.SetupStatusstring `json:"setupStatus,omitempty"`// ForceSendFields is a list of field names (e.g. "SetupErrors") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "SetupErrors") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleCloudAssuredworkloadsV1WorkloadSaaEnrollmentResponse: Signed AccessApprovals (SAA) enrollment response.
func (GoogleCloudAssuredworkloadsV1WorkloadSaaEnrollmentResponse)MarshalJSON¶added inv0.62.0
func (sGoogleCloudAssuredworkloadsV1WorkloadSaaEnrollmentResponse) MarshalJSON() ([]byte,error)
typeGoogleCloudAssuredworkloadsV1WorkloadUpdate¶added inv0.230.0
type GoogleCloudAssuredworkloadsV1WorkloadUpdate struct {// CreateTime: The time the update was created.CreateTimestring `json:"createTime,omitempty"`// Details: The details of the update.Details *GoogleCloudAssuredworkloadsV1UpdateDetails `json:"details,omitempty"`// Name: Output only. Immutable. Identifier. Resource name of the// WorkloadUpdate. Format:// organizations/{organization}/locations/{location}/workloads/{workload}/update// s/{update}Namestring `json:"name,omitempty"`// State: Output only. The state of the update.//// Possible values:// "STATE_UNSPECIFIED" - Unspecified.// "AVAILABLE" - The update is available to be applied.// "APPLIED" - The update has been applied.// "WITHDRAWN" - The update has been withdrawn by the service.Statestring `json:"state,omitempty"`// UpdateTime: The time the update was last updated.UpdateTimestring `json:"updateTime,omitempty"`// ForceSendFields is a list of field names (e.g. "CreateTime") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CreateTime") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleCloudAssuredworkloadsV1WorkloadUpdate: A workload update is a changeto the workload's compliance configuration.
func (GoogleCloudAssuredworkloadsV1WorkloadUpdate)MarshalJSON¶added inv0.230.0
func (sGoogleCloudAssuredworkloadsV1WorkloadUpdate) MarshalJSON() ([]byte,error)
typeGoogleCloudAssuredworkloadsV1WorkloadWorkloadOptions¶added inv0.201.0
type GoogleCloudAssuredworkloadsV1WorkloadWorkloadOptions struct {// KajEnrollmentType: Optional. Specifies type of KAJ Enrollment if provided.//// Possible values:// "KAJ_ENROLLMENT_TYPE_UNSPECIFIED" - KAJ Enrollment type is unspecified// "KEY_ACCESS_TRANSPARENCY_OFF" - KAT sets External, Hardware, and Software// key feature logging only to TRUE.KajEnrollmentTypestring `json:"kajEnrollmentType,omitempty"`// ForceSendFields is a list of field names (e.g. "KajEnrollmentType") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "KajEnrollmentType") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleCloudAssuredworkloadsV1WorkloadWorkloadOptions: Options to be set forthe given created workload.
func (GoogleCloudAssuredworkloadsV1WorkloadWorkloadOptions)MarshalJSON¶added inv0.201.0
func (sGoogleCloudAssuredworkloadsV1WorkloadWorkloadOptions) MarshalJSON() ([]byte,error)
typeGoogleLongrunningListOperationsResponse¶
type GoogleLongrunningListOperationsResponse struct {// NextPageToken: The standard List next-page token.NextPageTokenstring `json:"nextPageToken,omitempty"`// Operations: A list of operations that matches the specified filter in the// request.Operations []*GoogleLongrunningOperation `json:"operations,omitempty"`// Unreachable: Unordered list. Unreachable resources. Populated when the// request sets `ListOperationsRequest.return_partial_success` and reads across// collections e.g. when attempting to list all resources across all supported// locations.Unreachable []string `json:"unreachable,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "NextPageToken") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "NextPageToken") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleLongrunningListOperationsResponse: The response message forOperations.ListOperations.
func (GoogleLongrunningListOperationsResponse)MarshalJSON¶
func (sGoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte,error)
typeGoogleLongrunningOperation¶
type GoogleLongrunningOperation struct {// Done: If the value is `false`, it means the operation is still in progress.// If `true`, the operation is completed, and either `error` or `response` is// available.Donebool `json:"done,omitempty"`// Error: The error result of the operation in case of failure or cancellation.Error *GoogleRpcStatus `json:"error,omitempty"`// Metadata: Service-specific metadata associated with the operation. It// typically contains progress information and common metadata such as create// time. Some services might not provide such metadata. Any method that returns// a long-running operation should document the metadata type, if any.Metadatagoogleapi.RawMessage `json:"metadata,omitempty"`// Name: The server-assigned name, which is only unique within the same service// that originally returns it. If you use the default HTTP mapping, the `name`// should be a resource name ending with `operations/{unique_id}`.Namestring `json:"name,omitempty"`// Response: The normal, successful response of the operation. If the original// method returns no data on success, such as `Delete`, the response is// `google.protobuf.Empty`. If the original method is standard// `Get`/`Create`/`Update`, the response should be the resource. For other// methods, the response should have the type `XxxResponse`, where `Xxx` is the// original method name. For example, if the original method name is// `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.Responsegoogleapi.RawMessage `json:"response,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Done") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Done") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleLongrunningOperation: This resource represents a long-runningoperation that is the result of a network API call.
func (GoogleLongrunningOperation)MarshalJSON¶
func (sGoogleLongrunningOperation) MarshalJSON() ([]byte,error)
typeGoogleProtobufEmpty¶
type GoogleProtobufEmpty struct {// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`}GoogleProtobufEmpty: A generic empty message that you can re-use to avoiddefining duplicated empty messages in your APIs. A typical example is to useit as the request or the response type of an API method. For instance:service Foo { rpc Bar(google.protobuf.Empty) returns(google.protobuf.Empty); }
typeGoogleRpcStatus¶
type GoogleRpcStatus struct {// Code: The status code, which should be an enum value of google.rpc.Code.Codeint64 `json:"code,omitempty"`// Details: A list of messages that carry the error details. There is a common// set of message types for APIs to use.Details []googleapi.RawMessage `json:"details,omitempty"`// Message: A developer-facing error message, which should be in English. Any// user-facing error message should be localized and sent in the// google.rpc.Status.details field, or localized by the client.Messagestring `json:"message,omitempty"`// ForceSendFields is a list of field names (e.g. "Code") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Code") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleRpcStatus: The `Status` type defines a logical error model that issuitable for different programming environments, including REST APIs and RPCAPIs. It is used by gRPC (https://github.com/grpc). Each `Status` messagecontains three pieces of data: error code, error message, and error details.You can find out more about this error model and how to work with it in theAPI Design Guide (https://cloud.google.com/apis/design/errors).
func (GoogleRpcStatus)MarshalJSON¶
func (sGoogleRpcStatus) MarshalJSON() ([]byte,error)
typeOrganizationsLocationsOperationsGetCall¶
type OrganizationsLocationsOperationsGetCall struct {// contains filtered or unexported fields}func (*OrganizationsLocationsOperationsGetCall)Context¶
func (c *OrganizationsLocationsOperationsGetCall) Context(ctxcontext.Context) *OrganizationsLocationsOperationsGetCall
Context sets the context to be used in this call's Do method.
func (*OrganizationsLocationsOperationsGetCall)Do¶
func (c *OrganizationsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation,error)
Do executes the "assuredworkloads.organizations.locations.operations.get" call.Any non-2xx status code is an error. Response headers are in either*GoogleLongrunningOperation.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*OrganizationsLocationsOperationsGetCall)Fields¶
func (c *OrganizationsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsOperationsGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*OrganizationsLocationsOperationsGetCall)Header¶
func (c *OrganizationsLocationsOperationsGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*OrganizationsLocationsOperationsGetCall)IfNoneMatch¶
func (c *OrganizationsLocationsOperationsGetCall) IfNoneMatch(entityTagstring) *OrganizationsLocationsOperationsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeOrganizationsLocationsOperationsListCall¶
type OrganizationsLocationsOperationsListCall struct {// contains filtered or unexported fields}func (*OrganizationsLocationsOperationsListCall)Context¶
func (c *OrganizationsLocationsOperationsListCall) Context(ctxcontext.Context) *OrganizationsLocationsOperationsListCall
Context sets the context to be used in this call's Do method.
func (*OrganizationsLocationsOperationsListCall)Do¶
func (c *OrganizationsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse,error)
Do executes the "assuredworkloads.organizations.locations.operations.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*OrganizationsLocationsOperationsListCall)Fields¶
func (c *OrganizationsLocationsOperationsListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsOperationsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*OrganizationsLocationsOperationsListCall)Filter¶
func (c *OrganizationsLocationsOperationsListCall) Filter(filterstring) *OrganizationsLocationsOperationsListCall
Filter sets the optional parameter "filter": The standard list filter.
func (*OrganizationsLocationsOperationsListCall)Header¶
func (c *OrganizationsLocationsOperationsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*OrganizationsLocationsOperationsListCall)IfNoneMatch¶
func (c *OrganizationsLocationsOperationsListCall) IfNoneMatch(entityTagstring) *OrganizationsLocationsOperationsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*OrganizationsLocationsOperationsListCall)PageSize¶
func (c *OrganizationsLocationsOperationsListCall) PageSize(pageSizeint64) *OrganizationsLocationsOperationsListCall
PageSize sets the optional parameter "pageSize": The standard list pagesize.
func (*OrganizationsLocationsOperationsListCall)PageToken¶
func (c *OrganizationsLocationsOperationsListCall) PageToken(pageTokenstring) *OrganizationsLocationsOperationsListCall
PageToken sets the optional parameter "pageToken": The standard list pagetoken.
func (*OrganizationsLocationsOperationsListCall)Pages¶
func (c *OrganizationsLocationsOperationsListCall) Pages(ctxcontext.Context, f func(*GoogleLongrunningListOperationsResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
func (*OrganizationsLocationsOperationsListCall)ReturnPartialSuccess¶added inv0.253.0
func (c *OrganizationsLocationsOperationsListCall) ReturnPartialSuccess(returnPartialSuccessbool) *OrganizationsLocationsOperationsListCall
ReturnPartialSuccess sets the optional parameter "returnPartialSuccess":When set to `true`, operations that are reachable are returned as normal,and those that are unreachable are returned in the[ListOperationsResponse.unreachable] field. This can only be `true` whenreading across collections e.g. when `parent` is set to"projects/example/locations/-". This field is not by default supported andwill result in an `UNIMPLEMENTED` error if set unless explicitly documentedotherwise in service or product specific documentation.
typeOrganizationsLocationsOperationsService¶
type OrganizationsLocationsOperationsService struct {// contains filtered or unexported fields}funcNewOrganizationsLocationsOperationsService¶
func NewOrganizationsLocationsOperationsService(s *Service) *OrganizationsLocationsOperationsService
func (*OrganizationsLocationsOperationsService)Get¶
func (r *OrganizationsLocationsOperationsService) Get(namestring) *OrganizationsLocationsOperationsGetCall
Get: Gets the latest state of a long-running operation. Clients can use thismethod to poll the operation result at intervals as recommended by the APIservice.
- name: The name of the operation resource.
func (*OrganizationsLocationsOperationsService)List¶
func (r *OrganizationsLocationsOperationsService) List(namestring) *OrganizationsLocationsOperationsListCall
List: Lists operations that match the specified filter in the request. Ifthe server doesn't support this method, it returns `UNIMPLEMENTED`.
- name: The name of the operation's parent resource.
typeOrganizationsLocationsService¶
type OrganizationsLocationsService struct {Operations *OrganizationsLocationsOperationsServiceWorkloads *OrganizationsLocationsWorkloadsService// contains filtered or unexported fields}funcNewOrganizationsLocationsService¶
func NewOrganizationsLocationsService(s *Service) *OrganizationsLocationsService
typeOrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall¶added inv0.141.0
type OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall struct {// contains filtered or unexported fields}func (*OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall)AssetTypes¶added inv0.141.0
func (c *OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall) AssetTypes(assetTypes ...string) *OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall
AssetTypes sets the optional parameter "assetTypes": List of asset types tobe analyzed, including and under the source resource. If empty, all assetsare analyzed. The complete list of asset types is available here(https://cloud.google.com/asset-inventory/docs/supported-asset-types).
func (*OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall)Context¶added inv0.141.0
func (c *OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall) Context(ctxcontext.Context) *OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall
Context sets the context to be used in this call's Do method.
func (*OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall)Do¶added inv0.141.0
func (c *OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAssuredworkloadsV1AnalyzeWorkloadMoveResponse,error)
Do executes the "assuredworkloads.organizations.locations.workloads.analyzeWorkloadMove" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudAssuredworkloadsV1AnalyzeWorkloadMoveResponse.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall)Fields¶added inv0.141.0
func (c *OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall) Fields(s ...googleapi.Field) *OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall)Header¶added inv0.141.0
func (c *OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall)IfNoneMatch¶added inv0.141.0
func (c *OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall) IfNoneMatch(entityTagstring) *OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall)PageSize¶added inv0.141.0
func (c *OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall) PageSize(pageSizeint64) *OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall
PageSize sets the optional parameter "pageSize": Page size. If a value isnot specified, the default value of 10 is used. The maximum value is 50.
func (*OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall)PageToken¶added inv0.141.0
func (c *OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall) PageToken(pageTokenstring) *OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall
PageToken sets the optional parameter "pageToken": The page token from theprevious response. It needs to be passed in the second and followingrequests.
func (*OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall)Pages¶added inv0.141.0
func (c *OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall) Pages(ctxcontext.Context, f func(*GoogleCloudAssuredworkloadsV1AnalyzeWorkloadMoveResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
func (*OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall)Project¶added inv0.141.0
func (c *OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall) Project(projectstring) *OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall
Project sets the optional parameter "project": The source type is a project.Specify the project's relative resource name, formatted as either a projectnumber or a project ID: "projects/{PROJECT_NUMBER}" or"projects/{PROJECT_ID}" For example: "projects/951040570662" when specifyinga project number, or "projects/my-project-123" when specifying a project ID.
typeOrganizationsLocationsWorkloadsCreateCall¶
type OrganizationsLocationsWorkloadsCreateCall struct {// contains filtered or unexported fields}func (*OrganizationsLocationsWorkloadsCreateCall)Context¶
func (c *OrganizationsLocationsWorkloadsCreateCall) Context(ctxcontext.Context) *OrganizationsLocationsWorkloadsCreateCall
Context sets the context to be used in this call's Do method.
func (*OrganizationsLocationsWorkloadsCreateCall)Do¶
func (c *OrganizationsLocationsWorkloadsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation,error)
Do executes the "assuredworkloads.organizations.locations.workloads.create" call.Any non-2xx status code is an error. Response headers are in either*GoogleLongrunningOperation.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*OrganizationsLocationsWorkloadsCreateCall)ExternalId¶
func (c *OrganizationsLocationsWorkloadsCreateCall) ExternalId(externalIdstring) *OrganizationsLocationsWorkloadsCreateCall
ExternalId sets the optional parameter "externalId": A identifier associatedwith the workload and underlying projects which allows for the break down ofbilling costs for a workload. The value provided for the identifier will adda label to the workload and contained projects with the identifier as thevalue.
func (*OrganizationsLocationsWorkloadsCreateCall)Fields¶
func (c *OrganizationsLocationsWorkloadsCreateCall) Fields(s ...googleapi.Field) *OrganizationsLocationsWorkloadsCreateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*OrganizationsLocationsWorkloadsCreateCall)Header¶
func (c *OrganizationsLocationsWorkloadsCreateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeOrganizationsLocationsWorkloadsDeleteCall¶
type OrganizationsLocationsWorkloadsDeleteCall struct {// contains filtered or unexported fields}func (*OrganizationsLocationsWorkloadsDeleteCall)Context¶
func (c *OrganizationsLocationsWorkloadsDeleteCall) Context(ctxcontext.Context) *OrganizationsLocationsWorkloadsDeleteCall
Context sets the context to be used in this call's Do method.
func (*OrganizationsLocationsWorkloadsDeleteCall)Do¶
func (c *OrganizationsLocationsWorkloadsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty,error)
Do executes the "assuredworkloads.organizations.locations.workloads.delete" call.Any non-2xx status code is an error. Response headers are in either*GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*OrganizationsLocationsWorkloadsDeleteCall)Etag¶
func (c *OrganizationsLocationsWorkloadsDeleteCall) Etag(etagstring) *OrganizationsLocationsWorkloadsDeleteCall
Etag sets the optional parameter "etag": The etag of the workload. If thisis provided, it must match the server's etag.
func (*OrganizationsLocationsWorkloadsDeleteCall)Fields¶
func (c *OrganizationsLocationsWorkloadsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsLocationsWorkloadsDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*OrganizationsLocationsWorkloadsDeleteCall)Header¶
func (c *OrganizationsLocationsWorkloadsDeleteCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeOrganizationsLocationsWorkloadsEnableComplianceUpdatesCall¶added inv0.230.0
type OrganizationsLocationsWorkloadsEnableComplianceUpdatesCall struct {// contains filtered or unexported fields}func (*OrganizationsLocationsWorkloadsEnableComplianceUpdatesCall)Context¶added inv0.230.0
func (c *OrganizationsLocationsWorkloadsEnableComplianceUpdatesCall) Context(ctxcontext.Context) *OrganizationsLocationsWorkloadsEnableComplianceUpdatesCall
Context sets the context to be used in this call's Do method.
func (*OrganizationsLocationsWorkloadsEnableComplianceUpdatesCall)Do¶added inv0.230.0
func (c *OrganizationsLocationsWorkloadsEnableComplianceUpdatesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAssuredworkloadsV1EnableComplianceUpdatesResponse,error)
Do executes the "assuredworkloads.organizations.locations.workloads.enableComplianceUpdates" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudAssuredworkloadsV1EnableComplianceUpdatesResponse.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*OrganizationsLocationsWorkloadsEnableComplianceUpdatesCall)Fields¶added inv0.230.0
func (c *OrganizationsLocationsWorkloadsEnableComplianceUpdatesCall) Fields(s ...googleapi.Field) *OrganizationsLocationsWorkloadsEnableComplianceUpdatesCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*OrganizationsLocationsWorkloadsEnableComplianceUpdatesCall)Header¶added inv0.230.0
func (c *OrganizationsLocationsWorkloadsEnableComplianceUpdatesCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeOrganizationsLocationsWorkloadsEnableResourceMonitoringCall¶added inv0.153.0
type OrganizationsLocationsWorkloadsEnableResourceMonitoringCall struct {// contains filtered or unexported fields}func (*OrganizationsLocationsWorkloadsEnableResourceMonitoringCall)Context¶added inv0.153.0
func (c *OrganizationsLocationsWorkloadsEnableResourceMonitoringCall) Context(ctxcontext.Context) *OrganizationsLocationsWorkloadsEnableResourceMonitoringCall
Context sets the context to be used in this call's Do method.
func (*OrganizationsLocationsWorkloadsEnableResourceMonitoringCall)Do¶added inv0.153.0
func (c *OrganizationsLocationsWorkloadsEnableResourceMonitoringCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAssuredworkloadsV1EnableResourceMonitoringResponse,error)
Do executes the "assuredworkloads.organizations.locations.workloads.enableResourceMonitoring" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudAssuredworkloadsV1EnableResourceMonitoringResponse.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*OrganizationsLocationsWorkloadsEnableResourceMonitoringCall)Fields¶added inv0.153.0
func (c *OrganizationsLocationsWorkloadsEnableResourceMonitoringCall) Fields(s ...googleapi.Field) *OrganizationsLocationsWorkloadsEnableResourceMonitoringCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*OrganizationsLocationsWorkloadsEnableResourceMonitoringCall)Header¶added inv0.153.0
func (c *OrganizationsLocationsWorkloadsEnableResourceMonitoringCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeOrganizationsLocationsWorkloadsGetCall¶
type OrganizationsLocationsWorkloadsGetCall struct {// contains filtered or unexported fields}func (*OrganizationsLocationsWorkloadsGetCall)Context¶
func (c *OrganizationsLocationsWorkloadsGetCall) Context(ctxcontext.Context) *OrganizationsLocationsWorkloadsGetCall
Context sets the context to be used in this call's Do method.
func (*OrganizationsLocationsWorkloadsGetCall)Do¶
func (c *OrganizationsLocationsWorkloadsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAssuredworkloadsV1Workload,error)
Do executes the "assuredworkloads.organizations.locations.workloads.get" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudAssuredworkloadsV1Workload.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*OrganizationsLocationsWorkloadsGetCall)Fields¶
func (c *OrganizationsLocationsWorkloadsGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsWorkloadsGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*OrganizationsLocationsWorkloadsGetCall)Header¶
func (c *OrganizationsLocationsWorkloadsGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*OrganizationsLocationsWorkloadsGetCall)IfNoneMatch¶
func (c *OrganizationsLocationsWorkloadsGetCall) IfNoneMatch(entityTagstring) *OrganizationsLocationsWorkloadsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeOrganizationsLocationsWorkloadsListCall¶
type OrganizationsLocationsWorkloadsListCall struct {// contains filtered or unexported fields}func (*OrganizationsLocationsWorkloadsListCall)Context¶
func (c *OrganizationsLocationsWorkloadsListCall) Context(ctxcontext.Context) *OrganizationsLocationsWorkloadsListCall
Context sets the context to be used in this call's Do method.
func (*OrganizationsLocationsWorkloadsListCall)Do¶
func (c *OrganizationsLocationsWorkloadsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAssuredworkloadsV1ListWorkloadsResponse,error)
Do executes the "assuredworkloads.organizations.locations.workloads.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudAssuredworkloadsV1ListWorkloadsResponse.ServerResponse.Header or(if a response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*OrganizationsLocationsWorkloadsListCall)Fields¶
func (c *OrganizationsLocationsWorkloadsListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsWorkloadsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*OrganizationsLocationsWorkloadsListCall)Filter¶
func (c *OrganizationsLocationsWorkloadsListCall) Filter(filterstring) *OrganizationsLocationsWorkloadsListCall
Filter sets the optional parameter "filter": A custom filter for filteringby properties of a workload. At this time, only filtering by labels issupported.
func (*OrganizationsLocationsWorkloadsListCall)Header¶
func (c *OrganizationsLocationsWorkloadsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*OrganizationsLocationsWorkloadsListCall)IfNoneMatch¶
func (c *OrganizationsLocationsWorkloadsListCall) IfNoneMatch(entityTagstring) *OrganizationsLocationsWorkloadsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*OrganizationsLocationsWorkloadsListCall)PageSize¶
func (c *OrganizationsLocationsWorkloadsListCall) PageSize(pageSizeint64) *OrganizationsLocationsWorkloadsListCall
PageSize sets the optional parameter "pageSize": Page size.
func (*OrganizationsLocationsWorkloadsListCall)PageToken¶
func (c *OrganizationsLocationsWorkloadsListCall) PageToken(pageTokenstring) *OrganizationsLocationsWorkloadsListCall
PageToken sets the optional parameter "pageToken": Page token returned fromprevious request. Page token contains context from previous request. Pagetoken needs to be passed in the second and following requests.
func (*OrganizationsLocationsWorkloadsListCall)Pages¶
func (c *OrganizationsLocationsWorkloadsListCall) Pages(ctxcontext.Context, f func(*GoogleCloudAssuredworkloadsV1ListWorkloadsResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
typeOrganizationsLocationsWorkloadsMutatePartnerPermissionsCall¶added inv0.104.0
type OrganizationsLocationsWorkloadsMutatePartnerPermissionsCall struct {// contains filtered or unexported fields}func (*OrganizationsLocationsWorkloadsMutatePartnerPermissionsCall)Context¶added inv0.104.0
func (c *OrganizationsLocationsWorkloadsMutatePartnerPermissionsCall) Context(ctxcontext.Context) *OrganizationsLocationsWorkloadsMutatePartnerPermissionsCall
Context sets the context to be used in this call's Do method.
func (*OrganizationsLocationsWorkloadsMutatePartnerPermissionsCall)Do¶added inv0.104.0
func (c *OrganizationsLocationsWorkloadsMutatePartnerPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAssuredworkloadsV1Workload,error)
Do executes the "assuredworkloads.organizations.locations.workloads.mutatePartnerPermissions" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudAssuredworkloadsV1Workload.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*OrganizationsLocationsWorkloadsMutatePartnerPermissionsCall)Fields¶added inv0.104.0
func (c *OrganizationsLocationsWorkloadsMutatePartnerPermissionsCall) Fields(s ...googleapi.Field) *OrganizationsLocationsWorkloadsMutatePartnerPermissionsCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*OrganizationsLocationsWorkloadsMutatePartnerPermissionsCall)Header¶added inv0.104.0
func (c *OrganizationsLocationsWorkloadsMutatePartnerPermissionsCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeOrganizationsLocationsWorkloadsPatchCall¶
type OrganizationsLocationsWorkloadsPatchCall struct {// contains filtered or unexported fields}func (*OrganizationsLocationsWorkloadsPatchCall)Context¶
func (c *OrganizationsLocationsWorkloadsPatchCall) Context(ctxcontext.Context) *OrganizationsLocationsWorkloadsPatchCall
Context sets the context to be used in this call's Do method.
func (*OrganizationsLocationsWorkloadsPatchCall)Do¶
func (c *OrganizationsLocationsWorkloadsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAssuredworkloadsV1Workload,error)
Do executes the "assuredworkloads.organizations.locations.workloads.patch" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudAssuredworkloadsV1Workload.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*OrganizationsLocationsWorkloadsPatchCall)Fields¶
func (c *OrganizationsLocationsWorkloadsPatchCall) Fields(s ...googleapi.Field) *OrganizationsLocationsWorkloadsPatchCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*OrganizationsLocationsWorkloadsPatchCall)Header¶
func (c *OrganizationsLocationsWorkloadsPatchCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*OrganizationsLocationsWorkloadsPatchCall)UpdateMask¶
func (c *OrganizationsLocationsWorkloadsPatchCall) UpdateMask(updateMaskstring) *OrganizationsLocationsWorkloadsPatchCall
UpdateMask sets the optional parameter "updateMask": Required. The list offields to be updated.
typeOrganizationsLocationsWorkloadsRestrictAllowedResourcesCall¶added inv0.85.0
type OrganizationsLocationsWorkloadsRestrictAllowedResourcesCall struct {// contains filtered or unexported fields}func (*OrganizationsLocationsWorkloadsRestrictAllowedResourcesCall)Context¶added inv0.85.0
func (c *OrganizationsLocationsWorkloadsRestrictAllowedResourcesCall) Context(ctxcontext.Context) *OrganizationsLocationsWorkloadsRestrictAllowedResourcesCall
Context sets the context to be used in this call's Do method.
func (*OrganizationsLocationsWorkloadsRestrictAllowedResourcesCall)Do¶added inv0.85.0
func (c *OrganizationsLocationsWorkloadsRestrictAllowedResourcesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesResponse,error)
Do executes the "assuredworkloads.organizations.locations.workloads.restrictAllowedResources" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesResponse.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*OrganizationsLocationsWorkloadsRestrictAllowedResourcesCall)Fields¶added inv0.85.0
func (c *OrganizationsLocationsWorkloadsRestrictAllowedResourcesCall) Fields(s ...googleapi.Field) *OrganizationsLocationsWorkloadsRestrictAllowedResourcesCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*OrganizationsLocationsWorkloadsRestrictAllowedResourcesCall)Header¶added inv0.85.0
func (c *OrganizationsLocationsWorkloadsRestrictAllowedResourcesCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeOrganizationsLocationsWorkloadsService¶
type OrganizationsLocationsWorkloadsService struct {Updates *OrganizationsLocationsWorkloadsUpdatesServiceViolations *OrganizationsLocationsWorkloadsViolationsService// contains filtered or unexported fields}funcNewOrganizationsLocationsWorkloadsService¶
func NewOrganizationsLocationsWorkloadsService(s *Service) *OrganizationsLocationsWorkloadsService
func (*OrganizationsLocationsWorkloadsService)AnalyzeWorkloadMove¶added inv0.141.0
func (r *OrganizationsLocationsWorkloadsService) AnalyzeWorkloadMove(targetstring) *OrganizationsLocationsWorkloadsAnalyzeWorkloadMoveCall
AnalyzeWorkloadMove: Analyzes a hypothetical move of a source resource to atarget workload to surface compliance risks. The analysis is best effort andis not guaranteed to be exhaustive.
- target: The resource ID of the folder-based destination workload. Thisworkload is where the source resource 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".
func (*OrganizationsLocationsWorkloadsService)Create¶
func (r *OrganizationsLocationsWorkloadsService) Create(parentstring, googlecloudassuredworkloadsv1workload *GoogleCloudAssuredworkloadsV1Workload) *OrganizationsLocationsWorkloadsCreateCall
Create: Creates Assured Workload.
- parent: The resource name of the new Workload's parent. Must be of theform `organizations/{org_id}/locations/{location_id}`.
func (*OrganizationsLocationsWorkloadsService)Delete¶
func (r *OrganizationsLocationsWorkloadsService) Delete(namestring) *OrganizationsLocationsWorkloadsDeleteCall
Delete: Deletes the workload. Make sure that workload's direct children arealready in a deleted state, otherwise the request will fail with aFAILED_PRECONDITION error. In addition to assuredworkloads.workload.deletepermission, the user should also have orgpolicy.policy.set permission on thedeleted folder to remove Assured Workloads OrgPolicies.
- name: The `name` field is used to identify the workload. Format:organizations/{org_id}/locations/{location_id}/workloads/{workload_id}.
func (*OrganizationsLocationsWorkloadsService)EnableComplianceUpdates¶added inv0.230.0
func (r *OrganizationsLocationsWorkloadsService) EnableComplianceUpdates(namestring) *OrganizationsLocationsWorkloadsEnableComplianceUpdatesCall
EnableComplianceUpdates: This endpoint enables Assured Workloads service tooffer compliance updates for the folder based assured workload. It sets upan Assured Workloads Service Agent, having permissions to read compliancecontrols (for example: Org Policies) applied on the workload. The callermust have `resourcemanager.folders.getIamPolicy` and`resourcemanager.folders.setIamPolicy` permissions on the assured workloadfolder.
- name: The `name` field is used to identify the workload. Format:organizations/{org_id}/locations/{location_id}/workloads/{workload_id}.
func (*OrganizationsLocationsWorkloadsService)EnableResourceMonitoring¶added inv0.153.0
func (r *OrganizationsLocationsWorkloadsService) EnableResourceMonitoring(namestring) *OrganizationsLocationsWorkloadsEnableResourceMonitoringCall
EnableResourceMonitoring: Enable resource violation monitoring for aworkload.
- name: The `name` field is used to identify the workload. Format:organizations/{org_id}/locations/{location_id}/workloads/{workload_id}.
func (*OrganizationsLocationsWorkloadsService)Get¶
func (r *OrganizationsLocationsWorkloadsService) Get(namestring) *OrganizationsLocationsWorkloadsGetCall
Get: Gets Assured Workload associated with a CRM Node
- name: The resource name of the Workload to fetch. This is the workloads'srelative 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".
func (*OrganizationsLocationsWorkloadsService)List¶
func (r *OrganizationsLocationsWorkloadsService) List(parentstring) *OrganizationsLocationsWorkloadsListCall
List: Lists Assured Workloads under a CRM Node.
- parent: Parent Resource to list workloads from. Must be of the form`organizations/{org_id}/locations/{location}`.
func (*OrganizationsLocationsWorkloadsService)MutatePartnerPermissions¶added inv0.104.0
func (r *OrganizationsLocationsWorkloadsService) MutatePartnerPermissions(namestring, googlecloudassuredworkloadsv1mutatepartnerpermissionsrequest *GoogleCloudAssuredworkloadsV1MutatePartnerPermissionsRequest) *OrganizationsLocationsWorkloadsMutatePartnerPermissionsCall
MutatePartnerPermissions: Update the permissions settings for an existingpartner workload. For force updates don't set etag field in the Workload.Only one update operation per workload can be in progress.
- name: The `name` field is used to identify the workload. Format:organizations/{org_id}/locations/{location_id}/workloads/{workload_id}.
func (*OrganizationsLocationsWorkloadsService)Patch¶
func (r *OrganizationsLocationsWorkloadsService) Patch(namestring, googlecloudassuredworkloadsv1workload *GoogleCloudAssuredworkloadsV1Workload) *OrganizationsLocationsWorkloadsPatchCall
Patch: Updates an existing workload. Currently allows updating of workloaddisplay_name and labels. For force updates don't set etag field in theWorkload. Only one update operation per workload can be in progress.
- name: Optional. The resource name of the workload. Format:organizations/{organization}/locations/{location}/workloads/{workload}Read-only.
func (*OrganizationsLocationsWorkloadsService)RestrictAllowedResources¶added inv0.85.0
func (r *OrganizationsLocationsWorkloadsService) RestrictAllowedResources(namestring, googlecloudassuredworkloadsv1restrictallowedresourcesrequest *GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesRequest) *OrganizationsLocationsWorkloadsRestrictAllowedResourcesCall
RestrictAllowedResources: Restrict the list of resources allowed in theWorkload environment. The current list of allowed products can be found athttps://cloud.google.com/assured-workloads/docs/supported-products Inaddition to assuredworkloads.workload.update permission, the user shouldalso have orgpolicy.policy.set permission on the folder resource to use thisfunctionality.
- name: The resource name of the Workload. This is the workloads's relativepath 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".
typeOrganizationsLocationsWorkloadsUpdatesApplyCall¶added inv0.230.0
type OrganizationsLocationsWorkloadsUpdatesApplyCall struct {// contains filtered or unexported fields}func (*OrganizationsLocationsWorkloadsUpdatesApplyCall)Context¶added inv0.230.0
func (c *OrganizationsLocationsWorkloadsUpdatesApplyCall) Context(ctxcontext.Context) *OrganizationsLocationsWorkloadsUpdatesApplyCall
Context sets the context to be used in this call's Do method.
func (*OrganizationsLocationsWorkloadsUpdatesApplyCall)Do¶added inv0.230.0
func (c *OrganizationsLocationsWorkloadsUpdatesApplyCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation,error)
Do executes the "assuredworkloads.organizations.locations.workloads.updates.apply" call.Any non-2xx status code is an error. Response headers are in either*GoogleLongrunningOperation.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*OrganizationsLocationsWorkloadsUpdatesApplyCall)Fields¶added inv0.230.0
func (c *OrganizationsLocationsWorkloadsUpdatesApplyCall) Fields(s ...googleapi.Field) *OrganizationsLocationsWorkloadsUpdatesApplyCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*OrganizationsLocationsWorkloadsUpdatesApplyCall)Header¶added inv0.230.0
func (c *OrganizationsLocationsWorkloadsUpdatesApplyCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeOrganizationsLocationsWorkloadsUpdatesListCall¶added inv0.230.0
type OrganizationsLocationsWorkloadsUpdatesListCall struct {// contains filtered or unexported fields}func (*OrganizationsLocationsWorkloadsUpdatesListCall)Context¶added inv0.230.0
func (c *OrganizationsLocationsWorkloadsUpdatesListCall) Context(ctxcontext.Context) *OrganizationsLocationsWorkloadsUpdatesListCall
Context sets the context to be used in this call's Do method.
func (*OrganizationsLocationsWorkloadsUpdatesListCall)Do¶added inv0.230.0
func (c *OrganizationsLocationsWorkloadsUpdatesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAssuredworkloadsV1ListWorkloadUpdatesResponse,error)
Do executes the "assuredworkloads.organizations.locations.workloads.updates.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudAssuredworkloadsV1ListWorkloadUpdatesResponse.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*OrganizationsLocationsWorkloadsUpdatesListCall)Fields¶added inv0.230.0
func (c *OrganizationsLocationsWorkloadsUpdatesListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsWorkloadsUpdatesListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*OrganizationsLocationsWorkloadsUpdatesListCall)Header¶added inv0.230.0
func (c *OrganizationsLocationsWorkloadsUpdatesListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*OrganizationsLocationsWorkloadsUpdatesListCall)IfNoneMatch¶added inv0.230.0
func (c *OrganizationsLocationsWorkloadsUpdatesListCall) IfNoneMatch(entityTagstring) *OrganizationsLocationsWorkloadsUpdatesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*OrganizationsLocationsWorkloadsUpdatesListCall)PageSize¶added inv0.230.0
func (c *OrganizationsLocationsWorkloadsUpdatesListCall) PageSize(pageSizeint64) *OrganizationsLocationsWorkloadsUpdatesListCall
PageSize sets the optional parameter "pageSize": Page size. The defaultvalue is 20 and the max allowed value is 100.
func (*OrganizationsLocationsWorkloadsUpdatesListCall)PageToken¶added inv0.230.0
func (c *OrganizationsLocationsWorkloadsUpdatesListCall) PageToken(pageTokenstring) *OrganizationsLocationsWorkloadsUpdatesListCall
PageToken sets the optional parameter "pageToken": Page token returned fromprevious request.
func (*OrganizationsLocationsWorkloadsUpdatesListCall)Pages¶added inv0.230.0
func (c *OrganizationsLocationsWorkloadsUpdatesListCall) Pages(ctxcontext.Context, f func(*GoogleCloudAssuredworkloadsV1ListWorkloadUpdatesResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
typeOrganizationsLocationsWorkloadsUpdatesService¶added inv0.230.0
type OrganizationsLocationsWorkloadsUpdatesService struct {// contains filtered or unexported fields}funcNewOrganizationsLocationsWorkloadsUpdatesService¶added inv0.230.0
func NewOrganizationsLocationsWorkloadsUpdatesService(s *Service) *OrganizationsLocationsWorkloadsUpdatesService
func (*OrganizationsLocationsWorkloadsUpdatesService)Apply¶added inv0.230.0
func (r *OrganizationsLocationsWorkloadsUpdatesService) Apply(namestring, googlecloudassuredworkloadsv1applyworkloadupdaterequest *GoogleCloudAssuredworkloadsV1ApplyWorkloadUpdateRequest) *OrganizationsLocationsWorkloadsUpdatesApplyCall
Apply: This endpoint creates a new operation to apply the given update.
- name: The resource name of the update. Format:organizations/{org_id}/locations/{location_id}/workloads/{workload_id}/updates/{update_id}.
func (*OrganizationsLocationsWorkloadsUpdatesService)List¶added inv0.230.0
func (r *OrganizationsLocationsWorkloadsUpdatesService) List(parentstring) *OrganizationsLocationsWorkloadsUpdatesListCall
List: This endpoint lists all updates for the given workload.
- parent:organizations/{org_id}/locations/{location_id}/workloads/{workload_id}.
typeOrganizationsLocationsWorkloadsViolationsAcknowledgeCall¶added inv0.98.0
type OrganizationsLocationsWorkloadsViolationsAcknowledgeCall struct {// contains filtered or unexported fields}func (*OrganizationsLocationsWorkloadsViolationsAcknowledgeCall)Context¶added inv0.98.0
func (c *OrganizationsLocationsWorkloadsViolationsAcknowledgeCall) Context(ctxcontext.Context) *OrganizationsLocationsWorkloadsViolationsAcknowledgeCall
Context sets the context to be used in this call's Do method.
func (*OrganizationsLocationsWorkloadsViolationsAcknowledgeCall)Do¶added inv0.98.0
func (c *OrganizationsLocationsWorkloadsViolationsAcknowledgeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAssuredworkloadsV1AcknowledgeViolationResponse,error)
Do executes the "assuredworkloads.organizations.locations.workloads.violations.acknowledge" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudAssuredworkloadsV1AcknowledgeViolationResponse.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*OrganizationsLocationsWorkloadsViolationsAcknowledgeCall)Fields¶added inv0.98.0
func (c *OrganizationsLocationsWorkloadsViolationsAcknowledgeCall) Fields(s ...googleapi.Field) *OrganizationsLocationsWorkloadsViolationsAcknowledgeCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*OrganizationsLocationsWorkloadsViolationsAcknowledgeCall)Header¶added inv0.98.0
func (c *OrganizationsLocationsWorkloadsViolationsAcknowledgeCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeOrganizationsLocationsWorkloadsViolationsGetCall¶added inv0.98.0
type OrganizationsLocationsWorkloadsViolationsGetCall struct {// contains filtered or unexported fields}func (*OrganizationsLocationsWorkloadsViolationsGetCall)Context¶added inv0.98.0
func (c *OrganizationsLocationsWorkloadsViolationsGetCall) Context(ctxcontext.Context) *OrganizationsLocationsWorkloadsViolationsGetCall
Context sets the context to be used in this call's Do method.
func (*OrganizationsLocationsWorkloadsViolationsGetCall)Do¶added inv0.98.0
func (c *OrganizationsLocationsWorkloadsViolationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAssuredworkloadsV1Violation,error)
Do executes the "assuredworkloads.organizations.locations.workloads.violations.get" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudAssuredworkloadsV1Violation.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*OrganizationsLocationsWorkloadsViolationsGetCall)Fields¶added inv0.98.0
func (c *OrganizationsLocationsWorkloadsViolationsGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsWorkloadsViolationsGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*OrganizationsLocationsWorkloadsViolationsGetCall)Header¶added inv0.98.0
func (c *OrganizationsLocationsWorkloadsViolationsGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*OrganizationsLocationsWorkloadsViolationsGetCall)IfNoneMatch¶added inv0.98.0
func (c *OrganizationsLocationsWorkloadsViolationsGetCall) IfNoneMatch(entityTagstring) *OrganizationsLocationsWorkloadsViolationsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeOrganizationsLocationsWorkloadsViolationsListCall¶added inv0.98.0
type OrganizationsLocationsWorkloadsViolationsListCall struct {// contains filtered or unexported fields}func (*OrganizationsLocationsWorkloadsViolationsListCall)Context¶added inv0.98.0
func (c *OrganizationsLocationsWorkloadsViolationsListCall) Context(ctxcontext.Context) *OrganizationsLocationsWorkloadsViolationsListCall
Context sets the context to be used in this call's Do method.
func (*OrganizationsLocationsWorkloadsViolationsListCall)Do¶added inv0.98.0
func (c *OrganizationsLocationsWorkloadsViolationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAssuredworkloadsV1ListViolationsResponse,error)
Do executes the "assuredworkloads.organizations.locations.workloads.violations.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudAssuredworkloadsV1ListViolationsResponse.ServerResponse.Headeror (if a response was returned at all) in error.(*googleapi.Error).Header.Use googleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*OrganizationsLocationsWorkloadsViolationsListCall)Fields¶added inv0.98.0
func (c *OrganizationsLocationsWorkloadsViolationsListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsWorkloadsViolationsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*OrganizationsLocationsWorkloadsViolationsListCall)Filter¶added inv0.98.0
func (c *OrganizationsLocationsWorkloadsViolationsListCall) Filter(filterstring) *OrganizationsLocationsWorkloadsViolationsListCall
Filter sets the optional parameter "filter": A custom filter for filteringby the Violations properties.
func (*OrganizationsLocationsWorkloadsViolationsListCall)Header¶added inv0.98.0
func (c *OrganizationsLocationsWorkloadsViolationsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*OrganizationsLocationsWorkloadsViolationsListCall)IfNoneMatch¶added inv0.98.0
func (c *OrganizationsLocationsWorkloadsViolationsListCall) IfNoneMatch(entityTagstring) *OrganizationsLocationsWorkloadsViolationsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*OrganizationsLocationsWorkloadsViolationsListCall)IntervalEndTime¶added inv0.98.0
func (c *OrganizationsLocationsWorkloadsViolationsListCall) IntervalEndTime(intervalEndTimestring) *OrganizationsLocationsWorkloadsViolationsListCall
IntervalEndTime sets the optional parameter "interval.endTime": The end ofthe time window.
func (*OrganizationsLocationsWorkloadsViolationsListCall)IntervalStartTime¶added inv0.98.0
func (c *OrganizationsLocationsWorkloadsViolationsListCall) IntervalStartTime(intervalStartTimestring) *OrganizationsLocationsWorkloadsViolationsListCall
IntervalStartTime sets the optional parameter "interval.startTime": Thestart of the time window.
func (*OrganizationsLocationsWorkloadsViolationsListCall)PageSize¶added inv0.98.0
func (c *OrganizationsLocationsWorkloadsViolationsListCall) PageSize(pageSizeint64) *OrganizationsLocationsWorkloadsViolationsListCall
PageSize sets the optional parameter "pageSize": Page size.
func (*OrganizationsLocationsWorkloadsViolationsListCall)PageToken¶added inv0.98.0
func (c *OrganizationsLocationsWorkloadsViolationsListCall) PageToken(pageTokenstring) *OrganizationsLocationsWorkloadsViolationsListCall
PageToken sets the optional parameter "pageToken": Page token returned fromprevious request.
func (*OrganizationsLocationsWorkloadsViolationsListCall)Pages¶added inv0.98.0
func (c *OrganizationsLocationsWorkloadsViolationsListCall) Pages(ctxcontext.Context, f func(*GoogleCloudAssuredworkloadsV1ListViolationsResponse)error)error
Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.
typeOrganizationsLocationsWorkloadsViolationsService¶added inv0.98.0
type OrganizationsLocationsWorkloadsViolationsService struct {// contains filtered or unexported fields}funcNewOrganizationsLocationsWorkloadsViolationsService¶added inv0.98.0
func NewOrganizationsLocationsWorkloadsViolationsService(s *Service) *OrganizationsLocationsWorkloadsViolationsService
func (*OrganizationsLocationsWorkloadsViolationsService)Acknowledge¶added inv0.98.0
func (r *OrganizationsLocationsWorkloadsViolationsService) Acknowledge(namestring, googlecloudassuredworkloadsv1acknowledgeviolationrequest *GoogleCloudAssuredworkloadsV1AcknowledgeViolationRequest) *OrganizationsLocationsWorkloadsViolationsAcknowledgeCall
Acknowledge: Acknowledges an existing violation. By acknowledging aviolation, users acknowledge the existence of a compliance violation intheir workload and decide to ignore it due to a valid businessjustification. Acknowledgement is a permanent operation and it cannot bereverted.
- name: The resource name of the Violation to acknowledge. Format:organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violation}.
func (*OrganizationsLocationsWorkloadsViolationsService)Get¶added inv0.98.0
func (r *OrganizationsLocationsWorkloadsViolationsService) Get(namestring) *OrganizationsLocationsWorkloadsViolationsGetCall
Get: Retrieves Assured Workload Violation based on ID.
- name: The resource name of the Violation to fetch (ie. Violation.name).Format:organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violation}.
func (*OrganizationsLocationsWorkloadsViolationsService)List¶added inv0.98.0
func (r *OrganizationsLocationsWorkloadsViolationsService) List(parentstring) *OrganizationsLocationsWorkloadsViolationsListCall
List: Lists the Violations in the AssuredWorkload Environment. Callers mayalso choose to read across multiple Workloads as per AIP-159(https://google.aip.dev/159) by using '-' (the hyphen or dash character) asa wildcard character instead of workload-id in the parent. Format`organizations/{org_id}/locations/{location}/workloads/-`
- parent: The Workload name. Format`organizations/{org_id}/locations/{location}/workloads/{workload}`.
typeOrganizationsService¶
type OrganizationsService struct {Locations *OrganizationsLocationsService// contains filtered or unexported fields}funcNewOrganizationsService¶
func NewOrganizationsService(s *Service) *OrganizationsService
typeService¶
type Service struct {BasePathstring// API endpoint base URLUserAgentstring// optional additional User-Agent fragmentOrganizations *OrganizationsService// contains filtered or unexported fields} funcNewdeprecated
New creates a new Service. It uses the provided http.Client for requests.
Deprecated: please use NewService instead.To provide a custom HTTP client, use option.WithHTTPClient.If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
funcNewService¶
NewService creates a new Service.