osconfig
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 osconfig provides access to the OS Config API.
For product documentation, see:https://cloud.google.com/compute/docs/osconfig/rest
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/osconfig/v2beta"...ctx := context.Background()osconfigService, err := osconfig.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:
osconfigService, err := osconfig.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, ...)osconfigService, err := osconfig.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))Seegoogle.golang.org/api/option.ClientOption for details on options.
Index¶
- Constants
- type CancelOperationRequest
- type Empty
- type FixedOrPercent
- type FoldersLocationsGlobalPolicyOrchestratorsCreateCall
- func (c *FoldersLocationsGlobalPolicyOrchestratorsCreateCall) Context(ctx context.Context) *FoldersLocationsGlobalPolicyOrchestratorsCreateCall
- func (c *FoldersLocationsGlobalPolicyOrchestratorsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *FoldersLocationsGlobalPolicyOrchestratorsCreateCall) Fields(s ...googleapi.Field) *FoldersLocationsGlobalPolicyOrchestratorsCreateCall
- func (c *FoldersLocationsGlobalPolicyOrchestratorsCreateCall) Header() http.Header
- func (c *FoldersLocationsGlobalPolicyOrchestratorsCreateCall) PolicyOrchestratorId(policyOrchestratorId string) *FoldersLocationsGlobalPolicyOrchestratorsCreateCall
- func (c *FoldersLocationsGlobalPolicyOrchestratorsCreateCall) RequestId(requestId string) *FoldersLocationsGlobalPolicyOrchestratorsCreateCall
- type FoldersLocationsGlobalPolicyOrchestratorsDeleteCall
- func (c *FoldersLocationsGlobalPolicyOrchestratorsDeleteCall) Context(ctx context.Context) *FoldersLocationsGlobalPolicyOrchestratorsDeleteCall
- func (c *FoldersLocationsGlobalPolicyOrchestratorsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *FoldersLocationsGlobalPolicyOrchestratorsDeleteCall) Etag(etag string) *FoldersLocationsGlobalPolicyOrchestratorsDeleteCall
- func (c *FoldersLocationsGlobalPolicyOrchestratorsDeleteCall) Fields(s ...googleapi.Field) *FoldersLocationsGlobalPolicyOrchestratorsDeleteCall
- func (c *FoldersLocationsGlobalPolicyOrchestratorsDeleteCall) Header() http.Header
- func (c *FoldersLocationsGlobalPolicyOrchestratorsDeleteCall) RequestId(requestId string) *FoldersLocationsGlobalPolicyOrchestratorsDeleteCall
- type FoldersLocationsGlobalPolicyOrchestratorsGetCall
- func (c *FoldersLocationsGlobalPolicyOrchestratorsGetCall) Context(ctx context.Context) *FoldersLocationsGlobalPolicyOrchestratorsGetCall
- func (c *FoldersLocationsGlobalPolicyOrchestratorsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudOsconfigV2beta__PolicyOrchestrator, error)
- func (c *FoldersLocationsGlobalPolicyOrchestratorsGetCall) Fields(s ...googleapi.Field) *FoldersLocationsGlobalPolicyOrchestratorsGetCall
- func (c *FoldersLocationsGlobalPolicyOrchestratorsGetCall) Header() http.Header
- func (c *FoldersLocationsGlobalPolicyOrchestratorsGetCall) IfNoneMatch(entityTag string) *FoldersLocationsGlobalPolicyOrchestratorsGetCall
- type FoldersLocationsGlobalPolicyOrchestratorsListCall
- func (c *FoldersLocationsGlobalPolicyOrchestratorsListCall) Context(ctx context.Context) *FoldersLocationsGlobalPolicyOrchestratorsListCall
- func (c *FoldersLocationsGlobalPolicyOrchestratorsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudOsconfigV2beta__ListPolicyOrchestratorsResponse, error)
- func (c *FoldersLocationsGlobalPolicyOrchestratorsListCall) Fields(s ...googleapi.Field) *FoldersLocationsGlobalPolicyOrchestratorsListCall
- func (c *FoldersLocationsGlobalPolicyOrchestratorsListCall) Filter(filter string) *FoldersLocationsGlobalPolicyOrchestratorsListCall
- func (c *FoldersLocationsGlobalPolicyOrchestratorsListCall) Header() http.Header
- func (c *FoldersLocationsGlobalPolicyOrchestratorsListCall) IfNoneMatch(entityTag string) *FoldersLocationsGlobalPolicyOrchestratorsListCall
- func (c *FoldersLocationsGlobalPolicyOrchestratorsListCall) OrderBy(orderBy string) *FoldersLocationsGlobalPolicyOrchestratorsListCall
- func (c *FoldersLocationsGlobalPolicyOrchestratorsListCall) PageSize(pageSize int64) *FoldersLocationsGlobalPolicyOrchestratorsListCall
- func (c *FoldersLocationsGlobalPolicyOrchestratorsListCall) PageToken(pageToken string) *FoldersLocationsGlobalPolicyOrchestratorsListCall
- func (c *FoldersLocationsGlobalPolicyOrchestratorsListCall) Pages(ctx context.Context, ...) error
- type FoldersLocationsGlobalPolicyOrchestratorsPatchCall
- func (c *FoldersLocationsGlobalPolicyOrchestratorsPatchCall) Context(ctx context.Context) *FoldersLocationsGlobalPolicyOrchestratorsPatchCall
- func (c *FoldersLocationsGlobalPolicyOrchestratorsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *FoldersLocationsGlobalPolicyOrchestratorsPatchCall) Fields(s ...googleapi.Field) *FoldersLocationsGlobalPolicyOrchestratorsPatchCall
- func (c *FoldersLocationsGlobalPolicyOrchestratorsPatchCall) Header() http.Header
- func (c *FoldersLocationsGlobalPolicyOrchestratorsPatchCall) UpdateMask(updateMask string) *FoldersLocationsGlobalPolicyOrchestratorsPatchCall
- type FoldersLocationsGlobalPolicyOrchestratorsService
- func (r *FoldersLocationsGlobalPolicyOrchestratorsService) Create(parent string, ...) *FoldersLocationsGlobalPolicyOrchestratorsCreateCall
- func (r *FoldersLocationsGlobalPolicyOrchestratorsService) Delete(name string) *FoldersLocationsGlobalPolicyOrchestratorsDeleteCall
- func (r *FoldersLocationsGlobalPolicyOrchestratorsService) Get(name string) *FoldersLocationsGlobalPolicyOrchestratorsGetCall
- func (r *FoldersLocationsGlobalPolicyOrchestratorsService) List(parent string) *FoldersLocationsGlobalPolicyOrchestratorsListCall
- func (r *FoldersLocationsGlobalPolicyOrchestratorsService) Patch(name string, ...) *FoldersLocationsGlobalPolicyOrchestratorsPatchCall
- type FoldersLocationsGlobalService
- type FoldersLocationsOperationsCancelCall
- func (c *FoldersLocationsOperationsCancelCall) Context(ctx context.Context) *FoldersLocationsOperationsCancelCall
- func (c *FoldersLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *FoldersLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *FoldersLocationsOperationsCancelCall
- func (c *FoldersLocationsOperationsCancelCall) Header() http.Header
- type FoldersLocationsOperationsDeleteCall
- func (c *FoldersLocationsOperationsDeleteCall) Context(ctx context.Context) *FoldersLocationsOperationsDeleteCall
- func (c *FoldersLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *FoldersLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *FoldersLocationsOperationsDeleteCall
- func (c *FoldersLocationsOperationsDeleteCall) Header() http.Header
- type FoldersLocationsOperationsGetCall
- func (c *FoldersLocationsOperationsGetCall) Context(ctx context.Context) *FoldersLocationsOperationsGetCall
- func (c *FoldersLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *FoldersLocationsOperationsGetCall) Fields(s ...googleapi.Field) *FoldersLocationsOperationsGetCall
- func (c *FoldersLocationsOperationsGetCall) Header() http.Header
- func (c *FoldersLocationsOperationsGetCall) IfNoneMatch(entityTag string) *FoldersLocationsOperationsGetCall
- type FoldersLocationsOperationsListCall
- func (c *FoldersLocationsOperationsListCall) Context(ctx context.Context) *FoldersLocationsOperationsListCall
- func (c *FoldersLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error)
- func (c *FoldersLocationsOperationsListCall) Fields(s ...googleapi.Field) *FoldersLocationsOperationsListCall
- func (c *FoldersLocationsOperationsListCall) Filter(filter string) *FoldersLocationsOperationsListCall
- func (c *FoldersLocationsOperationsListCall) Header() http.Header
- func (c *FoldersLocationsOperationsListCall) IfNoneMatch(entityTag string) *FoldersLocationsOperationsListCall
- func (c *FoldersLocationsOperationsListCall) PageSize(pageSize int64) *FoldersLocationsOperationsListCall
- func (c *FoldersLocationsOperationsListCall) PageToken(pageToken string) *FoldersLocationsOperationsListCall
- func (c *FoldersLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error
- func (c *FoldersLocationsOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *FoldersLocationsOperationsListCall
- type FoldersLocationsOperationsService
- func (r *FoldersLocationsOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *FoldersLocationsOperationsCancelCall
- func (r *FoldersLocationsOperationsService) Delete(name string) *FoldersLocationsOperationsDeleteCall
- func (r *FoldersLocationsOperationsService) Get(name string) *FoldersLocationsOperationsGetCall
- func (r *FoldersLocationsOperationsService) List(name string) *FoldersLocationsOperationsListCall
- type FoldersLocationsService
- type FoldersService
- type GoogleCloudOsconfigV1__OSPolicyAssignmentOperationMetadata
- type GoogleCloudOsconfigV2__OperationMetadata
- type GoogleCloudOsconfigV2betaOrchestrationScopeLocationSelector
- type GoogleCloudOsconfigV2betaOrchestrationScopeResourceHierarchySelector
- type GoogleCloudOsconfigV2betaOrchestrationScopeSelector
- type GoogleCloudOsconfigV2betaPolicyOrchestratorIterationState
- type GoogleCloudOsconfigV2betaPolicyOrchestratorOrchestrationState
- type GoogleCloudOsconfigV2beta__ListPolicyOrchestratorsResponse
- type GoogleCloudOsconfigV2beta__OperationMetadata
- type GoogleCloudOsconfigV2beta__OrchestratedResource
- type GoogleCloudOsconfigV2beta__OrchestrationScope
- type GoogleCloudOsconfigV2beta__PolicyOrchestrator
- type ListOperationsResponse
- type MessageSet
- type OSPolicy
- type OSPolicyAssignment
- type OSPolicyAssignmentInstanceFilter
- type OSPolicyAssignmentInstanceFilterInventory
- type OSPolicyAssignmentLabelSet
- type OSPolicyAssignmentOperationMetadata
- type OSPolicyAssignmentRollout
- type OSPolicyInventoryFilter
- type OSPolicyResource
- type OSPolicyResourceExecResource
- type OSPolicyResourceExecResourceExec
- type OSPolicyResourceFile
- type OSPolicyResourceFileGcs
- type OSPolicyResourceFileRemote
- type OSPolicyResourceFileResource
- type OSPolicyResourceGroup
- type OSPolicyResourcePackageResource
- type OSPolicyResourcePackageResourceAPT
- type OSPolicyResourcePackageResourceDeb
- type OSPolicyResourcePackageResourceGooGet
- type OSPolicyResourcePackageResourceMSI
- type OSPolicyResourcePackageResourceRPM
- type OSPolicyResourcePackageResourceYUM
- type OSPolicyResourcePackageResourceZypper
- type OSPolicyResourceRepositoryResource
- type OSPolicyResourceRepositoryResourceAptRepository
- type OSPolicyResourceRepositoryResourceGooRepository
- type OSPolicyResourceRepositoryResourceYumRepository
- type OSPolicyResourceRepositoryResourceZypperRepository
- type Operation
- type OrganizationsLocationsGlobalPolicyOrchestratorsCreateCall
- func (c *OrganizationsLocationsGlobalPolicyOrchestratorsCreateCall) Context(ctx context.Context) *OrganizationsLocationsGlobalPolicyOrchestratorsCreateCall
- func (c *OrganizationsLocationsGlobalPolicyOrchestratorsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *OrganizationsLocationsGlobalPolicyOrchestratorsCreateCall) Fields(s ...googleapi.Field) *OrganizationsLocationsGlobalPolicyOrchestratorsCreateCall
- func (c *OrganizationsLocationsGlobalPolicyOrchestratorsCreateCall) Header() http.Header
- func (c *OrganizationsLocationsGlobalPolicyOrchestratorsCreateCall) PolicyOrchestratorId(policyOrchestratorId string) *OrganizationsLocationsGlobalPolicyOrchestratorsCreateCall
- func (c *OrganizationsLocationsGlobalPolicyOrchestratorsCreateCall) RequestId(requestId string) *OrganizationsLocationsGlobalPolicyOrchestratorsCreateCall
- type OrganizationsLocationsGlobalPolicyOrchestratorsDeleteCall
- func (c *OrganizationsLocationsGlobalPolicyOrchestratorsDeleteCall) Context(ctx context.Context) *OrganizationsLocationsGlobalPolicyOrchestratorsDeleteCall
- func (c *OrganizationsLocationsGlobalPolicyOrchestratorsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *OrganizationsLocationsGlobalPolicyOrchestratorsDeleteCall) Etag(etag string) *OrganizationsLocationsGlobalPolicyOrchestratorsDeleteCall
- func (c *OrganizationsLocationsGlobalPolicyOrchestratorsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsLocationsGlobalPolicyOrchestratorsDeleteCall
- func (c *OrganizationsLocationsGlobalPolicyOrchestratorsDeleteCall) Header() http.Header
- func (c *OrganizationsLocationsGlobalPolicyOrchestratorsDeleteCall) RequestId(requestId string) *OrganizationsLocationsGlobalPolicyOrchestratorsDeleteCall
- type OrganizationsLocationsGlobalPolicyOrchestratorsGetCall
- func (c *OrganizationsLocationsGlobalPolicyOrchestratorsGetCall) Context(ctx context.Context) *OrganizationsLocationsGlobalPolicyOrchestratorsGetCall
- func (c *OrganizationsLocationsGlobalPolicyOrchestratorsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudOsconfigV2beta__PolicyOrchestrator, error)
- func (c *OrganizationsLocationsGlobalPolicyOrchestratorsGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsGlobalPolicyOrchestratorsGetCall
- func (c *OrganizationsLocationsGlobalPolicyOrchestratorsGetCall) Header() http.Header
- func (c *OrganizationsLocationsGlobalPolicyOrchestratorsGetCall) IfNoneMatch(entityTag string) *OrganizationsLocationsGlobalPolicyOrchestratorsGetCall
- type OrganizationsLocationsGlobalPolicyOrchestratorsListCall
- func (c *OrganizationsLocationsGlobalPolicyOrchestratorsListCall) Context(ctx context.Context) *OrganizationsLocationsGlobalPolicyOrchestratorsListCall
- func (c *OrganizationsLocationsGlobalPolicyOrchestratorsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudOsconfigV2beta__ListPolicyOrchestratorsResponse, error)
- func (c *OrganizationsLocationsGlobalPolicyOrchestratorsListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsGlobalPolicyOrchestratorsListCall
- func (c *OrganizationsLocationsGlobalPolicyOrchestratorsListCall) Filter(filter string) *OrganizationsLocationsGlobalPolicyOrchestratorsListCall
- func (c *OrganizationsLocationsGlobalPolicyOrchestratorsListCall) Header() http.Header
- func (c *OrganizationsLocationsGlobalPolicyOrchestratorsListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsGlobalPolicyOrchestratorsListCall
- func (c *OrganizationsLocationsGlobalPolicyOrchestratorsListCall) OrderBy(orderBy string) *OrganizationsLocationsGlobalPolicyOrchestratorsListCall
- func (c *OrganizationsLocationsGlobalPolicyOrchestratorsListCall) PageSize(pageSize int64) *OrganizationsLocationsGlobalPolicyOrchestratorsListCall
- func (c *OrganizationsLocationsGlobalPolicyOrchestratorsListCall) PageToken(pageToken string) *OrganizationsLocationsGlobalPolicyOrchestratorsListCall
- func (c *OrganizationsLocationsGlobalPolicyOrchestratorsListCall) Pages(ctx context.Context, ...) error
- type OrganizationsLocationsGlobalPolicyOrchestratorsPatchCall
- func (c *OrganizationsLocationsGlobalPolicyOrchestratorsPatchCall) Context(ctx context.Context) *OrganizationsLocationsGlobalPolicyOrchestratorsPatchCall
- func (c *OrganizationsLocationsGlobalPolicyOrchestratorsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *OrganizationsLocationsGlobalPolicyOrchestratorsPatchCall) Fields(s ...googleapi.Field) *OrganizationsLocationsGlobalPolicyOrchestratorsPatchCall
- func (c *OrganizationsLocationsGlobalPolicyOrchestratorsPatchCall) Header() http.Header
- func (c *OrganizationsLocationsGlobalPolicyOrchestratorsPatchCall) UpdateMask(updateMask string) *OrganizationsLocationsGlobalPolicyOrchestratorsPatchCall
- type OrganizationsLocationsGlobalPolicyOrchestratorsService
- func (r *OrganizationsLocationsGlobalPolicyOrchestratorsService) Create(parent string, ...) *OrganizationsLocationsGlobalPolicyOrchestratorsCreateCall
- func (r *OrganizationsLocationsGlobalPolicyOrchestratorsService) Delete(name string) *OrganizationsLocationsGlobalPolicyOrchestratorsDeleteCall
- func (r *OrganizationsLocationsGlobalPolicyOrchestratorsService) Get(name string) *OrganizationsLocationsGlobalPolicyOrchestratorsGetCall
- func (r *OrganizationsLocationsGlobalPolicyOrchestratorsService) List(parent string) *OrganizationsLocationsGlobalPolicyOrchestratorsListCall
- func (r *OrganizationsLocationsGlobalPolicyOrchestratorsService) Patch(name string, ...) *OrganizationsLocationsGlobalPolicyOrchestratorsPatchCall
- type OrganizationsLocationsGlobalService
- type OrganizationsLocationsOperationsCancelCall
- func (c *OrganizationsLocationsOperationsCancelCall) Context(ctx context.Context) *OrganizationsLocationsOperationsCancelCall
- func (c *OrganizationsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *OrganizationsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *OrganizationsLocationsOperationsCancelCall
- func (c *OrganizationsLocationsOperationsCancelCall) Header() http.Header
- type OrganizationsLocationsOperationsDeleteCall
- func (c *OrganizationsLocationsOperationsDeleteCall) Context(ctx context.Context) *OrganizationsLocationsOperationsDeleteCall
- func (c *OrganizationsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *OrganizationsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsLocationsOperationsDeleteCall
- func (c *OrganizationsLocationsOperationsDeleteCall) Header() http.Header
- type OrganizationsLocationsOperationsGetCall
- func (c *OrganizationsLocationsOperationsGetCall) Context(ctx context.Context) *OrganizationsLocationsOperationsGetCall
- func (c *OrganizationsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, 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) (*ListOperationsResponse, 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(*ListOperationsResponse) error) error
- func (c *OrganizationsLocationsOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *OrganizationsLocationsOperationsListCall
- type OrganizationsLocationsOperationsService
- func (r *OrganizationsLocationsOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *OrganizationsLocationsOperationsCancelCall
- func (r *OrganizationsLocationsOperationsService) Delete(name string) *OrganizationsLocationsOperationsDeleteCall
- func (r *OrganizationsLocationsOperationsService) Get(name string) *OrganizationsLocationsOperationsGetCall
- func (r *OrganizationsLocationsOperationsService) List(name string) *OrganizationsLocationsOperationsListCall
- type OrganizationsLocationsService
- type OrganizationsService
- type ProjectsLocationsGlobalPolicyOrchestratorsCreateCall
- func (c *ProjectsLocationsGlobalPolicyOrchestratorsCreateCall) Context(ctx context.Context) *ProjectsLocationsGlobalPolicyOrchestratorsCreateCall
- func (c *ProjectsLocationsGlobalPolicyOrchestratorsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsGlobalPolicyOrchestratorsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalPolicyOrchestratorsCreateCall
- func (c *ProjectsLocationsGlobalPolicyOrchestratorsCreateCall) Header() http.Header
- func (c *ProjectsLocationsGlobalPolicyOrchestratorsCreateCall) PolicyOrchestratorId(policyOrchestratorId string) *ProjectsLocationsGlobalPolicyOrchestratorsCreateCall
- func (c *ProjectsLocationsGlobalPolicyOrchestratorsCreateCall) RequestId(requestId string) *ProjectsLocationsGlobalPolicyOrchestratorsCreateCall
- type ProjectsLocationsGlobalPolicyOrchestratorsDeleteCall
- func (c *ProjectsLocationsGlobalPolicyOrchestratorsDeleteCall) Context(ctx context.Context) *ProjectsLocationsGlobalPolicyOrchestratorsDeleteCall
- func (c *ProjectsLocationsGlobalPolicyOrchestratorsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsGlobalPolicyOrchestratorsDeleteCall) Etag(etag string) *ProjectsLocationsGlobalPolicyOrchestratorsDeleteCall
- func (c *ProjectsLocationsGlobalPolicyOrchestratorsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalPolicyOrchestratorsDeleteCall
- func (c *ProjectsLocationsGlobalPolicyOrchestratorsDeleteCall) Header() http.Header
- func (c *ProjectsLocationsGlobalPolicyOrchestratorsDeleteCall) RequestId(requestId string) *ProjectsLocationsGlobalPolicyOrchestratorsDeleteCall
- type ProjectsLocationsGlobalPolicyOrchestratorsGetCall
- func (c *ProjectsLocationsGlobalPolicyOrchestratorsGetCall) Context(ctx context.Context) *ProjectsLocationsGlobalPolicyOrchestratorsGetCall
- func (c *ProjectsLocationsGlobalPolicyOrchestratorsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudOsconfigV2beta__PolicyOrchestrator, error)
- func (c *ProjectsLocationsGlobalPolicyOrchestratorsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalPolicyOrchestratorsGetCall
- func (c *ProjectsLocationsGlobalPolicyOrchestratorsGetCall) Header() http.Header
- func (c *ProjectsLocationsGlobalPolicyOrchestratorsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGlobalPolicyOrchestratorsGetCall
- type ProjectsLocationsGlobalPolicyOrchestratorsListCall
- func (c *ProjectsLocationsGlobalPolicyOrchestratorsListCall) Context(ctx context.Context) *ProjectsLocationsGlobalPolicyOrchestratorsListCall
- func (c *ProjectsLocationsGlobalPolicyOrchestratorsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudOsconfigV2beta__ListPolicyOrchestratorsResponse, error)
- func (c *ProjectsLocationsGlobalPolicyOrchestratorsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalPolicyOrchestratorsListCall
- func (c *ProjectsLocationsGlobalPolicyOrchestratorsListCall) Filter(filter string) *ProjectsLocationsGlobalPolicyOrchestratorsListCall
- func (c *ProjectsLocationsGlobalPolicyOrchestratorsListCall) Header() http.Header
- func (c *ProjectsLocationsGlobalPolicyOrchestratorsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsGlobalPolicyOrchestratorsListCall
- func (c *ProjectsLocationsGlobalPolicyOrchestratorsListCall) OrderBy(orderBy string) *ProjectsLocationsGlobalPolicyOrchestratorsListCall
- func (c *ProjectsLocationsGlobalPolicyOrchestratorsListCall) PageSize(pageSize int64) *ProjectsLocationsGlobalPolicyOrchestratorsListCall
- func (c *ProjectsLocationsGlobalPolicyOrchestratorsListCall) PageToken(pageToken string) *ProjectsLocationsGlobalPolicyOrchestratorsListCall
- func (c *ProjectsLocationsGlobalPolicyOrchestratorsListCall) Pages(ctx context.Context, ...) error
- type ProjectsLocationsGlobalPolicyOrchestratorsPatchCall
- func (c *ProjectsLocationsGlobalPolicyOrchestratorsPatchCall) Context(ctx context.Context) *ProjectsLocationsGlobalPolicyOrchestratorsPatchCall
- func (c *ProjectsLocationsGlobalPolicyOrchestratorsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsGlobalPolicyOrchestratorsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalPolicyOrchestratorsPatchCall
- func (c *ProjectsLocationsGlobalPolicyOrchestratorsPatchCall) Header() http.Header
- func (c *ProjectsLocationsGlobalPolicyOrchestratorsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsGlobalPolicyOrchestratorsPatchCall
- type ProjectsLocationsGlobalPolicyOrchestratorsService
- func (r *ProjectsLocationsGlobalPolicyOrchestratorsService) Create(parent string, ...) *ProjectsLocationsGlobalPolicyOrchestratorsCreateCall
- func (r *ProjectsLocationsGlobalPolicyOrchestratorsService) Delete(name string) *ProjectsLocationsGlobalPolicyOrchestratorsDeleteCall
- func (r *ProjectsLocationsGlobalPolicyOrchestratorsService) Get(name string) *ProjectsLocationsGlobalPolicyOrchestratorsGetCall
- func (r *ProjectsLocationsGlobalPolicyOrchestratorsService) List(parent string) *ProjectsLocationsGlobalPolicyOrchestratorsListCall
- func (r *ProjectsLocationsGlobalPolicyOrchestratorsService) Patch(name string, ...) *ProjectsLocationsGlobalPolicyOrchestratorsPatchCall
- type ProjectsLocationsGlobalService
- type ProjectsLocationsOperationsCancelCall
- func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall
- func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall
- func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header
- type ProjectsLocationsOperationsDeleteCall
- func (c *ProjectsLocationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsOperationsDeleteCall
- func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsDeleteCall
- func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header
- type ProjectsLocationsOperationsGetCall
- func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall
- func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error)
- func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall
- func (c *ProjectsLocationsOperationsGetCall) Header() http.Header
- func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall
- type ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error)
- func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) Header() http.Header
- func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall
- func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error
- func (c *ProjectsLocationsOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ProjectsLocationsOperationsListCall
- type ProjectsLocationsOperationsService
- func (r *ProjectsLocationsOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *ProjectsLocationsOperationsCancelCall
- func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocationsOperationsDeleteCall
- func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall
- func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall
- type ProjectsLocationsService
- type ProjectsService
- type Service
- type Status
- type StatusProto
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¶
typeCancelOperationRequest¶
type CancelOperationRequest struct {}CancelOperationRequest: The request message for Operations.CancelOperation.
typeEmpty¶
type Empty struct {// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`}Empty: A generic empty message that you can re-use to avoid definingduplicated empty messages in your APIs. A typical example is to use it asthe request or the response type of an API method. For instance: service Foo{ rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
typeFixedOrPercent¶
type FixedOrPercent struct {// Fixed: Specifies a fixed value.Fixedint64 `json:"fixed,omitempty"`// Percent: Specifies the relative value defined as a percentage, which will be// multiplied by a reference value.Percentint64 `json:"percent,omitempty"`// ForceSendFields is a list of field names (e.g. "Fixed") 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. "Fixed") 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:"-"`}FixedOrPercent: Message encapsulating a value that can be either absolute("fixed") or relative ("percent") to a value.
func (FixedOrPercent)MarshalJSON¶
func (sFixedOrPercent) MarshalJSON() ([]byte,error)
typeFoldersLocationsGlobalPolicyOrchestratorsCreateCall¶
type FoldersLocationsGlobalPolicyOrchestratorsCreateCall struct {// contains filtered or unexported fields}func (*FoldersLocationsGlobalPolicyOrchestratorsCreateCall)Context¶
func (c *FoldersLocationsGlobalPolicyOrchestratorsCreateCall) Context(ctxcontext.Context) *FoldersLocationsGlobalPolicyOrchestratorsCreateCall
Context sets the context to be used in this call's Do method.
func (*FoldersLocationsGlobalPolicyOrchestratorsCreateCall)Do¶
func (c *FoldersLocationsGlobalPolicyOrchestratorsCreateCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "osconfig.folders.locations.global.policyOrchestrators.create" call.Any non-2xx status code is an error. Response headers are in either*Operation.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 (*FoldersLocationsGlobalPolicyOrchestratorsCreateCall)Fields¶
func (c *FoldersLocationsGlobalPolicyOrchestratorsCreateCall) Fields(s ...googleapi.Field) *FoldersLocationsGlobalPolicyOrchestratorsCreateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*FoldersLocationsGlobalPolicyOrchestratorsCreateCall)Header¶
func (c *FoldersLocationsGlobalPolicyOrchestratorsCreateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*FoldersLocationsGlobalPolicyOrchestratorsCreateCall)PolicyOrchestratorId¶
func (c *FoldersLocationsGlobalPolicyOrchestratorsCreateCall) PolicyOrchestratorId(policyOrchestratorIdstring) *FoldersLocationsGlobalPolicyOrchestratorsCreateCall
PolicyOrchestratorId sets the optional parameter "policyOrchestratorId":Required. The logical identifier of the policy orchestrator, with thefollowing restrictions: * Must contain only lowercase letters, numbers, andhyphens. * Must start with a letter. * Must be between 1-63 characters. *Must end with a number or a letter. * Must be unique within the parent.
func (*FoldersLocationsGlobalPolicyOrchestratorsCreateCall)RequestId¶
func (c *FoldersLocationsGlobalPolicyOrchestratorsCreateCall) RequestId(requestIdstring) *FoldersLocationsGlobalPolicyOrchestratorsCreateCall
RequestId sets the optional parameter "requestId": An optional request ID toidentify requests. Specify a unique request ID so that if you must retryyour request, the server will know to ignore the request if it has alreadybeen completed. The server will guarantee that for at least 60 minutes sincethe first request. For example, consider a situation where you make aninitial request and the request times out. If you make the request againwith the same request ID, the server can check if original operation withthe same request ID was received, and if so, will ignore the second request.This prevents clients from accidentally creating duplicate commitments. Therequest ID must be a valid UUID with the exception that zero UUID is notsupported (00000000-0000-0000-0000-000000000000).
typeFoldersLocationsGlobalPolicyOrchestratorsDeleteCall¶
type FoldersLocationsGlobalPolicyOrchestratorsDeleteCall struct {// contains filtered or unexported fields}func (*FoldersLocationsGlobalPolicyOrchestratorsDeleteCall)Context¶
func (c *FoldersLocationsGlobalPolicyOrchestratorsDeleteCall) Context(ctxcontext.Context) *FoldersLocationsGlobalPolicyOrchestratorsDeleteCall
Context sets the context to be used in this call's Do method.
func (*FoldersLocationsGlobalPolicyOrchestratorsDeleteCall)Do¶
func (c *FoldersLocationsGlobalPolicyOrchestratorsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "osconfig.folders.locations.global.policyOrchestrators.delete" call.Any non-2xx status code is an error. Response headers are in either*Operation.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 (*FoldersLocationsGlobalPolicyOrchestratorsDeleteCall)Etag¶
func (c *FoldersLocationsGlobalPolicyOrchestratorsDeleteCall) Etag(etagstring) *FoldersLocationsGlobalPolicyOrchestratorsDeleteCall
Etag sets the optional parameter "etag": The current etag of the policyorchestrator. If an etag is provided and does not match the current etag ofthe policy orchestrator, deletion will be blocked and an ABORTED error willbe returned.
func (*FoldersLocationsGlobalPolicyOrchestratorsDeleteCall)Fields¶
func (c *FoldersLocationsGlobalPolicyOrchestratorsDeleteCall) Fields(s ...googleapi.Field) *FoldersLocationsGlobalPolicyOrchestratorsDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*FoldersLocationsGlobalPolicyOrchestratorsDeleteCall)Header¶
func (c *FoldersLocationsGlobalPolicyOrchestratorsDeleteCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*FoldersLocationsGlobalPolicyOrchestratorsDeleteCall)RequestId¶
func (c *FoldersLocationsGlobalPolicyOrchestratorsDeleteCall) RequestId(requestIdstring) *FoldersLocationsGlobalPolicyOrchestratorsDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID toidentify requests. Specify a unique request ID so that if you must retryyour request, the server will know to ignore the request if it has alreadybeen completed. The server will guarantee that for at least 60 minutes afterthe first request. For example, consider a situation where you make aninitial request and the request times out. If you make the request againwith the same request ID, the server can check if original operation withthe same request ID was received, and if so, will ignore the second request.This prevents clients from accidentally creating duplicate commitments. Therequest ID must be a valid UUID with the exception that zero UUID is notsupported (00000000-0000-0000-0000-000000000000).
typeFoldersLocationsGlobalPolicyOrchestratorsGetCall¶
type FoldersLocationsGlobalPolicyOrchestratorsGetCall struct {// contains filtered or unexported fields}func (*FoldersLocationsGlobalPolicyOrchestratorsGetCall)Context¶
func (c *FoldersLocationsGlobalPolicyOrchestratorsGetCall) Context(ctxcontext.Context) *FoldersLocationsGlobalPolicyOrchestratorsGetCall
Context sets the context to be used in this call's Do method.
func (*FoldersLocationsGlobalPolicyOrchestratorsGetCall)Do¶
func (c *FoldersLocationsGlobalPolicyOrchestratorsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudOsconfigV2beta__PolicyOrchestrator,error)
Do executes the "osconfig.folders.locations.global.policyOrchestrators.get" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudOsconfigV2beta__PolicyOrchestrator.ServerResponse.Header or (ifa response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*FoldersLocationsGlobalPolicyOrchestratorsGetCall)Fields¶
func (c *FoldersLocationsGlobalPolicyOrchestratorsGetCall) Fields(s ...googleapi.Field) *FoldersLocationsGlobalPolicyOrchestratorsGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*FoldersLocationsGlobalPolicyOrchestratorsGetCall)Header¶
func (c *FoldersLocationsGlobalPolicyOrchestratorsGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*FoldersLocationsGlobalPolicyOrchestratorsGetCall)IfNoneMatch¶
func (c *FoldersLocationsGlobalPolicyOrchestratorsGetCall) IfNoneMatch(entityTagstring) *FoldersLocationsGlobalPolicyOrchestratorsGetCall
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.
typeFoldersLocationsGlobalPolicyOrchestratorsListCall¶
type FoldersLocationsGlobalPolicyOrchestratorsListCall struct {// contains filtered or unexported fields}func (*FoldersLocationsGlobalPolicyOrchestratorsListCall)Context¶
func (c *FoldersLocationsGlobalPolicyOrchestratorsListCall) Context(ctxcontext.Context) *FoldersLocationsGlobalPolicyOrchestratorsListCall
Context sets the context to be used in this call's Do method.
func (*FoldersLocationsGlobalPolicyOrchestratorsListCall)Do¶
func (c *FoldersLocationsGlobalPolicyOrchestratorsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudOsconfigV2beta__ListPolicyOrchestratorsResponse,error)
Do executes the "osconfig.folders.locations.global.policyOrchestrators.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudOsconfigV2beta__ListPolicyOrchestratorsResponse.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 (*FoldersLocationsGlobalPolicyOrchestratorsListCall)Fields¶
func (c *FoldersLocationsGlobalPolicyOrchestratorsListCall) Fields(s ...googleapi.Field) *FoldersLocationsGlobalPolicyOrchestratorsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*FoldersLocationsGlobalPolicyOrchestratorsListCall)Filter¶
func (c *FoldersLocationsGlobalPolicyOrchestratorsListCall) Filter(filterstring) *FoldersLocationsGlobalPolicyOrchestratorsListCall
Filter sets the optional parameter "filter": Filtering results
func (*FoldersLocationsGlobalPolicyOrchestratorsListCall)Header¶
func (c *FoldersLocationsGlobalPolicyOrchestratorsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*FoldersLocationsGlobalPolicyOrchestratorsListCall)IfNoneMatch¶
func (c *FoldersLocationsGlobalPolicyOrchestratorsListCall) IfNoneMatch(entityTagstring) *FoldersLocationsGlobalPolicyOrchestratorsListCall
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 (*FoldersLocationsGlobalPolicyOrchestratorsListCall)OrderBy¶
func (c *FoldersLocationsGlobalPolicyOrchestratorsListCall) OrderBy(orderBystring) *FoldersLocationsGlobalPolicyOrchestratorsListCall
OrderBy sets the optional parameter "orderBy": Hint for how to order theresults
func (*FoldersLocationsGlobalPolicyOrchestratorsListCall)PageSize¶
func (c *FoldersLocationsGlobalPolicyOrchestratorsListCall) PageSize(pageSizeint64) *FoldersLocationsGlobalPolicyOrchestratorsListCall
PageSize sets the optional parameter "pageSize": Requested page size. Servermay return fewer items than requested. If unspecified, server will pick anappropriate default.
func (*FoldersLocationsGlobalPolicyOrchestratorsListCall)PageToken¶
func (c *FoldersLocationsGlobalPolicyOrchestratorsListCall) PageToken(pageTokenstring) *FoldersLocationsGlobalPolicyOrchestratorsListCall
PageToken sets the optional parameter "pageToken": A token identifying apage of results the server should return.
func (*FoldersLocationsGlobalPolicyOrchestratorsListCall)Pages¶
func (c *FoldersLocationsGlobalPolicyOrchestratorsListCall) Pages(ctxcontext.Context, f func(*GoogleCloudOsconfigV2beta__ListPolicyOrchestratorsResponse)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.
typeFoldersLocationsGlobalPolicyOrchestratorsPatchCall¶
type FoldersLocationsGlobalPolicyOrchestratorsPatchCall struct {// contains filtered or unexported fields}func (*FoldersLocationsGlobalPolicyOrchestratorsPatchCall)Context¶
func (c *FoldersLocationsGlobalPolicyOrchestratorsPatchCall) Context(ctxcontext.Context) *FoldersLocationsGlobalPolicyOrchestratorsPatchCall
Context sets the context to be used in this call's Do method.
func (*FoldersLocationsGlobalPolicyOrchestratorsPatchCall)Do¶
func (c *FoldersLocationsGlobalPolicyOrchestratorsPatchCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "osconfig.folders.locations.global.policyOrchestrators.patch" call.Any non-2xx status code is an error. Response headers are in either*Operation.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 (*FoldersLocationsGlobalPolicyOrchestratorsPatchCall)Fields¶
func (c *FoldersLocationsGlobalPolicyOrchestratorsPatchCall) Fields(s ...googleapi.Field) *FoldersLocationsGlobalPolicyOrchestratorsPatchCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*FoldersLocationsGlobalPolicyOrchestratorsPatchCall)Header¶
func (c *FoldersLocationsGlobalPolicyOrchestratorsPatchCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*FoldersLocationsGlobalPolicyOrchestratorsPatchCall)UpdateMask¶
func (c *FoldersLocationsGlobalPolicyOrchestratorsPatchCall) UpdateMask(updateMaskstring) *FoldersLocationsGlobalPolicyOrchestratorsPatchCall
UpdateMask sets the optional parameter "updateMask": The list of fields tomerge into the existing policy orchestrator. A special ["*"] field mask canbe used to simply replace the entire resource. Otherwise, for all pathsreferenced in the mask, following merge rules are used: * output only fieldsare ignored, * primitive fields are replaced, * repeated fields arereplaced, * map fields are merged key by key, * message fields are clearedif not set in the request, otherwise they are merged recursively (inparticular - message fields set to an empty message has no side effects) Iffield mask (or its paths) is not specified, it is automatically inferredfrom the request using following rules: * primitive fields are listed, ifset to a non-default value (as there is no way to distinguish betweendefault and unset value), * map and repeated fields are listed, *`google.protobuf.Any` fields are listed, * other message fields aretraversed recursively. Note: implicit mask does not allow clearing fields.
typeFoldersLocationsGlobalPolicyOrchestratorsService¶
type FoldersLocationsGlobalPolicyOrchestratorsService struct {// contains filtered or unexported fields}funcNewFoldersLocationsGlobalPolicyOrchestratorsService¶
func NewFoldersLocationsGlobalPolicyOrchestratorsService(s *Service) *FoldersLocationsGlobalPolicyOrchestratorsService
func (*FoldersLocationsGlobalPolicyOrchestratorsService)Create¶
func (r *FoldersLocationsGlobalPolicyOrchestratorsService) Create(parentstring, googlecloudosconfigv2beta__policyorchestrator *GoogleCloudOsconfigV2beta__PolicyOrchestrator) *FoldersLocationsGlobalPolicyOrchestratorsCreateCall
Create: Creates a new policy orchestrator under the given folder resource.`name` field of the given orchestrator are ignored and instead replaced by aproduct of `parent` and `policy_orchestrator_id`. Orchestrator state fieldmight be only set to `ACTIVE`, `STOPPED` or omitted (in which case, thecreated resource will be in `ACTIVE` state anyway).
- parent: The parent resource name in the form of: *`organizations/{organization_id}/locations/global` *`folders/{folder_id}/locations/global` *`projects/{project_id_or_number}/locations/global`.
func (*FoldersLocationsGlobalPolicyOrchestratorsService)Delete¶
func (r *FoldersLocationsGlobalPolicyOrchestratorsService) Delete(namestring) *FoldersLocationsGlobalPolicyOrchestratorsDeleteCall
Delete: Deletes an existing policy orchestrator resource, parented by afolder.
- name: Name of the resource to be deleted.
func (*FoldersLocationsGlobalPolicyOrchestratorsService)Get¶
func (r *FoldersLocationsGlobalPolicyOrchestratorsService) Get(namestring) *FoldersLocationsGlobalPolicyOrchestratorsGetCall
Get: Retrieves an existing policy orchestrator, parented by a folder.
- name: The resource name.
func (*FoldersLocationsGlobalPolicyOrchestratorsService)List¶
func (r *FoldersLocationsGlobalPolicyOrchestratorsService) List(parentstring) *FoldersLocationsGlobalPolicyOrchestratorsListCall
List: Lists the policy orchestrators under the given parent folder resource.
- parent: The parent resource name.
func (*FoldersLocationsGlobalPolicyOrchestratorsService)Patch¶
func (r *FoldersLocationsGlobalPolicyOrchestratorsService) Patch(namestring, googlecloudosconfigv2beta__policyorchestrator *GoogleCloudOsconfigV2beta__PolicyOrchestrator) *FoldersLocationsGlobalPolicyOrchestratorsPatchCall
Patch: Updates an existing policy orchestrator, parented by a folder.
- name: Immutable. Identifier. In form of *`organizations/{organization_id}/locations/global/policyOrchestrators/{orchestrator_id}` *`folders/{folder_id}/locations/global/policyOrchestrators/{orchestrator_id}` *`projects/{project_id_or_number}/locations/global/policyOrchestrators/{orchestrator_id}`.
typeFoldersLocationsGlobalService¶
type FoldersLocationsGlobalService struct {PolicyOrchestrators *FoldersLocationsGlobalPolicyOrchestratorsService// contains filtered or unexported fields}funcNewFoldersLocationsGlobalService¶
func NewFoldersLocationsGlobalService(s *Service) *FoldersLocationsGlobalService
typeFoldersLocationsOperationsCancelCall¶
type FoldersLocationsOperationsCancelCall struct {// contains filtered or unexported fields}func (*FoldersLocationsOperationsCancelCall)Context¶
func (c *FoldersLocationsOperationsCancelCall) Context(ctxcontext.Context) *FoldersLocationsOperationsCancelCall
Context sets the context to be used in this call's Do method.
func (*FoldersLocationsOperationsCancelCall)Do¶
func (c *FoldersLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty,error)
Do executes the "osconfig.folders.locations.operations.cancel" call.Any non-2xx status code is an error. Response headers are in either*Empty.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 (*FoldersLocationsOperationsCancelCall)Fields¶
func (c *FoldersLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *FoldersLocationsOperationsCancelCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*FoldersLocationsOperationsCancelCall)Header¶
func (c *FoldersLocationsOperationsCancelCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeFoldersLocationsOperationsDeleteCall¶
type FoldersLocationsOperationsDeleteCall struct {// contains filtered or unexported fields}func (*FoldersLocationsOperationsDeleteCall)Context¶
func (c *FoldersLocationsOperationsDeleteCall) Context(ctxcontext.Context) *FoldersLocationsOperationsDeleteCall
Context sets the context to be used in this call's Do method.
func (*FoldersLocationsOperationsDeleteCall)Do¶
func (c *FoldersLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty,error)
Do executes the "osconfig.folders.locations.operations.delete" call.Any non-2xx status code is an error. Response headers are in either*Empty.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 (*FoldersLocationsOperationsDeleteCall)Fields¶
func (c *FoldersLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *FoldersLocationsOperationsDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*FoldersLocationsOperationsDeleteCall)Header¶
func (c *FoldersLocationsOperationsDeleteCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeFoldersLocationsOperationsGetCall¶
type FoldersLocationsOperationsGetCall struct {// contains filtered or unexported fields}func (*FoldersLocationsOperationsGetCall)Context¶
func (c *FoldersLocationsOperationsGetCall) Context(ctxcontext.Context) *FoldersLocationsOperationsGetCall
Context sets the context to be used in this call's Do method.
func (*FoldersLocationsOperationsGetCall)Do¶
func (c *FoldersLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "osconfig.folders.locations.operations.get" call.Any non-2xx status code is an error. Response headers are in either*Operation.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 (*FoldersLocationsOperationsGetCall)Fields¶
func (c *FoldersLocationsOperationsGetCall) Fields(s ...googleapi.Field) *FoldersLocationsOperationsGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*FoldersLocationsOperationsGetCall)Header¶
func (c *FoldersLocationsOperationsGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*FoldersLocationsOperationsGetCall)IfNoneMatch¶
func (c *FoldersLocationsOperationsGetCall) IfNoneMatch(entityTagstring) *FoldersLocationsOperationsGetCall
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.
typeFoldersLocationsOperationsListCall¶
type FoldersLocationsOperationsListCall struct {// contains filtered or unexported fields}func (*FoldersLocationsOperationsListCall)Context¶
func (c *FoldersLocationsOperationsListCall) Context(ctxcontext.Context) *FoldersLocationsOperationsListCall
Context sets the context to be used in this call's Do method.
func (*FoldersLocationsOperationsListCall)Do¶
func (c *FoldersLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse,error)
Do executes the "osconfig.folders.locations.operations.list" call.Any non-2xx status code is an error. Response headers are in either*ListOperationsResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*FoldersLocationsOperationsListCall)Fields¶
func (c *FoldersLocationsOperationsListCall) Fields(s ...googleapi.Field) *FoldersLocationsOperationsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*FoldersLocationsOperationsListCall)Filter¶
func (c *FoldersLocationsOperationsListCall) Filter(filterstring) *FoldersLocationsOperationsListCall
Filter sets the optional parameter "filter": The standard list filter.
func (*FoldersLocationsOperationsListCall)Header¶
func (c *FoldersLocationsOperationsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*FoldersLocationsOperationsListCall)IfNoneMatch¶
func (c *FoldersLocationsOperationsListCall) IfNoneMatch(entityTagstring) *FoldersLocationsOperationsListCall
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 (*FoldersLocationsOperationsListCall)PageSize¶
func (c *FoldersLocationsOperationsListCall) PageSize(pageSizeint64) *FoldersLocationsOperationsListCall
PageSize sets the optional parameter "pageSize": The standard list pagesize.
func (*FoldersLocationsOperationsListCall)PageToken¶
func (c *FoldersLocationsOperationsListCall) PageToken(pageTokenstring) *FoldersLocationsOperationsListCall
PageToken sets the optional parameter "pageToken": The standard list pagetoken.
func (*FoldersLocationsOperationsListCall)Pages¶
func (c *FoldersLocationsOperationsListCall) Pages(ctxcontext.Context, f func(*ListOperationsResponse)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 (*FoldersLocationsOperationsListCall)ReturnPartialSuccess¶added inv0.252.0
func (c *FoldersLocationsOperationsListCall) ReturnPartialSuccess(returnPartialSuccessbool) *FoldersLocationsOperationsListCall
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 theListOperationsResponse.unreachable field. This can only be `true` whenreading across collections. For example, when `parent` is set to"projects/example/locations/-". This field is not supported by default andwill result in an `UNIMPLEMENTED` error if set unless explicitly documentedotherwise in service or product specific documentation.
typeFoldersLocationsOperationsService¶
type FoldersLocationsOperationsService struct {// contains filtered or unexported fields}funcNewFoldersLocationsOperationsService¶
func NewFoldersLocationsOperationsService(s *Service) *FoldersLocationsOperationsService
func (*FoldersLocationsOperationsService)Cancel¶
func (r *FoldersLocationsOperationsService) Cancel(namestring, canceloperationrequest *CancelOperationRequest) *FoldersLocationsOperationsCancelCall
Cancel: Starts asynchronous cancellation on a long-running operation. Theserver makes a best effort to cancel the operation, but success is notguaranteed. If the server doesn't support this method, it returns`google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation orother methods to check whether the cancellation succeeded or whether theoperation completed despite cancellation. On successful cancellation, theoperation is not deleted; instead, it becomes an operation with anOperation.error value with a google.rpc.Status.code of `1`, corresponding to`Code.CANCELLED`.
- name: The name of the operation resource to be cancelled.
func (*FoldersLocationsOperationsService)Delete¶
func (r *FoldersLocationsOperationsService) Delete(namestring) *FoldersLocationsOperationsDeleteCall
Delete: Deletes a long-running operation. This method indicates that theclient is no longer interested in the operation result. It does not cancelthe operation. If the server doesn't support this method, it returns`google.rpc.Code.UNIMPLEMENTED`.
- name: The name of the operation resource to be deleted.
func (*FoldersLocationsOperationsService)Get¶
func (r *FoldersLocationsOperationsService) Get(namestring) *FoldersLocationsOperationsGetCall
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 (*FoldersLocationsOperationsService)List¶
func (r *FoldersLocationsOperationsService) List(namestring) *FoldersLocationsOperationsListCall
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.
typeFoldersLocationsService¶
type FoldersLocationsService struct {Global *FoldersLocationsGlobalServiceOperations *FoldersLocationsOperationsService// contains filtered or unexported fields}funcNewFoldersLocationsService¶
func NewFoldersLocationsService(s *Service) *FoldersLocationsService
typeFoldersService¶
type FoldersService struct {Locations *FoldersLocationsService// contains filtered or unexported fields}funcNewFoldersService¶
func NewFoldersService(s *Service) *FoldersService
typeGoogleCloudOsconfigV1__OSPolicyAssignmentOperationMetadata¶
type GoogleCloudOsconfigV1__OSPolicyAssignmentOperationMetadata struct {// ApiMethod: The OS policy assignment API method.//// Possible values:// "API_METHOD_UNSPECIFIED" - Invalid value// "CREATE" - Create OS policy assignment API method// "UPDATE" - Update OS policy assignment API method// "DELETE" - Delete OS policy assignment API methodApiMethodstring `json:"apiMethod,omitempty"`// OsPolicyAssignment: Reference to the `OSPolicyAssignment` API resource.// Format:// `projects/{project_number}/locations/{location}/osPolicyAssignments/{os_polic// y_assignment_id@revision_id}`OsPolicyAssignmentstring `json:"osPolicyAssignment,omitempty"`// RolloutStartTime: Rollout start timeRolloutStartTimestring `json:"rolloutStartTime,omitempty"`// RolloutState: State of the rollout//// Possible values:// "ROLLOUT_STATE_UNSPECIFIED" - Invalid value// "IN_PROGRESS" - The rollout is in progress.// "CANCELLING" - The rollout is being cancelled.// "CANCELLED" - The rollout is cancelled.// "SUCCEEDED" - The rollout has completed successfully.RolloutStatestring `json:"rolloutState,omitempty"`// RolloutUpdateTime: Rollout update timeRolloutUpdateTimestring `json:"rolloutUpdateTime,omitempty"`// ForceSendFields is a list of field names (e.g. "ApiMethod") 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. "ApiMethod") 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:"-"`}GoogleCloudOsconfigV1__OSPolicyAssignmentOperationMetadata: OS policyassignment operation metadata provided by OS policy assignment API methodsthat return long running operations.
func (GoogleCloudOsconfigV1__OSPolicyAssignmentOperationMetadata)MarshalJSON¶
func (sGoogleCloudOsconfigV1__OSPolicyAssignmentOperationMetadata) MarshalJSON() ([]byte,error)
typeGoogleCloudOsconfigV2__OperationMetadata¶added inv0.229.0
type GoogleCloudOsconfigV2__OperationMetadata struct {// ApiVersion: Output only. API version used to start the operation.ApiVersionstring `json:"apiVersion,omitempty"`// CreateTime: Output only. The time the operation was created.CreateTimestring `json:"createTime,omitempty"`// EndTime: Output only. The time the operation finished running.EndTimestring `json:"endTime,omitempty"`// RequestedCancellation: Output only. Identifies whether the user has// requested cancellation of the operation. Operations that have been cancelled// successfully have Operation.error value with a google.rpc.Status.code of 1,// corresponding to `Code.CANCELLED`.RequestedCancellationbool `json:"requestedCancellation,omitempty"`// StatusMessage: Output only. Human-readable status of the operation, if any.StatusMessagestring `json:"statusMessage,omitempty"`// Target: Output only. Server-defined resource path for the target of the// operation.Targetstring `json:"target,omitempty"`// Verb: Output only. Name of the verb executed by the operation.Verbstring `json:"verb,omitempty"`// ForceSendFields is a list of field names (e.g. "ApiVersion") 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. "ApiVersion") 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:"-"`}GoogleCloudOsconfigV2__OperationMetadata: Represents the metadata of thelong-running operation.
func (GoogleCloudOsconfigV2__OperationMetadata)MarshalJSON¶added inv0.229.0
func (sGoogleCloudOsconfigV2__OperationMetadata) MarshalJSON() ([]byte,error)
typeGoogleCloudOsconfigV2betaOrchestrationScopeLocationSelector¶
type GoogleCloudOsconfigV2betaOrchestrationScopeLocationSelector struct {// IncludedLocations: Optional. Names of the locations in scope. Format:// `us-central1-a`IncludedLocations []string `json:"includedLocations,omitempty"`// ForceSendFields is a list of field names (e.g. "IncludedLocations") 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. "IncludedLocations") 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:"-"`}GoogleCloudOsconfigV2betaOrchestrationScopeLocationSelector: Selectorcontaining locations in scope.
func (GoogleCloudOsconfigV2betaOrchestrationScopeLocationSelector)MarshalJSON¶
func (sGoogleCloudOsconfigV2betaOrchestrationScopeLocationSelector) MarshalJSON() ([]byte,error)
typeGoogleCloudOsconfigV2betaOrchestrationScopeResourceHierarchySelector¶
type GoogleCloudOsconfigV2betaOrchestrationScopeResourceHierarchySelector struct {// IncludedFolders: Optional. Names of the folders in scope. Format:// `folders/{folder_id}`IncludedFolders []string `json:"includedFolders,omitempty"`// IncludedProjects: Optional. Names of the projects in scope. Format:// `projects/{project_number}`IncludedProjects []string `json:"includedProjects,omitempty"`// ForceSendFields is a list of field names (e.g. "IncludedFolders") 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. "IncludedFolders") 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:"-"`}GoogleCloudOsconfigV2betaOrchestrationScopeResourceHierarchySelector:Selector containing Cloud Resource Manager resource hierarchy nodes.
func (GoogleCloudOsconfigV2betaOrchestrationScopeResourceHierarchySelector)MarshalJSON¶
func (sGoogleCloudOsconfigV2betaOrchestrationScopeResourceHierarchySelector) MarshalJSON() ([]byte,error)
typeGoogleCloudOsconfigV2betaOrchestrationScopeSelector¶
type GoogleCloudOsconfigV2betaOrchestrationScopeSelector struct {// LocationSelector: Selector for selecting locations.LocationSelector *GoogleCloudOsconfigV2betaOrchestrationScopeLocationSelector `json:"locationSelector,omitempty"`// ResourceHierarchySelector: Selector for selecting resource hierarchy.ResourceHierarchySelector *GoogleCloudOsconfigV2betaOrchestrationScopeResourceHierarchySelector `json:"resourceHierarchySelector,omitempty"`// ForceSendFields is a list of field names (e.g. "LocationSelector") 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. "LocationSelector") 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:"-"`}GoogleCloudOsconfigV2betaOrchestrationScopeSelector: Selector for theresources in scope of orchestration.
func (GoogleCloudOsconfigV2betaOrchestrationScopeSelector)MarshalJSON¶
func (sGoogleCloudOsconfigV2betaOrchestrationScopeSelector) MarshalJSON() ([]byte,error)
typeGoogleCloudOsconfigV2betaPolicyOrchestratorIterationState¶
type GoogleCloudOsconfigV2betaPolicyOrchestratorIterationState struct {// Error: Output only. Error thrown in the wave iteration.Error *Status `json:"error,omitempty"`// FailedActions: Output only. Number of orchestration actions which failed so// far. For more details, query the Cloud Logs.FailedActionsint64 `json:"failedActions,omitempty,string"`// FinishTime: Output only. Finish time of the wave iteration.FinishTimestring `json:"finishTime,omitempty"`// IterationId: Output only. Unique identifier of the iteration.IterationIdstring `json:"iterationId,omitempty"`// PerformedActions: Output only. Overall number of actions done by the// orchestrator so far.PerformedActionsint64 `json:"performedActions,omitempty,string"`// Progress: Output only. An estimated percentage of the progress. Number// between 0 and 100.Progressfloat64 `json:"progress,omitempty"`// StartTime: Output only. Start time of the wave iteration.StartTimestring `json:"startTime,omitempty"`// State: Output only. State of the iteration.//// Possible values:// "STATE_UNSPECIFIED" - Default value. This value is unused.// "PROCESSING" - Iteration is in progress.// "COMPLETED" - Iteration completed, with all actions being successful.// "FAILED" - Iteration completed, with failures.// "CANCELLED" - Iteration was explicitly cancelled.// "UNKNOWN" - Impossible to determine current state of the iteration.Statestring `json:"state,omitempty"`// ForceSendFields is a list of field names (e.g. "Error") 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. "Error") 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:"-"`}GoogleCloudOsconfigV2betaPolicyOrchestratorIterationState: Describes thestate of a single iteration of the orchestrator.
func (GoogleCloudOsconfigV2betaPolicyOrchestratorIterationState)MarshalJSON¶
func (sGoogleCloudOsconfigV2betaPolicyOrchestratorIterationState) MarshalJSON() ([]byte,error)
func (*GoogleCloudOsconfigV2betaPolicyOrchestratorIterationState)UnmarshalJSON¶
func (s *GoogleCloudOsconfigV2betaPolicyOrchestratorIterationState) UnmarshalJSON(data []byte)error
typeGoogleCloudOsconfigV2betaPolicyOrchestratorOrchestrationState¶
type GoogleCloudOsconfigV2betaPolicyOrchestratorOrchestrationState struct {// CurrentIterationState: Output only. Current Wave iteration state.CurrentIterationState *GoogleCloudOsconfigV2betaPolicyOrchestratorIterationState `json:"currentIterationState,omitempty"`// PreviousIterationState: Output only. Previous Wave iteration state.PreviousIterationState *GoogleCloudOsconfigV2betaPolicyOrchestratorIterationState `json:"previousIterationState,omitempty"`// ForceSendFields is a list of field names (e.g. "CurrentIterationState") 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. "CurrentIterationState") 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:"-"`}GoogleCloudOsconfigV2betaPolicyOrchestratorOrchestrationState: Describes thestate of the orchestration process.
func (GoogleCloudOsconfigV2betaPolicyOrchestratorOrchestrationState)MarshalJSON¶
func (sGoogleCloudOsconfigV2betaPolicyOrchestratorOrchestrationState) MarshalJSON() ([]byte,error)
typeGoogleCloudOsconfigV2beta__ListPolicyOrchestratorsResponse¶
type GoogleCloudOsconfigV2beta__ListPolicyOrchestratorsResponse struct {// NextPageToken: A token, which can be sent as `page_token` to retrieve the// next page. If this field is omitted, there are no subsequent pages.NextPageTokenstring `json:"nextPageToken,omitempty"`// PolicyOrchestrators: The policy orchestrators for the specified parent// resource.PolicyOrchestrators []*GoogleCloudOsconfigV2beta__PolicyOrchestrator `json:"policyOrchestrators,omitempty"`// Unreachable: Locations that could not be reached.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:"-"`}GoogleCloudOsconfigV2beta__ListPolicyOrchestratorsResponse: Response for thelist policy orchestrator resources.
func (GoogleCloudOsconfigV2beta__ListPolicyOrchestratorsResponse)MarshalJSON¶
func (sGoogleCloudOsconfigV2beta__ListPolicyOrchestratorsResponse) MarshalJSON() ([]byte,error)
typeGoogleCloudOsconfigV2beta__OperationMetadata¶
type GoogleCloudOsconfigV2beta__OperationMetadata struct {// ApiVersion: Output only. API version used to start the operation.ApiVersionstring `json:"apiVersion,omitempty"`// CreateTime: Output only. The time the operation was created.CreateTimestring `json:"createTime,omitempty"`// EndTime: Output only. The time the operation finished running.EndTimestring `json:"endTime,omitempty"`// RequestedCancellation: Output only. Identifies whether the user has// requested cancellation of the operation. Operations that have been cancelled// successfully have Operation.error value with a google.rpc.Status.code of 1,// corresponding to `Code.CANCELLED`.RequestedCancellationbool `json:"requestedCancellation,omitempty"`// StatusMessage: Output only. Human-readable status of the operation, if any.StatusMessagestring `json:"statusMessage,omitempty"`// Target: Output only. Server-defined resource path for the target of the// operation.Targetstring `json:"target,omitempty"`// Verb: Output only. Name of the verb executed by the operation.Verbstring `json:"verb,omitempty"`// ForceSendFields is a list of field names (e.g. "ApiVersion") 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. "ApiVersion") 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:"-"`}GoogleCloudOsconfigV2beta__OperationMetadata: Represents the metadata of thelong-running operation.
func (GoogleCloudOsconfigV2beta__OperationMetadata)MarshalJSON¶
func (sGoogleCloudOsconfigV2beta__OperationMetadata) MarshalJSON() ([]byte,error)
typeGoogleCloudOsconfigV2beta__OrchestratedResource¶
type GoogleCloudOsconfigV2beta__OrchestratedResource struct {// Id: Optional. ID of the resource to be used while generating set of affected// resources. For UPSERT action the value is auto-generated during// PolicyOrchestrator creation when not set. When the value is set it should// following next restrictions: * Must contain only lowercase letters, numbers,// and hyphens. * Must start with a letter. * Must be between 1-63 characters.// * Must end with a number or a letter. * Must be unique within the project.// For DELETE action, ID must be specified explicitly during PolicyOrchestrator// creation.Idstring `json:"id,omitempty"`// OsPolicyAssignmentV1Payload: Optional. OSPolicyAssignment resource to be// created, updated or deleted. Name field is ignored and replace with a// generated value. With this field set, orchestrator will perform actions on// `project/{project}/locations/{zone}/osPolicyAssignments/{resource_id}`// resources, where `project` and `zone` pairs come from the expanded scope,// and `resource_id` comes from the `resource_id` field of orchestrator// resource.OsPolicyAssignmentV1Payload *OSPolicyAssignment `json:"osPolicyAssignmentV1Payload,omitempty"`// ForceSendFields is a list of field names (e.g. "Id") 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. "Id") 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:"-"`}GoogleCloudOsconfigV2beta__OrchestratedResource: Represents a resource thatis being orchestrated by the policy orchestrator.
func (GoogleCloudOsconfigV2beta__OrchestratedResource)MarshalJSON¶
func (sGoogleCloudOsconfigV2beta__OrchestratedResource) MarshalJSON() ([]byte,error)
typeGoogleCloudOsconfigV2beta__OrchestrationScope¶
type GoogleCloudOsconfigV2beta__OrchestrationScope struct {// Selectors: Optional. Selectors of the orchestration scope. There is a// logical AND between each selector defined. When there is no explicit// `ResourceHierarchySelector` selector specified, the scope is by default// bounded to the parent of the policy orchestrator resource.Selectors []*GoogleCloudOsconfigV2betaOrchestrationScopeSelector `json:"selectors,omitempty"`// ForceSendFields is a list of field names (e.g. "Selectors") 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. "Selectors") 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:"-"`}GoogleCloudOsconfigV2beta__OrchestrationScope: Defines a set of selectorswhich drive which resources are in scope of policy orchestration.
func (GoogleCloudOsconfigV2beta__OrchestrationScope)MarshalJSON¶
func (sGoogleCloudOsconfigV2beta__OrchestrationScope) MarshalJSON() ([]byte,error)
typeGoogleCloudOsconfigV2beta__PolicyOrchestrator¶
type GoogleCloudOsconfigV2beta__PolicyOrchestrator struct {// Action: Required. Action to be done by the orchestrator in// `projects/{project_id}/zones/{zone_id}` locations defined by the// `orchestration_scope`. Allowed values: - `UPSERT` - Orchestrator will create// or update target resources. - `DELETE` - Orchestrator will delete target// resources, if they existActionstring `json:"action,omitempty"`// CreateTime: Output only. Timestamp when the policy orchestrator resource was// created.CreateTimestring `json:"createTime,omitempty"`// Description: Optional. Freeform text describing the purpose of the resource.Descriptionstring `json:"description,omitempty"`// Etag: Output only. This checksum is computed by the server based on the// value of other fields, and may be sent on update and delete requests to// ensure the client has an up-to-date value before proceeding.Etagstring `json:"etag,omitempty"`// Labels: Optional. Labels as key value pairsLabels map[string]string `json:"labels,omitempty"`// Name: Immutable. Identifier. In form of *// `organizations/{organization_id}/locations/global/policyOrchestrators/{orches// trator_id}` *// `folders/{folder_id}/locations/global/policyOrchestrators/{orchestrator_id}`// *// `projects/{project_id_or_number}/locations/global/policyOrchestrators/{orches// trator_id}`Namestring `json:"name,omitempty"`// OrchestratedResource: Required. Resource to be orchestrated by the policy// orchestrator.OrchestratedResource *GoogleCloudOsconfigV2beta__OrchestratedResource `json:"orchestratedResource,omitempty"`// OrchestrationScope: Optional. Defines scope for the orchestration, in// context of the enclosing PolicyOrchestrator resource. Scope is expanded into// a list of pairs, in which the rollout action will take place. Expansion// starts with a Folder resource parenting the PolicyOrchestrator resource: -// All the descendant projects are listed. - List of project is cross joined// with a list of all available zones. - Resulting list of pairs is filtered// according to the selectors.OrchestrationScope *GoogleCloudOsconfigV2beta__OrchestrationScope `json:"orchestrationScope,omitempty"`// OrchestrationState: Output only. State of the orchestration.OrchestrationState *GoogleCloudOsconfigV2betaPolicyOrchestratorOrchestrationState `json:"orchestrationState,omitempty"`// Reconciling: Output only. Set to true, if the there are ongoing changes// being applied by the orchestrator.Reconcilingbool `json:"reconciling,omitempty"`// State: Optional. State of the orchestrator. Can be updated to change// orchestrator behaviour. Allowed values: - `ACTIVE` - orchestrator is// actively looking for actions to be taken. - `STOPPED` - orchestrator won't// make any changes. Note: There might be more states added in the future. We// use string here instead of an enum, to avoid the need of propagating new// states to all the client code.Statestring `json:"state,omitempty"`// UpdateTime: Output only. Timestamp when the policy orchestrator resource was// last modified.UpdateTimestring `json:"updateTime,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// 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:"-"`}GoogleCloudOsconfigV2beta__PolicyOrchestrator: PolicyOrchestrator helpsmanaging project+zone level policy resources (e.g. OS Policy Assignments),by providing tools to create, update and delete them across projects andlocations, at scale. Policy orchestrator functions as an endless loop. Eachiteration orchestrator computes a set of resources that should be affected,then progressively applies changes to them. If for some reason this set ofresources changes over time (e.g. new projects are added), the future loopiterations will address that. Orchestrator can either upsert or deletepolicy resources. For more details, see the description of the `action`, and`orchestrated_resource` fields. Note that policy orchestrator do not"manage" the resources it creates. Every iteration is independent and onlyminimal history of past actions is retained (apart from Cloud Logging). Iforchestrator gets deleted, it does not affect the resources it created inthe past. Those will remain where they were. Same applies if projects areremoved from the orchestrator's scope.
func (GoogleCloudOsconfigV2beta__PolicyOrchestrator)MarshalJSON¶
func (sGoogleCloudOsconfigV2beta__PolicyOrchestrator) MarshalJSON() ([]byte,error)
typeListOperationsResponse¶
type ListOperationsResponse 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 []*Operation `json:"operations,omitempty"`// Unreachable: Unordered list. Unreachable resources. Populated when the// request sets `ListOperationsRequest.return_partial_success` and reads across// collections. For example, 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:"-"`}ListOperationsResponse: The response message for Operations.ListOperations.
func (ListOperationsResponse)MarshalJSON¶
func (sListOperationsResponse) MarshalJSON() ([]byte,error)
typeMessageSet¶added inv0.234.0
type MessageSet struct {}MessageSet: This is proto2's version of MessageSet. DEPRECATED: DO NOT USEFOR NEW FIELDS. If you are using editions or proto2, please make your ownextendable messages for your use case. If you are using proto3, please use`Any` instead. MessageSet was the implementation of extensions for proto1.When proto2 was introduced, extensions were implemented as a first-classfeature. This schema for MessageSet was meant to be a "bridge" solution tomigrate MessageSet-bearing messages from proto1 to proto2. This schema hasbeen open-sourced only to facilitate the migration of Google products withMessageSet-bearing messages to open-source environments.
typeOSPolicy¶
type OSPolicy struct {// AllowNoResourceGroupMatch: This flag determines the OS policy compliance// status when none of the resource groups within the policy are applicable for// a VM. Set this value to `true` if the policy needs to be reported as// compliant even if the policy has nothing to validate or enforce.AllowNoResourceGroupMatchbool `json:"allowNoResourceGroupMatch,omitempty"`// Description: Policy description. Length of the description is limited to// 1024 characters.Descriptionstring `json:"description,omitempty"`// Id: Required. The id of the OS policy with the following restrictions: *// Must contain only lowercase letters, numbers, and hyphens. * Must start with// a letter. * Must be between 1-63 characters. * Must end with a number or a// letter. * Must be unique within the assignment.Idstring `json:"id,omitempty"`// Mode: Required. Policy mode//// Possible values:// "MODE_UNSPECIFIED" - Invalid mode// "VALIDATION" - This mode checks if the configuration resources in the// policy are in their desired state. No actions are performed if they are not// in the desired state. This mode is used for reporting purposes.// "ENFORCEMENT" - This mode checks if the configuration resources in the// policy are in their desired state, and if not, enforces the desired state.Modestring `json:"mode,omitempty"`// ResourceGroups: Required. List of resource groups for the policy. For a// particular VM, resource groups are evaluated in the order specified and the// first resource group that is applicable is selected and the rest are// ignored. If none of the resource groups are applicable for a VM, the VM is// considered to be non-compliant w.r.t this policy. This behavior can be// toggled by the flag `allow_no_resource_group_match`ResourceGroups []*OSPolicyResourceGroup `json:"resourceGroups,omitempty"`// ForceSendFields is a list of field names (e.g. "AllowNoResourceGroupMatch")// 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. "AllowNoResourceGroupMatch") 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:"-"`}OSPolicy: An OS policy defines the desired state configuration for a VM.
func (OSPolicy)MarshalJSON¶
typeOSPolicyAssignment¶
type OSPolicyAssignment struct {// Baseline: Output only. Indicates that this revision has been successfully// rolled out in this zone and new VMs will be assigned OS policies from this// revision. For a given OS policy assignment, there is only one revision with// a value of `true` for this field.Baselinebool `json:"baseline,omitempty"`// Deleted: Output only. Indicates that this revision deletes the OS policy// assignment.Deletedbool `json:"deleted,omitempty"`// Description: OS policy assignment description. Length of the description is// limited to 1024 characters.Descriptionstring `json:"description,omitempty"`// Etag: The etag for this OS policy assignment. If this is provided on update,// it must match the server's etag.Etagstring `json:"etag,omitempty"`// InstanceFilter: Required. Filter to select VMs.InstanceFilter *OSPolicyAssignmentInstanceFilter `json:"instanceFilter,omitempty"`// Name: Resource name. Format:// `projects/{project_number}/locations/{location}/osPolicyAssignments/{os_polic// y_assignment_id}` This field is ignored when you create an OS policy// assignment.Namestring `json:"name,omitempty"`// OsPolicies: Required. List of OS policies to be applied to the VMs.OsPolicies []*OSPolicy `json:"osPolicies,omitempty"`// Reconciling: Output only. Indicates that reconciliation is in progress for// the revision. This value is `true` when the `rollout_state` is one of: *// IN_PROGRESS * CANCELLINGReconcilingbool `json:"reconciling,omitempty"`// RevisionCreateTime: Output only. The timestamp that the revision was// created.RevisionCreateTimestring `json:"revisionCreateTime,omitempty"`// RevisionId: Output only. The assignment revision ID A new revision is// committed whenever a rollout is triggered for a OS policy assignmentRevisionIdstring `json:"revisionId,omitempty"`// Rollout: Required. Rollout to deploy the OS policy assignment. A rollout is// triggered in the following situations: 1) OSPolicyAssignment is created. 2)// OSPolicyAssignment is updated and the update contains changes to one of the// following fields: - instance_filter - os_policies 3) OSPolicyAssignment is// deleted.Rollout *OSPolicyAssignmentRollout `json:"rollout,omitempty"`// RolloutState: Output only. OS policy assignment rollout state//// Possible values:// "ROLLOUT_STATE_UNSPECIFIED" - Invalid value// "IN_PROGRESS" - The rollout is in progress.// "CANCELLING" - The rollout is being cancelled.// "CANCELLED" - The rollout is cancelled.// "SUCCEEDED" - The rollout has completed successfully.RolloutStatestring `json:"rolloutState,omitempty"`// Uid: Output only. Server generated unique id for the OS policy assignment// resource.Uidstring `json:"uid,omitempty"`// ForceSendFields is a list of field names (e.g. "Baseline") 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. "Baseline") 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:"-"`}OSPolicyAssignment: OS policy assignment is an API resource that is used toapply a set of OS policies to a dynamically targeted group of Compute EngineVM instances. An OS policy is used to define the desired state configurationfor a Compute Engine VM instance through a set of configuration resourcesthat provide capabilities such as installing or removing software packages,or executing a script. For more information about the OS policy resourcedefinitions and examples, see OS policy and OS policy assignment(https://cloud.google.com/compute/docs/os-configuration-management/working-with-os-policies).
func (OSPolicyAssignment)MarshalJSON¶
func (sOSPolicyAssignment) MarshalJSON() ([]byte,error)
typeOSPolicyAssignmentInstanceFilter¶
type OSPolicyAssignmentInstanceFilter struct {// All: Target all VMs in the project. If true, no other criteria is permitted.Allbool `json:"all,omitempty"`// ExclusionLabels: List of label sets used for VM exclusion. If the list has// more than one label set, the VM is excluded if any of the label sets are// applicable for the VM.ExclusionLabels []*OSPolicyAssignmentLabelSet `json:"exclusionLabels,omitempty"`// InclusionLabels: List of label sets used for VM inclusion. If the list has// more than one `LabelSet`, the VM is included if any of the label sets are// applicable for the VM.InclusionLabels []*OSPolicyAssignmentLabelSet `json:"inclusionLabels,omitempty"`// Inventories: List of inventories to select VMs. A VM is selected if its// inventory data matches at least one of the following inventories.Inventories []*OSPolicyAssignmentInstanceFilterInventory `json:"inventories,omitempty"`// ForceSendFields is a list of field names (e.g. "All") 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. "All") 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:"-"`}OSPolicyAssignmentInstanceFilter: Filters to select target VMs for anassignment. If more than one filter criteria is specified below, a VM willbe selected if and only if it satisfies all of them.
func (OSPolicyAssignmentInstanceFilter)MarshalJSON¶
func (sOSPolicyAssignmentInstanceFilter) MarshalJSON() ([]byte,error)
typeOSPolicyAssignmentInstanceFilterInventory¶
type OSPolicyAssignmentInstanceFilterInventory struct {// OsShortName: Required. The OS short nameOsShortNamestring `json:"osShortName,omitempty"`// OsVersion: The OS version Prefix matches are supported if asterisk(*) is// provided as the last character. For example, to match all versions with a// major version of `7`, specify the following value for this field `7.*` An// empty string matches all OS versions.OsVersionstring `json:"osVersion,omitempty"`// ForceSendFields is a list of field names (e.g. "OsShortName") 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. "OsShortName") 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:"-"`}OSPolicyAssignmentInstanceFilterInventory: VM inventory details.
func (OSPolicyAssignmentInstanceFilterInventory)MarshalJSON¶
func (sOSPolicyAssignmentInstanceFilterInventory) MarshalJSON() ([]byte,error)
typeOSPolicyAssignmentLabelSet¶
type OSPolicyAssignmentLabelSet struct {// Labels: Labels are identified by key/value pairs in this map. A VM should// contain all the key/value pairs specified in this map to be selected.Labels map[string]string `json:"labels,omitempty"`// ForceSendFields is a list of field names (e.g. "Labels") 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. "Labels") 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:"-"`}OSPolicyAssignmentLabelSet: Message representing label set. * A label is akey value pair set for a VM. * A LabelSet is a set of labels. * Labelswithin a LabelSet are ANDed. In other words, a LabelSet is applicable for aVM only if it matches all the labels in the LabelSet. * Example: A LabelSetwith 2 labels: `env=prod` and `type=webserver` will only be applicable forthose VMs with both labels present.
func (OSPolicyAssignmentLabelSet)MarshalJSON¶
func (sOSPolicyAssignmentLabelSet) MarshalJSON() ([]byte,error)
typeOSPolicyAssignmentOperationMetadata¶
type OSPolicyAssignmentOperationMetadata struct {// ApiMethod: The OS policy assignment API method.//// Possible values:// "API_METHOD_UNSPECIFIED" - Invalid value// "CREATE" - Create OS policy assignment API method// "UPDATE" - Update OS policy assignment API method// "DELETE" - Delete OS policy assignment API methodApiMethodstring `json:"apiMethod,omitempty"`// OsPolicyAssignment: Reference to the `OSPolicyAssignment` API resource.// Format:// `projects/{project_number}/locations/{location}/osPolicyAssignments/{os_polic// y_assignment_id@revision_id}`OsPolicyAssignmentstring `json:"osPolicyAssignment,omitempty"`// RolloutStartTime: Rollout start timeRolloutStartTimestring `json:"rolloutStartTime,omitempty"`// RolloutState: State of the rollout//// Possible values:// "ROLLOUT_STATE_UNSPECIFIED" - Invalid value// "IN_PROGRESS" - The rollout is in progress.// "CANCELLING" - The rollout is being cancelled.// "CANCELLED" - The rollout is cancelled.// "SUCCEEDED" - The rollout has completed successfully.RolloutStatestring `json:"rolloutState,omitempty"`// RolloutUpdateTime: Rollout update timeRolloutUpdateTimestring `json:"rolloutUpdateTime,omitempty"`// ForceSendFields is a list of field names (e.g. "ApiMethod") 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. "ApiMethod") 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:"-"`}OSPolicyAssignmentOperationMetadata: OS policy assignment operation metadataprovided by OS policy assignment API methods that return long runningoperations.
func (OSPolicyAssignmentOperationMetadata)MarshalJSON¶
func (sOSPolicyAssignmentOperationMetadata) MarshalJSON() ([]byte,error)
typeOSPolicyAssignmentRollout¶
type OSPolicyAssignmentRollout struct {// DisruptionBudget: Required. The maximum number (or percentage) of VMs per// zone to disrupt at any given moment.DisruptionBudget *FixedOrPercent `json:"disruptionBudget,omitempty"`// MinWaitDuration: Required. This determines the minimum duration of time to// wait after the configuration changes are applied through the current// rollout. A VM continues to count towards the `disruption_budget` at least// until this duration of time has passed after configuration changes are// applied.MinWaitDurationstring `json:"minWaitDuration,omitempty"`// ForceSendFields is a list of field names (e.g. "DisruptionBudget") 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. "DisruptionBudget") 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:"-"`}OSPolicyAssignmentRollout: Message to configure the rollout at the zonallevel for the OS policy assignment.
func (OSPolicyAssignmentRollout)MarshalJSON¶
func (sOSPolicyAssignmentRollout) MarshalJSON() ([]byte,error)
typeOSPolicyInventoryFilter¶
type OSPolicyInventoryFilter struct {// OsShortName: Required. The OS short nameOsShortNamestring `json:"osShortName,omitempty"`// OsVersion: The OS version Prefix matches are supported if asterisk(*) is// provided as the last character. For example, to match all versions with a// major version of `7`, specify the following value for this field `7.*` An// empty string matches all OS versions.OsVersionstring `json:"osVersion,omitempty"`// ForceSendFields is a list of field names (e.g. "OsShortName") 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. "OsShortName") 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:"-"`}OSPolicyInventoryFilter: Filtering criteria to select VMs based on inventorydetails.
func (OSPolicyInventoryFilter)MarshalJSON¶
func (sOSPolicyInventoryFilter) MarshalJSON() ([]byte,error)
typeOSPolicyResource¶
type OSPolicyResource struct {// Exec: Exec resourceExec *OSPolicyResourceExecResource `json:"exec,omitempty"`// File: File resourceFile *OSPolicyResourceFileResource `json:"file,omitempty"`// Id: Required. The id of the resource with the following restrictions: * Must// contain only lowercase letters, numbers, and hyphens. * Must start with a// letter. * Must be between 1-63 characters. * Must end with a number or a// letter. * Must be unique within the OS policy.Idstring `json:"id,omitempty"`// Pkg: Package resourcePkg *OSPolicyResourcePackageResource `json:"pkg,omitempty"`// Repository: Package repository resourceRepository *OSPolicyResourceRepositoryResource `json:"repository,omitempty"`// ForceSendFields is a list of field names (e.g. "Exec") 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. "Exec") 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:"-"`}OSPolicyResource: An OS policy resource is used to define the desired stateconfiguration and provides a specific functionality like installing/removingpackages, executing a script etc. The system ensures that resources arealways in their desired state by taking necessary actions if they havedrifted from their desired state.
func (OSPolicyResource)MarshalJSON¶
func (sOSPolicyResource) MarshalJSON() ([]byte,error)
typeOSPolicyResourceExecResource¶
type OSPolicyResourceExecResource struct {// Enforce: What to run to bring this resource into the desired state. An exit// code of 100 indicates "success", any other exit code indicates a failure// running enforce.Enforce *OSPolicyResourceExecResourceExec `json:"enforce,omitempty"`// Validate: Required. What to run to validate this resource is in the desired// state. An exit code of 100 indicates "in desired state", and exit code of// 101 indicates "not in desired state". Any other exit code indicates a// failure running validate.Validate *OSPolicyResourceExecResourceExec `json:"validate,omitempty"`// ForceSendFields is a list of field names (e.g. "Enforce") 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. "Enforce") 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:"-"`}OSPolicyResourceExecResource: A resource that allows executing scripts onthe VM. The `ExecResource` has 2 stages: `validate` and `enforce` and bothstages accept a script as an argument to execute. When the `ExecResource` isapplied by the agent, it first executes the script in the `validate` stage.The `validate` stage can signal that the `ExecResource` is already in thedesired state by returning an exit code of `100`. If the `ExecResource` isnot in the desired state, it should return an exit code of `101`. Any otherexit code returned by this stage is considered an error. If the`ExecResource` is not in the desired state based on the exit code from the`validate` stage, the agent proceeds to execute the script from the`enforce` stage. If the `ExecResource` is already in the desired state, the`enforce` stage will not be run. Similar to `validate` stage, the `enforce`stage should return an exit code of `100` to indicate that the resource innow in its desired state. Any other exit code is considered an error. NOTE:An exit code of `100` was chosen over `0` (and `101` vs `1`) to have anexplicit indicator of `in desired state`, `not in desired state` and errors.Because, for example, Powershell will always return an exit code of `0`unless an `exit` statement is provided in the script. So, for reasons ofconsistency and being explicit, exit codes `100` and `101` were chosen.
func (OSPolicyResourceExecResource)MarshalJSON¶
func (sOSPolicyResourceExecResource) MarshalJSON() ([]byte,error)
typeOSPolicyResourceExecResourceExec¶
type OSPolicyResourceExecResourceExec struct {// Args: Optional arguments to pass to the source during execution.Args []string `json:"args,omitempty"`// File: A remote or local file.File *OSPolicyResourceFile `json:"file,omitempty"`// Interpreter: Required. The script interpreter to use.//// Possible values:// "INTERPRETER_UNSPECIFIED" - Invalid value, the request will return// validation error.// "NONE" - If an interpreter is not specified, the source is executed// directly. This execution, without an interpreter, only succeeds for// executables and scripts that have shebang lines.// "SHELL" - Indicates that the script runs with `/bin/sh` on Linux and// `cmd.exe` on Windows.// "POWERSHELL" - Indicates that the script runs with PowerShell.Interpreterstring `json:"interpreter,omitempty"`// OutputFilePath: Only recorded for enforce Exec. Path to an output file (that// is created by this Exec) whose content will be recorded in// OSPolicyResourceCompliance after a successful run. Absence or failure to// read this file will result in this ExecResource being non-compliant. Output// file size is limited to 500K bytes.OutputFilePathstring `json:"outputFilePath,omitempty"`// Script: An inline script. The size of the script is limited to 32KiB.Scriptstring `json:"script,omitempty"`// ForceSendFields is a list of field names (e.g. "Args") 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. "Args") 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:"-"`}OSPolicyResourceExecResourceExec: A file or script to execute.
func (OSPolicyResourceExecResourceExec)MarshalJSON¶
func (sOSPolicyResourceExecResourceExec) MarshalJSON() ([]byte,error)
typeOSPolicyResourceFile¶
type OSPolicyResourceFile struct {// AllowInsecure: Defaults to false. When false, files are subject to// validations based on the file type: Remote: A checksum must be specified.// Cloud Storage: An object generation number must be specified.AllowInsecurebool `json:"allowInsecure,omitempty"`// Gcs: A Cloud Storage object.Gcs *OSPolicyResourceFileGcs `json:"gcs,omitempty"`// LocalPath: A local path within the VM to use.LocalPathstring `json:"localPath,omitempty"`// Remote: A generic remote file.Remote *OSPolicyResourceFileRemote `json:"remote,omitempty"`// ForceSendFields is a list of field names (e.g. "AllowInsecure") 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. "AllowInsecure") 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:"-"`}OSPolicyResourceFile: A remote or local file.
func (OSPolicyResourceFile)MarshalJSON¶
func (sOSPolicyResourceFile) MarshalJSON() ([]byte,error)
typeOSPolicyResourceFileGcs¶
type OSPolicyResourceFileGcs struct {// Bucket: Required. Bucket of the Cloud Storage object.Bucketstring `json:"bucket,omitempty"`// Generation: Generation number of the Cloud Storage object.Generationint64 `json:"generation,omitempty,string"`// Object: Required. Name of the Cloud Storage object.Objectstring `json:"object,omitempty"`// ForceSendFields is a list of field names (e.g. "Bucket") 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. "Bucket") 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:"-"`}OSPolicyResourceFileGcs: Specifies a file available as a Cloud StorageObject.
func (OSPolicyResourceFileGcs)MarshalJSON¶
func (sOSPolicyResourceFileGcs) MarshalJSON() ([]byte,error)
typeOSPolicyResourceFileRemote¶
type OSPolicyResourceFileRemote struct {// Sha256Checksum: SHA256 checksum of the remote file.Sha256Checksumstring `json:"sha256Checksum,omitempty"`// Uri: Required. URI from which to fetch the object. It should contain both// the protocol and path following the format `{protocol}://{location}`.Uristring `json:"uri,omitempty"`// ForceSendFields is a list of field names (e.g. "Sha256Checksum") 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. "Sha256Checksum") 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:"-"`}OSPolicyResourceFileRemote: Specifies a file available via some URI.
func (OSPolicyResourceFileRemote)MarshalJSON¶
func (sOSPolicyResourceFileRemote) MarshalJSON() ([]byte,error)
typeOSPolicyResourceFileResource¶
type OSPolicyResourceFileResource struct {// Content: A a file with this content. The size of the content is limited to// 32KiB.Contentstring `json:"content,omitempty"`// File: A remote or local source.File *OSPolicyResourceFile `json:"file,omitempty"`// Path: Required. The absolute path of the file within the VM.Pathstring `json:"path,omitempty"`// Permissions: Consists of three octal digits which represent, in order, the// permissions of the owner, group, and other users for the file (similarly to// the numeric mode used in the linux chmod utility). Each digit represents a// three bit number with the 4 bit corresponding to the read permissions, the 2// bit corresponds to the write bit, and the one bit corresponds to the execute// permission. Default behavior is 755. Below are some examples of permissions// and their associated values: read, write, and execute: 7 read and execute: 5// read and write: 6 read only: 4Permissionsstring `json:"permissions,omitempty"`// State: Required. Desired state of the file.//// Possible values:// "DESIRED_STATE_UNSPECIFIED" - Unspecified is invalid.// "PRESENT" - Ensure file at path is present.// "ABSENT" - Ensure file at path is absent.// "CONTENTS_MATCH" - Ensure the contents of the file at path matches. If the// file does not exist it will be created.Statestring `json:"state,omitempty"`// ForceSendFields is a list of field names (e.g. "Content") 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. "Content") 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:"-"`}OSPolicyResourceFileResource: A resource that manages the state of a file.
func (OSPolicyResourceFileResource)MarshalJSON¶
func (sOSPolicyResourceFileResource) MarshalJSON() ([]byte,error)
typeOSPolicyResourceGroup¶
type OSPolicyResourceGroup struct {// InventoryFilters: List of inventory filters for the resource group. The// resources in this resource group are applied to the target VM if it// satisfies at least one of the following inventory filters. For example, to// apply this resource group to VMs running either `RHEL` or `CentOS` operating// systems, specify 2 items for the list with following values:// inventory_filters[0].os_short_name='rhel' and// inventory_filters[1].os_short_name='centos' If the list is empty, this// resource group will be applied to the target VM unconditionally.InventoryFilters []*OSPolicyInventoryFilter `json:"inventoryFilters,omitempty"`// Resources: Required. List of resources configured for this resource group.// The resources are executed in the exact order specified here.Resources []*OSPolicyResource `json:"resources,omitempty"`// ForceSendFields is a list of field names (e.g. "InventoryFilters") 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. "InventoryFilters") 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:"-"`}OSPolicyResourceGroup: Resource groups provide a mechanism to group OSpolicy resources. Resource groups enable OS policy authors to create asingle OS policy to be applied to VMs running different operating Systems.When the OS policy is applied to a target VM, the appropriate resource groupwithin the OS policy is selected based on the `OSFilter` specified withinthe resource group.
func (OSPolicyResourceGroup)MarshalJSON¶
func (sOSPolicyResourceGroup) MarshalJSON() ([]byte,error)
typeOSPolicyResourcePackageResource¶
type OSPolicyResourcePackageResource struct {// Apt: A package managed by Apt.Apt *OSPolicyResourcePackageResourceAPT `json:"apt,omitempty"`// Deb: A deb package file.Deb *OSPolicyResourcePackageResourceDeb `json:"deb,omitempty"`// DesiredState: Required. The desired state the agent should maintain for this// package.//// Possible values:// "DESIRED_STATE_UNSPECIFIED" - Unspecified is invalid.// "INSTALLED" - Ensure that the package is installed.// "REMOVED" - The agent ensures that the package is not installed and// uninstalls it if detected.DesiredStatestring `json:"desiredState,omitempty"`// Googet: A package managed by GooGet.Googet *OSPolicyResourcePackageResourceGooGet `json:"googet,omitempty"`// Msi: An MSI package.Msi *OSPolicyResourcePackageResourceMSI `json:"msi,omitempty"`// Rpm: An rpm package file.Rpm *OSPolicyResourcePackageResourceRPM `json:"rpm,omitempty"`// Yum: A package managed by YUM.Yum *OSPolicyResourcePackageResourceYUM `json:"yum,omitempty"`// Zypper: A package managed by Zypper.Zypper *OSPolicyResourcePackageResourceZypper `json:"zypper,omitempty"`// ForceSendFields is a list of field names (e.g. "Apt") 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. "Apt") 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:"-"`}OSPolicyResourcePackageResource: A resource that manages a system package.
func (OSPolicyResourcePackageResource)MarshalJSON¶
func (sOSPolicyResourcePackageResource) MarshalJSON() ([]byte,error)
typeOSPolicyResourcePackageResourceAPT¶
type OSPolicyResourcePackageResourceAPT struct {// Name: Required. Package name.Namestring `json:"name,omitempty"`// ForceSendFields is a list of field names (e.g. "Name") 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. "Name") 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:"-"`}OSPolicyResourcePackageResourceAPT: A package managed by APT. - install:`apt-get update && apt-get -y install [name]` - remove: `apt-get -y remove[name]`
func (OSPolicyResourcePackageResourceAPT)MarshalJSON¶
func (sOSPolicyResourcePackageResourceAPT) MarshalJSON() ([]byte,error)
typeOSPolicyResourcePackageResourceDeb¶
type OSPolicyResourcePackageResourceDeb struct {// PullDeps: Whether dependencies should also be installed. - install when// false: `dpkg -i package` - install when true: `apt-get update && apt-get -y// install package.deb`PullDepsbool `json:"pullDeps,omitempty"`// Source: Required. A deb package.Source *OSPolicyResourceFile `json:"source,omitempty"`// ForceSendFields is a list of field names (e.g. "PullDeps") 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. "PullDeps") 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:"-"`}OSPolicyResourcePackageResourceDeb: A deb package file. dpkg packages onlysupport INSTALLED state.
func (OSPolicyResourcePackageResourceDeb)MarshalJSON¶
func (sOSPolicyResourcePackageResourceDeb) MarshalJSON() ([]byte,error)
typeOSPolicyResourcePackageResourceGooGet¶
type OSPolicyResourcePackageResourceGooGet struct {// Name: Required. Package name.Namestring `json:"name,omitempty"`// ForceSendFields is a list of field names (e.g. "Name") 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. "Name") 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:"-"`}OSPolicyResourcePackageResourceGooGet: A package managed by GooGet. -install: `googet -noconfirm install package` - remove: `googet -noconfirmremove package`
func (OSPolicyResourcePackageResourceGooGet)MarshalJSON¶
func (sOSPolicyResourcePackageResourceGooGet) MarshalJSON() ([]byte,error)
typeOSPolicyResourcePackageResourceMSI¶
type OSPolicyResourcePackageResourceMSI struct {// Properties: Additional properties to use during installation. This should be// in the format of Property=Setting. Appended to the defaults of// `ACTION=INSTALL REBOOT=ReallySuppress`.Properties []string `json:"properties,omitempty"`// Source: Required. The MSI package.Source *OSPolicyResourceFile `json:"source,omitempty"`// ForceSendFields is a list of field names (e.g. "Properties") 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. "Properties") 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:"-"`}OSPolicyResourcePackageResourceMSI: An MSI package. MSI packages onlysupport INSTALLED state.
func (OSPolicyResourcePackageResourceMSI)MarshalJSON¶
func (sOSPolicyResourcePackageResourceMSI) MarshalJSON() ([]byte,error)
typeOSPolicyResourcePackageResourceRPM¶
type OSPolicyResourcePackageResourceRPM struct {// PullDeps: Whether dependencies should also be installed. - install when// false: `rpm --upgrade --replacepkgs package.rpm` - install when true: `yum// -y install package.rpm` or `zypper -y install package.rpm`PullDepsbool `json:"pullDeps,omitempty"`// Source: Required. An rpm package.Source *OSPolicyResourceFile `json:"source,omitempty"`// ForceSendFields is a list of field names (e.g. "PullDeps") 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. "PullDeps") 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:"-"`}OSPolicyResourcePackageResourceRPM: An RPM package file. RPM packages onlysupport INSTALLED state.
func (OSPolicyResourcePackageResourceRPM)MarshalJSON¶
func (sOSPolicyResourcePackageResourceRPM) MarshalJSON() ([]byte,error)
typeOSPolicyResourcePackageResourceYUM¶
type OSPolicyResourcePackageResourceYUM struct {// Name: Required. Package name.Namestring `json:"name,omitempty"`// ForceSendFields is a list of field names (e.g. "Name") 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. "Name") 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:"-"`}OSPolicyResourcePackageResourceYUM: A package managed by YUM. - install:`yum -y install package` - remove: `yum -y remove package`
func (OSPolicyResourcePackageResourceYUM)MarshalJSON¶
func (sOSPolicyResourcePackageResourceYUM) MarshalJSON() ([]byte,error)
typeOSPolicyResourcePackageResourceZypper¶
type OSPolicyResourcePackageResourceZypper struct {// Name: Required. Package name.Namestring `json:"name,omitempty"`// ForceSendFields is a list of field names (e.g. "Name") 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. "Name") 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:"-"`}OSPolicyResourcePackageResourceZypper: A package managed by Zypper. -install: `zypper -y install package` - remove: `zypper -y rm package`
func (OSPolicyResourcePackageResourceZypper)MarshalJSON¶
func (sOSPolicyResourcePackageResourceZypper) MarshalJSON() ([]byte,error)
typeOSPolicyResourceRepositoryResource¶
type OSPolicyResourceRepositoryResource struct {// Apt: An Apt Repository.Apt *OSPolicyResourceRepositoryResourceAptRepository `json:"apt,omitempty"`// Goo: A Goo Repository.Goo *OSPolicyResourceRepositoryResourceGooRepository `json:"goo,omitempty"`// Yum: A Yum Repository.Yum *OSPolicyResourceRepositoryResourceYumRepository `json:"yum,omitempty"`// Zypper: A Zypper Repository.Zypper *OSPolicyResourceRepositoryResourceZypperRepository `json:"zypper,omitempty"`// ForceSendFields is a list of field names (e.g. "Apt") 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. "Apt") 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:"-"`}OSPolicyResourceRepositoryResource: A resource that manages a packagerepository.
func (OSPolicyResourceRepositoryResource)MarshalJSON¶
func (sOSPolicyResourceRepositoryResource) MarshalJSON() ([]byte,error)
typeOSPolicyResourceRepositoryResourceAptRepository¶
type OSPolicyResourceRepositoryResourceAptRepository struct {// ArchiveType: Required. Type of archive files in this repository.//// Possible values:// "ARCHIVE_TYPE_UNSPECIFIED" - Unspecified is invalid.// "DEB" - Deb indicates that the archive contains binary files.// "DEB_SRC" - Deb-src indicates that the archive contains source files.ArchiveTypestring `json:"archiveType,omitempty"`// Components: Required. List of components for this repository. Must contain// at least one item.Components []string `json:"components,omitempty"`// Distribution: Required. Distribution of this repository.Distributionstring `json:"distribution,omitempty"`// GpgKey: URI of the key file for this repository. The agent maintains a// keyring at `/etc/apt/trusted.gpg.d/osconfig_agent_managed.gpg`.GpgKeystring `json:"gpgKey,omitempty"`// Uri: Required. URI for this repository.Uristring `json:"uri,omitempty"`// ForceSendFields is a list of field names (e.g. "ArchiveType") 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. "ArchiveType") 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:"-"`}OSPolicyResourceRepositoryResourceAptRepository: Represents a single aptpackage repository. These will be added to a repo file that will be managedat `/etc/apt/sources.list.d/google_osconfig.list`.
func (OSPolicyResourceRepositoryResourceAptRepository)MarshalJSON¶
func (sOSPolicyResourceRepositoryResourceAptRepository) MarshalJSON() ([]byte,error)
typeOSPolicyResourceRepositoryResourceGooRepository¶
type OSPolicyResourceRepositoryResourceGooRepository struct {// Name: Required. The name of the repository.Namestring `json:"name,omitempty"`// Url: Required. The url of the repository.Urlstring `json:"url,omitempty"`// ForceSendFields is a list of field names (e.g. "Name") 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. "Name") 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:"-"`}OSPolicyResourceRepositoryResourceGooRepository: Represents a Goo packagerepository. These are added to a repo file that is managed at`C:/ProgramData/GooGet/repos/google_osconfig.repo`.
func (OSPolicyResourceRepositoryResourceGooRepository)MarshalJSON¶
func (sOSPolicyResourceRepositoryResourceGooRepository) MarshalJSON() ([]byte,error)
typeOSPolicyResourceRepositoryResourceYumRepository¶
type OSPolicyResourceRepositoryResourceYumRepository struct {// BaseUrl: Required. The location of the repository directory.BaseUrlstring `json:"baseUrl,omitempty"`// DisplayName: The display name of the repository.DisplayNamestring `json:"displayName,omitempty"`// GpgKeys: URIs of GPG keys.GpgKeys []string `json:"gpgKeys,omitempty"`// Id: Required. A one word, unique name for this repository. This is the `repo// id` in the yum config file and also the `display_name` if `display_name` is// omitted. This id is also used as the unique identifier when checking for// resource conflicts.Idstring `json:"id,omitempty"`// ForceSendFields is a list of field names (e.g. "BaseUrl") 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. "BaseUrl") 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:"-"`}OSPolicyResourceRepositoryResourceYumRepository: Represents a single yumpackage repository. These are added to a repo file that is managed at`/etc/yum.repos.d/google_osconfig.repo`.
func (OSPolicyResourceRepositoryResourceYumRepository)MarshalJSON¶
func (sOSPolicyResourceRepositoryResourceYumRepository) MarshalJSON() ([]byte,error)
typeOSPolicyResourceRepositoryResourceZypperRepository¶
type OSPolicyResourceRepositoryResourceZypperRepository struct {// BaseUrl: Required. The location of the repository directory.BaseUrlstring `json:"baseUrl,omitempty"`// DisplayName: The display name of the repository.DisplayNamestring `json:"displayName,omitempty"`// GpgKeys: URIs of GPG keys.GpgKeys []string `json:"gpgKeys,omitempty"`// Id: Required. A one word, unique name for this repository. This is the `repo// id` in the zypper config file and also the `display_name` if `display_name`// is omitted. This id is also used as the unique identifier when checking for// GuestPolicy conflicts.Idstring `json:"id,omitempty"`// ForceSendFields is a list of field names (e.g. "BaseUrl") 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. "BaseUrl") 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:"-"`}OSPolicyResourceRepositoryResourceZypperRepository: Represents a singlezypper package repository. These are added to a repo file that is managed at`/etc/zypp/repos.d/google_osconfig.repo`.
func (OSPolicyResourceRepositoryResourceZypperRepository)MarshalJSON¶
func (sOSPolicyResourceRepositoryResourceZypperRepository) MarshalJSON() ([]byte,error)
typeOperation¶
type Operation 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 *Status `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:"-"`}Operation: This resource represents a long-running operation that is theresult of a network API call.
func (Operation)MarshalJSON¶
typeOrganizationsLocationsGlobalPolicyOrchestratorsCreateCall¶
type OrganizationsLocationsGlobalPolicyOrchestratorsCreateCall struct {// contains filtered or unexported fields}func (*OrganizationsLocationsGlobalPolicyOrchestratorsCreateCall)Context¶
func (c *OrganizationsLocationsGlobalPolicyOrchestratorsCreateCall) Context(ctxcontext.Context) *OrganizationsLocationsGlobalPolicyOrchestratorsCreateCall
Context sets the context to be used in this call's Do method.
func (*OrganizationsLocationsGlobalPolicyOrchestratorsCreateCall)Do¶
func (c *OrganizationsLocationsGlobalPolicyOrchestratorsCreateCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "osconfig.organizations.locations.global.policyOrchestrators.create" call.Any non-2xx status code is an error. Response headers are in either*Operation.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 (*OrganizationsLocationsGlobalPolicyOrchestratorsCreateCall)Fields¶
func (c *OrganizationsLocationsGlobalPolicyOrchestratorsCreateCall) Fields(s ...googleapi.Field) *OrganizationsLocationsGlobalPolicyOrchestratorsCreateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*OrganizationsLocationsGlobalPolicyOrchestratorsCreateCall)Header¶
func (c *OrganizationsLocationsGlobalPolicyOrchestratorsCreateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*OrganizationsLocationsGlobalPolicyOrchestratorsCreateCall)PolicyOrchestratorId¶
func (c *OrganizationsLocationsGlobalPolicyOrchestratorsCreateCall) PolicyOrchestratorId(policyOrchestratorIdstring) *OrganizationsLocationsGlobalPolicyOrchestratorsCreateCall
PolicyOrchestratorId sets the optional parameter "policyOrchestratorId":Required. The logical identifier of the policy orchestrator, with thefollowing restrictions: * Must contain only lowercase letters, numbers, andhyphens. * Must start with a letter. * Must be between 1-63 characters. *Must end with a number or a letter. * Must be unique within the parent.
func (*OrganizationsLocationsGlobalPolicyOrchestratorsCreateCall)RequestId¶
func (c *OrganizationsLocationsGlobalPolicyOrchestratorsCreateCall) RequestId(requestIdstring) *OrganizationsLocationsGlobalPolicyOrchestratorsCreateCall
RequestId sets the optional parameter "requestId": An optional request ID toidentify requests. Specify a unique request ID so that if you must retryyour request, the server will know to ignore the request if it has alreadybeen completed. The server will guarantee that for at least 60 minutes sincethe first request. For example, consider a situation where you make aninitial request and the request times out. If you make the request againwith the same request ID, the server can check if original operation withthe same request ID was received, and if so, will ignore the second request.This prevents clients from accidentally creating duplicate commitments. Therequest ID must be a valid UUID with the exception that zero UUID is notsupported (00000000-0000-0000-0000-000000000000).
typeOrganizationsLocationsGlobalPolicyOrchestratorsDeleteCall¶
type OrganizationsLocationsGlobalPolicyOrchestratorsDeleteCall struct {// contains filtered or unexported fields}func (*OrganizationsLocationsGlobalPolicyOrchestratorsDeleteCall)Context¶
func (c *OrganizationsLocationsGlobalPolicyOrchestratorsDeleteCall) Context(ctxcontext.Context) *OrganizationsLocationsGlobalPolicyOrchestratorsDeleteCall
Context sets the context to be used in this call's Do method.
func (*OrganizationsLocationsGlobalPolicyOrchestratorsDeleteCall)Do¶
func (c *OrganizationsLocationsGlobalPolicyOrchestratorsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "osconfig.organizations.locations.global.policyOrchestrators.delete" call.Any non-2xx status code is an error. Response headers are in either*Operation.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 (*OrganizationsLocationsGlobalPolicyOrchestratorsDeleteCall)Etag¶
func (c *OrganizationsLocationsGlobalPolicyOrchestratorsDeleteCall) Etag(etagstring) *OrganizationsLocationsGlobalPolicyOrchestratorsDeleteCall
Etag sets the optional parameter "etag": The current etag of the policyorchestrator. If an etag is provided and does not match the current etag ofthe policy orchestrator, deletion will be blocked and an ABORTED error willbe returned.
func (*OrganizationsLocationsGlobalPolicyOrchestratorsDeleteCall)Fields¶
func (c *OrganizationsLocationsGlobalPolicyOrchestratorsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsLocationsGlobalPolicyOrchestratorsDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*OrganizationsLocationsGlobalPolicyOrchestratorsDeleteCall)Header¶
func (c *OrganizationsLocationsGlobalPolicyOrchestratorsDeleteCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*OrganizationsLocationsGlobalPolicyOrchestratorsDeleteCall)RequestId¶
func (c *OrganizationsLocationsGlobalPolicyOrchestratorsDeleteCall) RequestId(requestIdstring) *OrganizationsLocationsGlobalPolicyOrchestratorsDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID toidentify requests. Specify a unique request ID so that if you must retryyour request, the server will know to ignore the request if it has alreadybeen completed. The server will guarantee that for at least 60 minutes afterthe first request. For example, consider a situation where you make aninitial request and the request times out. If you make the request againwith the same request ID, the server can check if original operation withthe same request ID was received, and if so, will ignore the second request.This prevents clients from accidentally creating duplicate commitments. Therequest ID must be a valid UUID with the exception that zero UUID is notsupported (00000000-0000-0000-0000-000000000000).
typeOrganizationsLocationsGlobalPolicyOrchestratorsGetCall¶
type OrganizationsLocationsGlobalPolicyOrchestratorsGetCall struct {// contains filtered or unexported fields}func (*OrganizationsLocationsGlobalPolicyOrchestratorsGetCall)Context¶
func (c *OrganizationsLocationsGlobalPolicyOrchestratorsGetCall) Context(ctxcontext.Context) *OrganizationsLocationsGlobalPolicyOrchestratorsGetCall
Context sets the context to be used in this call's Do method.
func (*OrganizationsLocationsGlobalPolicyOrchestratorsGetCall)Do¶
func (c *OrganizationsLocationsGlobalPolicyOrchestratorsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudOsconfigV2beta__PolicyOrchestrator,error)
Do executes the "osconfig.organizations.locations.global.policyOrchestrators.get" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudOsconfigV2beta__PolicyOrchestrator.ServerResponse.Header or (ifa response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*OrganizationsLocationsGlobalPolicyOrchestratorsGetCall)Fields¶
func (c *OrganizationsLocationsGlobalPolicyOrchestratorsGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsGlobalPolicyOrchestratorsGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*OrganizationsLocationsGlobalPolicyOrchestratorsGetCall)Header¶
func (c *OrganizationsLocationsGlobalPolicyOrchestratorsGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*OrganizationsLocationsGlobalPolicyOrchestratorsGetCall)IfNoneMatch¶
func (c *OrganizationsLocationsGlobalPolicyOrchestratorsGetCall) IfNoneMatch(entityTagstring) *OrganizationsLocationsGlobalPolicyOrchestratorsGetCall
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.
typeOrganizationsLocationsGlobalPolicyOrchestratorsListCall¶
type OrganizationsLocationsGlobalPolicyOrchestratorsListCall struct {// contains filtered or unexported fields}func (*OrganizationsLocationsGlobalPolicyOrchestratorsListCall)Context¶
func (c *OrganizationsLocationsGlobalPolicyOrchestratorsListCall) Context(ctxcontext.Context) *OrganizationsLocationsGlobalPolicyOrchestratorsListCall
Context sets the context to be used in this call's Do method.
func (*OrganizationsLocationsGlobalPolicyOrchestratorsListCall)Do¶
func (c *OrganizationsLocationsGlobalPolicyOrchestratorsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudOsconfigV2beta__ListPolicyOrchestratorsResponse,error)
Do executes the "osconfig.organizations.locations.global.policyOrchestrators.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudOsconfigV2beta__ListPolicyOrchestratorsResponse.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 (*OrganizationsLocationsGlobalPolicyOrchestratorsListCall)Fields¶
func (c *OrganizationsLocationsGlobalPolicyOrchestratorsListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsGlobalPolicyOrchestratorsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*OrganizationsLocationsGlobalPolicyOrchestratorsListCall)Filter¶
func (c *OrganizationsLocationsGlobalPolicyOrchestratorsListCall) Filter(filterstring) *OrganizationsLocationsGlobalPolicyOrchestratorsListCall
Filter sets the optional parameter "filter": Filtering results
func (*OrganizationsLocationsGlobalPolicyOrchestratorsListCall)Header¶
func (c *OrganizationsLocationsGlobalPolicyOrchestratorsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*OrganizationsLocationsGlobalPolicyOrchestratorsListCall)IfNoneMatch¶
func (c *OrganizationsLocationsGlobalPolicyOrchestratorsListCall) IfNoneMatch(entityTagstring) *OrganizationsLocationsGlobalPolicyOrchestratorsListCall
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 (*OrganizationsLocationsGlobalPolicyOrchestratorsListCall)OrderBy¶
func (c *OrganizationsLocationsGlobalPolicyOrchestratorsListCall) OrderBy(orderBystring) *OrganizationsLocationsGlobalPolicyOrchestratorsListCall
OrderBy sets the optional parameter "orderBy": Hint for how to order theresults
func (*OrganizationsLocationsGlobalPolicyOrchestratorsListCall)PageSize¶
func (c *OrganizationsLocationsGlobalPolicyOrchestratorsListCall) PageSize(pageSizeint64) *OrganizationsLocationsGlobalPolicyOrchestratorsListCall
PageSize sets the optional parameter "pageSize": Requested page size. Servermay return fewer items than requested. If unspecified, server will pick anappropriate default.
func (*OrganizationsLocationsGlobalPolicyOrchestratorsListCall)PageToken¶
func (c *OrganizationsLocationsGlobalPolicyOrchestratorsListCall) PageToken(pageTokenstring) *OrganizationsLocationsGlobalPolicyOrchestratorsListCall
PageToken sets the optional parameter "pageToken": A token identifying apage of results the server should return.
func (*OrganizationsLocationsGlobalPolicyOrchestratorsListCall)Pages¶
func (c *OrganizationsLocationsGlobalPolicyOrchestratorsListCall) Pages(ctxcontext.Context, f func(*GoogleCloudOsconfigV2beta__ListPolicyOrchestratorsResponse)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.
typeOrganizationsLocationsGlobalPolicyOrchestratorsPatchCall¶
type OrganizationsLocationsGlobalPolicyOrchestratorsPatchCall struct {// contains filtered or unexported fields}func (*OrganizationsLocationsGlobalPolicyOrchestratorsPatchCall)Context¶
func (c *OrganizationsLocationsGlobalPolicyOrchestratorsPatchCall) Context(ctxcontext.Context) *OrganizationsLocationsGlobalPolicyOrchestratorsPatchCall
Context sets the context to be used in this call's Do method.
func (*OrganizationsLocationsGlobalPolicyOrchestratorsPatchCall)Do¶
func (c *OrganizationsLocationsGlobalPolicyOrchestratorsPatchCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "osconfig.organizations.locations.global.policyOrchestrators.patch" call.Any non-2xx status code is an error. Response headers are in either*Operation.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 (*OrganizationsLocationsGlobalPolicyOrchestratorsPatchCall)Fields¶
func (c *OrganizationsLocationsGlobalPolicyOrchestratorsPatchCall) Fields(s ...googleapi.Field) *OrganizationsLocationsGlobalPolicyOrchestratorsPatchCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*OrganizationsLocationsGlobalPolicyOrchestratorsPatchCall)Header¶
func (c *OrganizationsLocationsGlobalPolicyOrchestratorsPatchCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*OrganizationsLocationsGlobalPolicyOrchestratorsPatchCall)UpdateMask¶
func (c *OrganizationsLocationsGlobalPolicyOrchestratorsPatchCall) UpdateMask(updateMaskstring) *OrganizationsLocationsGlobalPolicyOrchestratorsPatchCall
UpdateMask sets the optional parameter "updateMask": The list of fields tomerge into the existing policy orchestrator. A special ["*"] field mask canbe used to simply replace the entire resource. Otherwise, for all pathsreferenced in the mask, following merge rules are used: * output only fieldsare ignored, * primitive fields are replaced, * repeated fields arereplaced, * map fields are merged key by key, * message fields are clearedif not set in the request, otherwise they are merged recursively (inparticular - message fields set to an empty message has no side effects) Iffield mask (or its paths) is not specified, it is automatically inferredfrom the request using following rules: * primitive fields are listed, ifset to a non-default value (as there is no way to distinguish betweendefault and unset value), * map and repeated fields are listed, *`google.protobuf.Any` fields are listed, * other message fields aretraversed recursively. Note: implicit mask does not allow clearing fields.
typeOrganizationsLocationsGlobalPolicyOrchestratorsService¶
type OrganizationsLocationsGlobalPolicyOrchestratorsService struct {// contains filtered or unexported fields}funcNewOrganizationsLocationsGlobalPolicyOrchestratorsService¶
func NewOrganizationsLocationsGlobalPolicyOrchestratorsService(s *Service) *OrganizationsLocationsGlobalPolicyOrchestratorsService
func (*OrganizationsLocationsGlobalPolicyOrchestratorsService)Create¶
func (r *OrganizationsLocationsGlobalPolicyOrchestratorsService) Create(parentstring, googlecloudosconfigv2beta__policyorchestrator *GoogleCloudOsconfigV2beta__PolicyOrchestrator) *OrganizationsLocationsGlobalPolicyOrchestratorsCreateCall
Create: Creates a new policy orchestrator under the given organizationsresource. `name` field of the given orchestrator are ignored and insteadreplaced by a product of `parent` and `policy_orchestrator_id`. Orchestratorstate field might be only set to `ACTIVE`, `STOPPED` or omitted (in whichcase, the created resource will be in `ACTIVE` state anyway).
- parent: The parent resource name in the form of: *`organizations/{organization_id}/locations/global` *`folders/{folder_id}/locations/global` *`projects/{project_id_or_number}/locations/global`.
func (*OrganizationsLocationsGlobalPolicyOrchestratorsService)Delete¶
func (r *OrganizationsLocationsGlobalPolicyOrchestratorsService) Delete(namestring) *OrganizationsLocationsGlobalPolicyOrchestratorsDeleteCall
Delete: Deletes an existing policy orchestrator resource, parented by anorganization.
- name: Name of the resource to be deleted.
func (*OrganizationsLocationsGlobalPolicyOrchestratorsService)Get¶
func (r *OrganizationsLocationsGlobalPolicyOrchestratorsService) Get(namestring) *OrganizationsLocationsGlobalPolicyOrchestratorsGetCall
Get: Retrieves an existing policy orchestrator, parented by an organization.
- name: The resource name.
func (*OrganizationsLocationsGlobalPolicyOrchestratorsService)List¶
func (r *OrganizationsLocationsGlobalPolicyOrchestratorsService) List(parentstring) *OrganizationsLocationsGlobalPolicyOrchestratorsListCall
List: Lists the policy orchestrators under the given parent organizationresource.
- parent: The parent resource name.
func (*OrganizationsLocationsGlobalPolicyOrchestratorsService)Patch¶
func (r *OrganizationsLocationsGlobalPolicyOrchestratorsService) Patch(namestring, googlecloudosconfigv2beta__policyorchestrator *GoogleCloudOsconfigV2beta__PolicyOrchestrator) *OrganizationsLocationsGlobalPolicyOrchestratorsPatchCall
Patch: Updates an existing policy orchestrator, parented by an organization.
- name: Immutable. Identifier. In form of *`organizations/{organization_id}/locations/global/policyOrchestrators/{orchestrator_id}` *`folders/{folder_id}/locations/global/policyOrchestrators/{orchestrator_id}` *`projects/{project_id_or_number}/locations/global/policyOrchestrators/{orchestrator_id}`.
typeOrganizationsLocationsGlobalService¶
type OrganizationsLocationsGlobalService struct {PolicyOrchestrators *OrganizationsLocationsGlobalPolicyOrchestratorsService// contains filtered or unexported fields}funcNewOrganizationsLocationsGlobalService¶
func NewOrganizationsLocationsGlobalService(s *Service) *OrganizationsLocationsGlobalService
typeOrganizationsLocationsOperationsCancelCall¶
type OrganizationsLocationsOperationsCancelCall struct {// contains filtered or unexported fields}func (*OrganizationsLocationsOperationsCancelCall)Context¶
func (c *OrganizationsLocationsOperationsCancelCall) Context(ctxcontext.Context) *OrganizationsLocationsOperationsCancelCall
Context sets the context to be used in this call's Do method.
func (*OrganizationsLocationsOperationsCancelCall)Do¶
func (c *OrganizationsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty,error)
Do executes the "osconfig.organizations.locations.operations.cancel" call.Any non-2xx status code is an error. Response headers are in either*Empty.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 (*OrganizationsLocationsOperationsCancelCall)Fields¶
func (c *OrganizationsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *OrganizationsLocationsOperationsCancelCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*OrganizationsLocationsOperationsCancelCall)Header¶
func (c *OrganizationsLocationsOperationsCancelCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeOrganizationsLocationsOperationsDeleteCall¶
type OrganizationsLocationsOperationsDeleteCall struct {// contains filtered or unexported fields}func (*OrganizationsLocationsOperationsDeleteCall)Context¶
func (c *OrganizationsLocationsOperationsDeleteCall) Context(ctxcontext.Context) *OrganizationsLocationsOperationsDeleteCall
Context sets the context to be used in this call's Do method.
func (*OrganizationsLocationsOperationsDeleteCall)Do¶
func (c *OrganizationsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty,error)
Do executes the "osconfig.organizations.locations.operations.delete" call.Any non-2xx status code is an error. Response headers are in either*Empty.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 (*OrganizationsLocationsOperationsDeleteCall)Fields¶
func (c *OrganizationsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsLocationsOperationsDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*OrganizationsLocationsOperationsDeleteCall)Header¶
func (c *OrganizationsLocationsOperationsDeleteCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
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) (*Operation,error)
Do executes the "osconfig.organizations.locations.operations.get" call.Any non-2xx status code is an error. Response headers are in either*Operation.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 (*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) (*ListOperationsResponse,error)
Do executes the "osconfig.organizations.locations.operations.list" call.Any non-2xx status code is an error. Response headers are in either*ListOperationsResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
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(*ListOperationsResponse)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.252.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 theListOperationsResponse.unreachable field. This can only be `true` whenreading across collections. For example, when `parent` is set to"projects/example/locations/-". This field is not supported by default 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)Cancel¶
func (r *OrganizationsLocationsOperationsService) Cancel(namestring, canceloperationrequest *CancelOperationRequest) *OrganizationsLocationsOperationsCancelCall
Cancel: Starts asynchronous cancellation on a long-running operation. Theserver makes a best effort to cancel the operation, but success is notguaranteed. If the server doesn't support this method, it returns`google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation orother methods to check whether the cancellation succeeded or whether theoperation completed despite cancellation. On successful cancellation, theoperation is not deleted; instead, it becomes an operation with anOperation.error value with a google.rpc.Status.code of `1`, corresponding to`Code.CANCELLED`.
- name: The name of the operation resource to be cancelled.
func (*OrganizationsLocationsOperationsService)Delete¶
func (r *OrganizationsLocationsOperationsService) Delete(namestring) *OrganizationsLocationsOperationsDeleteCall
Delete: Deletes a long-running operation. This method indicates that theclient is no longer interested in the operation result. It does not cancelthe operation. If the server doesn't support this method, it returns`google.rpc.Code.UNIMPLEMENTED`.
- name: The name of the operation resource to be deleted.
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 {Global *OrganizationsLocationsGlobalServiceOperations *OrganizationsLocationsOperationsService// contains filtered or unexported fields}funcNewOrganizationsLocationsService¶
func NewOrganizationsLocationsService(s *Service) *OrganizationsLocationsService
typeOrganizationsService¶
type OrganizationsService struct {Locations *OrganizationsLocationsService// contains filtered or unexported fields}funcNewOrganizationsService¶
func NewOrganizationsService(s *Service) *OrganizationsService
typeProjectsLocationsGlobalPolicyOrchestratorsCreateCall¶
type ProjectsLocationsGlobalPolicyOrchestratorsCreateCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsGlobalPolicyOrchestratorsCreateCall)Context¶
func (c *ProjectsLocationsGlobalPolicyOrchestratorsCreateCall) Context(ctxcontext.Context) *ProjectsLocationsGlobalPolicyOrchestratorsCreateCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsGlobalPolicyOrchestratorsCreateCall)Do¶
func (c *ProjectsLocationsGlobalPolicyOrchestratorsCreateCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "osconfig.projects.locations.global.policyOrchestrators.create" call.Any non-2xx status code is an error. Response headers are in either*Operation.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 (*ProjectsLocationsGlobalPolicyOrchestratorsCreateCall)Fields¶
func (c *ProjectsLocationsGlobalPolicyOrchestratorsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalPolicyOrchestratorsCreateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsGlobalPolicyOrchestratorsCreateCall)Header¶
func (c *ProjectsLocationsGlobalPolicyOrchestratorsCreateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsGlobalPolicyOrchestratorsCreateCall)PolicyOrchestratorId¶
func (c *ProjectsLocationsGlobalPolicyOrchestratorsCreateCall) PolicyOrchestratorId(policyOrchestratorIdstring) *ProjectsLocationsGlobalPolicyOrchestratorsCreateCall
PolicyOrchestratorId sets the optional parameter "policyOrchestratorId":Required. The logical identifier of the policy orchestrator, with thefollowing restrictions: * Must contain only lowercase letters, numbers, andhyphens. * Must start with a letter. * Must be between 1-63 characters. *Must end with a number or a letter. * Must be unique within the parent.
func (*ProjectsLocationsGlobalPolicyOrchestratorsCreateCall)RequestId¶
func (c *ProjectsLocationsGlobalPolicyOrchestratorsCreateCall) RequestId(requestIdstring) *ProjectsLocationsGlobalPolicyOrchestratorsCreateCall
RequestId sets the optional parameter "requestId": An optional request ID toidentify requests. Specify a unique request ID so that if you must retryyour request, the server will know to ignore the request if it has alreadybeen completed. The server will guarantee that for at least 60 minutes sincethe first request. For example, consider a situation where you make aninitial request and the request times out. If you make the request againwith the same request ID, the server can check if original operation withthe same request ID was received, and if so, will ignore the second request.This prevents clients from accidentally creating duplicate commitments. Therequest ID must be a valid UUID with the exception that zero UUID is notsupported (00000000-0000-0000-0000-000000000000).
typeProjectsLocationsGlobalPolicyOrchestratorsDeleteCall¶
type ProjectsLocationsGlobalPolicyOrchestratorsDeleteCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsGlobalPolicyOrchestratorsDeleteCall)Context¶
func (c *ProjectsLocationsGlobalPolicyOrchestratorsDeleteCall) Context(ctxcontext.Context) *ProjectsLocationsGlobalPolicyOrchestratorsDeleteCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsGlobalPolicyOrchestratorsDeleteCall)Do¶
func (c *ProjectsLocationsGlobalPolicyOrchestratorsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "osconfig.projects.locations.global.policyOrchestrators.delete" call.Any non-2xx status code is an error. Response headers are in either*Operation.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 (*ProjectsLocationsGlobalPolicyOrchestratorsDeleteCall)Etag¶
func (c *ProjectsLocationsGlobalPolicyOrchestratorsDeleteCall) Etag(etagstring) *ProjectsLocationsGlobalPolicyOrchestratorsDeleteCall
Etag sets the optional parameter "etag": The current etag of the policyorchestrator. If an etag is provided and does not match the current etag ofthe policy orchestrator, deletion will be blocked and an ABORTED error willbe returned.
func (*ProjectsLocationsGlobalPolicyOrchestratorsDeleteCall)Fields¶
func (c *ProjectsLocationsGlobalPolicyOrchestratorsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalPolicyOrchestratorsDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsGlobalPolicyOrchestratorsDeleteCall)Header¶
func (c *ProjectsLocationsGlobalPolicyOrchestratorsDeleteCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsGlobalPolicyOrchestratorsDeleteCall)RequestId¶
func (c *ProjectsLocationsGlobalPolicyOrchestratorsDeleteCall) RequestId(requestIdstring) *ProjectsLocationsGlobalPolicyOrchestratorsDeleteCall
RequestId sets the optional parameter "requestId": An optional request ID toidentify requests. Specify a unique request ID so that if you must retryyour request, the server will know to ignore the request if it has alreadybeen completed. The server will guarantee that for at least 60 minutes afterthe first request. For example, consider a situation where you make aninitial request and the request times out. If you make the request againwith the same request ID, the server can check if original operation withthe same request ID was received, and if so, will ignore the second request.This prevents clients from accidentally creating duplicate commitments. Therequest ID must be a valid UUID with the exception that zero UUID is notsupported (00000000-0000-0000-0000-000000000000).
typeProjectsLocationsGlobalPolicyOrchestratorsGetCall¶
type ProjectsLocationsGlobalPolicyOrchestratorsGetCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsGlobalPolicyOrchestratorsGetCall)Context¶
func (c *ProjectsLocationsGlobalPolicyOrchestratorsGetCall) Context(ctxcontext.Context) *ProjectsLocationsGlobalPolicyOrchestratorsGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsGlobalPolicyOrchestratorsGetCall)Do¶
func (c *ProjectsLocationsGlobalPolicyOrchestratorsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudOsconfigV2beta__PolicyOrchestrator,error)
Do executes the "osconfig.projects.locations.global.policyOrchestrators.get" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudOsconfigV2beta__PolicyOrchestrator.ServerResponse.Header or (ifa response was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*ProjectsLocationsGlobalPolicyOrchestratorsGetCall)Fields¶
func (c *ProjectsLocationsGlobalPolicyOrchestratorsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalPolicyOrchestratorsGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsGlobalPolicyOrchestratorsGetCall)Header¶
func (c *ProjectsLocationsGlobalPolicyOrchestratorsGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsGlobalPolicyOrchestratorsGetCall)IfNoneMatch¶
func (c *ProjectsLocationsGlobalPolicyOrchestratorsGetCall) IfNoneMatch(entityTagstring) *ProjectsLocationsGlobalPolicyOrchestratorsGetCall
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.
typeProjectsLocationsGlobalPolicyOrchestratorsListCall¶
type ProjectsLocationsGlobalPolicyOrchestratorsListCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsGlobalPolicyOrchestratorsListCall)Context¶
func (c *ProjectsLocationsGlobalPolicyOrchestratorsListCall) Context(ctxcontext.Context) *ProjectsLocationsGlobalPolicyOrchestratorsListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsGlobalPolicyOrchestratorsListCall)Do¶
func (c *ProjectsLocationsGlobalPolicyOrchestratorsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudOsconfigV2beta__ListPolicyOrchestratorsResponse,error)
Do executes the "osconfig.projects.locations.global.policyOrchestrators.list" call.Any non-2xx status code is an error. Response headers are in either*GoogleCloudOsconfigV2beta__ListPolicyOrchestratorsResponse.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 (*ProjectsLocationsGlobalPolicyOrchestratorsListCall)Fields¶
func (c *ProjectsLocationsGlobalPolicyOrchestratorsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalPolicyOrchestratorsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsGlobalPolicyOrchestratorsListCall)Filter¶
func (c *ProjectsLocationsGlobalPolicyOrchestratorsListCall) Filter(filterstring) *ProjectsLocationsGlobalPolicyOrchestratorsListCall
Filter sets the optional parameter "filter": Filtering results
func (*ProjectsLocationsGlobalPolicyOrchestratorsListCall)Header¶
func (c *ProjectsLocationsGlobalPolicyOrchestratorsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsGlobalPolicyOrchestratorsListCall)IfNoneMatch¶
func (c *ProjectsLocationsGlobalPolicyOrchestratorsListCall) IfNoneMatch(entityTagstring) *ProjectsLocationsGlobalPolicyOrchestratorsListCall
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 (*ProjectsLocationsGlobalPolicyOrchestratorsListCall)OrderBy¶
func (c *ProjectsLocationsGlobalPolicyOrchestratorsListCall) OrderBy(orderBystring) *ProjectsLocationsGlobalPolicyOrchestratorsListCall
OrderBy sets the optional parameter "orderBy": Hint for how to order theresults
func (*ProjectsLocationsGlobalPolicyOrchestratorsListCall)PageSize¶
func (c *ProjectsLocationsGlobalPolicyOrchestratorsListCall) PageSize(pageSizeint64) *ProjectsLocationsGlobalPolicyOrchestratorsListCall
PageSize sets the optional parameter "pageSize": Requested page size. Servermay return fewer items than requested. If unspecified, server will pick anappropriate default.
func (*ProjectsLocationsGlobalPolicyOrchestratorsListCall)PageToken¶
func (c *ProjectsLocationsGlobalPolicyOrchestratorsListCall) PageToken(pageTokenstring) *ProjectsLocationsGlobalPolicyOrchestratorsListCall
PageToken sets the optional parameter "pageToken": A token identifying apage of results the server should return.
func (*ProjectsLocationsGlobalPolicyOrchestratorsListCall)Pages¶
func (c *ProjectsLocationsGlobalPolicyOrchestratorsListCall) Pages(ctxcontext.Context, f func(*GoogleCloudOsconfigV2beta__ListPolicyOrchestratorsResponse)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.
typeProjectsLocationsGlobalPolicyOrchestratorsPatchCall¶
type ProjectsLocationsGlobalPolicyOrchestratorsPatchCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsGlobalPolicyOrchestratorsPatchCall)Context¶
func (c *ProjectsLocationsGlobalPolicyOrchestratorsPatchCall) Context(ctxcontext.Context) *ProjectsLocationsGlobalPolicyOrchestratorsPatchCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsGlobalPolicyOrchestratorsPatchCall)Do¶
func (c *ProjectsLocationsGlobalPolicyOrchestratorsPatchCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "osconfig.projects.locations.global.policyOrchestrators.patch" call.Any non-2xx status code is an error. Response headers are in either*Operation.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 (*ProjectsLocationsGlobalPolicyOrchestratorsPatchCall)Fields¶
func (c *ProjectsLocationsGlobalPolicyOrchestratorsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalPolicyOrchestratorsPatchCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsGlobalPolicyOrchestratorsPatchCall)Header¶
func (c *ProjectsLocationsGlobalPolicyOrchestratorsPatchCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsGlobalPolicyOrchestratorsPatchCall)UpdateMask¶
func (c *ProjectsLocationsGlobalPolicyOrchestratorsPatchCall) UpdateMask(updateMaskstring) *ProjectsLocationsGlobalPolicyOrchestratorsPatchCall
UpdateMask sets the optional parameter "updateMask": The list of fields tomerge into the existing policy orchestrator. A special ["*"] field mask canbe used to simply replace the entire resource. Otherwise, for all pathsreferenced in the mask, following merge rules are used: * output only fieldsare ignored, * primitive fields are replaced, * repeated fields arereplaced, * map fields are merged key by key, * message fields are clearedif not set in the request, otherwise they are merged recursively (inparticular - message fields set to an empty message has no side effects) Iffield mask (or its paths) is not specified, it is automatically inferredfrom the request using following rules: * primitive fields are listed, ifset to a non-default value (as there is no way to distinguish betweendefault and unset value), * map and repeated fields are listed, *`google.protobuf.Any` fields are listed, * other message fields aretraversed recursively. Note: implicit mask does not allow clearing fields.
typeProjectsLocationsGlobalPolicyOrchestratorsService¶
type ProjectsLocationsGlobalPolicyOrchestratorsService struct {// contains filtered or unexported fields}funcNewProjectsLocationsGlobalPolicyOrchestratorsService¶
func NewProjectsLocationsGlobalPolicyOrchestratorsService(s *Service) *ProjectsLocationsGlobalPolicyOrchestratorsService
func (*ProjectsLocationsGlobalPolicyOrchestratorsService)Create¶
func (r *ProjectsLocationsGlobalPolicyOrchestratorsService) Create(parentstring, googlecloudosconfigv2beta__policyorchestrator *GoogleCloudOsconfigV2beta__PolicyOrchestrator) *ProjectsLocationsGlobalPolicyOrchestratorsCreateCall
Create: Creates a new policy orchestrator under the given project resource.`name` field of the given orchestrator are ignored and instead replaced by aproduct of `parent` and `policy_orchestrator_id`. Orchestrator state fieldmight be only set to `ACTIVE`, `STOPPED` or omitted (in which case, thecreated resource will be in `ACTIVE` state anyway).
- parent: The parent resource name in the form of: *`organizations/{organization_id}/locations/global` *`folders/{folder_id}/locations/global` *`projects/{project_id_or_number}/locations/global`.
func (*ProjectsLocationsGlobalPolicyOrchestratorsService)Delete¶
func (r *ProjectsLocationsGlobalPolicyOrchestratorsService) Delete(namestring) *ProjectsLocationsGlobalPolicyOrchestratorsDeleteCall
Delete: Deletes an existing policy orchestrator resource, parented by aproject.
- name: Name of the resource to be deleted.
func (*ProjectsLocationsGlobalPolicyOrchestratorsService)Get¶
func (r *ProjectsLocationsGlobalPolicyOrchestratorsService) Get(namestring) *ProjectsLocationsGlobalPolicyOrchestratorsGetCall
Get: Retrieves an existing policy orchestrator, parented by a project.
- name: The resource name.
func (*ProjectsLocationsGlobalPolicyOrchestratorsService)List¶
func (r *ProjectsLocationsGlobalPolicyOrchestratorsService) List(parentstring) *ProjectsLocationsGlobalPolicyOrchestratorsListCall
List: Lists the policy orchestrators under the given parent projectresource.
- parent: The parent resource name.
func (*ProjectsLocationsGlobalPolicyOrchestratorsService)Patch¶
func (r *ProjectsLocationsGlobalPolicyOrchestratorsService) Patch(namestring, googlecloudosconfigv2beta__policyorchestrator *GoogleCloudOsconfigV2beta__PolicyOrchestrator) *ProjectsLocationsGlobalPolicyOrchestratorsPatchCall
Patch: Updates an existing policy orchestrator, parented by a project.
- name: Immutable. Identifier. In form of *`organizations/{organization_id}/locations/global/policyOrchestrators/{orchestrator_id}` *`folders/{folder_id}/locations/global/policyOrchestrators/{orchestrator_id}` *`projects/{project_id_or_number}/locations/global/policyOrchestrators/{orchestrator_id}`.
typeProjectsLocationsGlobalService¶
type ProjectsLocationsGlobalService struct {PolicyOrchestrators *ProjectsLocationsGlobalPolicyOrchestratorsService// contains filtered or unexported fields}funcNewProjectsLocationsGlobalService¶
func NewProjectsLocationsGlobalService(s *Service) *ProjectsLocationsGlobalService
typeProjectsLocationsOperationsCancelCall¶
type ProjectsLocationsOperationsCancelCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsOperationsCancelCall)Context¶
func (c *ProjectsLocationsOperationsCancelCall) Context(ctxcontext.Context) *ProjectsLocationsOperationsCancelCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsOperationsCancelCall)Do¶
func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty,error)
Do executes the "osconfig.projects.locations.operations.cancel" call.Any non-2xx status code is an error. Response headers are in either*Empty.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 (*ProjectsLocationsOperationsCancelCall)Fields¶
func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsOperationsCancelCall)Header¶
func (c *ProjectsLocationsOperationsCancelCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsOperationsDeleteCall¶
type ProjectsLocationsOperationsDeleteCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsOperationsDeleteCall)Context¶
func (c *ProjectsLocationsOperationsDeleteCall) Context(ctxcontext.Context) *ProjectsLocationsOperationsDeleteCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsOperationsDeleteCall)Do¶
func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty,error)
Do executes the "osconfig.projects.locations.operations.delete" call.Any non-2xx status code is an error. Response headers are in either*Empty.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 (*ProjectsLocationsOperationsDeleteCall)Fields¶
func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsOperationsDeleteCall)Header¶
func (c *ProjectsLocationsOperationsDeleteCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProjectsLocationsOperationsGetCall¶
type ProjectsLocationsOperationsGetCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsOperationsGetCall)Context¶
func (c *ProjectsLocationsOperationsGetCall) Context(ctxcontext.Context) *ProjectsLocationsOperationsGetCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsOperationsGetCall)Do¶
func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation,error)
Do executes the "osconfig.projects.locations.operations.get" call.Any non-2xx status code is an error. Response headers are in either*Operation.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 (*ProjectsLocationsOperationsGetCall)Fields¶
func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsOperationsGetCall)Header¶
func (c *ProjectsLocationsOperationsGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsOperationsGetCall)IfNoneMatch¶
func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTagstring) *ProjectsLocationsOperationsGetCall
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.
typeProjectsLocationsOperationsListCall¶
type ProjectsLocationsOperationsListCall struct {// contains filtered or unexported fields}func (*ProjectsLocationsOperationsListCall)Context¶
func (c *ProjectsLocationsOperationsListCall) Context(ctxcontext.Context) *ProjectsLocationsOperationsListCall
Context sets the context to be used in this call's Do method.
func (*ProjectsLocationsOperationsListCall)Do¶
func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse,error)
Do executes the "osconfig.projects.locations.operations.list" call.Any non-2xx status code is an error. Response headers are in either*ListOperationsResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*ProjectsLocationsOperationsListCall)Fields¶
func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProjectsLocationsOperationsListCall)Filter¶
func (c *ProjectsLocationsOperationsListCall) Filter(filterstring) *ProjectsLocationsOperationsListCall
Filter sets the optional parameter "filter": The standard list filter.
func (*ProjectsLocationsOperationsListCall)Header¶
func (c *ProjectsLocationsOperationsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProjectsLocationsOperationsListCall)IfNoneMatch¶
func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTagstring) *ProjectsLocationsOperationsListCall
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 (*ProjectsLocationsOperationsListCall)PageSize¶
func (c *ProjectsLocationsOperationsListCall) PageSize(pageSizeint64) *ProjectsLocationsOperationsListCall
PageSize sets the optional parameter "pageSize": The standard list pagesize.
func (*ProjectsLocationsOperationsListCall)PageToken¶
func (c *ProjectsLocationsOperationsListCall) PageToken(pageTokenstring) *ProjectsLocationsOperationsListCall
PageToken sets the optional parameter "pageToken": The standard list pagetoken.
func (*ProjectsLocationsOperationsListCall)Pages¶
func (c *ProjectsLocationsOperationsListCall) Pages(ctxcontext.Context, f func(*ListOperationsResponse)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 (*ProjectsLocationsOperationsListCall)ReturnPartialSuccess¶added inv0.252.0
func (c *ProjectsLocationsOperationsListCall) ReturnPartialSuccess(returnPartialSuccessbool) *ProjectsLocationsOperationsListCall
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 theListOperationsResponse.unreachable field. This can only be `true` whenreading across collections. For example, when `parent` is set to"projects/example/locations/-". This field is not supported by default andwill result in an `UNIMPLEMENTED` error if set unless explicitly documentedotherwise in service or product specific documentation.
typeProjectsLocationsOperationsService¶
type ProjectsLocationsOperationsService struct {// contains filtered or unexported fields}funcNewProjectsLocationsOperationsService¶
func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService
func (*ProjectsLocationsOperationsService)Cancel¶
func (r *ProjectsLocationsOperationsService) Cancel(namestring, canceloperationrequest *CancelOperationRequest) *ProjectsLocationsOperationsCancelCall
Cancel: Starts asynchronous cancellation on a long-running operation. Theserver makes a best effort to cancel the operation, but success is notguaranteed. If the server doesn't support this method, it returns`google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation orother methods to check whether the cancellation succeeded or whether theoperation completed despite cancellation. On successful cancellation, theoperation is not deleted; instead, it becomes an operation with anOperation.error value with a google.rpc.Status.code of `1`, corresponding to`Code.CANCELLED`.
- name: The name of the operation resource to be cancelled.
func (*ProjectsLocationsOperationsService)Delete¶
func (r *ProjectsLocationsOperationsService) Delete(namestring) *ProjectsLocationsOperationsDeleteCall
Delete: Deletes a long-running operation. This method indicates that theclient is no longer interested in the operation result. It does not cancelthe operation. If the server doesn't support this method, it returns`google.rpc.Code.UNIMPLEMENTED`.
- name: The name of the operation resource to be deleted.
func (*ProjectsLocationsOperationsService)Get¶
func (r *ProjectsLocationsOperationsService) Get(namestring) *ProjectsLocationsOperationsGetCall
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 (*ProjectsLocationsOperationsService)List¶
func (r *ProjectsLocationsOperationsService) List(namestring) *ProjectsLocationsOperationsListCall
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.
typeProjectsLocationsService¶
type ProjectsLocationsService struct {Global *ProjectsLocationsGlobalServiceOperations *ProjectsLocationsOperationsService// contains filtered or unexported fields}funcNewProjectsLocationsService¶
func NewProjectsLocationsService(s *Service) *ProjectsLocationsService
typeProjectsService¶
type ProjectsService struct {Locations *ProjectsLocationsService// contains filtered or unexported fields}funcNewProjectsService¶
func NewProjectsService(s *Service) *ProjectsService
typeService¶
type Service struct {BasePathstring// API endpoint base URLUserAgentstring// optional additional User-Agent fragmentFolders *FoldersServiceOrganizations *OrganizationsServiceProjects *ProjectsService// 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.
typeStatus¶
type Status 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:"-"`}Status: The `Status` type defines a logical error model that is suitable fordifferent programming environments, including REST APIs and RPC APIs. It isused by gRPC (https://github.com/grpc). Each `Status` message contains threepieces of data: error code, error message, and error details. You can findout more about this error model and how to work with it in the API DesignGuide (https://cloud.google.com/apis/design/errors).
func (Status)MarshalJSON¶
typeStatusProto¶added inv0.234.0
type StatusProto struct {// CanonicalCode: copybara:strip_begin(b/383363683)// copybara:strip_end_and_replace optional int32 canonical_code = 6;CanonicalCodeint64 `json:"canonicalCode,omitempty"`// Code: Numeric code drawn from the space specified below. Often, this is the// canonical error space, and code is drawn from google3/util/task/codes.proto// copybara:strip_begin(b/383363683) copybara:strip_end_and_replace optional// int32 code = 1;Codeint64 `json:"code,omitempty"`// Message: Detail message copybara:strip_begin(b/383363683)// copybara:strip_end_and_replace optional string message = 3;Messagestring `json:"message,omitempty"`// MessageSet: message_set associates an arbitrary proto message with the// status. copybara:strip_begin(b/383363683) copybara:strip_end_and_replace// optional proto2.bridge.MessageSet message_set = 5;MessageSet *MessageSet `json:"messageSet,omitempty"`// Space: copybara:strip_begin(b/383363683) Space to which this status belongs// copybara:strip_end_and_replace optional string space = 2; // Space to which// this status belongsSpacestring `json:"space,omitempty"`// ForceSendFields is a list of field names (e.g. "CanonicalCode") 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. "CanonicalCode") 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:"-"`}StatusProto: Wire-format for a Status object
func (StatusProto)MarshalJSON¶added inv0.234.0
func (sStatusProto) MarshalJSON() ([]byte,error)